بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Interview the user relentlessly about a plan or design until branch-level decisions are resolved for execution.
Access Figma designs, extract design systems, and retrieve component specifications. Use when implementing UI from Figma mockups, extracting design tokens, or analyzing design files.
Enforce cost-aware MCP usage. Use when a task might trigger heavy external tools, web search, or broad context expansion. Prevents token burn by ensuring MCPs are only used when local context is insufficient.
Navigate the Warmplane mcp0 facade efficiently. Use when the active config exposes provider capabilities through `mcp0_*` tools and you need to discover or call provider tools without brute-force describing large capability sets. Trigger on requests involving mcp0, Warmplane, or provider work through the facade such as Linear, Notion, Figma, New Relic, Context7, grep.app, or Storybook tools.
Use this when the user needs to control Chrome, navigate to a page, inspect a tab, click or fill elements, take screenshots, or automate a browser flow with aeroxy/chrome-devtools-cli.
Apply these conventions during planning and implementation from the start (not only after review feedback). Use for frontend and backend changes when deciding whether to add layers, where to place formatting/validation, how much typing to keep, how to place helper files (.dto.ts/.type.ts/.constant.ts/.util.ts), and how to match existing module patterns during /plan and /work.
| 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)## Execution Contract section with the chosen pattern, approved implementation reference, and handoff rules## File Change Map section with explicit add/edit/delete intent (or none)[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` |
## Execution Contract
- **Primary kind:** KIND
- **Active overlays:** OVERLAYS_OR_NONE
- **Chosen pattern:** PATTERN_SUMMARY
- **Approved implementation reference:** FILES_OR_SYMBOLS
- **Missing-context behavior:** WHAT_/WORK_DOES_IF_BLOCKED
## File Change Map
- **EDIT** `path/to/file.ts` — WHY_THIS_FILE_CHANGES
- **ADD** `path/to/new-file.ts` — WHY_IT_IS_NEW
- **DELETE** `path/to/old-file.ts` — WHY_IT_CAN_BE_REMOVED
- **NONE** — use this when no file additions, edits, or deletions are planned yet
## 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` |
## Execution Contract
- **Primary kind:** implementation
- **Active overlays:** deep-grill
- **Chosen pattern:** Follow the existing auth module layout and extend token persistence in-place
- **Approved implementation reference:** `src/auth/module.ts`, `src/auth/service.ts`, `issueRefreshToken`
- **Missing-context behavior:** Stop and ask one targeted question before saving the plan
## File Change Map
- **EDIT** `src/auth/service.ts` — add refresh-token issuance to the existing login flow
- **EDIT** `src/auth/module.ts` — wire the refresh-token dependency through the current auth module
- **ADD** `src/auth/refresh-token.repository.ts` — isolate refresh-token persistence behind the existing auth package boundary
## 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?none?← CURRENT?