| name | codd-impact |
| description | Analyze the downstream impact of changed requirements, design docs, code, or tests in a CoDD project. Use when the user needs to decide which CoDD artifacts should be updated next, whether autonomous propagation is allowed, or whether a human approval gate is required.
|
CoDD Impact Analysis
Use this skill after a requirements, design, code, or test change to determine what CoDD artifacts must be updated next. The goal is not only to read the impact report, but to decide whether the AI should update design documents immediately, ask a human for approval, or only report informational findings. Treat the impact report as an action queue for keeping requirements, design, implementation, and tests coherent.
Primary Command
Run impact analysis from the project root:
codd impact --path .
By default, this detects uncommitted changes (compares working tree to HEAD). No need to commit first.
If you need a report file:
codd impact --path . --output "codd/reports/impact_$(date +%Y%m%d_%H%M%S).md"
If you need to compare against a specific commit instead of uncommitted changes:
codd impact --diff <commit-hash> --path .
Preflight
- Confirm you are at the project root and
codd/codd.yaml exists.
- Confirm
codd/scan/ directory exists (contains nodes.jsonl and edges.jsonl).
- If
codd/scan/ is missing or empty, run:
codd scan --path .
- Run
codd impact --path ..
- Read the report in this order:
- Convention Alerts
- Green Band
- Amber Band
- Gray Band
How To Act On Each Band
Convention Alerts
Convention Alerts have higher priority than Green, Amber, or Gray items. They mean an implicit rule may have been violated.
When a Convention Alert appears:
- Open
codd/annotations/conventions.yaml.
- Find the rule that matches the reported target and reason.
- Identify which invariant is being protected and which changed artifact triggered it.
- Update the affected design docs, tests, or governance docs so the invariant is either preserved or explicitly re-decided.
- If the business rule itself changed, do not silently override it. Ask the human to confirm the convention change before editing
conventions.yaml.
Green Band
Green Band means the impact is high-confidence and the AI may update affected design documents autonomously.
Action:
- Open each affected design document reported in Green Band.
- Read the changed source artifact and the impacted design document together.
- Update the impacted document's frontmatter if dependencies, conventions, or data dependencies changed.
- Update the body to reflect the new behavior, interface, data flow, constraints, acceptance criteria, or verification approach.
- Save the document.
- Run
codd scan --path . to rebuild the graph after the document update.
- Re-run
codd impact --path . to confirm the remaining impact set is reduced or reclassified.
Use Green Band for autonomous propagation. Do not wait for human approval unless the change introduces a product decision that is not already justified in the source requirements or governance docs.
Amber Band
Amber Band means the impact is plausible but requires human confirmation before the AI edits the affected document.
Ask the human with this template:
{設計書名}が影響を受けています。更新しますか?(変更内容: {変更サマリ})
Action:
- Summarize why the document is impacted.
- Quote the document name and the change summary in the template above.
- Wait for confirmation before editing the document.
- If approved, update the document, run
codd scan --path ., then re-run codd impact --path ..
Gray Band
Gray Band is informational only. Report it, but do not edit anything unless the human explicitly asks you to.
Use this message template:
{設計書名}への間接的な影響が検出されましたが、対応不要と判断します
Gray items should still be mentioned in the final status so the human knows they were reviewed.
Design Document Update Procedure
When Green Band allows autonomous updates, or Amber Band gets approved, update affected design documents with this procedure:
- Open the impacted document and the changed upstream artifact side by side.
- Identify exactly what changed:
- requirement or scope
- interface or API contract
- data model or data flow
- operational rule
- test expectation
- Update frontmatter fields first when needed:
depends_on
conventions
data_dependencies
- node metadata that became stale
- Update the human-readable body second:
- summary or purpose
- flows, diagrams, steps, contracts, or constraints
- acceptance criteria or verification notes affected by the change
- Preserve traceability. Do not add behavior that is not justified by requirements, governance, or the changed source artifact.
- Save the document.
- Run
codd scan --path ..
- Run
codd impact --path . again.
- Report what changed, what was intentionally left unchanged, and whether any Amber or Gray items remain.
Reporting Rules
When presenting the result, organize it as:
- Convention Alerts requiring attention
- Green Band documents updated automatically
- Amber Band documents awaiting or receiving human approval
- Gray Band informational items with no action taken
Always name the exact design documents you changed. If nothing needed an edit, say so explicitly.
Troubleshooting
Graph data not found
The dependency graph has not been built yet or was deleted. Run:
codd scan --path .
Then run:
codd impact --path .
No changes detected
Your diff target may not match the change you intend to analyze. Re-run impact with an explicit commit hash:
codd impact --diff <commit-hash> --path .
Choose the commit by checking recent history with git log --oneline.