一键导入
plan-protocol
Guidelines for creating and managing implementation plans with citations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for creating and managing implementation plans with citations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
DaliORM patterns, type-safe query builders, schema definitions, migrations, and SurrealDB integration
Commit, push, branch, and manage version control with GitButler. Use for: commit my changes, check what changed, create a PR, push my branch, view diff, create branches, stage files, edit commit history, squash commits, amend commits, undo commits, pull requests, merge, stash work. Replaces git - use 'but' instead of git commit, git status, git push, git checkout, git add, git diff, git branch, git rebase, git stash, git merge. Covers all git, version control, and source control operations.
Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.
Use when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel
Internal logic and data flow philosophy (The 5 Laws of Elegant Defense). Understand deeply to ensure code guides data naturally and prevents errors.
Comprehensive code review methodology with severity classification and confidence thresholds
| name | plan-protocol |
| description | Guidelines for creating and managing implementation plans with citations |
Load this skill when creating or updating implementation plans.
When creating or updating a plan, ensure:
status, phase, updated## Goal section (one sentence)## Context & Decisions table with citations (ref:delegation-id)[COMPLETE], [IN PROGRESS], [PENDING]← CURRENTUse plan_save with this exact markdown format:
---
status: STATUS
phase: PHASE_NUMBER
updated: YYYY-MM-DD
---
# Implementation Plan
## Goal
ONE_SENTENCE_DESCRIBING_OUTCOME
## Context & Decisions
| Decision | Rationale | Source |
| -------- | --------- | ------------------- |
| CHOICE | WHY | `ref:DELEGATION_ID` |
## Phase 1: NAME [STATUS_MARKER]
- [x] 1.1 Completed task
- [x] 1.2 Another completed task → `ref:DELEGATION_ID`
## Phase 2: NAME [IN PROGRESS]
- [x] 2.1 Completed task
- [ ] **2.2 Current task** ← CURRENT
- [ ] 2.3 Pending task
## Phase 3: NAME [PENDING]
- [ ] 3.1 Future task
- [ ] 3.2 Another future task
## Notes
- YYYY-MM-DD: Observation or decision `ref:DELEGATION_ID`
| Field | Values | Description |
|---|---|---|
status | not-started, in-progress, complete, blocked | Overall plan status |
phase | Number (1, 2, 3...) | Current phase number |
updated | YYYY-MM-DD | Last update date |
| Marker | Meaning |
|---|---|
[PENDING] | Not yet started |
[IN PROGRESS] | Currently being worked on |
[COMPLETE] | Finished successfully |
[BLOCKED] | Waiting on dependencies |
not-started → in-progress → complete
↘ blocked
[PENDING] → [IN PROGRESS] → [COMPLETE]
↘ [BLOCKED]
[ ] unchecked → [x] checked
[IN PROGRESS] at any time← CURRENT marker at any time← CURRENT immediately when starting a new task[x] immediately after completing themCitations reference delegation research. The flow is:
delegate to researcher or exploreswift-amber-falcon)ref:swift-amber-falcon| Situation | Action |
|---|---|
| Architectural decision based on research | Add to Context & Decisions table |
| Task informed by research | Append → ref:id to task line |
| Implementation detail from research | Inline citation in Notes |
delegation_list() to see all delegationsdelegation_read("id") to verify content before citing---
status: in-progress
phase: 2
updated: 2026-01-02
---
# Implementation Plan
## Goal
Add JWT authentication with refresh token support
## Context & Decisions
| Decision | Rationale | Source |
| ----------------------- | -------------------------------------------- | ------------------------ |
| Use bcrypt (12 rounds) | Industry standard, balance of security/speed | `ref:swift-amber-falcon` |
| JWT with refresh tokens | Stateless auth, mobile-friendly | `ref:calm-jade-owl` |
## Phase 1: Research [COMPLETE]
- [x] 1.1 Research auth patterns → `ref:swift-amber-falcon`
- [x] 1.2 Evaluate token strategies → `ref:calm-jade-owl`
## Phase 2: Implementation [IN PROGRESS]
- [x] 2.1 Set up project structure
- [ ] **2.2 Add password hashing** ← CURRENT
- [ ] 2.3 Implement JWT generation
## Phase 3: Testing [PENDING]
- [ ] 3.1 Write unit tests
- [ ] 3.2 Integration tests
## Notes
- 2026-01-02: Chose bcrypt over argon2 for broader library support `ref:swift-amber-falcon`
# Implementation Plan
## Goal
Add authentication
Error: Plan must have YAML frontmatter with status, phase, updated.
## Phase 2: Implementation [IN PROGRESS]
- [ ] **2.1 Task one** ← CURRENT
- [ ] **2.2 Task two** ← CURRENT
Error: Only one task may be marked CURRENT.
## Context & Decisions
| Decision | Rationale | Source |
| --------- | --------- | ------ |
| Use Redis | It's fast | - |
Error: Decisions must cite research with ref:delegation-id.
## Phase 1: Research [DONE]
Error: Use [COMPLETE], not [DONE]. Valid markers: [PENDING], [IN PROGRESS], [COMPLETE], [BLOCKED].
| Error Message | Fix |
|---|---|
| "Missing frontmatter" | Add ---\nstatus: in-progress\nphase: 1\nupdated: 2026-01-02\n--- at top |
| "Multiple CURRENT markers" | Remove ← CURRENT from all but the active task |
| "Invalid citation format" | Use ref:delegation-id format (e.g., ref:swift-amber-falcon) |
| "Missing goal" | Add ## Goal section with one-sentence description |
| "Empty phase" | Add at least one task to each phase |
| "Invalid phase status" | Use [PENDING], [IN PROGRESS], [COMPLETE], or [BLOCKED] |
Before calling plan_save, verify:
ref:id?← CURRENT?