Create risk-profile
create risk-profile - Create OSCAL profile from risk assessment using AI
The create risk-profile command analyzes a risk assessment document and generates an OSCAL profile selecting appropriate controls from a custom catalog. The AI extracts risks from the assessment and maps them to controls for the entire solution.
The generated profile is saved to specs/.risk-controls/risk-profile.json for version control. Use --debug to inspect intermediate outputs and AI reasoning.
Flags
| Flag | Description |
|---|---|
--catalog |
Catalog URL for control selection and validation (default: NIST 800-53 Rev5) |
-o, --output |
Custom output path for the profile file |
-f, --force (default: false) |
Overwrite existing profile file |
-d, --debug (default: false) |
Save intermediate outputs to out/commands.log |
Notes
Expected Output:
- OSCAL profile JSON file selecting controls from catalog
- AI reasoning for control selection in debug output
Custom Prompts
The risk profile generation supports three-tier prompt system for customization:
- Command Flag:
--prompt /path/to/custom.md(highest priority) - Team Override:
.r2r/eac/templates/ai/risk/profile.md(team-wide customization) - System Default:
templates/ai/risk/profile.md(fallback)
See commit-message for detailed customization guide or:
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.