cpp-engineer
Production-grade C++ for industrial/defense QKD ground-segment systems. Enforces thread-safe patterns, RAII, structured logging (never key material), websocketpp/Boost.Asio TLS networking, and CMake target-based builds. Write mode of the C++ QKD Toolkit plugin. Use for .cpp/.hpp files, CMakeLists.txt, or QKD ground-segment development.
- License 许可
- MIT
- 所属仓库
- dasobral/skills
- 最近更新
- 2026-08-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- cpp-engineer
- description
- Production-grade C++ for industrial/defense QKD ground-segment systems. Enforces thread-safe patterns, RAII, structured logging (never key material), websocketpp/Boost.Asio TLS networking, and CMake target-based builds. Write mode of the C++ QKD Toolkit plugin. Use for .cpp/.hpp files, CMakeLists.txt, or QKD ground-segment development.
02 资源文件 7
- 其他examples/input/ws_client.cpp4.1 KB
- 参考文档examples/output/ws_client_review.md7.0 KB
- 参考文档index.json641 B
- 参考文档references/coding-standards.md7.1 KB
- 参考文档references/qkd-production-standards.md661 B
- 参考文档templates/CMakeLists-root.txt3.2 KB
- 其他templates/Jenkinsfile.groovy4.1 KB
03 SKILL.md 正文
C++ Engineer
Senior C++ engineer for industrial/defense QKD ground-segment software.
Apply to writing, reviewing, and design tasks.
Read references/qkd-production-standards.md for the cross-cutting production
constraints that apply throughout this workflow.
Step 1 — Orient
Glob CMakeLists.txt (exclude build/_deps). Read root cmake, targets, deps.
Grep for logging (LogManager, syslog) and concurrency primitives.
Announce: Targets: ... Deps: ... Logging: ... Concurrency: ...
Step 2 — Dependency Policy
| Check | Rule |
|---|---|
| Already present? | Use existing — no duplicates |
| Ubuntu package? | Prefer find_package over vendoring |
| FetchContent? | Pin tag/commit hash |
| vcpkg/Conan? | Last resort with justification |
| Forbidden | No unpinned versions, no silent additions |
See references/coding-standards.md for full patterns.
Step 3 — Concurrency & RAII
- Thread-safe singleton with explicit mutex scope
- Smart pointers only;
noexceptdestructors - State which mutex protects which data
- No unprotected global mutable state
Step 4 — Logging
Syslog-compatible structured logs: component, thread ID, timestamp. Never log key material, nonces, IVs, or credentials.
Step 5 — Networking
websocketpp + Boost.Asio TLS. For every path ask:
- What happens on reconnect?
- What happens if remote dies mid-message?
Step 6 — Build
CMake target-based layout. Separate lib/exe targets. Mandatory test target.
Templates: templates/CMakeLists-root.txt, templates/Jenkinsfile.groovy.
Review Mode
When reviewing (not writing), delegate to cpp-review skill with appropriate
lens (--realtime, --security, or --full).
Rules
- C++17 minimum — verify compatibility before suggesting patterns
- Read workspace first — never guess dependencies
- For security-specific review, use cpp-review
--securitylens
04 同仓库更多 Skills
fixture-skill
Fixture skill used to prove trust inventory coverage.
write-conformant-code
Write code in any language that matches project conventions exactly. Reads CODING_REQUIREMENTS.md, prior review output, or built-in defaults before writing. Part of Codecraft pipeline: analyze → write → review → audit. Use when implementing features, functions, or any code that should fit seamlessly into an existing codebase.
test-crypto-interoperability
Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.
scientific-platform-architect
Design scientific computing platforms combining HPC kernels with modern infrastructure. Enforces compute-layer separation (Rust/PyTorch/Python), emulator-first thinking, and right-sized infrastructure. Use for MCMC pipelines, neural emulators, platform design, or scientific code review.
rust-systems
Rust systems engineering for daemons, HTTP APIs, and AOS components. Enforces Tokio/Axum async-first, LiteLLM-compatible OpenAI APIs, workspace layouts, tracing, and systemd-compatible daemon design. Part of AOS Stack plugin. Use for .rs files, Cargo.toml, daemons, or Rust orchestrator services.
run-agent-attack-replay
Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.