nasa-safe-code-rater

Score C/C++ code against NASA safe coding guidance using 10 normalized rules, produce a 0-100 safety score, and return an English report with findings, exclusions, and remediation. Use when the user invokes $nasa-safe-code-rater or asks to audit a repository/current file/diff for NASA-style safe C coding compliance.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nasa-safe-code-rater" with this command: npx skills add mslmyilmaz5/nasa-safe-code-rater/mslmyilmaz5-nasa-safe-code-rater-nasa-safe-code-rater

NASA Safe Code Rater

Use this skill to evaluate C/C++ code with a NASA-inspired 10-rule model and generate a scored report.

Inputs

Accept optional user arguments:

  • target=repo|file|diff (default repo)
  • path=<file-or-dir> (required for target=file)
  • include_cpp=true|false (default true)

If arguments are absent, run repository-wide analysis.

Required Workflow

  1. Resolve scope from user input.
  2. Analyze only C/C++ files by default (.c, .h, .cpp, .hpp).
  3. List non-C/C++ files as excluded items.
  4. Evaluate all 10 rules in references/nasa_rules.md.
  5. Produce an English markdown report containing:
  • Executive summary
  • Overall score and risk class (Good, Warning, Critical)
  • Rule-by-rule findings table
  • Top 5 remediation actions
  • Insufficient evidence section

Execution Commands

Use these scripts from the skill directory:

python3 scripts/analyze_repo.py --root <repo-path> --mode repo --json-out /tmp/nasa_analysis.json
python3 scripts/score_report.py --analysis /tmp/nasa_analysis.json --format markdown

For single file mode:

python3 scripts/analyze_repo.py --root <repo-path> --mode file --path <file-path> --json-out /tmp/nasa_analysis.json

For diff mode:

python3 scripts/analyze_repo.py --root <repo-path> --mode diff --json-out /tmp/nasa_analysis.json

To refresh normalized rules from a source PDF:

python3 scripts/extract_nasa_rules.py --pdf <path-to-pdf> --out references/nasa_rules.md

Quality Gates

Require for critical findings:

  • At least one concrete evidence line per failed rule.
  • Rule IDs traceable to references/nasa_rules.md.

If no C/C++ files are in scope, return not applicable with reason and next step.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

skillguard-hardened

Security guard for OpenClaw skills, developed and maintained by rose北港(小红帽 / 猫猫帽帽). Audits installed or incoming skills with local rules plus Zenmux AI intent review, then recommends pass, warn, block, or quarantine.

Archived SourceRecently Updated
Security

ai-workflow-red-team-lite

对 AI 自动化流程做轻量红队演练,聚焦误用路径、边界失败和数据泄露风险。;use for red-team, ai, workflow workflows;do not use for 输出可直接滥用的攻击脚本, 帮助破坏系统.

Archived SourceRecently Updated
Security

social-vault

社交平台账号凭证管理器。提供登录态获取、AES-256-GCM 加密存储、定时健康监测和自动续期。Use when managing social media account credentials, importing cookies, checking login status, or automating session refresh. Also covers platform adapter creation and browser fingerprint management.

Archived SourceRecently Updated
Security

openclaw360

Runtime security skill for AI agents — prompt injection detection, tool call authorization, sensitive data leak prevention, skill security scanning, and one-click backup & restore

Archived SourceRecently Updated