nasa-code-review

Review code against NASA JPL's Power of Ten safety-critical rules.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/Wbunker/skills-repo --skill nasa-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nasa-code-review
Source: https://github.com/Wbunker/skills-repo/tree/main/nasa-code-review
Command: npx skills add https://github.com/Wbunker/skills-repo --skill nasa-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for highly reliable and safe code by applying rigorous, established principles used in safety-critical systems, ensuring code quality and reducing potential bugs.

Core Features & Use Cases

  • Safety-Critical Review: Analyzes code against 10 principles adapted from NASA JPL's coding rules.
  • Language Agnostic: Applicable to any programming language.
  • Structured Reporting: Produces a detailed report scoring code against each principle, highlighting violations, risks, and strengths.
  • Use Case: A team developing a financial transaction system can use this Skill to perform a deep, defensive code review, ensuring maximum reliability and security before deployment.

Quick Start

Review the attached Python code snippet using the NASA Power of Ten principles in standard mode.

Frequently Asked Questions about nasa-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the NASA Power of Ten coding rules for safety-critical software?

The NASA Power of Ten coding rules are defensive programming principles for safety-critical systems, enforcing strict constraints on control flow, loop bounds, and resource management to ensure highly reliable code. They mandate simple function sizes, limited scope, and disciplined error handling.

How do I perform a rigorous code review for safety-critical systems?

To perform a rigorous code review for safety-critical systems, analyze your code against established defensive programming principles like NASA JPL's Power of Ten. This evaluates control flow, assertions, and metaprogramming, generating a structured report with scores and recommendations.

Can I apply NASA JPL coding standards to any programming language?

Yes, you can apply NASA JPL coding standards to any programming language. This safety-critical review process is language agnostic, analyzing defensive programming principles like loop bounds, indirection, and tooling discipline without requiring specific language dependencies.

What is the best way to check code for defensive programming principles?

The best way to check code for defensive programming principles is using a structured safety-critical review based on NASA standards. This evaluates code against ten rules covering function size, assertions, and error handling, producing a detailed report with risk findings and scores.

Does a NASA code review check for metaprogramming and indirection limits?

Yes, a NASA code review checks for metaprogramming and indirection limits. It analyzes code against ten safety-critical principles, including restricted use of metaprogramming, limited indirection, and tooling discipline, to identify potential risks and structural violations.

When should I not use NASA safety-critical coding rules for code review?

You should not use NASA safety-critical coding rules for code review when your project prioritizes rapid prototyping over maximum reliability. The strict constraints on function size, scope, and metaprogramming add defensive programming overhead that may hinder agile development.