skills/mp-harvest-decisions/SKILL.md
Scan recent Claude Code sessions for grilling/design discussions, extract decisions, and update CONTEXT.md + DECISIONS.md. Use when: "harvest decisions", "extract decisions from sessions", "update docs from sessions", "sync decisions"
npx skillsauth add MartinoPolo/mpx-claude-code mp-harvest-decisionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scan Claude Code session transcripts for grilling and design-refinement discussions. Extract decisions, categorize them, and update .mpx/CONTEXT.md and .mpx/DECISIONS.md.
~/.claude/projects/*worktrees* in the project name)$ARGUMENTS as days-back (default 30). Filter to session files modified within that window.Search session JSONL files for actual skill invocations — not just mentions in available-skills lists.
Primary signal (high confidence): "name":"Skill" paired with "mp-grill" or "gk-design-brief" or "gk-design-refine" in the same file.
Secondary signal (check if primary yields <5 results): Look for AskUserQuestion tool calls with option arrays containing design/architecture decisions.
Record the file path and size for each matching session.
Spawn Sonnet sub-agents to read session files in parallel. Group ~3-4 sessions per agent.
Each agent's prompt:
Read these JSONL session files. Each line is a JSON object with
roleandcontentfields. Find all grill/design discussion segments by locatingAskUserQuestiontool calls and the user's responses.For each decision found, extract:
- Topic: What was being decided (e.g., "issue card color identity", "session chat layout")
- Question: The question that was asked
- Answer: The user's chosen answer
- Rationale: Why this was chosen (if stated)
- Category: One of: Platform, UI-Design, Data-State, Session-Providers, Workflow, Domain-Language
Skip: tool call details, code output, implementation work. Only extract decision Q&A pairs.
Output as a markdown list, one entry per decision.
Read .mpx/CONTEXT.md and .mpx/DECISIONS.md to understand what's already documented. If either doesn't exist, create it using the templates from skills/shared/DOCUMENTATION_STRATEGY.md.
Also read any existing memory files in ~/.claude/projects/*/memory/project_*.md for previously summarized decisions.
With all raw extractions in hand:
If conflicts exist, present each one to the user via AskUserQuestion:
Conflict: [topic] Session A (date): chose X because Y Session B (date): chose Z because W Which decision stands?
Present a summary of proposed changes before writing:
CONTEXT.md updates:
**Term** — Definition.) individually and ask the user whether to add it. Write only confirmed terms.DECISIONS.md updates:
### Title + Decided: date + What: + Why: + Rejected:Ask user to confirm before writing. Apply edits to existing files (do not overwrite).
If decisions were previously stored in memory files (project_prd*_decisions.md, project_*_grilling.md), suggest which memory files are now redundant since their content has been captured in the project docs.
Summarize:
development
Audit all active skills for consistency, convention drift, and common issues. Auto-fixes where possible, reports remaining issues. Use when: "audit skills", "skill audit", "check skills", "lint skills"
testing
Ship finished work: sync base, commit, push, PR, wait for CI green, merge. Use when: "ship it", "ship and merge", "ship this"
tools
Consolidate CONTEXT.md: remove duplicates, outdated items, tighten language. Use when: "consolidate context", "clean up context", "simplify context", "consolidate requirements"
tools
Consolidate CONTEXT.md (or legacy REQUIREMENTS.md): remove duplicates, outdated items, tighten language. Use when: "consolidate requirements", "clean up requirements", "consolidate context", "simplify context".