/reflect:reflect-architecture [optional focus, e.g. deploy workflow or session issue]from reflect
Analyze the current conversation and determine the smallest durable change to Claude Code setup: update CLAUDE.md, patch an existing skill, create a new skill, split or merge skills, introduce a subagent, add hooks, connect MCP, or scaffold a plugin. Use after a failed workflow, repeated user correction, or when a session exposes a missing capability.
Ships in reflect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze the current conversation and any directly referenced artifacts to find the smallest durable change that would prevent the same failure from recurring.
Look for:
Ignore:
For each finding, choose exactly one primary target:
| # | Target | When to choose |
|---|---|---|
| 1 | CLAUDE.md rule | Rule should apply in every conversation |
| 2 | Existing skill patch | Skill exists but has wrong steps, criteria, or format |
| 3 | New skill | Repeatable user-invoked workflow with no existing home |
| 4 | Split skill | One skill covers too many concerns |
| 5 | Merge skills | Multiple skills overlap significantly |
| 6 | New subagent | Task floods context, needs a specialist worker, or should return only summary |
| 7 | Orchestrator skill | Skill that coordinates one or more subagents |
| 8 | Hook | Step must always execute without model discretion |
| 9 | MCP integration | Required data or actions live outside Claude Code |
| 10 | Plugin packaging | Solution spans skills, agents, hooks, or MCP across repositories |
| 11 | No durable change needed | Signal is one-off or already addressed |
/invoke trigger and describe
at least 3 distinct future scenarios where it would fire.context: fork is good for research (code, logs, PRs) but bad for reflecting
on the current conversation — forked skills lose conversation history.For each finding, show:
Ask the user whether to:
| Target | Action |
|---|---|
| CLAUDE.md rule | Edit the narrowest-scope CLAUDE.md (local > user > global) |
| Existing skill patch | Edit the skill's SKILL.md |
| New skill | Create skills/<name>/SKILL.md (or plugin path if inside a plugin) |
| Split skill | Create new skills, then edit the original to narrow its scope |
| Merge skills | Consolidate into one skill, remove the other |
| New subagent | Create .claude/agents/<name>.md |
| Orchestrator skill | Create skill that uses Agent tool to dispatch subagents |
| Hook | Update the narrowest safe settings.json scope |
| MCP integration | Scaffold config and usage notes; do not assume credentials |
| Plugin packaging | Scaffold structure only unless explicitly asked to finish |
context: fork) to preserve access to conversation
history. If you need to analyze saved logs or external artifacts instead,
consider a forked variant.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub materkey/cc-plugins --plugin reflect