cpp-reliability
Skill0 starsChanged 2 months agoMITView on GitHub
Analyze production C++ for ownership, lifetime, RAII, concurrency, error handling, exception safety, and material runtime costs. Use for reviews, regressions, design analysis, and reliability debugging.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- distributed-systems-debuggingSkill
- incident-responseSkill
- performance-investigationSkill
- pull-requestSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Check whether references, pointers, spans, views, callbacks, and captures can outlive their targets.
- Distinctive: line 14
Treat shared ownership as a deliberate design decision, not a default.
- Distinctive: line 15
Verify destruction ordering and shutdown behavior.
- Distinctive: line 16
Check move operations for valid source and destination states.
- Distinctive: line 20
Prefer RAII for memory, handles, locks, registrations, and transactions.
- Distinctive: line 21
Verify cleanup after partial initialization and every error path.
- Distinctive: line 22
Check exception guarantees where exceptions are enabled.
- Distinctive: line 23
Ensure destructors cannot unexpectedly propagate failures.
- Distinctive: line 27
Document shared state and its synchronization.
- Distinctive: line 28
Check lock ordering, callback reentrancy, races, deadlocks, and cancellation.
- Distinctive: line 29
Verify that atomics use an ordering strong enough for the invariant.
- Distinctive: line 35
Avoid broad catches and success-shaped fallbacks.
- Distinctive: line 36
Verify that failed operations leave state valid and recoverable.
- Distinctive: line 37
Check retry safety, idempotency, and duplicate effects.
- Distinctive: line 41
Look for avoidable allocation, copying, contention, and cache-unfriendly access only when they are material to the workload.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
C++ reliability
Ownership and lifetime
- Identify the owner of every relevant object and resource.
- Check whether references, pointers, spans, views, callbacks, and captures can outlive their targets.
- Treat shared ownership as a deliberate design decision, not a default.
- Verify destruction ordering and shutdown behavior.
- Check move operations for valid source and destination states.
Resource safety
- Prefer RAII for memory, handles, locks, registrations, and transactions.
- Verify cleanup after partial initialization and every error path.
- Check exception guarantees where exceptions are enabled.
- Ensure destructors cannot unexpectedly propagate failures.
Concurrency
- Document shared state and its synchronization.
- Check lock ordering, callback reentrancy, races, deadlocks, and cancellation.
- Verify that atomics use an ordering strong enough for the invariant.
- Examine object lifetime across asynchronous work.
Error handling
- Preserve actionable error context.
- Avoid broad catches and success-shaped fallbacks.
- Verify that failed operations leave state valid and recoverable.
- Check retry safety, idempotency, and duplicate effects.
Performance
- Look for avoidable allocation, copying, contention, and cache-unfriendly access only when they are material to the workload.
- Require measurement before recommending complexity.
- Include correctness and operational costs in every optimization tradeoff.
Findings
Report only issues with a concrete failure scenario or evidence-backed material risk. Include severity, location, scenario, evidence, correction, and confidence.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

