Complexity analysis for user stories with known work, risks, and scenarios. Use when you need to estimate effort, points, size, or analyze complexity of a user story. Do not use for sprint estimates (use devsquad.sprint) or for artifact quality validation (use quality-gate).
Copy the install command and let the AI configure it · recommended for beginners
Please install the "complexity-analysis" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/devsquad-copilot/main/.github/plugins/devsquad/skills/complexity-analysis/SKILL.md 2. Save it as ~/.claude/skills/complexity-analysis/SKILL.md 3. Reload skills and tell me it's ready
Focus on the unknowns, not the knowns. Unknown work dominates software projects.
Every classification (known/unknown) must cite the evidence that supports it. Reference code, ADR, spec, or absence thereof. If uncertain, say so and indicate what information would resolve the uncertainty.
Tasks whose effort can be estimated with confidence:
For each item, indicate why it is known (e.g., "CRUD endpoint, same pattern as src/api/users").
Signals of uncertainty:
For each risk, indicate: what the risk is, why it is a risk, and impact if it materializes.
| Dependency | Owner (team/service) | Status | Impact if delayed |
|---|
Flag tentative dependencies, without commitment, or without agreed timeline.
Before proposing scenarios, list decisions or information that need a human response:
| Scenario | Approach | If it goes well | If risks materialize | Trade-offs |
|---|
Indicate the recommended scenario with explicit justification ("recommended because..."), linking to evidence and identified risks.
For high risks, suggest a spike or timebox to reduce uncertainty before committing.
| Risk | Criteria | Implication |
|---|---|---|
| High | 2+ unknown risks, critical external dependency, or missing ADR | Mandatory supervision, consider spike |
| Medium | 1 manageable risk, or complex logic | Validation checkpoints |
| Low | Only known work, established pattern | Candidate for autonomous execution |
In the User Story body (GitHub/Azure DevOps):
## Complexity Analysis
**Risk:** [High/Medium/Low]
### Known Work
- Item 1 (estimate)
- Item 2 (estimate)
### Identified Risks
- Risk 1: [description and potential impact]
- Risk 2: [description and potential impact]
### Scenarios
| Scenario | Base effort | If risks materialize | Recommended? |
|----------|-------------|----------------------|--------------|
| A | X days | Y days | |
| B | X days | Y days | yes |
### Decision
[Chosen scenario and justification, or "Awaiting team decision"]
The analysis should be updated when:
Design and review software architecture diagrams for clearer, documentation-friendly visuals.
Create, switch, and verify Git branches before starting implementation work.
Initialize projects or verify and generate up-to-date SDD documentation templates.
Verify and create standard community and governance files for new projects.
Verify assignee, dependencies, priority, and capacity before starting a work item.
Systematically triage failures and fix broken builds or unexpected runtime issues.