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).
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "complexity-analysis" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/devsquad-copilot/main/.github/plugins/devsquad/skills/complexity-analysis/SKILL.md 2. 保存为 ~/.claude/skills/complexity-analysis/SKILL.md 3. 装好后重载技能,告诉我可以用了
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:
为软件架构图提供设计与审查建议,提升文档中的图示清晰度与规范性
帮助你创建、切换并检查代码分支,确保实现前遵循正确分支策略。
用于初始化项目或校验并生成 SDD 文档模板,确保规范齐全且为最新版本。
用于初始化项目时检查并创建社区治理所需的标准仓库文件。
在开始处理 GitHub 或 Azure 工作项前,核对负责人、依赖、优先级与产能。
系统化排查测试失败、构建中断与异常运行问题,帮助快速恢复开发进度