Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Applies NASA Power of 10 safety-critical coding rules to audit financial, medical, and high-reliability system code.
36% 82%+45 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 8 of 22 without it.
In `src/compiler/ast.py`, an Abstract Syntax Tree traversal uses depth-first recursion, but explicitly enforces a maximum AST depth check of 50 levels before recursing. A reviewer wants to flag this under Rule 1 (No recursion). How should this bounded recursion be judged?
The assessment judges bounded depth recursion for tree traversal as acceptable under Rule 1.
This test ran on v2. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Guidelines adapted from NASA's Power of 10 rules for safety-critical software.
Full rigor: Safety-critical systems, financial transactions, data integrity code Selective application: Business logic, API handlers, core algorithms Light touch: Scripts, prototypes, non-critical utilities
"Match rigor to consequence" - The real engineering principle
prefer-invariants-over-fallbacks targets (use
conserve:code-quality-principles)Avoid goto, setjmp/longjmp, and limit recursion.
Why: Ensures acyclic call graphs that tools can verify. Adaptation: Recursion acceptable with provable termination (tail recursion, bounded depth).
All loops should have verifiable upper bounds.
# Good - bound is clear
for i in range(min(len(items), MAX_ITEMS)):
process(item)
# Risky - unbounded
while not_done: # When does this end?
process_next()
Adaptation: Document expected bounds. Add safety limits on potentially unbounded loops.
Next to this one in the catalogue, plus more from the same author.