complexity-assessment
Use when assessing task complexity, determining workflow depth, asking "how complex is this?", "should I use a worktree?", "is this a big change?", or sizing work before planning. Analyzes 7 dimensions (scope, integration, infrastructure, knowledge, risk, testing, decomposability) to return SIMPLE, STANDARD, or COMPLEX tier with confidence scoring. Includes intent confirmation gating and review agent selection hints for consensus-review integration.
What this skill does
# Complexity Assessment
Evaluate task complexity before planning to ensure appropriate workflow depth and artifact structure.
## Contextd Integration
If contextd MCP is available:
- `memory_search` to find similar past assessments
- `memory_record` for tier recommendations with rationale
- `memory_outcome` to track assessment accuracy over time
- `branch_create/return` for isolated assessment
If contextd is NOT available:
- Assessment runs inline (still works)
- No persistence of tier decisions
- No historical comparison available
## When to Use
This skill is called by `/brainstorm` Phase 2 to determine:
- Question depth (SIMPLE: 3-5, STANDARD: 8-12, COMPLEX: 15+)
- GitHub artifact structure (single issue vs epic + sub-issues vs project board)
- Worktree recommendation
- Context branch budget allocation
---
## 7 Dimensions
Assess each dimension and aggregate to determine tier:
### 1. Scope
**Question:** How many files will be touched?
| Files | Score | Indicator |
|-------|-------|-----------|
| 1-2 | 1 | Single component, localized change |
| 3-10 | 2 | Multiple components, cross-cutting |
| 10+ | 3 | System-wide, architectural change |
### 2. Integration
**Question:** What external dependencies are involved?
| Dependencies | Score | Indicator |
|--------------|-------|-----------|
| None | 1 | Self-contained, no external calls |
| 1-2 APIs/services | 2 | Moderate integration work |
| 3+ APIs/services | 3 | Complex orchestration required |
### 3. Infrastructure
**Question:** Are config/infra changes required?
| Changes | Score | Indicator |
|---------|-------|-----------|
| None | 1 | Code-only change |
| Config files | 2 | Environment variables, feature flags |
| New infra | 3 | Database, Docker, cloud resources |
### 4. Knowledge
**Question:** What domain expertise is required?
| Expertise | Score | Indicator |
|-----------|-------|-----------|
| Familiar patterns | 1 | Standard CRUD, common patterns |
| Some research | 2 | New library, unfamiliar domain |
| Deep expertise | 3 | Security, performance, compliance |
### 5. Risk
**Question:** What's the blast radius if something goes wrong?
| Risk | Score | Indicator |
|------|-------|-----------|
| Low | 1 | Easily reversible, non-critical path |
| Medium | 2 | User-facing, requires testing |
| High | 3 | Data integrity, security, payments |
### 6. Testing (New)
**Question:** What testing effort is required?
| Testing | Score | Indicator |
|---------|-------|-----------|
| Minimal | 1 | Unit tests only, existing patterns |
| Moderate | 2 | Integration tests, new test fixtures |
| Extensive | 3 | E2E tests, performance tests, security audits |
### 7. Decomposability (New)
**Question:** Can this task be split into independent units?
| Decomposability | Score | Indicator |
|-----------------|-------|-----------|
| Easily decomposable | 1 | Clear subtasks, no shared state |
| Partially decomposable | 2 | Some dependencies between subtasks |
| Monolithic | 3 | Tightly coupled, must be done together |
---
## Risk Multipliers
Apply these multipliers to the base score when present:
| Factor | Multiplier | When to Apply |
|--------|------------|---------------|
| Security-sensitive | 1.2x | Auth, encryption, user data, API keys |
| Data migration | 1.3x | Schema changes, data transformations |
| Breaking changes | 1.2x | API changes, deprecated features |
| Technical debt | 1.1x | Working in legacy/poorly-tested code |
| Time pressure | 1.1x | Urgent deadline, reduced review time |
**Calculation:** `adjusted_score = base_score * highest_applicable_multiplier`
---
## Confidence Scoring
Every assessment includes a confidence percentage (0-100%):
| Confidence | Range | Criteria |
|------------|-------|----------|
| High | 80-100% | Clear requirements, familiar domain, similar past tasks |
| Medium | 50-79% | Some ambiguity, partial familiarity |
| Low | 0-49% | Unclear scope, unfamiliar domain, novel problem |
**When confidence < 60%:** Use `AskUserQuestion` to clarify ambiguous dimensions before finalizing tier.
**Confidence factors:**
- Requirements clarity (+/- 20%)
- Domain familiarity (+/- 15%)
- Historical data available (+/- 15%)
- Codebase familiarity (+/- 10%)
---
## Team Velocity Factors
Adjust expectations based on team context:
| Factor | Impact | Consideration |
|--------|--------|---------------|
| Team size | +/- 1 tier | Solo dev may need COMPLEX timeline adjustment |
| Experience level | +/- 1 dimension score | Junior devs add +1 to Knowledge dimension |
| Codebase familiarity | +/- 1 dimension score | New team members add +1 to Scope |
| Concurrent priorities | +/- 1 tier | High WIP may require elevated treatment |
---
## Tier Calculation
Sum scores across all 7 dimensions (max 21):
| Total Score | Tier | Characteristics |
|-------------|------|-----------------|
| 7-11 | SIMPLE | Quick change, minimal planning needed |
| 12-16 | STANDARD | Moderate complexity, structured approach |
| 17-21 | COMPLEX | High complexity, extensive planning required |
**After multipliers:** Round to nearest integer before tier assignment.
---
## Structured Output
Return assessment as JSON for downstream consumption:
```json
{
"tier": "STANDARD",
"confidence": 75,
"confidence_justification": "Clear scope but unfamiliar OAuth library",
"base_score": 14,
"adjusted_score": 16.8,
"multipliers_applied": ["security-sensitive"],
"dimensions": {
"scope": { "score": 2, "rationale": "Auth routes, middleware, user model, frontend" },
"integration": { "score": 2, "rationale": "OAuth provider API" },
"infrastructure": { "score": 2, "rationale": "Environment variables, session config" },
"knowledge": { "score": 2, "rationale": "OAuth2 flow, security best practices" },
"risk": { "score": 3, "rationale": "Security-critical, user data" },
"testing": { "score": 2, "rationale": "Integration tests for OAuth flow" },
"decomposability": { "score": 1, "rationale": "Backend/frontend can be parallelized" }
},
"decomposition_suggestions": null,
"historical_comparison": "Similar OAuth task took 3 iterations (Issue #45)",
"team_velocity_adjustments": null,
"integration_hints": {
"github_artifact": "epic_with_sub_issues",
"context_branch_budget": 8192,
"worktree_recommended": true
},
"recommended_agents": {
"always": ["code-quality-reviewer"],
"if_go": ["go-reviewer"],
"if_security_sensitive": ["security-reviewer", "vulnerability-reviewer"],
"if_api_change": ["user-persona-reviewer", "documentation-reviewer"],
"all": false
},
"intent_confirmation": {
"required": true,
"mode": "STANDARD"
}
}
```
---
## Tier Implications
### SIMPLE (7-11)
- **Questions:** 3-5 quick clarifications
- **GitHub:** Single Issue with checklist
- **Worktree:** Optional, can work in main
- **Review:** Standard consensus review
- **Context branch budget:** 4096 tokens
- **Testing:** Unit tests, 70%+ coverage on new code
### STANDARD (12-16)
- **Questions:** 8-12 detailed questions
- **GitHub:** Epic Issue + sub-Issues
- **Worktree:** Recommended for isolation
- **Review:** Full consensus review
- **Context branch budget:** 8192 tokens
- **Testing:** Unit + integration tests, 80%+ coverage
### COMPLEX (17-21)
- **Questions:** 15+ comprehensive questions
- **GitHub:** Epic + sub-Issues + Project board
- **Worktree:** Required for isolation
- **Review:** Full consensus + additional scrutiny
- **Context branch budget:** 16384 tokens
- **Testing:** Unit + integration + E2E, 90%+ coverage, security audit
---
## Intent Confirmation Gating
After tier determination, include an `intent_confirmation` field in the output to signal the **caller** whether intent confirmation is recommended:
| Tier | Recommendation |
|------|----------------|
| SIMPLE (7-11) | `"intent_confirmation": "none"` - Caller should auto-proceed. |
| STANDARD (12-16) | `"intent_confirmation": "standard"` - Caller should invoke intent-confirmation skillRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.