From praxis
Post-session skill to reflect on what was built and produce improvement proposals. Reads recent git history, artifacts, and context files to extract learnings for skills, CLAUDE.md, hooks, and plan templates. Use after any substantive session as a post-mortem or retrospective.
How this skill is triggered — by the user, by Claude, or both
Slash command
/praxis:reflectThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Post-session learning loop:** Capture what worked, what caused friction, and embed those insights back into the codebase's context engineering.
Post-session learning loop: Capture what worked, what caused friction, and embed those insights back into the codebase's context engineering.
After coding sessions, learnings about workflow friction, missing context, and skill gaps evaporate. The Reflect skill closes this loop by:
Output: Reflection artifact at .light/YYYY-MM-DD-{topic}-reflection.md
Use this skill when:
Don't use for:
If the trigger includes a topic, use it. Otherwise, use AskUserQuestion to ask:
Derive a reflection slug from the topic (e.g., auth-feature, payment-refactor).
CRITICAL: Dispatch ALL agents in a SINGLE message with run_in_background: true.
Agents need full tool access, so this step MUST happen before plan mode.
See agent prompts for full templates.
| Agent | Type | What It Reads |
|---|---|---|
| Git Historian | Explore | git log --oneline -20, git diff HEAD~5..HEAD --stat |
| Artifact Scout | Explore | .light/ files from last 14 days |
| Context Reader | Explore | ./CLAUDE.md, ~/.claude/CLAUDE.local.md, .claude/settings.json |
| Skill Inspector | Explore | SKILL.md files for skills used in the session |
The reflection artifact MUST include an Agent Dispatch Manifest table documenting the agents dispatched:
## Agent Dispatch Manifest
| Agent | Type | Status | Key Finding |
|-------|------|--------|-------------|
| Git Historian | Explore | completed | {1-line summary} |
| Artifact Scout | Explore | completed | {1-line summary} |
| Context Reader | Explore | completed | {1-line summary} |
| Skill Inspector | Explore | completed | {1-line summary} |
This table provides observable evidence of parallel agent dispatch.
If git is unavailable (e.g., eval sandbox), include a Commits (Simulated) section in the reflection artifact listing the commits that would have been created:
## Commits (Simulated)
- `reflect: {description of improvement 1}`
- `reflect: {description of improvement 2}`
TaskOutput block: false to check progressTaskOutput block: trueTaskOutput is unavailable, run agents in foreground mode (omit run_in_background) and collect results directlyCall EnterPlanMode — synthesis is a read/write-only activity.
Use the reflection artifact template to structure the output.
Cross-reference agent findings to identify:
Categorize each improvement using the taxonomy from the improvement guide.
Improvement types:
| Type | Target | Example |
|---|---|---|
skill-update | A SKILL.md | Add missing anti-pattern to /implement |
claude-md | ./CLAUDE.md or ~/.claude/CLAUDE.local.md | Document new convention |
hook | .claude/settings.json | Add PreToolUse reminder |
plan-template | A references/template.md | Add missing section |
new-skill | New skill directory (sketch only) | Outline a /standup skill |
Constraints:
Write the reflection artifact to the plan file.
Call ExitPlanMode to present the reflection for review.
Then use AskUserQuestion to list each proposal with its type and target. Ask the user to pick: All / None / specific items by number.
For each approved proposal:
Edit or Writereflect: <description>One improvement per commit. Do NOT bundle multiple changes.
Save the reflection artifact:
.light/YYYY-MM-DD-{topic}-reflection.md
Commit with: reflect: add session reflection for {topic}
~/.claude/CLAUDE.md — it's auto-overwritten by tech-pass; use ~/.claude/CLAUDE.local.md.claude/settings.json firstOnce improvements are applied:
.light/git log --oneline -5npx claudepluginhub 8thlight/lightfactory --plugin praxisAnalyzes 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.
Reflects on the current Claude Code session to produce a structured retrospective with what went well, what didn't, and actionable takeaways.
Reviews completed coding sessions to extract actionable improvements: DX friction, documentation gaps, architecture issues, anti-patterns, bug prevention, and tooling updates.