用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vinilana/dotcontext --skill feature-breakdown命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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
Implement or review bounded MCP inputs and responses. Use for gateway response helpers, MCP Zod schemas, list actions, cursor pagination, maxEvents, JSON serialization, audit logging, response metadata, artifact exports, or payload-size and client-compatibility changes.
Implement or review child-process execution with bounded stdout and stderr memory. Use for Node spawn wrappers, sensors, test runners, acceptance commands, timeout handling, output tails, truncation, or any change that captures subprocess output in the dotcontext harness.
Design, implement, or review bounded cache and persistent-index lifecycle. Use for ContextCache, SemanticContextBuilder, tree-sitter analysis cache, MCP session cache, hook host-session bindings, checkpoints, TTL, LRU, byte budgets, invalidation, cleanup timers, disposal, migration, or runtime retention configuration.
基于 SOC 职业分类