mcpField
B
backend-principle-eng-cpp-pro-max

backend-principle-eng-cpp-pro-max

github.com/praxstackDevelopment1104 installsUpdated 5d ago
Repository

About backend-principle-eng-cpp-pro-max

backend-principle-eng-cpp-pro-max is a guidance skill for principal-level engineers working on C++ backends and infrastructure. It prioritizes correctness, memory safety, and predictable performance across design, review, testing, and incident response.

Key features

  1. 01Emphasize RAII, bounds checks, and invariants
  2. 02Cover timeouts, backpressure, and graceful shutdown
  3. 03Guide safe parsing and hardened builds
  4. 04Address latency, allocations, and observability
  5. 05Include sanitizers, fuzzing, and load testing

Use cases

  1. 01Design or refactor C++ backend services
  2. 02Review memory safety, concurrency, and latency risks
  3. 03Build high-throughput networking or storage systems
  4. 04Investigate performance regressions and incidents

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/praxstack/skills-and-personas --skill backend-principle-eng-cpp-pro-max

After installing, type/backend-principle-eng-cpp-pro-maxin Claude Code to confirm it loaded.

Bundled filesreferences/cpp-core.md

Details

From the project README

Backend Principle Eng C++ Pro Max

Principal-level guidance for C++ backend systems, low-latency services, and infrastructure. Emphasizes correctness, memory safety, and predictable performance.

When to Apply

  • Designing or refactoring C++ backend services and infrastructure
  • Reviewing code for memory safety, concurrency, and latency regressions
  • Building high-throughput networking, storage, or compute systems
  • Incident response and performance regressions

Priority Model (highest to lowest)

PriorityCategoryGoalSignals
1Correctness & UB AvoidanceNo undefined behaviorRAII, invariants, validated inputs
2Reliability & ResilienceFail safe under loadTimeouts, backpressure, graceful shutdown
3SecurityHard to exploitHardened builds, safe parsing, least privilege
4Performance & LatencyPredictable P99Stable allocs, bounded queues, zero-copy where safe
5Observability & OperabilityFast triageTrace ids, structured logs, metrics
6Scalability & EvolutionSafe growthStatelessness, sharding, protocol versioning
7Tooling & TestingSustainable velocitySanitizers, fuzzing, CI gates

Quick Reference (Rules)

1. Correctness & UB Avoidance (CRITICAL)
  • raii - Own resources with RAII and deterministic lifetimes
  • no-raw-ownership - Raw pointers only for non-owning references
  • bounds - Validate all indices and sizes at boundaries
  • invariants - Assert core invariants and state transitions
  • time - Use monotonic clocks for durations
2. Reliability & Resilience (CRITICAL)
  • timeouts - Explicit timeouts for every external call
  • backpressure - Bounded queues; apply load shedding
  • shutdown - Drain in-flight work with deadlines
  • bulkheads - Isolate thread pools by dependency
3. Security (CRITICAL)
  • safe-parse - Validate untrusted input; avoid unsafe string ops
  • harden - Compile with stack protection, PIE, RELRO, FORTIFY
  • secrets - No secrets in logs or core dumps
  • least-priv - Drop privileges and sandbox when possible
4. Performance & Latency (HIGH)
  • allocs - Minimize allocations in hot paths
  • copy - Prefer move or views; avoid unnecessary copies
  • cache - Improve locality; avoid false sharing
  • io - Use async I/O where appropriate
  • profiling - Measure before optimizing
5. Observability & Operability (HIGH)
  • logs - Structured logs with request and trace ids
  • metrics - RED/USE plus business KPIs
  • tracing - Propagate trace context across threads
  • crash - Symbolized crash reports and core dump policies
6. Scalability & Evolution (MEDIUM)
  • stateless - Externalize state, enable horizontal scale
  • partitioning - Shard by stable keys
  • versioning - Protocol and schema versioning
  • limits - Explicit limits on payloads and queue sizes
7. Tooling & Testing (MEDIUM)
  • sanitizers - ASan, UBSan, TSan in CI
  • fuzzing - Fuzz parsers and protocol handlers
  • tests - Unit, integration, and load tests
  • lint - clang-tidy, clang-format, warnings as errors

Execution Workflow

  1. Clarify latency/SLOs, throughput, and cost budgets
  2. Map data flow, thread model, and failure modes
  3. Define interfaces and memory ownership contracts
  4. Implement with bounded queues and explicit timeouts
  5. Add observability and crash diagnostics
  6. Validate with sanitizers, fuzzing, load tests
  7. Review risks and publish runbooks

Language-Specific Guidance

See references/cpp-core.md for toolchain defaults, concurrency patterns, and hardening.

Comments

Markdown supported