com um clique
com um clique
Design MCP tools and gateway interfaces for the dotcontext server
Systematic bug investigation and root cause analysis
Review code quality, patterns, and best practices
Generate commit messages following conventional commits with scope detection
Generate and update technical documentation
Review pull requests against team standards and best practices
| type | skill |
| name | Feature Breakdown |
| description | Break down features into implementable tasks |
| skillSlug | feature-breakdown |
| phases | ["P"] |
| generated | "2026-03-18T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
Break down features into concrete, implementable tasks within the @dotcontext/cli architecture.
.context/plans/Determine which layers of the codebase are involved:
| Layer | Directory | Examples |
|---|---|---|
| CLI | src/index.ts | New command, new flag, output format change |
| Service | src/services/<domain>/ | New business logic, data processing |
| Generator | src/generators/ | New scaffold type, template changes |
| MCP | src/services/mcp/ | New tool, new gateway action, schema change |
| Workflow | src/workflow/ | Phase logic, gate rules, skill/agent integration |
| Utils | src/utils/ | New utility function, i18n keys, CLI UI changes |
| Types | src/types/, src/types.ts | New interfaces, frontmatter types |
Use these criteria to set the scale when calling workflow-init:
| Scale | Criteria | Typical Feature |
|---|---|---|
| QUICK | Single file, no design decisions | Fix typo, update translation key |
| SMALL | 2-5 files, straightforward logic | Add a flag to existing CLI command |
| MEDIUM | Multiple services, design decisions needed | New MCP gateway action with service |
| LARGE | New subsystem, cross-cutting concerns | New generator type, new AI provider |
Most features in this project follow one of these patterns:
mcpServer.ts)src/services/mcp/gateway/<tool>.ts)src/services/<domain>/)gatewayTools.ts and gateway/index.tssrc/index.tssrc/services/<name>/src/utils/i18n.ts (both en and pt-BR)CLIInterface from src/utils/cliUI.tssrc/generators/<type>/src/generators/<type>/templates/src/types/scaffoldFrontmatter.tsInitService for scaffold creationFillService for AI content generationsrc/workflow/types.tssrc/workflow/WorkflowService in src/services/workflow/Use the MCP tool or create manually:
# Via MCP
context({ action: 'scaffoldPlan', planName: 'my-feature', title: 'My Feature', summary: 'What it does' })
# Manual creation in .context/plans/my-feature.md
Structure each phase with concrete steps:
## Phases
### P - Planning
- [ ] Define requirements and acceptance criteria
- [ ] Identify affected services and files
- [ ] Choose workflow scale
### R - Review (for MEDIUM/LARGE)
- [ ] Review architecture impact
- [ ] Document design decisions as ADRs
- [ ] Get plan approval
### E - Execution
- [ ] Implement service logic in src/services/<domain>/
- [ ] Add MCP gateway handler (if applicable)
- [ ] Update CLI integration (if applicable)
- [ ] Add i18n keys for new user-facing strings
- [ ] Update type exports
### V - Validation
- [ ] Write unit tests with jest.mock() for externals
- [ ] Run full test suite: npm test
- [ ] Manual CLI verification: npx tsx src/index.ts <command>
- [ ] TypeScript compilation check: npm run build
### C - Confirmation (for LARGE)
- [ ] Update CHANGELOG.md
- [ ] Update relevant .context/ documentation
- [ ] Update README if public API changed
Common dependencies to flag:
After creating the plan, link it to the active workflow:
plan({ action: 'link', planSlug: 'my-feature' })
This enables phase tracking and the commitPhase action for git integration.
Scale: MEDIUM (multiple files, design decision on cache strategy)
Tasks:
.context/.cache/ vs. temp dir)CodebaseAnalyzer and SemanticContextBuildersrc/services/semantic/codebaseAnalyzer.tsAnalyzerOptions typecontext({ action: 'buildSemantic' }) paramscodebaseAnalyzer.test.tscacheEnabled: false bypasses cacheFiles affected: src/services/semantic/codebaseAnalyzer.ts, src/services/semantic/types.ts, src/services/mcp/gateway/context.ts, src/services/mcp/mcpServer.ts