AGENT SKILL

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

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; noexcept destructors
  • 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 --security lens

04 同仓库更多 Skills

dasobral
dasobral/skills

fixture-skill

Fixture skill used to prove trust inventory coverage.

Skill与智能体开发
★ 0
dasobral
dasobral/skills

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.

开发工程师内容创作者写作与文案
★ 0
dasobral
dasobral/skills

test-crypto-interoperability

Record reproducible cryptographic interoperability cases, including negotiation, fallback, sizes, latency, fragmentation, and negative tests.

测试与质量
★ 0
dasobral
dasobral/skills

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.

设计师代码审查视觉设计
★ 0
dasobral
dasobral/skills

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.

视觉设计
★ 0
dasobral
dasobral/skills

run-agent-attack-replay

Aggregate isolated agent attack trials with deterministic side-effect assertions, Wilson intervals, and preserved trace evidence.

Skill与智能体开发
★ 0