Create TDD implementation plans from direct feature requests. Use when user provides a task description like "add X feature", "create Y function", or "implement Z". Creates Linear issues in Todo state. Faster than plan-backlog for ad-hoc requests that don't need backlog tracking.
Create a TDD implementation plan directly from inline instructions in $ARGUMENTS. Creates Linear issues in Todo state.
Before doing anything else, verify git state:
git branch --show-currentmain or master:
git checkout main"git status --porcelaingit fetch origin && git status -unogit pull origin main"Only proceed to PLANS.md check if git state is clean.
Use plan-inline instead of plan-backlog when:
Use plan-backlog instead when:
Before doing anything, read PLANS.md and check for incomplete work:
If PLANS.md is empty or has "Status: COMPLETE" → proceed with planning.
Verify Linear MCP: Call mcp__linear__list_teams. If unavailable, STOP and tell the user: "Linear MCP is not connected. Run /mcp to reconnect, then re-run this skill."
Read CLAUDE.md to find the LINEAR INTEGRATION section. Look for:
If CLAUDE.md doesn't have a LINEAR INTEGRATION section, call mcp__linear__list_teams to discover the team name dynamically.
Store the discovered team name in a variable for use throughout the skill.
$ARGUMENTS should contain the task description with context:
Example arguments:
Add a function to calculate nutritional score from scanned food dataCreate a new route /api/scan that processes food barcode imagesUpdate food detail page to show allergen warningsIMPORTANT: Do NOT hardcode MCP names or folder paths. Always read CLAUDE.md to discover:
Available MCP servers - Look for the "MCP SERVERS" section to find:
get-logs, list-deployments, list-services, list-variables)list_issues, get_issue, create_issue, etc.)Project structure - Look for "STRUCTURE" section to understand:
Folder structure - Look for "FOLDER STRUCTURE" section to understand:
Git pre-flight check - Ensure on clean main branch (see Git Pre-flight Check section)
Read PLANS.md - Pre-flight check
Read CLAUDE.md - Understand TDD workflow, agents, project rules, available MCPs, discover team name
Parse $ARGUMENTS - Understand what needs to be implemented
Explore codebase - Use Glob/Grep/Task to find relevant files and understand patterns
Gather MCP context - If the task relates to:
Generate plan - Create TDD tasks with test-first approach
Write PLANS.md - Overwrite with new plan
Validate plan against CLAUDE.md - Re-read CLAUDE.md and cross-check each task for missing defensive specs: error handling on external calls, timeout values where network or I/O is involved, edge cases (empty input, null values, partial results). Fix any gaps before proceeding.
Cross-cutting requirements sweep - Scan the entire plan for the patterns below. If a pattern appears in any task, verify the corresponding specification exists in that task's steps. If missing, add it before finalizing the plan.
| Pattern Detected in Plan | Required Specification | |--------------------------|----------------------| | Network calls (HTTP clients, external APIs) | Timeout value and timeout error handling behavior | | Error messages shown to users (UI error states, toasts, notifications) | Sanitization — generic user message displayed, raw error logged only | | Async operations triggered by user actions (button clicks, form submits) | Cancellation or debouncing of in-flight work before starting new | | External service calls (third-party APIs, storage, messaging) | Error handling (catch) and behavior on failure | | Write operations to persistent storage (DB, files, queues) | Atomicity or rollback semantics on failure | | Repeated or concurrent user-triggered operations | Guards against duplicate submissions or race conditions |
Create Linear issues - Create issues in Todo state for each task
When to explore:
How to explore:
src/**/*.ts, **/*.test.tssubagent_type=Explore for broader questions about the codebaseWhat to discover:
Read references/plans-template.md for the complete template.
Source field: Inline request: [Summary of $ARGUMENTS]
Include: Context Gathered (Codebase Analysis + MCP Context), Tasks, Post-Implementation Checklist, Plan Summary. Omit: Investigation subsection, Triage Results subsection.
After writing PLANS.md, create a Linear issue for each task:
Use mcp__linear__create_issue with:
team: [Discovered team name from CLAUDE.md or mcp__linear__list_teams]title: Task namedescription: Task details from PLANS.mdstate: "Todo"labels: Infer from task type (Feature, Improvement, Bug)Update PLANS.md to add **Linear Issue:** [PROJ-N](url) to each task
Each task must be:
Good task example:
### Task 1: Add calculateNutritionalScore function
1. Write test in src/utils/nutrition.test.ts for calculateNutritionalScore
- Test valid food data returns correct score
- Test missing nutrients returns partial score
- Test empty input returns zero score
- Follow existing utility function patterns
2. Run verifier (expect fail)
3. Implement calculateNutritionalScore in src/utils/nutrition.ts
- Use Nutri-Score algorithm
- Follow existing function signature patterns
4. Run verifier (expect pass)
Bad task example:
### Task 1: Add nutrition scoring
1. Add function
2. Test it
Discover available MCPs from CLAUDE.md's "MCP SERVERS" section. Common patterns:
Deployment MCPs (Railway) - Use when task involves:
Issue Tracking MCPs (Linear) - Use when task involves:
If CLAUDE.md doesn't list MCPs, skip MCP context gathering.
| Situation | Action | |-----------|--------| | PLANS.md has incomplete work | Stop and tell user to review/clear PLANS.md first | | $ARGUMENTS is empty or unclear | Ask user to provide a clearer task description | | CLAUDE.md doesn't exist | Continue without project-specific rules, use general TDD practices | | Codebase exploration times out | Continue with partial context, note limitation in plan | | MCP not available | Skip MCP context gathering, note in plan what was skipped | | Task too vague to plan | Ask user for specific requirements before proceeding |
MIGRATIONS.md.if (!session.x) check after the existing !session.y check") are fine.This skill creates plans. It does NOT implement them.
Follow the termination procedure in references/plans-template.md: output the Plan Summary, then create branch, commit (no Co-Authored-By tags), and push.
Do not ask follow-up questions. Do not offer to implement. Output the summary and stop.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer