From manifest-dev
Analyzes recent /define sessions to extract user preference patterns like probing styles and trade-offs, then writes them to CLAUDE.md after approval. Improves future /define consistency.
npx claudepluginhub doodledood/manifest-dev --plugin manifest-devThis skill uses the workspace's default tool permissions.
**User request**: $ARGUMENTS
Analyzes Claude Code sessions to improve CLAUDE.md instructions and capture learnings. Quick mode suggests CLAUDE.md tweaks; deep mode reviews problems, patterns, preferences, and gaps.
Generates Growth Map from Claude Code session patterns and insights data, integrating epistemic profile for protocol recommendations with execution and epistemic resolution.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
User request: $ARGUMENTS
Analyze recent /define session transcripts, extract patterns in how the user approaches /define interviews (probing preferences, trade-off defaults, recurring invariants, process guidance, quality gate adjustments), and write generalizable patterns to CLAUDE.md as ## /define Preferences. Future /define sessions see these preferences automatically because CLAUDE.md is loaded into context.
Every /define session, users make the same corrections, add the same invariants, resolve the same trade-offs. Without learning, each session starts from zero. This skill closes the feedback loop: patterns from past sessions become probing hints for future ones.
| Constraint | Rule |
|---|---|
| User approval required | NEVER write to CLAUDE.md without presenting patterns to the user and getting explicit approval. |
| Merge, never overwrite | If a ## /define Preferences section already exists, merge new patterns with existing ones. Never blindly overwrite. |
| Semantic deduplication | When merging, identify patterns that say the same thing in different words and consolidate them. Don't just check for exact text matches. |
| Standard markdown only | Output uses ## headers, ### subheaders, - bullets, and <!-- date --> HTML comments. No custom syntax, no YAML, no special parsing. |
| Ask write target | Ask the user which CLAUDE.md to write to: project CLAUDE.md, user ~/.claude/CLAUDE.md, or both. Never assume. |
| Diff preview before write | Show the user exactly what will be added or changed in CLAUDE.md before writing. |
| Clean up temp files | Delete per-session analysis files from /tmp/ after aggregation is complete. |
Session JSONL files live at ~/.claude/projects/{project-path-encoded}/{session-id}.jsonl. Find recent sessions containing /define activity. If $ARGUMENTS specifies a session count, use that; otherwise use enough recent sessions for meaningful pattern signal.
No sessions found: Tell the user: "No /define sessions found in recent session history. Run a few /define sessions first, then try again."
Malformed files: Skip with a warning noting which files were skipped and why.
Use the define-session-analyzer agent to analyze each session independently. Each agent receives a session file path and an output path (/tmp/define-learn-{session-id}.md). Sessions with zero extractable patterns are normal — count them in the final summary.
The final output is a unified set of user preferences derived from all analyzed sessions.
Quality criteria for the aggregated output:
What the user sees before approving:
~/.claude/CLAUDE.md, or both## /define Preferences
### Probing Hints
- Pattern statement here <!-- 2026-03-01 -->
### Trade-off Defaults
- Pattern statement here <!-- 2026-03-01 -->
### Recurring Invariants
- Pattern statement here <!-- 2026-03-01 -->
### Process Guidance
- Pattern statement here <!-- 2026-03-01 -->
### Quality Gate Adjustments
- Pattern statement here <!-- 2026-03-01 -->
### Other
- Pattern statement here <!-- 2026-03-01 -->
When merging with an existing ## /define Preferences section: preserve all existing patterns and their date comments, deduplicate new patterns against existing ones by meaning (not just text match), add new patterns under the appropriate subcategory headers, and omit empty subcategories.
Precedence: When future /define sessions encounter a conflict between built-in task file guidance and patterns in ## /define Preferences, the user's patterns represent intentional preferences and take precedence.
Traceability: Each pattern includes an inline <!-- YYYY-MM-DD --> date comment. Users remove patterns by editing CLAUDE.md directly — no special tooling needed.
After writing, output a summary: sessions analyzed, sessions with patterns (and sessions with zero patterns), patterns extracted, patterns approved, contradictions found, and which CLAUDE.md was written to.