/adrs-management:adr-generatefrom adrs-management
Generate formal ADRs from potential ADRs
Ships in adrs-management. Installing the plugin adds it to Claude Code.
Launches the adr-generator agent to generate formal ADRs from potential ADRs.
When multiple modules or files are specified, launches agents in parallel for faster generation.
What it does:
generated/{MODULE}/ or generated/{MODULE}/needs-input/Usage:
/adr-generate [modules] [--context-dir=PATH] [--language=LOCALE] [--include-consider] [--output-dir=PATH]
Examples:
/adr-generate --all
# Generate ALL potential ADRs to docs/adrs/generated/{MODULE}/
# Excluding the "consider" priority if --include-consider is not specified
/adr-generate CORE
# Generate to docs/adrs/generated/CORE/
/adr-generate CORE API DATA
# Generate multiple modules in parallel
/adr-generate --include-consider CORE
# Include both must-document AND consider priorities
/adr-generate --language=pt-BR --include-consider CORE API
# Generate in Portuguese with all priorities
/adr-generate --context-dir=docs/context/ CORE
# Generate with strategic context
/adr-generate --output-dir=output/adrs CORE
# Generate to custom output directory: output/adrs/generated/CORE/
When the user invokes /adr-generate:
Parse arguments to get:
docs/adrs, or use --output-dir value)Default behavior (without --include-consider): Scan only must-document:
docs/adrs/potential-adrs/must-document/{MODULE}/*.md
With --include-consider flag: Scan both priorities:
docs/adrs/potential-adrs/must-document/{MODULE}/*.md
docs/adrs/potential-adrs/consider/{MODULE}/*.md
Build list of ALL potential ADR files across ALL specified modules.
Launch MULTIPLE adr-generator agents in parallel using a SINGLE message with MULTIPLE Task tool calls - ONE agent per potential ADR file.
Example: /adr-generate CORE API
If CORE has 3 files and API has 2 files, launch 5 agents:
Single message with 5 Task tool calls:
Task 1:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/must-document/CORE/external-gateway.md"
Task 2:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/must-document/CORE/dual-provider.md"
Task 3:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/consider/CORE/cache-strategy.md"
Task 4:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/must-document/API/rest-choice.md"
Task 5:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/must-document/API/grpc-internal.md"
Include options in each agent's prompt:
Task 1:
- subagent_type: adr-generator
- prompt: "Generate formal ADR from docs/adrs/potential-adrs/must-document/CORE/external-gateway.md with --language=pt-BR and --context-dir=docs/context/"
CRITICAL:
/adr-generate)docs/adrs/potential-adrs/ to discover all modulesWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub alessandrotraversi/docs-ia --plugin adrs-management4 commands in this plugin
/adr-identifyPrompts which modules to analyze (uses docs/adrs by default)Identify potential ADRs for specific modules based on the codebase mapping (Phase 2)/adr-linkProcess all ADRs across all modulesDetect and create bidirectional relationships between existing ADRs with clickable links/adr-mapMaps current directory, outputs to docs/adrs/mapping.mdCreate a modular codebase mapping to prepare for ADR identification (Phase 1)Other plugins' commands for the same job