plan-manager
Manage plans and context documents with automatic indexing
What this skill does
# Plan Manager Skill
Manage workflow plans and context documents with automatic file tracking and indexing.
## Commands
### Create Plan
Creates a new plan document with timestamp-based naming.
**Usage**: `create-plan <title> --workflow <name>`
**Example**:
```
create-plan "Add contact form" --workflow tdd
```
**Creates**: `.claude/plans/active/YYYY-MM-DD--add-contact-form.md`
### Update Step
Updates the status of a specific step in an active plan.
**Usage**: `update-step <plan-slug> <step-number> <status>`
**Status options**: `pending`, `in_progress`, `completed`, `blocked`
**Example**:
```
update-step add-contact-form 1 in_progress
```
### Create Context
Creates a new context document for a codebase area.
**Usage**: `create-context <title> --areas <area1,area2>`
**Example**:
```
create-context "Authentication" --areas auth,security,api
```
**Creates**: `.claude/context/auth--context.md`
### Update Indexes
Regenerates all index files from current markdown files.
**Usage**: `update-indexes`
**Updates**:
- `.claude/indexes/_plans.md`
- `.claude/indexes/_context.md`
- `.claude/indexes/_workflows.md`
### Archive Plan
Moves a completed plan to the archive directory.
**Usage**: `archive-plan <plan-slug>`
**Example**:
```
archive-plan add-contact-form
```
**Moves**: `.claude/plans/active/` → `.claude/plans/archive/`
### List Active
Lists all active plans with their current status.
**Usage**: `list-active` or `list-plans`
## File Naming Conventions
### Plans
- Format: `YYYY-MM-DD--[slug].md`
- Location: `.claude/plans/active/` (or `/archive/` when completed)
- Slug derivation: lowercase, hyphen-separated words
### Context
- Format: `[area]--context.md`
- Location: `.claude/context/`
- Example: `auth--context.md`, `routing--context.md`
### Indexes
- Format: `_<type>.md`
- Location: `.claude/indexes/`
- Auto-generated, never manually edited
## Workflow Integration
When using any workflow (TDD, UI-iteration, Bug-fix), the plan manager automatically:
1. **Plan Phase**: Creates a plan document if the task is complex
2. **Execution**: Updates step statuses as you progress
3. **Completion**: Marks the plan as completed and archives it
4. **Context**: Creates or updates context documents for areas explored
## Token Efficiency Guidelines
Context documents should reference source files rather than duplicate content:
**DO**:
```markdown
## Source Files
- [src/lib/auth.ts](src/lib/auth.ts) - JWT utilities
- [src/middleware.ts](src/middleware.ts) - Route protection
```
**DON'T**:
```markdown
## Source Files
src/lib/auth.ts contains:
```typescript
export function jwtSign(payload) { ... }
```
```
## Frontmatter Schema
### Plan Document
```yaml
---
created: 2025-01-10
started: null # null if still in planning phase
updated: 2025-01-10 # null if never updated
completed: null # null until done
status: planning|in_progress|blocked|completed|archived
workflow: tdd|ui-iteration|bug-fix
related_context:
- auth--context.md
priority: p1|p2|p3 # P1=Critical, P2=Important, P3=Nice-to-Have
quality_gates_passed: false # Set to true when all quality gates pass
scrutiny: # Added after plan scrutiny (Step 3.5)
p1_findings: 0
p2_findings: 0
p3_findings: 0
confidence_score: 95
---
```
**Severity Classification (P1/P2/P3):**
See the `quality-severity` skill for detailed classification guidelines:
- **P1 (Critical)**: Blocks implementation - must be addressed before proceeding
- Security vulnerabilities
- Data corruption risks
- Breaking changes
- Missing critical context
- **P2 (Important)**: Should address - significant issues that impact quality
- Performance concerns
- Architectural issues
- Code clarity problems
- Missing edge cases
- **P3 (Nice-to-Have)**: Consider addressing - improvements and optimizations
- Code cleanup
- Minor optimizations
- Documentation improvements
- Style consistency
### Context Document
```yaml
---
created: 2025-01-10
updated: null # null if never updated
areas:
- auth
- security
related_plans:
- 2025-01-10--add-contact-form.md
---
```
## Implementation Notes
- The `update-indexes` command is a shell script: `.claude/bin/update-indexes.sh`
- Indexes are sorted by last modified time (newest first)
- Status is extracted from frontmatter `status:` field
- Description comes from frontmatter `description:` field or first heading
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.