@accelerationguy/accel 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +19 -0
- package/LICENSE +33 -0
- package/README.md +275 -0
- package/bin/install.js +661 -0
- package/docs/getting-started.md +164 -0
- package/docs/module-guide.md +139 -0
- package/modules/drive/LICENSE +21 -0
- package/modules/drive/PAUL-VS-GSD.md +171 -0
- package/modules/drive/README.md +555 -0
- package/modules/drive/assets/terminal.svg +67 -0
- package/modules/drive/bin/install.js +210 -0
- package/modules/drive/integration.js +76 -0
- package/modules/drive/package.json +38 -0
- package/modules/drive/src/commands/add-phase.md +36 -0
- package/modules/drive/src/commands/apply.md +83 -0
- package/modules/drive/src/commands/assumptions.md +37 -0
- package/modules/drive/src/commands/audit.md +57 -0
- package/modules/drive/src/commands/complete-milestone.md +36 -0
- package/modules/drive/src/commands/config.md +175 -0
- package/modules/drive/src/commands/consider-issues.md +41 -0
- package/modules/drive/src/commands/discover.md +48 -0
- package/modules/drive/src/commands/discuss-milestone.md +33 -0
- package/modules/drive/src/commands/discuss.md +34 -0
- package/modules/drive/src/commands/flows.md +73 -0
- package/modules/drive/src/commands/handoff.md +201 -0
- package/modules/drive/src/commands/help.md +525 -0
- package/modules/drive/src/commands/init.md +54 -0
- package/modules/drive/src/commands/map-codebase.md +34 -0
- package/modules/drive/src/commands/milestone.md +34 -0
- package/modules/drive/src/commands/pause.md +44 -0
- package/modules/drive/src/commands/plan-fix.md +216 -0
- package/modules/drive/src/commands/plan.md +36 -0
- package/modules/drive/src/commands/progress.md +138 -0
- package/modules/drive/src/commands/register.md +29 -0
- package/modules/drive/src/commands/remove-phase.md +37 -0
- package/modules/drive/src/commands/research-phase.md +209 -0
- package/modules/drive/src/commands/research.md +47 -0
- package/modules/drive/src/commands/resume.md +49 -0
- package/modules/drive/src/commands/status.md +78 -0
- package/modules/drive/src/commands/unify.md +87 -0
- package/modules/drive/src/commands/verify.md +60 -0
- package/modules/drive/src/references/checkpoints.md +234 -0
- package/modules/drive/src/references/context-management.md +219 -0
- package/modules/drive/src/references/git-strategy.md +206 -0
- package/modules/drive/src/references/loop-phases.md +254 -0
- package/modules/drive/src/references/plan-format.md +263 -0
- package/modules/drive/src/references/quality-principles.md +152 -0
- package/modules/drive/src/references/research-quality-control.md +247 -0
- package/modules/drive/src/references/sonarqube-integration.md +244 -0
- package/modules/drive/src/references/specialized-workflow-integration.md +186 -0
- package/modules/drive/src/references/subagent-criteria.md +179 -0
- package/modules/drive/src/references/tdd.md +219 -0
- package/modules/drive/src/references/work-units.md +161 -0
- package/modules/drive/src/rules/commands.md +108 -0
- package/modules/drive/src/rules/references.md +107 -0
- package/modules/drive/src/rules/style.md +123 -0
- package/modules/drive/src/rules/templates.md +51 -0
- package/modules/drive/src/rules/workflows.md +133 -0
- package/modules/drive/src/templates/CONTEXT.md +88 -0
- package/modules/drive/src/templates/DEBUG.md +164 -0
- package/modules/drive/src/templates/DISCOVERY.md +148 -0
- package/modules/drive/src/templates/HANDOFF.md +77 -0
- package/modules/drive/src/templates/ISSUES.md +93 -0
- package/modules/drive/src/templates/MILESTONES.md +167 -0
- package/modules/drive/src/templates/PLAN.md +328 -0
- package/modules/drive/src/templates/PROJECT.md +219 -0
- package/modules/drive/src/templates/RESEARCH.md +130 -0
- package/modules/drive/src/templates/ROADMAP.md +328 -0
- package/modules/drive/src/templates/SPECIAL-FLOWS.md +70 -0
- package/modules/drive/src/templates/STATE.md +210 -0
- package/modules/drive/src/templates/SUMMARY.md +221 -0
- package/modules/drive/src/templates/UAT-ISSUES.md +139 -0
- package/modules/drive/src/templates/codebase/architecture.md +259 -0
- package/modules/drive/src/templates/codebase/concerns.md +329 -0
- package/modules/drive/src/templates/codebase/conventions.md +311 -0
- package/modules/drive/src/templates/codebase/integrations.md +284 -0
- package/modules/drive/src/templates/codebase/stack.md +190 -0
- package/modules/drive/src/templates/codebase/structure.md +287 -0
- package/modules/drive/src/templates/codebase/testing.md +484 -0
- package/modules/drive/src/templates/config.md +181 -0
- package/modules/drive/src/templates/milestone-archive.md +236 -0
- package/modules/drive/src/templates/milestone-context.md +190 -0
- package/modules/drive/src/templates/paul-json.md +147 -0
- package/modules/drive/src/vector-config/PAUL +26 -0
- package/modules/drive/src/vector-config/PAUL.manifest +11 -0
- package/modules/drive/src/workflows/apply-phase.md +393 -0
- package/modules/drive/src/workflows/audit-plan.md +344 -0
- package/modules/drive/src/workflows/complete-milestone.md +479 -0
- package/modules/drive/src/workflows/configure-special-flows.md +283 -0
- package/modules/drive/src/workflows/consider-issues.md +172 -0
- package/modules/drive/src/workflows/create-milestone.md +268 -0
- package/modules/drive/src/workflows/debug.md +292 -0
- package/modules/drive/src/workflows/discovery.md +187 -0
- package/modules/drive/src/workflows/discuss-milestone.md +245 -0
- package/modules/drive/src/workflows/discuss-phase.md +231 -0
- package/modules/drive/src/workflows/init-project.md +698 -0
- package/modules/drive/src/workflows/map-codebase.md +459 -0
- package/modules/drive/src/workflows/pause-work.md +259 -0
- package/modules/drive/src/workflows/phase-assumptions.md +181 -0
- package/modules/drive/src/workflows/plan-phase.md +385 -0
- package/modules/drive/src/workflows/quality-gate.md +263 -0
- package/modules/drive/src/workflows/register-manifest.md +107 -0
- package/modules/drive/src/workflows/research.md +241 -0
- package/modules/drive/src/workflows/resume-project.md +200 -0
- package/modules/drive/src/workflows/roadmap-management.md +334 -0
- package/modules/drive/src/workflows/transition-phase.md +368 -0
- package/modules/drive/src/workflows/unify-phase.md +290 -0
- package/modules/drive/src/workflows/verify-work.md +241 -0
- package/modules/forge/README.md +281 -0
- package/modules/forge/bin/install.js +200 -0
- package/modules/forge/package.json +32 -0
- package/modules/forge/skillsmith/rules/checklists-rules.md +42 -0
- package/modules/forge/skillsmith/rules/context-rules.md +43 -0
- package/modules/forge/skillsmith/rules/entry-point-rules.md +44 -0
- package/modules/forge/skillsmith/rules/frameworks-rules.md +43 -0
- package/modules/forge/skillsmith/rules/tasks-rules.md +52 -0
- package/modules/forge/skillsmith/rules/templates-rules.md +43 -0
- package/modules/forge/skillsmith/skillsmith.md +82 -0
- package/modules/forge/skillsmith/tasks/audit.md +277 -0
- package/modules/forge/skillsmith/tasks/discover.md +145 -0
- package/modules/forge/skillsmith/tasks/distill.md +276 -0
- package/modules/forge/skillsmith/tasks/scaffold.md +349 -0
- package/modules/forge/specs/checklists.md +193 -0
- package/modules/forge/specs/context.md +223 -0
- package/modules/forge/specs/entry-point.md +320 -0
- package/modules/forge/specs/frameworks.md +228 -0
- package/modules/forge/specs/rules.md +245 -0
- package/modules/forge/specs/tasks.md +344 -0
- package/modules/forge/specs/templates.md +335 -0
- package/modules/forge/terminal.svg +70 -0
- package/modules/ignition/README.md +245 -0
- package/modules/ignition/bin/install.js +184 -0
- package/modules/ignition/checklists/planning-quality.md +55 -0
- package/modules/ignition/data/application/config.md +21 -0
- package/modules/ignition/data/application/guide.md +51 -0
- package/modules/ignition/data/application/skill-loadout.md +11 -0
- package/modules/ignition/data/campaign/config.md +18 -0
- package/modules/ignition/data/campaign/guide.md +36 -0
- package/modules/ignition/data/campaign/skill-loadout.md +10 -0
- package/modules/ignition/data/client/config.md +18 -0
- package/modules/ignition/data/client/guide.md +36 -0
- package/modules/ignition/data/client/skill-loadout.md +11 -0
- package/modules/ignition/data/utility/config.md +18 -0
- package/modules/ignition/data/utility/guide.md +31 -0
- package/modules/ignition/data/utility/skill-loadout.md +8 -0
- package/modules/ignition/data/workflow/config.md +19 -0
- package/modules/ignition/data/workflow/guide.md +41 -0
- package/modules/ignition/data/workflow/skill-loadout.md +10 -0
- package/modules/ignition/integration.js +54 -0
- package/modules/ignition/package.json +35 -0
- package/modules/ignition/seed.md +81 -0
- package/modules/ignition/tasks/add-type.md +164 -0
- package/modules/ignition/tasks/graduate.md +182 -0
- package/modules/ignition/tasks/ideate.md +221 -0
- package/modules/ignition/tasks/launch.md +137 -0
- package/modules/ignition/tasks/status.md +71 -0
- package/modules/ignition/templates/planning-application.md +193 -0
- package/modules/ignition/templates/planning-campaign.md +138 -0
- package/modules/ignition/templates/planning-client.md +149 -0
- package/modules/ignition/templates/planning-utility.md +112 -0
- package/modules/ignition/templates/planning-workflow.md +125 -0
- package/modules/ignition/terminal.svg +74 -0
- package/modules/mission-control/CONTEXT-CONTINUITY-SPEC.md +293 -0
- package/modules/mission-control/CONTEXT-ENGINEERING-GUIDE.md +282 -0
- package/modules/mission-control/README.md +91 -0
- package/modules/mission-control/assets/terminal.svg +80 -0
- package/modules/mission-control/examples/entities.example.json +133 -0
- package/modules/mission-control/examples/projects.example.json +318 -0
- package/modules/mission-control/examples/state.example.json +183 -0
- package/modules/mission-control/examples/vector.example.json +245 -0
- package/modules/mission-control/mission-control/checklists/install-verification.md +46 -0
- package/modules/mission-control/mission-control/frameworks/framework-registry.md +83 -0
- package/modules/mission-control/mission-control/mission-control.md +83 -0
- package/modules/mission-control/mission-control/tasks/insights.md +73 -0
- package/modules/mission-control/mission-control/tasks/install.md +194 -0
- package/modules/mission-control/mission-control/tasks/status.md +125 -0
- package/modules/mission-control/schemas/entities.schema.json +89 -0
- package/modules/mission-control/schemas/projects.schema.json +221 -0
- package/modules/mission-control/schemas/state.schema.json +108 -0
- package/modules/mission-control/schemas/vector.schema.json +200 -0
- package/modules/momentum/README.md +678 -0
- package/modules/momentum/bin/install.js +563 -0
- package/modules/momentum/integration.js +131 -0
- package/modules/momentum/package.json +42 -0
- package/modules/momentum/schemas/entities.schema.json +89 -0
- package/modules/momentum/schemas/projects.schema.json +221 -0
- package/modules/momentum/schemas/state.schema.json +108 -0
- package/modules/momentum/src/commands/audit-claude-md.md +31 -0
- package/modules/momentum/src/commands/audit.md +33 -0
- package/modules/momentum/src/commands/groom.md +35 -0
- package/modules/momentum/src/commands/history.md +27 -0
- package/modules/momentum/src/commands/pulse.md +33 -0
- package/modules/momentum/src/commands/scaffold.md +33 -0
- package/modules/momentum/src/commands/status.md +28 -0
- package/modules/momentum/src/commands/surface-convert.md +35 -0
- package/modules/momentum/src/commands/surface-create.md +34 -0
- package/modules/momentum/src/commands/surface-list.md +27 -0
- package/modules/momentum/src/commands/vector-hygiene.md +33 -0
- package/modules/momentum/src/framework/context/momentum-principles.md +71 -0
- package/modules/momentum/src/framework/frameworks/audit-strategies.md +53 -0
- package/modules/momentum/src/framework/frameworks/satellite-registration.md +44 -0
- package/modules/momentum/src/framework/tasks/audit-claude-md.md +68 -0
- package/modules/momentum/src/framework/tasks/audit.md +64 -0
- package/modules/momentum/src/framework/tasks/groom.md +164 -0
- package/modules/momentum/src/framework/tasks/history.md +34 -0
- package/modules/momentum/src/framework/tasks/pulse.md +83 -0
- package/modules/momentum/src/framework/tasks/scaffold.md +202 -0
- package/modules/momentum/src/framework/tasks/status.md +35 -0
- package/modules/momentum/src/framework/tasks/surface-convert.md +143 -0
- package/modules/momentum/src/framework/tasks/surface-create.md +184 -0
- package/modules/momentum/src/framework/tasks/surface-list.md +42 -0
- package/modules/momentum/src/framework/tasks/vector-hygiene.md +160 -0
- package/modules/momentum/src/framework/templates/workspace-json.md +96 -0
- package/modules/momentum/src/hooks/_template.py +129 -0
- package/modules/momentum/src/hooks/active-hook.py +178 -0
- package/modules/momentum/src/hooks/backlog-hook.py +115 -0
- package/modules/momentum/src/hooks/mission-control-insights.py +169 -0
- package/modules/momentum/src/hooks/momentum-pulse-check.py +351 -0
- package/modules/momentum/src/hooks/operator.py +53 -0
- package/modules/momentum/src/hooks/psmm-injector.py +67 -0
- package/modules/momentum/src/hooks/satellite-detection.py +248 -0
- package/modules/momentum/src/packages/momentum-mcp/index.js +119 -0
- package/modules/momentum/src/packages/momentum-mcp/package.json +10 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/entities.js +226 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/operator.js +106 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/projects.js +322 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/psmm.js +206 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/state.js +199 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/surfaces.js +404 -0
- package/modules/momentum/src/skill/momentum.md +111 -0
- package/modules/momentum/src/tasks/groom.md +164 -0
- package/modules/momentum/src/templates/operator.json +66 -0
- package/modules/momentum/src/templates/workspace.json +111 -0
- package/modules/momentum/terminal.svg +77 -0
- package/modules/radar/README.md +1552 -0
- package/modules/radar/commands/audit.md +233 -0
- package/modules/radar/commands/guardrails.md +194 -0
- package/modules/radar/commands/init.md +207 -0
- package/modules/radar/commands/playbook.md +176 -0
- package/modules/radar/commands/remediate.md +156 -0
- package/modules/radar/commands/report.md +172 -0
- package/modules/radar/commands/resume.md +176 -0
- package/modules/radar/commands/status.md +148 -0
- package/modules/radar/commands/transform.md +205 -0
- package/modules/radar/commands/validate.md +177 -0
- package/modules/radar/docs/ARCHITECTURE.md +336 -0
- package/modules/radar/docs/GETTING-STARTED.md +287 -0
- package/modules/radar/docs/standards/agents.md +197 -0
- package/modules/radar/docs/standards/commands.md +250 -0
- package/modules/radar/docs/standards/domains.md +191 -0
- package/modules/radar/docs/standards/personas.md +211 -0
- package/modules/radar/docs/standards/rules.md +218 -0
- package/modules/radar/docs/standards/runtime.md +445 -0
- package/modules/radar/docs/standards/schemas.md +269 -0
- package/modules/radar/docs/standards/tools.md +273 -0
- package/modules/radar/docs/standards/workflows.md +254 -0
- package/modules/radar/docs/terminal.svg +72 -0
- package/modules/radar/docs/validation/convention-compliance-report.md +183 -0
- package/modules/radar/docs/validation/cross-reference-report.md +195 -0
- package/modules/radar/docs/validation/validation-summary.md +118 -0
- package/modules/radar/docs/validation/version-manifest.yaml +363 -0
- package/modules/radar/install.sh +711 -0
- package/modules/radar/integration.js +53 -0
- package/modules/radar/src/core/agents/architect.md +25 -0
- package/modules/radar/src/core/agents/compliance-officer.md +25 -0
- package/modules/radar/src/core/agents/data-engineer.md +25 -0
- package/modules/radar/src/core/agents/devils-advocate.md +22 -0
- package/modules/radar/src/core/agents/performance-engineer.md +25 -0
- package/modules/radar/src/core/agents/principal-engineer.md +23 -0
- package/modules/radar/src/core/agents/reality-gap-analyst.md +22 -0
- package/modules/radar/src/core/agents/security-engineer.md +25 -0
- package/modules/radar/src/core/agents/senior-app-engineer.md +25 -0
- package/modules/radar/src/core/agents/sre.md +25 -0
- package/modules/radar/src/core/agents/staff-engineer.md +23 -0
- package/modules/radar/src/core/agents/test-engineer.md +25 -0
- package/modules/radar/src/core/personas/architect.md +111 -0
- package/modules/radar/src/core/personas/compliance-officer.md +104 -0
- package/modules/radar/src/core/personas/data-engineer.md +113 -0
- package/modules/radar/src/core/personas/devils-advocate.md +105 -0
- package/modules/radar/src/core/personas/performance-engineer.md +119 -0
- package/modules/radar/src/core/personas/principal-engineer.md +119 -0
- package/modules/radar/src/core/personas/reality-gap-analyst.md +111 -0
- package/modules/radar/src/core/personas/security-engineer.md +108 -0
- package/modules/radar/src/core/personas/senior-app-engineer.md +111 -0
- package/modules/radar/src/core/personas/sre.md +117 -0
- package/modules/radar/src/core/personas/staff-engineer.md +109 -0
- package/modules/radar/src/core/personas/test-engineer.md +109 -0
- package/modules/radar/src/core/workflows/disagreement-resolution.md +183 -0
- package/modules/radar/src/core/workflows/phase-0-context.md +148 -0
- package/modules/radar/src/core/workflows/phase-1-reconnaissance.md +169 -0
- package/modules/radar/src/core/workflows/phase-2-domain-audits.md +190 -0
- package/modules/radar/src/core/workflows/phase-3-cross-domain.md +177 -0
- package/modules/radar/src/core/workflows/phase-4-adversarial-review.md +165 -0
- package/modules/radar/src/core/workflows/phase-5-report.md +189 -0
- package/modules/radar/src/core/workflows/phase-checkpoint.md +222 -0
- package/modules/radar/src/core/workflows/session-handoff.md +152 -0
- package/modules/radar/src/domains/00-context.md +201 -0
- package/modules/radar/src/domains/01-architecture.md +248 -0
- package/modules/radar/src/domains/02-data.md +224 -0
- package/modules/radar/src/domains/03-correctness.md +230 -0
- package/modules/radar/src/domains/04-security.md +274 -0
- package/modules/radar/src/domains/05-compliance.md +228 -0
- package/modules/radar/src/domains/06-testing.md +228 -0
- package/modules/radar/src/domains/07-reliability.md +246 -0
- package/modules/radar/src/domains/08-performance.md +247 -0
- package/modules/radar/src/domains/09-maintainability.md +271 -0
- package/modules/radar/src/domains/10-operability.md +250 -0
- package/modules/radar/src/domains/11-change-risk.md +246 -0
- package/modules/radar/src/domains/12-team-risk.md +221 -0
- package/modules/radar/src/domains/13-risk-synthesis.md +202 -0
- package/modules/radar/src/rules/agent-boundaries.md +78 -0
- package/modules/radar/src/rules/disagreement-protocol.md +76 -0
- package/modules/radar/src/rules/epistemic-hygiene.md +78 -0
- package/modules/radar/src/schemas/confidence.md +185 -0
- package/modules/radar/src/schemas/disagreement.md +238 -0
- package/modules/radar/src/schemas/finding.md +287 -0
- package/modules/radar/src/schemas/report-section.md +150 -0
- package/modules/radar/src/schemas/signal.md +108 -0
- package/modules/radar/src/tools/checkov.md +463 -0
- package/modules/radar/src/tools/git-history.md +581 -0
- package/modules/radar/src/tools/gitleaks.md +447 -0
- package/modules/radar/src/tools/grype.md +611 -0
- package/modules/radar/src/tools/semgrep.md +378 -0
- package/modules/radar/src/tools/sonarqube.md +550 -0
- package/modules/radar/src/tools/syft.md +539 -0
- package/modules/radar/src/tools/trivy.md +439 -0
- package/modules/radar/src/transform/agents/change-risk-modeler.md +24 -0
- package/modules/radar/src/transform/agents/execution-validator.md +24 -0
- package/modules/radar/src/transform/agents/guardrail-generator.md +24 -0
- package/modules/radar/src/transform/agents/pedagogy-agent.md +24 -0
- package/modules/radar/src/transform/agents/remediation-architect.md +24 -0
- package/modules/radar/src/transform/personas/change-risk-modeler.md +95 -0
- package/modules/radar/src/transform/personas/execution-validator.md +95 -0
- package/modules/radar/src/transform/personas/guardrail-generator.md +103 -0
- package/modules/radar/src/transform/personas/pedagogy-agent.md +105 -0
- package/modules/radar/src/transform/personas/remediation-architect.md +95 -0
- package/modules/radar/src/transform/rules/change-risk-rules.md +87 -0
- package/modules/radar/src/transform/rules/safety-governance.md +87 -0
- package/modules/radar/src/transform/schemas/change-risk.md +139 -0
- package/modules/radar/src/transform/schemas/intervention-level.md +207 -0
- package/modules/radar/src/transform/schemas/playbook.md +205 -0
- package/modules/radar/src/transform/schemas/verification-plan.md +134 -0
- package/modules/radar/src/transform/workflows/phase-6-remediation.md +148 -0
- package/modules/radar/src/transform/workflows/phase-7-risk-validation.md +161 -0
- package/modules/radar/src/transform/workflows/phase-8-execution-planning.md +159 -0
- package/modules/radar/src/transform/workflows/transform-safety.md +158 -0
- package/modules/vector/.vector-template/sessions/.gitkeep +0 -0
- package/modules/vector/.vector-template/vector.json +72 -0
- package/modules/vector/AUDIT-CLAUDEMD.md +154 -0
- package/modules/vector/INSTALL.md +185 -0
- package/modules/vector/LICENSE +21 -0
- package/modules/vector/README.md +409 -0
- package/modules/vector/VECTOR-BLOCK.md +57 -0
- package/modules/vector/assets/terminal.svg +68 -0
- package/modules/vector/bin/install.js +455 -0
- package/modules/vector/bin/migrate-v1-to-v2.sh +492 -0
- package/modules/vector/commands/help.md +46 -0
- package/modules/vector/hooks/vector-hook.py +775 -0
- package/modules/vector/mcp/index.js +118 -0
- package/modules/vector/mcp/package.json +10 -0
- package/modules/vector/mcp/tools/decisions.js +269 -0
- package/modules/vector/mcp/tools/domains.js +361 -0
- package/modules/vector/mcp/tools/staging.js +252 -0
- package/modules/vector/mcp/tools/vector-json.js +647 -0
- package/modules/vector/package.json +38 -0
- package/modules/vector/schemas/vector.schema.json +237 -0
- package/package.json +39 -0
- package/shared/branding/branding.js +70 -0
- package/shared/config/defaults.json +59 -0
- package/shared/events/README.md +175 -0
- package/shared/events/event-bus.js +134 -0
- package/shared/events/event_bus.py +255 -0
- package/shared/events/integrations.js +161 -0
- package/shared/events/schemas/audit-complete.schema.json +21 -0
- package/shared/events/schemas/phase-progress.schema.json +23 -0
- package/shared/events/schemas/plan-created.schema.json +21 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: radar:audit
|
|
3
|
+
description: Run a full or targeted Radar diagnostic audit on a codebase
|
|
4
|
+
argument-hint: "[path-to-repo]"
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Initiates a new Radar diagnostic audit on a target codebase. This is the primary entry point for all Core audit operations. Guides the user through scope selection, domain targeting, tool configuration, and confirmation before delegating to the Phase 0 workflow.
|
|
10
|
+
|
|
11
|
+
If no `.radar/` directory exists, delegates project initialization to `/radar:init` before proceeding.
|
|
12
|
+
If an existing audit is detected, routes to `/radar:resume` instead of starting fresh.
|
|
13
|
+
|
|
14
|
+
Produces: Phase 0 (Context & Threat Modeling) output, building on the `.radar/` structure created by `/radar:init`.
|
|
15
|
+
</objective>
|
|
16
|
+
|
|
17
|
+
<execution_context>
|
|
18
|
+
@~/.claude/commands/radar/init.md
|
|
19
|
+
@~/.claude/radar/core/workflows/phase-0-context.md
|
|
20
|
+
@~/.claude/radar/core/workflows/phase-1-reconnaissance.md
|
|
21
|
+
@~/.claude/radar/core/workflows/phase-2-domain-audits.md
|
|
22
|
+
@~/.claude/radar/core/workflows/phase-3-cross-domain.md
|
|
23
|
+
@~/.claude/radar/core/workflows/phase-4-adversarial-review.md
|
|
24
|
+
@~/.claude/radar/core/workflows/phase-5-report.md
|
|
25
|
+
@~/.claude/radar/core/workflows/session-handoff.md
|
|
26
|
+
@~/.claude/radar/core/workflows/disagreement-resolution.md
|
|
27
|
+
@~/.claude/radar/core/workflows/phase-checkpoint.md
|
|
28
|
+
</execution_context>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
$ARGUMENTS
|
|
32
|
+
@.radar/STATE.md
|
|
33
|
+
@.radar/MANIFEST.md
|
|
34
|
+
</context>
|
|
35
|
+
|
|
36
|
+
<process>
|
|
37
|
+
|
|
38
|
+
## Step 1: Determine Target Repository
|
|
39
|
+
|
|
40
|
+
Check if $ARGUMENTS contains a repository path:
|
|
41
|
+
- If YES: use the provided path as the audit target
|
|
42
|
+
- If NO: use the current working directory
|
|
43
|
+
|
|
44
|
+
Validate the target:
|
|
45
|
+
- Confirm the path exists and is a directory
|
|
46
|
+
- Check for .git/ (warn if absent — not required but informative)
|
|
47
|
+
- Display target path for user confirmation
|
|
48
|
+
|
|
49
|
+
## Step 2: Ensure Project Initialized
|
|
50
|
+
|
|
51
|
+
Check if `.radar/STATE.md` exists in the target repository:
|
|
52
|
+
|
|
53
|
+
- If YES (existing project): Read STATE.md to determine status.
|
|
54
|
+
- If status is "initialized" (init done but no audit started): proceed to Step 3
|
|
55
|
+
- If status is "in_progress" or "paused": An audit is already in progress.
|
|
56
|
+
```
|
|
57
|
+
════════════════════════════════════════
|
|
58
|
+
EXISTING AUDIT DETECTED
|
|
59
|
+
════════════════════════════════════════
|
|
60
|
+
|
|
61
|
+
Target: [path]
|
|
62
|
+
Current Phase: [from STATE.md]
|
|
63
|
+
Status: [from STATE.md]
|
|
64
|
+
Findings so far: [count]
|
|
65
|
+
|
|
66
|
+
[1] Resume existing audit (recommended) → runs /radar:resume
|
|
67
|
+
[2] Start fresh (WARNING: archives existing .radar/ state)
|
|
68
|
+
[3] Cancel
|
|
69
|
+
════════════════════════════════════════
|
|
70
|
+
```
|
|
71
|
+
- If [1]: delegate to /radar:resume
|
|
72
|
+
- If [2]: run /radar:init logic (archives old .radar/, creates fresh), then proceed to Step 3
|
|
73
|
+
- If [3]: exit
|
|
74
|
+
|
|
75
|
+
- If NO (no .radar/ directory): Project not yet initialized.
|
|
76
|
+
- Run /radar:init process to create .radar/ with STATE.md, MANIFEST.md, and findings/
|
|
77
|
+
- The init process handles: git repo validation, tool detection, .gitignore update
|
|
78
|
+
- After init completes, proceed to Step 3
|
|
79
|
+
|
|
80
|
+
## Step 3: Repository Analysis
|
|
81
|
+
|
|
82
|
+
Analyze the target repository and display:
|
|
83
|
+
```
|
|
84
|
+
════════════════════════════════════════
|
|
85
|
+
TARGET REPOSITORY
|
|
86
|
+
════════════════════════════════════════
|
|
87
|
+
|
|
88
|
+
Path: [absolute path]
|
|
89
|
+
Languages: [detected from file extensions]
|
|
90
|
+
Frameworks: [detected from config files — package.json, requirements.txt, go.mod, etc.]
|
|
91
|
+
Repository size: [file count estimate]
|
|
92
|
+
Last commit: [if git repo — short hash + date]
|
|
93
|
+
════════════════════════════════════════
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Step 4: Select Audit Scope
|
|
97
|
+
|
|
98
|
+
Present audit scope options:
|
|
99
|
+
```
|
|
100
|
+
════════════════════════════════════════
|
|
101
|
+
AUDIT SCOPE
|
|
102
|
+
════════════════════════════════════════
|
|
103
|
+
|
|
104
|
+
[1] Full audit — all phases (0-5), all 14 domains (recommended for first run)
|
|
105
|
+
[2] Targeted audit — select specific domains to include
|
|
106
|
+
[3] Quick scan — Phases 0-2 only (context + signals + domain audits, no synthesis/adversarial)
|
|
107
|
+
[4] Cancel
|
|
108
|
+
════════════════════════════════════════
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
If [2] (Targeted) selected, present domain checklist:
|
|
112
|
+
```
|
|
113
|
+
Select domains to include:
|
|
114
|
+
|
|
115
|
+
[ ] 00 — Context & Intent
|
|
116
|
+
[ ] 01 — Architecture & System Design
|
|
117
|
+
[ ] 02 — Data & State Integrity
|
|
118
|
+
[ ] 03 — Correctness & Logic
|
|
119
|
+
[ ] 04 — Security
|
|
120
|
+
[ ] 05 — Compliance, Privacy & Governance
|
|
121
|
+
[ ] 06 — Testing Strategy & Verification
|
|
122
|
+
[ ] 07 — Reliability & Resilience
|
|
123
|
+
[ ] 08 — Scalability & Performance
|
|
124
|
+
[ ] 09 — Maintainability & Code Health
|
|
125
|
+
[ ] 10 — Operability & Developer Experience
|
|
126
|
+
[ ] 11 — Change Risk & Evolvability
|
|
127
|
+
[ ] 12 — Team, Ownership & Knowledge Risk
|
|
128
|
+
[ ] 13 — Risk Synthesis & Forecasting
|
|
129
|
+
|
|
130
|
+
Enter domain numbers (comma-separated), "all" for full audit, or "back" to return to scope selection:
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Note: Domain 00 (Context) is always included regardless of selection — it is required for scope establishment.
|
|
134
|
+
|
|
135
|
+
## Step 5: Audit Configuration
|
|
136
|
+
|
|
137
|
+
Present optional configuration:
|
|
138
|
+
```
|
|
139
|
+
════════════════════════════════════════
|
|
140
|
+
AUDIT CONFIGURATION
|
|
141
|
+
════════════════════════════════════════
|
|
142
|
+
|
|
143
|
+
Tool selection (all enabled by default):
|
|
144
|
+
[x] SonarQube — code quality, complexity, duplication
|
|
145
|
+
[x] Semgrep — pattern-based security/correctness scanning
|
|
146
|
+
[x] Trivy — vulnerability and misconfiguration scanning
|
|
147
|
+
[x] Gitleaks — secrets detection
|
|
148
|
+
[x] Checkov — infrastructure-as-code scanning
|
|
149
|
+
[x] Syft + Grype — SBOM generation + CVE matching
|
|
150
|
+
[x] git-history — churn, author concentration, change frequency
|
|
151
|
+
|
|
152
|
+
Toggle tools? Enter tool names to disable, "ok" to continue, or "back" to return to scope selection:
|
|
153
|
+
════════════════════════════════════════
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
If the target has no IaC files, note that Checkov will be skipped automatically.
|
|
157
|
+
If no .git/ directory, note that git-history and Gitleaks will have limited output.
|
|
158
|
+
|
|
159
|
+
## Step 6: Confirm and Execute
|
|
160
|
+
|
|
161
|
+
Display the audit plan for confirmation:
|
|
162
|
+
```
|
|
163
|
+
════════════════════════════════════════
|
|
164
|
+
AUDIT PLAN
|
|
165
|
+
════════════════════════════════════════
|
|
166
|
+
|
|
167
|
+
Target: [path]
|
|
168
|
+
Scope: [Full / Targeted / Quick]
|
|
169
|
+
Phases: [0-5 or 0-2]
|
|
170
|
+
Domains: [count] of 14 [list if targeted]
|
|
171
|
+
Tools: [count] enabled [list any disabled]
|
|
172
|
+
Estimated sessions: [count based on scope — full ~8-10, quick ~4-5]
|
|
173
|
+
|
|
174
|
+
[1] Start audit (recommended)
|
|
175
|
+
[2] Modify scope
|
|
176
|
+
[3] Cancel
|
|
177
|
+
════════════════════════════════════════
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
If [1] selected:
|
|
181
|
+
1. Update .radar/STATE.md: set current phase to 0, overall status to "in_progress"
|
|
182
|
+
2. Record audit scope, domain selection, and tool configuration in .radar/STATE.md
|
|
183
|
+
3. Update .radar/STATE.md Session Tracking: set Started to current timestamp, Sessions to 1, Last session to current timestamp
|
|
184
|
+
4. Begin the phase execution loop (Step 7)
|
|
185
|
+
|
|
186
|
+
Note: .radar/ directory, STATE.md, and MANIFEST.md were created by /radar:init in Step 2.
|
|
187
|
+
|
|
188
|
+
If [2]: return to Step 4
|
|
189
|
+
If [3]: exit without creating any files
|
|
190
|
+
|
|
191
|
+
## Step 7: Phase Execution Loop
|
|
192
|
+
|
|
193
|
+
Execute audit phases sequentially with checkpoints between each phase:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
For each phase in the audit scope (full: 0-5, quick: 0-2):
|
|
197
|
+
|
|
198
|
+
1. Invoke the phase workflow:
|
|
199
|
+
- Phase 0 → phase-0-context workflow
|
|
200
|
+
- Phase 1 → phase-1-reconnaissance workflow
|
|
201
|
+
- Phase 2 → phase-2-domain-audits workflow
|
|
202
|
+
- Phase 3 → phase-3-cross-domain workflow
|
|
203
|
+
- Phase 4 → phase-4-adversarial-review workflow
|
|
204
|
+
- Phase 5 → phase-5-report workflow
|
|
205
|
+
|
|
206
|
+
2. After phase workflow completes, invoke phase-checkpoint workflow:
|
|
207
|
+
- Displays phase completion summary and cumulative progress
|
|
208
|
+
- Previews the next phase
|
|
209
|
+
- Offers: [1] Continue [2] Pause [3] Abort
|
|
210
|
+
|
|
211
|
+
3. Based on user's checkpoint decision:
|
|
212
|
+
- "Continue": proceed to next iteration of this loop
|
|
213
|
+
- "Pause": stop loop — STATE.md updated with resume point, exit cleanly
|
|
214
|
+
- "Abort": stop loop — STATE.md updated, exit cleanly
|
|
215
|
+
|
|
216
|
+
4. If user paused or aborted: display resume instructions and stop execution
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
The final checkpoint (after Phase 5 or last phase in scope) displays "Core audit complete" with next steps (/radar:report, /radar:transform) instead of continue/pause/abort options.
|
|
220
|
+
|
|
221
|
+
Note: Each phase workflow internally handles session-handoff between agents. The checkpoint workflow operates at the phase boundary level, not the agent boundary level.
|
|
222
|
+
|
|
223
|
+
</process>
|
|
224
|
+
|
|
225
|
+
<success_criteria>
|
|
226
|
+
- [ ] Target repository identified and validated
|
|
227
|
+
- [ ] Audit scope clearly defined and confirmed by user
|
|
228
|
+
- [ ] Tool configuration confirmed (defaults or user-modified)
|
|
229
|
+
- [ ] .radar/ directory initialized with STATE.md and MANIFEST.md
|
|
230
|
+
- [ ] Phase 0 workflow delegation begins successfully
|
|
231
|
+
- [ ] User receives clear feedback on what will happen next
|
|
232
|
+
- [ ] Cancellation available at every decision point
|
|
233
|
+
</success_criteria>
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: radar:guardrails
|
|
3
|
+
description: Generate project rules from audit findings for AI coding assistants
|
|
4
|
+
argument-hint: "[format]"
|
|
5
|
+
allowed-tools: [Read, Write, Glob, Grep, AskUserQuestion]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Generates machine-enforceable project rules from audit findings and remediation knowledge. Produces rules formatted for AI coding assistants (CLAUDE.md, .cursorrules) that encode audit-derived best practices as persistent guardrails.
|
|
10
|
+
|
|
11
|
+
Requires both Layer A (diagnostic) and Layer B (remediation) to be complete — guardrails derive from remediation patterns, not raw findings.
|
|
12
|
+
|
|
13
|
+
Produces: rule files in .radar/remediation/guardrails/ (claude-md-rules.md, cursorrules.md).
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<execution_context>
|
|
17
|
+
@~/.claude/radar/transform/workflows/phase-7-risk-validation.md
|
|
18
|
+
@~/.claude/radar/transform/workflows/transform-safety.md
|
|
19
|
+
</execution_context>
|
|
20
|
+
|
|
21
|
+
<context>
|
|
22
|
+
$ARGUMENTS
|
|
23
|
+
@.radar/STATE.md
|
|
24
|
+
@.radar/remediation/
|
|
25
|
+
@.radar/remediation/guardrails/
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
|
|
30
|
+
## Step 1: Check Prerequisites
|
|
31
|
+
|
|
32
|
+
**Layer A check:** Verify .radar/report/ exists (Core audit complete).
|
|
33
|
+
|
|
34
|
+
- If Layer A incomplete:
|
|
35
|
+
```
|
|
36
|
+
════════════════════════════════════════
|
|
37
|
+
CORE AUDIT INCOMPLETE
|
|
38
|
+
════════════════════════════════════════
|
|
39
|
+
|
|
40
|
+
Guardrail generation requires a completed Core audit.
|
|
41
|
+
|
|
42
|
+
[1] Resume audit → runs /radar:resume
|
|
43
|
+
[2] Cancel
|
|
44
|
+
════════════════════════════════════════
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Layer B check:** Verify .radar/remediation/playbooks/ exists (remediation knowledge generated).
|
|
48
|
+
|
|
49
|
+
- If Layer B incomplete:
|
|
50
|
+
```
|
|
51
|
+
════════════════════════════════════════
|
|
52
|
+
REMEDIATION REQUIRED
|
|
53
|
+
════════════════════════════════════════
|
|
54
|
+
|
|
55
|
+
Guardrails derive from remediation knowledge (Layer B).
|
|
56
|
+
Remediation playbooks must be generated first.
|
|
57
|
+
|
|
58
|
+
[1] Generate remediation first → runs /radar:remediate
|
|
59
|
+
[2] Cancel
|
|
60
|
+
════════════════════════════════════════
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- If both layers complete: proceed to Step 2
|
|
64
|
+
|
|
65
|
+
## Step 2: Select Guardrail Format
|
|
66
|
+
|
|
67
|
+
Check $ARGUMENTS for format specification:
|
|
68
|
+
- If "claude" or "claude-md": pre-select Claude MD format
|
|
69
|
+
- If "cursor" or "cursorrules": pre-select Cursor rules format
|
|
70
|
+
- If no argument or unrecognized: present options
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
════════════════════════════════════════
|
|
74
|
+
GUARDRAIL FORMAT
|
|
75
|
+
════════════════════════════════════════
|
|
76
|
+
|
|
77
|
+
Select output format:
|
|
78
|
+
|
|
79
|
+
[1] Claude MD rules — for .claude/CLAUDE.md (recommended)
|
|
80
|
+
[2] Cursor rules — for .cursorrules
|
|
81
|
+
[3] Both formats
|
|
82
|
+
[4] Cancel
|
|
83
|
+
════════════════════════════════════════
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Step 3: Display Guardrail Scope
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
════════════════════════════════════════
|
|
90
|
+
GUARDRAIL SCOPE
|
|
91
|
+
════════════════════════════════════════
|
|
92
|
+
|
|
93
|
+
Source data:
|
|
94
|
+
Playbooks: [N] remediation playbooks
|
|
95
|
+
Patterns: [N] cross-cutting patterns identified
|
|
96
|
+
Domains: [N] domains with findings
|
|
97
|
+
|
|
98
|
+
Guardrails will codify:
|
|
99
|
+
- Architectural constraints from findings
|
|
100
|
+
- Security rules from vulnerability patterns
|
|
101
|
+
- Code quality standards from audit observations
|
|
102
|
+
- Testing requirements from coverage gaps
|
|
103
|
+
|
|
104
|
+
Format: [selected format(s)]
|
|
105
|
+
════════════════════════════════════════
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Step 4: Safety Confirmation
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
════════════════════════════════════════
|
|
112
|
+
SAFETY REVIEW
|
|
113
|
+
════════════════════════════════════════
|
|
114
|
+
|
|
115
|
+
Guardrails will be generated at intervention level: Suggesting
|
|
116
|
+
(Guardrails are advisory rules — they suggest constraints but do not
|
|
117
|
+
enforce them. Enforcement depends on the AI assistant's behavior.)
|
|
118
|
+
|
|
119
|
+
Patterns being codified: [N] from [M] domains
|
|
120
|
+
|
|
121
|
+
No changes will be applied to your codebase. Guardrail files are
|
|
122
|
+
generated in .radar/remediation/guardrails/ for your review before
|
|
123
|
+
copying to project root.
|
|
124
|
+
|
|
125
|
+
[1] Generate guardrails (recommended)
|
|
126
|
+
[2] Back to format selection
|
|
127
|
+
[3] Cancel
|
|
128
|
+
════════════════════════════════════════
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Step 5: Check Existing Guardrails
|
|
132
|
+
|
|
133
|
+
Check if .radar/remediation/guardrails/ already contains files:
|
|
134
|
+
|
|
135
|
+
- If guardrails exist:
|
|
136
|
+
```
|
|
137
|
+
════════════════════════════════════════
|
|
138
|
+
EXISTING GUARDRAILS FOUND
|
|
139
|
+
════════════════════════════════════════
|
|
140
|
+
|
|
141
|
+
claude-md-rules.md: [exists / not found]
|
|
142
|
+
cursorrules.md: [exists / not found]
|
|
143
|
+
|
|
144
|
+
[1] View existing guardrails
|
|
145
|
+
[2] Regenerate (overwrites existing)
|
|
146
|
+
[3] Back to format selection
|
|
147
|
+
[4] Cancel
|
|
148
|
+
════════════════════════════════════════
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
- If no guardrails exist: proceed to Step 6
|
|
152
|
+
|
|
153
|
+
## Step 6: Generate Guardrails
|
|
154
|
+
|
|
155
|
+
1. Delegate to phase-7-risk-validation workflow (guardrail-generator portion)
|
|
156
|
+
2. Transform safety validation runs automatically
|
|
157
|
+
|
|
158
|
+
## Step 7: Guardrails Complete
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
════════════════════════════════════════
|
|
162
|
+
GUARDRAILS GENERATED
|
|
163
|
+
════════════════════════════════════════
|
|
164
|
+
|
|
165
|
+
Generated files:
|
|
166
|
+
- .radar/remediation/guardrails/claude-md-rules.md
|
|
167
|
+
- .radar/remediation/guardrails/cursorrules.md
|
|
168
|
+
|
|
169
|
+
To apply guardrails to your project:
|
|
170
|
+
- Review the generated rules
|
|
171
|
+
- Copy relevant sections to your .claude/CLAUDE.md or .cursorrules
|
|
172
|
+
- Customize rules for your project's specific needs
|
|
173
|
+
|
|
174
|
+
Next steps:
|
|
175
|
+
- Run full Transform pipeline: /radar:transform
|
|
176
|
+
- Generate execution plan: continue with Phase 8 via /radar:transform
|
|
177
|
+
|
|
178
|
+
════════════════════════════════════════
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
</process>
|
|
182
|
+
|
|
183
|
+
<success_criteria>
|
|
184
|
+
- [ ] Layer A prerequisite validated (Core audit complete)
|
|
185
|
+
- [ ] Layer B prerequisite validated (remediation playbooks exist)
|
|
186
|
+
- [ ] Guardrail format selected (Claude MD / Cursor / both)
|
|
187
|
+
- [ ] Guardrail scope displayed (pattern count, domain count)
|
|
188
|
+
- [ ] Intervention level displayed (Suggesting for guardrails)
|
|
189
|
+
- [ ] Explicit confirmation obtained before generation
|
|
190
|
+
- [ ] Existing guardrails detected and options presented
|
|
191
|
+
- [ ] Phase 7 workflow delegated to (guardrail-generator portion)
|
|
192
|
+
- [ ] Output file locations and usage instructions provided
|
|
193
|
+
- [ ] Cancellation available at every decision point
|
|
194
|
+
</success_criteria>
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: radar:init
|
|
3
|
+
description: Initialize Radar in a target project
|
|
4
|
+
argument-hint: "[path-to-repo]"
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Initializes Radar in a target project by creating the `.radar/` directory structure with state tracking and framework manifest. This is the project setup command — run once per repository before auditing.
|
|
10
|
+
|
|
11
|
+
If an existing `.radar/` is detected, offers resume, fresh start, or cancel.
|
|
12
|
+
|
|
13
|
+
This command does NOT start an audit — it prepares the project. Run `/radar:audit` after init to begin.
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<execution_context>
|
|
17
|
+
<!-- Standalone command: no workflow delegation required -->
|
|
18
|
+
</execution_context>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
$ARGUMENTS
|
|
22
|
+
@.radar/STATE.md
|
|
23
|
+
</context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
|
|
27
|
+
## Step 1: Determine Target Repository
|
|
28
|
+
|
|
29
|
+
Check if $ARGUMENTS contains a repository path:
|
|
30
|
+
- If YES: use the provided path as the audit target
|
|
31
|
+
- If NO: use the current working directory
|
|
32
|
+
|
|
33
|
+
Validate the target:
|
|
34
|
+
- Confirm the path exists and is a directory
|
|
35
|
+
- Check for `.git/` directory
|
|
36
|
+
- If no `.git/`: warn "This directory is not a git repository. Radar works best with git repos (git-history analysis, Gitleaks). Continue anyway? [y/N]"
|
|
37
|
+
- Display target path for confirmation
|
|
38
|
+
|
|
39
|
+
## Step 2: Check for Existing .radar/
|
|
40
|
+
|
|
41
|
+
Check if `.radar/STATE.md` exists in the target repository:
|
|
42
|
+
|
|
43
|
+
- If YES: An Radar project already exists.
|
|
44
|
+
```
|
|
45
|
+
════════════════════════════════════════
|
|
46
|
+
EXISTING Radar PROJECT DETECTED
|
|
47
|
+
════════════════════════════════════════
|
|
48
|
+
|
|
49
|
+
Target: [path]
|
|
50
|
+
Status: [from STATE.md — initialized / in_progress / complete]
|
|
51
|
+
Current Phase: [from STATE.md]
|
|
52
|
+
Initialized: [from STATE.md timestamp]
|
|
53
|
+
|
|
54
|
+
[1] Resume existing audit → /radar:resume
|
|
55
|
+
[2] Fresh start (archives current .radar/ to .radar-backup-{YYYYMMDD-HHMMSS}/)
|
|
56
|
+
[3] Cancel
|
|
57
|
+
════════════════════════════════════════
|
|
58
|
+
```
|
|
59
|
+
- If [1]: inform user to run `/radar:resume` and exit
|
|
60
|
+
- If [2]: rename `.radar/` to `.radar-backup-{timestamp}/`, then proceed to Step 3
|
|
61
|
+
- If [3]: exit
|
|
62
|
+
|
|
63
|
+
- If NO `.radar/`: proceed to Step 3
|
|
64
|
+
|
|
65
|
+
## Step 3: Create .radar/ Directory Structure
|
|
66
|
+
|
|
67
|
+
Create the following structure:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
.radar/
|
|
71
|
+
├── STATE.md # Audit state tracking
|
|
72
|
+
├── MANIFEST.md # Version-locked framework references
|
|
73
|
+
└── findings/ # Output directory for phase findings
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Step 4: Initialize STATE.md
|
|
77
|
+
|
|
78
|
+
Create `.radar/STATE.md` with:
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
# Radar Audit State
|
|
82
|
+
|
|
83
|
+
## Target
|
|
84
|
+
|
|
85
|
+
Repository: {repo-name (directory basename)}
|
|
86
|
+
Path: {absolute-path}
|
|
87
|
+
Initialized: {ISO 8601 timestamp}
|
|
88
|
+
|
|
89
|
+
## Status
|
|
90
|
+
|
|
91
|
+
Overall: initialized
|
|
92
|
+
Current Phase: none (run /radar:audit to begin)
|
|
93
|
+
|
|
94
|
+
## Phases
|
|
95
|
+
|
|
96
|
+
| Phase | Name | Status | Findings |
|
|
97
|
+
|-------|------|--------|----------|
|
|
98
|
+
| 0 | Context & Threat Modeling | pending | - |
|
|
99
|
+
| 1 | Automated Signal Gathering | pending | - |
|
|
100
|
+
| 2 | Deep Domain Audits | pending | - |
|
|
101
|
+
| 3 | Change Risk & Reality Gap | pending | - |
|
|
102
|
+
| 4 | Adversarial Review | pending | - |
|
|
103
|
+
| 5 | Synthesis & Report | pending | - |
|
|
104
|
+
|
|
105
|
+
## Tool Configuration
|
|
106
|
+
|
|
107
|
+
Configured by /radar:audit at audit start.
|
|
108
|
+
|
|
109
|
+
## Resume Info
|
|
110
|
+
|
|
111
|
+
Last action: Project initialized
|
|
112
|
+
Next action: Run /radar:audit to begin diagnostic audit
|
|
113
|
+
|
|
114
|
+
## Session Tracking
|
|
115
|
+
|
|
116
|
+
Sessions: 0
|
|
117
|
+
Last session: -
|
|
118
|
+
Started: -
|
|
119
|
+
|
|
120
|
+
## Checkpoint History
|
|
121
|
+
|
|
122
|
+
(Populated as phases complete)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Step 5: Initialize MANIFEST.md
|
|
126
|
+
|
|
127
|
+
Create `.radar/MANIFEST.md` with:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
# Radar Manifest
|
|
131
|
+
|
|
132
|
+
## Framework
|
|
133
|
+
|
|
134
|
+
Version: {read from ~/.claude/radar/ if available, else "unknown"}
|
|
135
|
+
Framework path: ~/.claude/radar/
|
|
136
|
+
Commands path: ~/.claude/commands/radar/
|
|
137
|
+
Initialized: {ISO 8601 timestamp}
|
|
138
|
+
|
|
139
|
+
## Installed Tools
|
|
140
|
+
|
|
141
|
+
| Tool | Status | Location |
|
|
142
|
+
|------|--------|----------|
|
|
143
|
+
| SonarQube | {detected/not found} | {path or "n/a"} |
|
|
144
|
+
| Semgrep | {detected/not found} | {path — CLI or venv} |
|
|
145
|
+
| Trivy | {detected/not found} | {path} |
|
|
146
|
+
| Gitleaks | {detected/not found} | {path} |
|
|
147
|
+
| Checkov | {detected/not found} | {path — CLI or venv} |
|
|
148
|
+
| Syft | {detected/not found} | {path} |
|
|
149
|
+
| Grype | {detected/not found} | {path} |
|
|
150
|
+
| Git | {detected/not found} | {path} |
|
|
151
|
+
|
|
152
|
+
## Notes
|
|
153
|
+
|
|
154
|
+
Run /radar:validate for detailed tool verification and troubleshooting.
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
To detect each tool:
|
|
158
|
+
- Try `command -v {tool}` first (checks PATH)
|
|
159
|
+
- For Python tools, also check `~/.local/share/radar/venvs/{tool}/bin/{tool}`
|
|
160
|
+
- For SonarQube, also check `docker image inspect sonarsource/sonar-scanner-cli 2>/dev/null`
|
|
161
|
+
- For git, use `command -v git`
|
|
162
|
+
|
|
163
|
+
## Step 6: Update .gitignore
|
|
164
|
+
|
|
165
|
+
Check if `.gitignore` exists in the target repository:
|
|
166
|
+
- If YES: check if it contains `.radar/` (or `.radar`)
|
|
167
|
+
- If already present: do nothing
|
|
168
|
+
- If not present: append `\n# Radar audit state (generated)\n.radar/\n`
|
|
169
|
+
- If NO .gitignore: create one with:
|
|
170
|
+
```
|
|
171
|
+
# Radar audit state (generated)
|
|
172
|
+
.radar/
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Report what was done.
|
|
176
|
+
|
|
177
|
+
## Step 7: Display Summary
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
════════════════════════════════════════
|
|
181
|
+
Radar Project Initialized
|
|
182
|
+
════════════════════════════════════════
|
|
183
|
+
|
|
184
|
+
Target: {repo-name} ({absolute-path})
|
|
185
|
+
State: .radar/STATE.md
|
|
186
|
+
Manifest: .radar/MANIFEST.md
|
|
187
|
+
Tools: {X}/8 detected
|
|
188
|
+
|
|
189
|
+
.radar/ added to .gitignore ✓
|
|
190
|
+
|
|
191
|
+
────────────────────────────────────────
|
|
192
|
+
Next steps:
|
|
193
|
+
/radar:validate — verify tool installation
|
|
194
|
+
/radar:audit — begin diagnostic audit
|
|
195
|
+
════════════════════════════════════════
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
</process>
|
|
199
|
+
|
|
200
|
+
<success_criteria>
|
|
201
|
+
- [ ] Target repository identified and validated
|
|
202
|
+
- [ ] Existing .radar/ handled (resume/fresh/cancel)
|
|
203
|
+
- [ ] .radar/ directory created with STATE.md, MANIFEST.md, findings/
|
|
204
|
+
- [ ] Tool inventory detected and recorded in MANIFEST.md
|
|
205
|
+
- [ ] .radar/ added to .gitignore
|
|
206
|
+
- [ ] User informed of next steps
|
|
207
|
+
</success_criteria>
|