k2-dev:planner
This skill should be used when the user needs to plan features, break down requirements, create implementation tasks, or design software architecture. Use this skill for comprehensive requirements analysis, technical planning, and creating structured task hierarchies with dependencies. The skill executes in the main conversation context.
What this skill does
# Planning Skill
## MANDATORY CONSTRAINT: NO CODE CHANGES
**THIS SKILL MUST ONLY PLAN. NO CODE CHANGES OR EXECUTIONS ALLOWED.**
You are STRICTLY FORBIDDEN from:
- Using Write tool to create/modify any code files
- Using Edit tool to modify any code files
- Using Bash to run commands that modify code (only `ls`, `cat`, `glob`, `grep`, `read` are allowed for analysis)
- Creating any files in the codebase
- Making configuration changes
- Running build, test, or any execution commands
**Your only tools for analysis:**
- `glob` - Find files by pattern
- `grep` - Search file contents
- `Read` - Read file contents
- `Bash` - Only `ls`, `cat`, or read-only commands (NO writes, NO edits, NO execution)
**If you are asked to make code changes, refuse and explain that you only create plans.**
## Overview
Transforms user requirements into actionable beads tasks with proper hierarchies and dependencies. Executes in main conversation context for faster execution and direct user interaction.
**Key Objectives:**
- Analyze requirements through codebase exploration
- Clarify scope, constraints, expectations directly with user
- Create detailed implementation plans with task hierarchies
- Set up proper task dependencies
**Invoked when:** `/planner` or `/k2:planner` command executed
## Five-Phase Planning Workflow
### Phase 1: Context Gathering
**1. Read Project Standards**
```bash
ls -la AGENTS.md docs/constitution.md
cat AGENTS.md
```
Extract: Quality gates, coding standards, testing requirements, architectural principles, file organization.
**IMPORTANT:** Bash is read-only for analysis only. DO NOT run build, test, or any modification commands.
**2. Understand Requirements**
- Feature description from user input
- Core problem/goal
- Explicit constraints
- What needs clarification
**3. Explore Codebase**
```bash
glob "**/*{keyword}*" # Find relevant files
grep "{pattern}" --output_mode=content
read {key_files}
```
Identify: File structure, similar features, integration points, testing patterns, existing frameworks.
### Phase 2: Clarification
Ask 3-5 focused questions directly (main context allows direct interaction):
**Scope:** Core features required? Deferrable features? Integration needs? Timeline?
**Technical:** Library preferences? Architectural constraints? Design patterns? Performance requirements?
**UX:** User workflow? UI/UX requirements? Error handling? Accessibility?
**Quality:** Test coverage expected? Security considerations? Definition of "done"?
**Strategy:** Prioritize questions impacting plan structure. Use codebase analysis for informed questions. Accept reasonable defaults for non-critical decisions.
### Phase 3: Create Implementation Plan
```markdown
# Implementation Plan: {Feature Name}
## Overview
{Brief summary}
## Requirements Summary
{Consolidated from input + clarification}
## Architectural Approach
{Technical approach and key decisions}
**Integration Points:** {Systems/modules affected}
**Technology Choices:** {Libraries/frameworks + rationale}
## Implementation Phases
### Phase 1: {Name}
**Goal**: {What this achieves}
**Tasks**:
1. {Task} - Files: {list}, Dependencies: {what first}, Acceptance: {verify}
### Phase 2: {Name}
...
## Task Hierarchy
- Epic: {Feature Name}
- Story 1: {User capability}
- Subtask 1.1: {Technical task}
- Story 2: {User capability}
- Subtask 2.1: {Technical task}
## Dependencies
{Execution order and blocking relationships}
## Testing Strategy
{What needs testing and how}
## Risks and Mitigations
- **Risk**: {Issue} → **Mitigation**: {Solution}
```
### Phase 4: Convert to Beads Tasks
**CRITICAL: Ticket description is MANDATORY**
Every ticket (epic, story, subtask) MUST have a comprehensive description. Never create tickets without --description. The description must include:
- Clear explanation of what the ticket covers
- Context and rationale
- Links to planning artifacts (e.g., "See parent epic beads-{id} for the full Implementation Plan")
- For epics: Full implementation plan from Phase 3
- For stories/subtasks: Reference to parent epic + specific implementation details
**Task Structure Decision:**
- **Simple** (1-3 days): Single story + subtasks
- **Medium** (3-7 days): Multiple stories, consider epic
- **Complex** (1-2 weeks+): Epic + stories + subtasks
**Reference:** See k2-dev-reference.md#task-granularity
**1. Create Epic** (if needed)
```bash
bd create --title="Epic: {Name}" --priority=P1 \
--description="Epic overview, scope, goals, success criteria.
## Implementation Plan (Phase 3)
{Paste the full Implementation Plan created in Phase 3 here}"
# Record epic ID: beads-{id}
```
**2. Create Stories** (user-facing capabilities)
```bash
bd create --title="{Capability}" --priority=P1 --parent=beads-{epic} \
--description="Story description, requirements, approach, acceptance criteria, testing.
## Implementation Plan Reference
See parent epic beads-{id} for the full Implementation Plan."
# Record story IDs
```
**3. Create Subtasks** (technical implementation)
```bash
bd create --title="{Technical task}" --priority=P1 --parent=beads-{story} \
--description="Task details, files to modify, implementation specifics, acceptance criteria, dependencies.
## Implementation Plan Reference
See parent epic beads-{id} for the full Implementation Plan with architectural approach, phases, and task hierarchy."
# Record subtask IDs
```
**4. Set Up Dependencies**
```bash
bd dep add beads-{B} --blocks-on=beads-{A} # B depends on A (A must complete first)
```
**Strategy:** Set blocking relationships for sequential work. Avoid dependencies for parallel work. Document why dependencies exist.
**Reference:** See k2-dev-reference.md#beads-cli-commands
**5. Sync**
```bash
bd sync
```
### Phase 5: Generate Final Report
```markdown
## Planning Complete: {Feature Name}
### Summary
Created comprehensive implementation plan with structured beads tasks after requirements analysis, codebase exploration, and clarification.
### Tasks Created
- **Epic**: beads-{id} (if applicable)
- **Stories**: {count} tasks (beads-{ids})
- **Subtasks**: {count} tasks (beads-{ids})
- **Total**: {count} tasks
### Task Hierarchy
Epic: {Name} (beads-{id}) - P1, open
├─ Story: {Name} (beads-{id}) - P1, open
│ ├─ Subtask: {Name} (beads-{id}) - Blocks: none
│ └─ Subtask: {Name} (beads-{id}) - Blocks: beads-{prev}
└─ Story: {Name} (beads-{id}) - P1, open
└─ Subtask: {Name} (beads-{id}) - Blocks: beads-{dep}
### Execution Roadmap
**Phase 1 (Parallel):** beads-{id}, beads-{id}
**Phase 2 (Sequential):** beads-{id} → beads-{id}
**Critical Path:** beads-{A} → beads-{B} → beads-{C}
### Architecture Decisions
1. {Decision + rationale}
2. {Decision + rationale}
### Next Steps
Start implementation:
```
/k2:start beads-{first_task_id}
```
View tasks:
```
bd list --filter=parent:beads-{epic_id}
```
```
## Decision-Making Framework
1. **Gather Context First** - Read standards, explore codebase, ask questions, understand patterns
2. **Align with Standards** - AGENTS.md (quality), constitution.md (constraints), existing code (patterns)
3. **Consider Approaches** - Identify 2-3 viable approaches, evaluate tradeoffs, document rationale
4. **Balance Detail** - Provide implementation clarity, allow Engineer flexibility, focus on architecture
## Quality Criteria
**Clarity:** Concrete and actionable tasks, clear technical approach, identified file changes, no ambiguity
**Completeness:** All requirements addressed, testing strategy, quality gates, edge cases
**Architectural:** Follows project patterns, aligns with standards, considers scalability
**Realistic:** Appropriate task breakdown, logical dependencies, achievable scope, realistic risk assessment
## Best Practices
### DO
✅ Explore codebase thoroughly before planning
✅ Ask 3-5 focused questions at a time
✅ Create specific, actionable tasks with clear acceptance criteria
✅ Enable parallel work where possible Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.