writing-plans
Create implementation plans with tasks grouped by subsystem. Related tasks share agent context; groups parallelize across subsystems.
What this skill does
# Writing Plans Write step-by-step implementation plans for agentic execution. Each task should be a **complete unit of work** that one agent handles entirely. **Clarify ambiguity upfront:** If the plan has unclear requirements or meaningful tradeoffs, use `AskUserQuestion` before writing the plan. Present options with descriptions explaining the tradeoffs. Use `multiSelect: true` for independent features that can be combined; use single-select for mutually exclusive choices. Don't guess when the user can clarify in 10 seconds. **Save to:** `**/plans/YYYY-MM-DD-<feature-name>.md` ## Plan Template ````markdown # [Feature Name] Implementation Plan > **Status:** DRAFT | APPROVED | IN_PROGRESS | COMPLETED ## Specification **Problem:** [What's broken, missing, or needed. Describe the current state and why it's insufficient. Be specific enough that someone unfamiliar with the codebase understands the issue.] **Goal:** [What the end state looks like after this work is done. Describe the user/developer experience, not the implementation.] **Scope:** [What's in and what's out. Explicit boundaries prevent scope creep.] **Success Criteria:** - [ ] Criterion 1 (measurable/verifiable) - [ ] Criterion 2 ## Context Loading _Run before starting:_ ```bash read src/relevant/file.ts glob src/feature/**/*.ts ``` ## Tasks ### Task 1: [Complete Feature Unit] **Context:** `src/auth/`, `tests/auth/` **Steps:** 1. [ ] Create `src/auth/login.ts` with authentication logic 2. [ ] Add tests in `tests/auth/login.test.ts` 3. [ ] Export from `src/auth/index.ts` **Verify:** `npm test -- tests/auth/` --- ### Task 2: [Another Complete Unit] **Context:** `src/billing/` **Steps:** 1. [ ] ... **Verify:** `npm test -- tests/billing/` ```` ## Task Sizing A task includes **everything** to complete one logical unit: - Implementation + tests + types + exports - All steps a single agent should do together **Right-sized:** "Add user authentication" - one agent does model, service, tests, types **Wrong:** Separate tasks for model, service, tests - these should be one task **Bundle trivial items:** Group small related changes (add export, update config, rename) into one task. ## Parallelization & Grouping During execution, tasks are **grouped by subsystem** to share agent context. Structure your plan to make grouping clear: ```markdown ## Authentication Tasks ← These will run in one agent ### Task 1: Add login ### Task 2: Add logout ## Billing Tasks ← These will run in another agent (parallel) ### Task 3: Add billing API ### Task 4: Add webhooks ## Integration Tasks ← Sequential (depends on above) ### Task 5: Wire auth + billing ``` **Execution model:** - Tasks under same `##` heading → grouped into one agent - Groups touching different subsystems → run in parallel - Max 3-4 tasks per group (split larger sections) Tasks in the **same subsystem** should be sequential or combined into one task. ## Rules 1. **Explicit paths:** Say "create `src/utils/helpers.ts`" not "create a utility" 2. **Context per task:** List files the agent should read first 3. **Verify every task:** End with a command that proves it works 4. **One agent per task:** All steps in a task are handled by the same agent ## Before Presenting Before presenting the plan to the user, dispatch the `ce:devils-advocate` agent via Task tool to review it: - Pass the full drafted plan text to the agent - Load relevant domain skills based on what the plan involves. Evaluate which of these apply and include them in the agent prompt: - `Skill(ce:architecting-systems)` - system design, module boundaries, dependencies - `Skill(ce:managing-databases)` - database schemas, queries, migrations - `Skill(ce:handling-errors)` - error handling patterns - `Skill(ce:writing-tests)` - test strategy and quality - `Skill(ce:optimizing-performance)` - performance-sensitive work - The agent will look for: unstated assumptions, missing edge cases, tasks that are too vague, missing dependencies between tasks, verification gaps - Incorporate valid feedback into the plan - Note what the review caught in a brief "Review notes" comment at the bottom of the plan Skip this step only if the plan is trivial (< 3 tasks, single subsystem, no architectural decisions). ## Large Plans For plans over ~500 lines, split into phases in a folder: ``` **/plans/YYYY-MM-DD-feature/ ├── README.md # Overview + phase tracking ├── phase-1-setup.md └── phase-2-feature.md ```
Related 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.