From code-auditor-agent
Trigger with "/caa-extended-audit", "generate scenarios", "discover entry points". Use when an extended audit needs end-to-end scenario walks beyond line review. Emits scenarios.json for the ultracode engine's scenario-walk lens.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-auditor-agent:caa-scenario-generator-skillThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Three-stage deterministic discovery: **detect → discover → emit**. Stage 1 classifies
Three-stage deterministic discovery: detect → discover → emit. Stage 1 classifies
the codebase into one or more of ~70 software types. Stage 2 dispatches to a per-type
discoverer that finds entry points (HTTP routes, CLI commands, ISR vectors, syscall
handlers, FPGA top-level ports, etc.). Stage 3 expands each entry point across the
applicable scenario families and emits a universal scenarios.json. No LLM at any
step — two runs on the same codebase produce byte-identical output. See
TRDD-6857f67f §3.1 for the full design.
${CLAUDE_PLUGIN_ROOT} set; scripts/scenario_generator/ shipped with this plugin.python3 ≥ 3.12 available via uv.uv run --no-project python -m scripts.scenario_generator.detect_software_type <codebase_root>. Surface the JSON to confirm what was detected.uv run --no-project python -m scripts.scenario_generator.emit_scenarios_json <codebase_root> <main-repo>/reports/caa-scenario-generator/. Output: timestamped scenarios.json + detected-types.json.uv run --no-project python -m scripts.scenario_generator.emit_scenarios_md <scenarios.json> and tee to <main-repo>/reports/caa-scenario-generator/<ts>-scenarios.md.Two timestamped files under <main-repo>/reports/caa-scenario-generator/:
<ts>-scenarios.json — universal schema (§3.1.d), consumed by the engine's scenario-walk lens (scripts/workflows/lenses/scenario-walk.lens.md).<ts>-scenarios.md — human-readable index grouped by type × family.Plus <ts>-detected-types.json recording which types matched and why. Details:
If no software type matches: scenarios.json contains unknown_software with the
fallback discoverer's output. Walker still runs and reports the type-mismatch.
Details:
Copy this checklist and track your progress:
unknown_software)scripts/scenario_generator/detect_software_type.py — §3.1.c registryscripts/scenario_generator/scenario_families.py — §3.1.e registryscripts/scenario_generator/emit_scenarios_json.py — composition entry pointscripts/scenario_generator/discoverers/ — per-type discovererstests/fixtures/scenario_generator/ — golden fixtures (11 in v0.1.0)tests/test_scenario_generator.py — byte-identical regression testUser: /caa-audit-codebase --extended
Orchestrator: invokes the caa-scenario-generator-skill with args="/path/to/codebase"
The skill emits scenarios.json + detected-types.json → returns paths
Orchestrator: runs /caa-scan --extended → the engine's scenario-walk lens consumes scenarios.json
npx claudepluginhub emasoft/emasoft-plugins --plugin code-auditor-agentCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.