Skip to content

About

Independent Claude Code content framework with commands, agents, modes, and hook-enforced workflows

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2,138 Commits

Folders and files

Repository files navigation

πŸš€ superclaude

A Claude Code content framework β€” fork-origin, now its own project

Version Tests License

Origin & relationship to upstream. superclaude started as a fork of SuperClaude_Framework (Kazuki Nakai, NomenAK, Mithun Gowda B). It has since diverged β€” different MCP set, insight pipeline, scope-explicit install, tightened workflow gates β€” and is no longer a downstream of upstream. The two projects share neither roadmap nor maintainers.


πŸ“Š At a glance

Commands Agents Modes MCP Servers
35 5 6 3
Slash Isolated workers Behavioral Integrations

35 slash commands cover the development lifecycle from brainstorming to deployment. 6 behavioral modes auto-load on matching flags and keywords.


🎯 Overview

superclaude is a content framework for Claude Code: a directory of markdown (commands, agents, output styles, modes, MCP docs, core rules) plus a small CLI / pytest plugin that installs that content into Claude Code's content directories β€” ~/.claude/ (user), ./.claude/ (project, committed), or ./.claude/ (local, personal β€” kept out of git through the clone's .git/info/exclude).

Claude Code reads those files at session start, which is how the framework changes its behavior. There is no runtime engine, no daemon, no proxy.

Disclaimer. This project is not affiliated with or endorsed by Anthropic, nor by the upstream SuperClaude Framework. Claude Code is built and maintained by Anthropic.


⚑ Quick Installation

Current Stable Version (v4.34.4)

There are three ways to install, from quickest to most customizable:

  1. Quick install (this section) runs the release as-is.
  2. Clone install runs your own copy from a local clone, so you can edit the commands, agents, modes and rules.
  3. Fork install is a clone install whose copy lives in your own GitHub fork. It is the recommended way to make the framework your own.

superclaude ships markdown content (commands, agents, modes, MCP docs, core rules, hooks) plus a small CLI that copies it into Claude Code's content directories.

1. Install the CLI

uv tool install -p 3.13 git+https://github.com/ajitta/superclaude.git@stable

No clone needed. stable is the latest release; to pin one, replace @stable with its tag, @v<version> (see Releases). If your shell then can't find superclaude, run uv tool update-shell and open a new terminal.

2. Install framework content with superclaude install

superclaude install                    # default: --scope user (~/.claude/, global)
superclaude install --scope project    # team-shared, committed to ./.claude/
superclaude install --scope local      # personal-in-team-repo (./.claude/, kept out of git via
                                       #   .git/info/exclude; settings.local.json + CLAUDE.local.md)
superclaude install --force            # overwrite an existing install
superclaude install -i                 # interactive wizard (scope β†’ preview β†’ confirm)
superclaude install --list             # list the slash commands, install nothing
superclaude install --list-all         # show every component + its install status

What gets installed (per scope):

<scope>/
β”œβ”€β”€ commands/sc/        # 35 slash commands (/sc:plan, /sc:implement, …)
β”œβ”€β”€ agents/             # 5 agent definitions
β”œβ”€β”€ output-styles/      # output styles (pick one via /config β†’ Output style)
β”œβ”€β”€ skills/             # sc-author, sc-prompt (shared with your own skills)
β”œβ”€β”€ superclaude/        # core rules, modes, mcp docs, doc-scaffold templates
β”œβ”€β”€ hooks/hooks.json    # SessionStart / PreCompact / SessionEnd / etc.
└── settings(.local).json  # framework hooks merged in (your existing hooks preserved)

Every hook command is superclaude hook <name> β€” no interpreter path, no script copy β€” so a project-scope settings.json is the same bytes on every machine and can be committed. A reinstall over an older release rewrites its <python> …/<script>.py registrations to that form. Runtime state (.claude/.superclaude_hooks/, pending insights) stays out of git through the clone's .git/info/exclude, never your .gitignore.

3. Install MCP servers (optional)

superclaude mcp                        # interactive picker (installs only what you pick; default scope: user)
superclaude mcp --list                 # list available servers
superclaude mcp --servers tavily playwright
superclaude mcp --scope project        # write to ./.mcp.json (team-shared)
superclaude mcp --scope local          # per-project block inside ~/.claude.json

4. Verify

superclaude install --list-all          # component-by-component status
superclaude doctor                      # pytest plugin, hooks, CLAUDE_SC import, `superclaude` on PATH
superclaude verify-drift                # detect drift between source and installed copy
superclaude --version

Restart Claude Code, then try a few:

  • /sc:brainstorm β€” Socratic discovery for vague requests
  • /sc:plan β€” Detailed TDD implementation plans
  • /sc:implement β€” Code implementation
  • /sc:review β€” Multi-dimensional review (code/plan/design)
  • /sc:research β€” Deep web research (Tavily-enhanced)
  • /sc:insight β€” Capture structured session insights to JSONL
  • /sc:help β€” List all 35 commands

Not sure what to run next? Ask a side question with /btw. It answers from the conversation so far, works while Claude is still busy, and never enters the conversation history. It has no tools, so it answers only from what the session already holds:

/btw based on what we just did, which /sc command should I run next, and why?

To keep a command running until a result holds, put it in a /goal. /goal sets a completion condition, and Claude keeps working turn after turn until a separate model judges it met. The condition is also Claude's first instruction, so a command named in it runs as part of the goal:

/goal sc:review the current diff, fix every finding, and review again until it reports none

Run /goal alone to check progress, or /goal clear to stop early.

Update

uv tool upgrade superclaude            # pull the latest release
superclaude update                     # default: --scope user
superclaude update --scope project     # refreshes an existing install; refuses where there is none

Uninstall

superclaude uninstall --dry-run        # preview, no changes
superclaude uninstall                  # default: --scope user, asks to confirm
superclaude uninstall -y               # skip confirmation
superclaude uninstall --scope project  # remove from ./.claude/
superclaude uninstall --scope local    # also removes CLAUDE.local.md + its .git/info/exclude block
superclaude uninstall --keep-settings  # leave settings.json hooks alone
superclaude uninstall --remove-mcp     # also unregister framework-installed MCP servers
                                       #   (default keeps them β€” they're shared with other tools)
uv tool uninstall superclaude          # finally, remove the CLI itself

The uninstall is marker-based: it removes only the hooks and the @superclaude/CLAUDE_SC.md import that the installer wrote. User-added hooks, MCP servers, and CLAUDE.md content are preserved unless you explicitly opt out. A file or directory left holding only what the installer made goes too: an empty agent-memory store, a CLAUDE.md with only its # Claude Code Configuration heading, a settings file that held only superclaude hooks. What you or your agents wrote stays: agent memory with content (at local scope uninstall warns that git stops ignoring it), and the per-project .claude/insights.jsonl and .claude/insights.pending.jsonl.

CLI scope summary

Command Scopes Default
superclaude install / update / uninstall user, project, local user
superclaude mcp user, project, local user
Scope Path When to use
user ~/.claude/ (or $CLAUDE_CONFIG_DIR when set, the directory Claude Code then reads) Personal global install (default β€” daily use)
project ./.claude/ (committed) Team-shared, checked into git
local ./.claude/ (kept out of git via .git/info/exclude) Personal install inside a team repo (uses settings.local.json, CLAUDE.local.md)

Optional MCP servers

The framework is fully functional without any MCP server. Each one adds a capability its flag switches on:

  • Tavily β€” web search / extract / crawl / map / research. Recommended as Agent Skills (Tavily CLI tvly init, or npx skills add https://github.com/tavily-ai/skills); the MCP server is the optional in-conversation alternative (--tavily)
  • Context7 β€” official documentation lookup, enabled as a claude.ai connector rather than through superclaude mcp (--c7)
  • Playwright, Chrome DevTools β€” browser automation and performance audits (--play, --perf)

Source of truth for each server's usage: src/superclaude/mcp/MCP_*.md and src/superclaude/mcp/README.md.

πŸ“₯ Clone install

Run your own copy from a local clone of this repository and edit it. No GitHub account is needed, and every step needs only git, uv and the superclaude CLI. To keep your copy on GitHub, use Fork install instead.

1. Clone the repository

git clone -b stable https://github.com/ajitta/superclaude.git
cd superclaude

stable is the latest release.

2. Set up the environment

uv venv -p 3.13
uv pip install -e ".[dev]"

Don't run uv sync: it removes the dev tools installed above, and the tests stop running.

3. Run the CLI from your clone

uv tool install --force --editable .

superclaude now reads your clone, so later edits need no reinstall. Moving or deleting the clone breaks the CLI and its hooks. If you installed the release before, this replaces it. If your shell can't find superclaude, run uv tool update-shell and open a new terminal.

4. Install the content

superclaude install --scope user       # or, inside a project: --scope project / --scope local

The scopes are explained in the CLI scope summary. Restart Claude Code afterwards.

5. Edit, then sync

Change the files under src/superclaude/ (commands, agents, modes, rules, output styles), copy them into the scope you use, and restart Claude Code:

superclaude update --scope user

6. Run the tests

The markdown is tested too (counts, cross-references, structure), so run them after content edits as well:

uv run pytest

7. Pull in new releases

Commit your edits first. Then merge the new release, resolve any conflicts with your changes, reinstall the CLI in case dependencies changed, and refresh each scope you installed:

git pull --no-rebase origin stable
uv tool install --force --editable .
superclaude update --scope user

To remove everything, see Uninstall. If you have make, make deploy, make sync-user and make test wrap these commands; see the Makefile.

Files to read before you customize:

File Purpose
CLAUDE.md β†’ AGENTS.md Project rules: env (UV), make targets, how to run the tests, git workflow
src/superclaude/ARCHITECTURE.md Content-framework taxonomy β€” directory roles, delivery pipelines, content types
src/superclaude/CLAUDE_SC.md The always-loaded import chain β†’ core/FLAGS.md, PRINCIPLES.md, RULES.md
.claude/rules/ Authoring specs, one per content type (agents, commands, modes, MCP docs, output styles, skills), plus the content-quality and format rules
.claude/rules/gotchas/ Project-specific traps (e.g. do not Read sub-agent *.output files)
SECURITY.md Security disclosure policy

Claude Code auto-loads CLAUDE.md and the core/ import chain at session start, so the rules apply to every interaction inside this repo.

🍴 Fork install (recommended)

A clone install whose copy lives in your own GitHub fork: your edits are backed up, and you can use the same copy on every machine. Follow Clone install with these changes:

  1. Before step 1, fork the repository on GitHub. Copying only the stable branch, the default, is enough.

  2. In step 1, clone your fork instead:

    git clone https://github.com/<your-account>/superclaude.git
    cd superclaude
  3. After committing your edits, push them to your fork with git push.

  4. In step 7, add this repository as upstream once, then pull new releases from it:

    git remote add upstream https://github.com/ajitta/superclaude.git   # once
    git pull --no-rebase upstream stable
    uv tool install --force --editable .
    superclaude update --scope user

🧭 Workflows

The framework's value comes from chaining commands. Each chain has gates: the commands tell the model to stop until a step's output is committed (or explicitly approved). These gates are model-followed prose; only the three guard hooks below block mechanically. Pick the chain that matches the task's blast radius β€” don't pay brainstorm-level overhead for a typo, and don't skip design for a system rewrite.

By task size

Tier Trigger Recommended chain
Trivial Typo Β· 1-line fix Β· rename Β· obvious bug with known fix Direct edit. No /sc:* needed.
Small Single file Β· ≀ 50 added lines Β· clear scope Direct request (or /sc:improve) with the global --plan (5-line plan, approve) β†’ /sc:test
Medium 3–10 files Β· multi-purpose Β· clear requirements /sc:plan β†’ /sc:implement --plan β†’ /sc:test β†’ /sc:reflect (optional: /sc:intent first, /sc:review --scope branch before /sc:test)
Large > 10 files Β· cross-cutting Β· ambiguous scope Β· new system /sc:intent β†’ /sc:brainstorm β†’ /sc:review --scope spec β†’ /sc:design β†’ /sc:plan β†’ /sc:implement --plan β†’ /sc:review --scope branch β†’ /sc:test β†’ /sc:reflect (or the whole chain from one prompt: /sc:intent --through, below)

The full chain (large tasks)

/sc:intent   β†’   /sc:brainstorm   β†’   /sc:review --scope spec   β†’   /sc:design   β†’   /sc:plan   β†’   /sc:implement --plan   β†’   /sc:review --scope branch   β†’   /sc:test   β†’   /sc:reflect
   capture          discover           gate             specify           decompose       build (TDD)                 code review                   verify        learn
   (own words)      (Socratic)         (multi-lens)     (architecture)    (phases)        (per task)                  (spec + quality)              (baseline)    (capture)
Step Output Required before next step (model-followed)
/sc:intent docs/features/<slug>/00-intent.md β€” problem, proposed outcome, affected users and systems, constraints, open questions, in the requester's words User approves the wording; committed before analysis starts
/sc:brainstorm docs/features/<slug>/01-discovery.md (one-off: docs/specs/<slug>-discovery-<user>-<date>.md) User approves discovery spec
/sc:design docs/features/<slug>/04-design.md (one-off: docs/specs/…-design-…md) Design committed (components pass the [R18] necessity test; Areas of concern resolved)
/sc:review Multi-dimensional review of design/plan Required β€” the /sc:plan and /sc:roadmap gates stop on a discovery spec still status: draft, which only this review clears; a draft spec is always reviewed by an isolated reviewer that gets 00-intent.md verbatim
/sc:plan docs/features/<slug>/05-plan.md (one-off: docs/plans/…md) β€” phased TDD tasks, file paths, verify cmds Plan committed
/sc:implement --plan Code + per-phase commits Plan checkboxes and Deviations match the code; no code commit follows the plan's Result: sha; the plan stays implementing
/sc:review --scope branch Code review against the spec and 00-intent.md, plus stale always-loaded docs Critical and Important findings fixed or accepted; a fix to one that changes reviewed code or shipped content is reviewed again, with the earlier findings as acceptance criteria; a code change after the Result: sha re-runs the Proof
/sc:test Test pass evidence (42/42 pass, baseline 40) Real output, not predictions
/sc:reflect Retrospective; /sc:insight captures insights to .claude/insights.jsonl Every gap it names fixed (a fix that changes reviewed code or shipped content goes back to review) or accepted; work run from a plan is done only after this; it proposes marking the plan complete, which you confirm

Other common chains

Goal Chain
Investigate a bug /sc:troubleshoot β†’ /sc:analyze --focus <domain> β†’ /sc:plan β†’ /sc:implement --plan β†’ /sc:test β†’ /sc:reflect
Performance work /sc:analyze --focus perf --scope module β†’ /sc:improve --loop --focus perf β†’ /sc:test
Security audit /sc:analyze --focus security β†’ /sc:review β†’ /sc:improve --focus security
Refactor /sc:analyze --focus quality β†’ /sc:plan β†’ /sc:improve --loop β†’ /sc:test β†’ /sc:reflect
External research /sc:research --depth deep --tavily --c7 β†’ /sc:reflect
Codebase onboarding /sc:load β†’ /sc:index-repo β†’ /sc:explain
Strategy / market /sc:business-panel β†’ /sc:reflect
End of branch /sc:review β†’ /sc:test β†’ /sc:git (commit + PR)

One prompt from intent to done

/sc:intent --through records the five items in your words, then runs the rest of the Large chain on a feature/<slug> branch: brainstorm, spec review with --audit-delegated, design, plan, implement, branch review, test and reflect, committing each step. It asks nothing. Every choice takes the β˜… option and is recorded as delegated, an independent auditor checks those choices, and review and reflect check the result against your recorded words. It never merges, pushes, deploys or deletes. It stops early on a choice that cannot be undone or reaches other people, or a Critical finding or red Proof left after one fix round, and does not start when the feature already has an intent record or a feature/<slug> branch. The last message lists the evidence (branch log, doc statuses, the plan's Result: line, the test run, the Critical count, the gap against Done when) and leaves marking the plan complete, any review round its fix still needs, merge and push to you.

/sc:intent --through
Problem: <what cannot be done today>
Proposed outcome: <what better looks like>
Affected users and systems: <who and what>
Constraints: <limits>
Done when: <how you will know it worked>
  • Start Claude Code in auto mode (claude --permission-mode auto). In manual mode, each tool call your settings do not allow waits for you.
  • To make the choices that change what you get yourself, add --ask: after discovery, the run stops once with up to four questions (β˜… first), such as "Is a todo due today overdue?". Your answers are recorded as confirmed and the spec follows them; build details stay delegated, and the rest runs unattended. In a headless run there is no one to ask, so it behaves like plain --through. Under /goal, a dismissed form may not be waited for: the evaluator can start the next turn.
  • For an ambiguous or large intent that needs a real back-and-forth, run /sc:intent without the flag and take the chain step by step.
  • To have Claude Code restart the run if it stops before the end, wrap it in /goal and add a judging line. The evaluator judges the whole goal text against the transcript, which holds the commands' own approval steps, so say what counts. In testing a hand-written step-list goal, 2 of 4 runs without such a line never finished (one evaluator held on a process sentence, one on a command's approval step); --through under /goal was run only with the line (2 of 2 met).
/goal sc:intent --through
Problem: ...
(the other four lines)
Judging: --through is the approval for every step, so the commands' confirmation steps are not judged. Met when the last turn prints the six items of the Report step.

The test runs behind this recipe are in docs/features/goal-chain.

Tips

  • Skip steps when the input already exists. If you already have a written spec, jump straight to /sc:plan. The gates exist to prevent skipping unfinished work, not to force ceremony.
  • --plan flag on /sc:implement makes it consume a committed plan document. Without --plan, it works from the latest message.
  • /sc:review scores two dimensions β€” fidelity to the spec and quality of the artifact β€” and groups findings as Critical / Important / Suggestion. Treat its output as a checklist, not a verdict. --audit-delegated re-examines only the decisions the model made on your behalf.
  • /sc:insight writes insights to .claude/insights.jsonl which /sc:insight --list and --query read later β€” over time the framework remembers what worked.

πŸ™ Acknowledgements

superclaude builds on the original SuperClaude_Framework by Kazuki Nakai, NomenAK, and Mithun Gowda B. To support that upstream project's authors directly, see their channels on the upstream repo β€” sponsorship goes to them, not to this fork.

This fork is a personal, opinionated reshape of the framework: different MCP set, insight pipeline, scope-explicit deploy, tightened workflow gates. It is not maintained by the upstream authors.


πŸŽ‰ What's new in this fork

An insight pipeline, scope-explicit deployment, and tightened brainstorm β†’ plan β†’ implement β†’ review workflow gates.

πŸ›‘οΈ Hook-Enforced Safety

Rules that must hold are enforced by hooks, not prose:

  • destructive_guard β†’ blocks force-push to main/master, asks on reset --hard / clean -f / branch -D
  • file_size_guard β†’ blocks unbounded Read on files β‰₯30KB
  • loop_guard β†’ circuit breaker on repeated failing edits

Every hook runs as superclaude hook <name> (a console entry, dispatched before the CLI loads), so hooks cost ~20 ms and settings.json carries no machine-specific bytes. Hooks merge into your settings.json β€” your existing hooks are preserved. See docs/adr/0001-hooks-are-the-enforcement-boundary.md.

πŸ€– Fewer, Sharper Agents

5 agents, each one a job that needs its own context, restricted tools or a fresh view:

  • deep-researcher for multi-source web research, repo-index for a compact project index
  • self-review and verifier for an independent second pass and run-and-report evidence (invoked explicitly)
  • business-panel-experts for multi-framework strategy analysis
  • Domain knowledge (security, performance, architecture, Python) comes from the model; the checks that apply it live in commands and rules, not in persona agents β€” why: agent roster audit

πŸ”§ MCP Server Integration

Curated and lean by default (no token bloat):

# List available MCP servers
superclaude mcp --list

# Install specific servers
superclaude mcp --servers tavily playwright

# Interactive installation
superclaude mcp

Available servers:

  • Tavily β†’ Web search, extract, crawl, map, research (Deep Research). Recommended: Agent Skills via the Tavily CLI (tvly init installs them; skills only: npx skills add https://github.com/tavily-ai/skills) (tavily-ai/skills Β· agent-skills docs). The --tavily MCP server is an optional in-conversation alternative exposing the same five operations as tools.
  • Context7 β†’ Official documentation lookup. Enabled as a claude.ai connector (claude.ai β†’ Settings β†’ Connectors), not via superclaude mcp β€” --c7 stays as an inline directive in core/FLAGS.md; no MCP doc ships for it.
  • Playwright β†’ Cross-browser automation & E2E testing (Microsoft official). MCP: microsoft/playwright-mcp; CLI + skill alternative preferred for coding agents: microsoft/playwright-cli
  • Chrome DevTools β†’ Performance, Lighthouse, accessibility, and memory profiling (CLS, LCP). Installed as Claude plugin from ChromeDevTools/chrome-devtools-mcp

Removed in this fork: Morphllm, Mindbase, Airis-Agent, Magic, AST-Grep (native Grep/Edit cover it), Sequential-Thinking (Claude 5-family models reason natively between tool calls β€” see docs/archive/codex/sequential-thinking-validity-2026-08-22/), Serena (see docs/features/serena-removal/).

🎯 Behavioral Modes

6 adaptive modes for different contexts:

  • Brainstorming β†’ Socratic discovery for vague requests
  • Business Panel β†’ Multi-expert strategic analysis
  • Deep Research β†’ Autonomous web research
  • Token-Efficiency β†’ selective omission under context pressure (--uc): drop what does not change the next action, never compress what stays
  • Introspection β†’ Meta-cognitive analysis & error recovery
  • Verbalized Sampling β†’ Probability-weighted candidate distributions (--vs)

πŸ““ Insight Pipeline

/sc:insight + hook-driven harvest:

  • Per-project JSONL store at .claude/insights.jsonl
  • superclaude insight CLI (append/list/query/stats/review/promote/discard)
  • PreCompact / SessionEnd hooks auto-harvest pending insights
  • Empty/non-string entries rejected at the writer boundary
  • Searchable for human and tool analysis across sessions

🚦 Tightened Workflow Gates

Brainstorm β†’ Plan β†’ Implement β†’ Review:

  • /sc:plan stops on a draft discovery spec until /sc:review clears it (prose gate, measured by the plan-draft-spec-gate probe)
  • /sc:review --audit-delegated re-examines the decisions the model made on your behalf
  • Plan default: phase framing; opt-in --pr-bundle for multi-PR
  • verified: convention + SessionStart memory-staleness warning

πŸ“¦ Scope-Explicit Deployment

Separate CLI deploy from content sync:

  • make deploy β€” installs the CLI only (uv tool install --force --editable .)
  • make sync-user / sync-project / sync-local β€” force-sync markdown content to chosen scope
  • make uninstall-user / uninstall-project / uninstall-local β€” mirror targets
  • superclaude install/uninstall/update --scope user|project|local β€” consistent flag across CLI

πŸͺ Hook Subsystem

Settings-merge install + targeted hooks:

  • install_settings.py preserves user hooks via marker-based identification and rewrites a previous release's <python> …/<script>.py registrations to superclaude hook <name>
  • superclaude doctor checks that the superclaude on PATH has the hook subcommand β€” the package whose hooks actually run
  • test_runner_hook runs uv run python -m pytest (avoids the Windows uv canonicalize bug)
  • SessionStart: install-status line, PR-review status and memory staleness warning
  • PreCompact / SessionEnd: insight harvest
  • Hooks are additive β€” your existing config survives reinstall

πŸ”¬ Deep Research

Autonomous web research aligned with the DR agent architecture β€” adaptive planning, multi-hop reasoning, confidence-scored synthesis.

🎯 Adaptive Planning

Three intelligent strategies:

  • Planning-Only: Direct execution for clear queries
  • Intent-Planning: Clarification for ambiguous requests
  • Unified: Collaborative plan refinement (without --strategy, the strategy is chosen by query clarity: clear β†’ planning, ambiguous β†’ intent, complex β†’ unified)

πŸ”„ Multi-Hop Reasoning

Up to 5 iterative searches:

  • Entity expansion (Paper β†’ Authors β†’ Works)
  • Concept deepening (Topic β†’ Details β†’ Examples)
  • Temporal progression (Current β†’ Historical)
  • Causal chains (Effect β†’ Cause β†’ Prevention)

πŸ“Š Evidence Rules

Source gates from RESEARCH_CONFIG.md:

  • Each load-bearing claim: β‰₯2 independent sources, or one primary source; otherwise labeled single-source
  • Source credibility tiers 1–4 (academic/official β†’ forums)
  • A contradiction on a load-bearing claim triggers a replan

🧠 Cross-Session Memory

Research memory across sessions:

  • Findings and query formulations saved with /sc:save
  • Recalled by /sc:load at the next session start
  • Reflection after every hop: assess quality, find gaps, replan
  • Saved to .claude/memories/ (committed) and Claude auto memory

Research Command Usage

# Basic research with automatic depth
/sc:research "latest AI developments 2026"

# Controlled depth β€” pass flags after the query
/sc:research "quantum computing breakthroughs" --depth exhaustive

# Strategy selection: planning | intent | unified (default: chosen by query clarity)
/sc:research "market analysis" --strategy planning

# Pick the sources explicitly
/sc:research "React patterns" --tavily --c7

Research Depth Levels

Depth Sources Hops Best For
Quick 10 1 Quick facts, simple queries
Standard 20 3 General research
Deep 40 4 Comprehensive analysis
Exhaustive 50+ 5 Academic-level research

Profiles are defined in modes/RESEARCH_CONFIG.md.

Integrated Tool Orchestration

The Deep Research system intelligently coordinates multiple tools:

  • Tavily (Agent Skills; MCP optional): Primary web search and discovery
  • Playwright MCP: Complex content extraction
  • Context7 (claude.ai connector): Technical documentation lookup

πŸ“š References

docs/archive/ holds the upstream-derived legacy tree and is not maintained. The rest of docs/ β€” features/, adr/, research/, agents/ β€” is this project's own. The table below names the source of truth per topic.

Topic Source of truth
Architecture & directory roles src/superclaude/ARCHITECTURE.md
Project rules, build & test loop AGENTS.md (imported by CLAUDE.md)
Project-specific gotchas .claude/rules/gotchas/
Slash commands (35) src/superclaude/commands/ Β· superclaude install --list-all
Orchestration commands β€” /sc:agent vs /sc:pm vs /sc:task docs/reports/ORCHESTRATION_COMMANDS.md
Agents (5) src/superclaude/agents/
Modes (6) src/superclaude/modes/
MCP servers (3) src/superclaude/mcp/
Hooks (registry + scripts) src/superclaude/cli/hook_dispatch.py Β· src/superclaude/hooks/hooks.json Β· src/superclaude/scripts/
Architecture decisions docs/adr/
Feature work (discovery β†’ plan β†’ retrospective) docs/features/
Agent conventions (issue tracker, triage labels, domain docs) docs/agents/
Core rules (always-loaded) FLAGS.md Β· PRINCIPLES.md Β· RULES.md
Authoring specs for new content .claude/rules/
Health & drift checks superclaude doctor Β· superclaude verify-drift Β· superclaude context explain / reset

🚩 Flags

Flags are behavioral hints that any /sc:* prompt accepts. The model reads them inline β€” no setup, no separate config. SSOT: src/superclaude/core/FLAGS.md.

Modes β€” switch the conversational stance

Flag When to use Effect
--brainstorm Vague request, "maybe", unclear scope Collaborative discovery, probing questions before code
--research Need evidence, citations, external knowledge Systematic investigation, evidence-based reasoning
--business-panel Strategy/market/competitive analysis Multi-expert business analysis & synthesis
--introspect Stuck, error recovery, "why is it doing X?" Surfaces decision logic, assumptions and alternatives (πŸŽ―βš‘πŸ“ŠπŸ’‘ markers)
--token-efficient / --uc Context β‰₯ 60 % or large ops (auto with --safe-mode) Selective omission β€” drop what does not change the next action; never compress what stays
--vs [standard|cot|multi] "Multiple perspectives", brainstorm options Verbalized sampling β€” probability-weighted candidates. Sub-params: [k:3-7] [tau:0.01-0.20] [turns:2-5] [no-synthesis]

MCP servers β€” opt in or out per turn

Flag Server Use for
--c7 / --context7 Context7 Imports, frameworks, official docs
--play / --playwright Playwright Browser testing, E2E, visual diffs
--perf / --devtools Chrome DevTools Perf audit, CLS, LCP, metrics
--tavily Tavily Web search, real-time info, parallel queries
--frontend-verify Combined Playwright + DevTools (UI debug)
--all-mcp / --no-mcp β€” Enable all / disable all (perf priority)

Execution β€” control how work is done

Flag Effect
--delegate [auto|files|folders] Sub-agent parallel delegation. Decision matrix: RULES_DELEGATION.md <sub_agent_decision>
--concurrency [n] Batch independent tool calls (1–15) into a single message
--loop Iterative improvement β€” repeat until no meaningful improvement found
--iterations [n] Fixed iteration count β€” exactly N cycles, with per-iteration delta report
--plan 5-line plan (goal Β· approach Β· files Β· risks Β· verification) before execution
--validate Pre-execution risk assessment (production, irreversible/destructive, migrations, shared infra)
--safe-mode Max validation, conservative behavior, auto --uc
--verbose-context Force full .md injection (bypass short-instruction map)

Scope & focus

Flag Values
--scope file Β· module Β· project Β· system
--focus perf Β· security Β· quality Β· arch Β· a11y Β· testing

Priority when flags conflict: --safe-mode > --validate > optimization Β· explicit user flags > auto-detection Β· --no-mcp overrides individual MCP flags.

Retired flags (--think*, --parallel, --seq / --sequential, --task-manage, --orchestrate) get a redirect notice rather than a rewrite. An unrecognized flag is matched by difflib similarity β€” not edit distance β€” first against retired names (cutoff 0.8), then against valid ones (cutoff 0.6), and the closest become a suggestion comment. Nothing is silently rewritten: context_loader.py ships an empty alias table.

Examples

/sc:research "Rust async runtime tradeoffs" --depth deep --tavily --c7
/sc:implement --plan docs/features/user-export/05-plan.md --validate --delegate auto
/sc:analyze src/auth/ --focus security --scope module
/sc:improve src/api/handlers.py --loop --iterations 3
/sc:brainstorm "should we migrate to gRPC?" --vs multi

βš–οΈ License

MIT β€” see LICENSE.


πŸ“‹ All Commands

Skill-listing cost. Every /sc: command stays model-invocable, so each turn Claude Code shows its description in the skill listing, next to your own skills and plugins. superclaude's descriptions take under 10,000 characters together. The listing has a budget, 1% of the context window (30,000 characters on haiku and sonnet in Claude Code 2.1.303). When everything installed goes over it, Claude Code drops the descriptions of the least-used entries. Those entries are then picked less often from a plain request; typing /sc:<name> still works. claude --debug-file <file> logs Skill listing over budget with the sizes when that happens, and skillListingBudgetFraction in settings (for example 0.02) raises the budget.

Click to expand full command list

🧠 Planning & Design

  • /sc:intent β€” Capture a request in the requester's own words before analysis; --through then runs the whole chain on a feature branch
  • /sc:brainstorm β€” Structured brainstorming through Socratic dialogue
  • /sc:design β€” System architecture, APIs, component interfaces
  • /sc:plan β€” Detailed implementation plans with TDD tasks
  • /sc:estimate β€” Relative effort sizing (S/M/L/XL)
  • /sc:spec-panel β€” Multi-expert specification review
  • /sc:roadmap β€” Phased implementation workflow from a PRD or feature doc

πŸ’» Development

  • /sc:implement β€” Code implementation
  • /sc:build β€” Build workflows
  • /sc:improve β€” Code improvements
  • /sc:cleanup β€” Refactoring & dead-code removal
  • /sc:explain β€” Code explanation

πŸ§ͺ Testing & Quality

  • /sc:test β€” Run tests with coverage and quality reporting
  • /sc:analyze β€” Code analysis (quality, security, perf, arch)
  • /sc:troubleshoot β€” Diagnose & resolve issues
  • /sc:reflect β€” Task retrospectives
  • /sc:review β€” Multi-dimensional review of work products

πŸ“š Documentation

  • /sc:document β€” Doc generation
  • /sc:promote-feature β€” Consolidate standalone docs into a feature folder
  • /sc:help β€” Command help

πŸ”§ Version Control

  • /sc:git β€” Git operations with intelligent commits

πŸ“Š Project Management

  • /sc:pm β€” Project management & sub-agent orchestration
  • /sc:task β€” Task tracking
  • /sc:auto-improve β€” Autonomous metric-driven improvement loop

/sc:pm, /sc:task and /sc:agent overlap on "analyze β†’ delegate β†’ track". Which one to use, with examples: Orchestration commands: /sc:agent vs /sc:pm vs /sc:task.

πŸ” Research & Analysis

  • /sc:research β€” Deep web research
  • /sc:business-panel β€” Multi-expert business analysis

πŸ—‚οΈ Session & Memory

  • /sc:load β€” Load session context (.claude/memories/ + auto memory)
  • /sc:save β€” Save session context
  • /sc:insight β€” Capture structured insights to JSONL

🎯 Utilities

  • /sc:agent β€” Session controller: investigate β†’ implement β†’ review orchestration (vs /sc:pm / /sc:task)
  • /sc:init β€” Interactive project environment setup
  • /sc:index / /sc:index-repo β€” Project docs and a compact repo index for cheap navigation
  • /sc:recommend β€” Command recommendation engine
  • /sc:select-tool β€” Intelligent MCP tool selection

✍️ Skills

  • /sc-author β€” Write or revise a file Claude reads as instructions (skill, subagent, command, output style, CLAUDE.md, .claude/rules, and others). It follows your project's existing documents, proposes no-op and harmful sentences for removal with evidence, and writes only after you approve the diff. The body follows your project's format for that type; --md or --xml chooses one. User-invoked only; installed to .claude/skills/sc-author/.
  • superclaude author-check <path> β€” The validator /sc-author runs: frontmatter fields, references, XML structure, broken pointers; --with <file> adds the documents loaded together for conflict and duplicate checks. Exit 1 on errors.
  • /sc-prompt β€” Rewrite a prompt for Claude Opus 5.5 / Sonnet 5.5 / Opus 5 / Fable 5.1: strip folklore that degrades the target, apply its model-specific deltas, mark missing context as [FILL: …] placeholders. Replaces the prompt slash command of earlier releases. On an Opus 5.5 or Sonnet 5.5 session, pass a prompt that asks for written-out reasoning as a file path: pasted inline, it can be declined before the skill runs. Installed to .claude/skills/sc-prompt/.

Source files: src/superclaude/commands/ β€” each command is a single markdown file with frontmatter. After install, run superclaude install --list-all for a full inventory.

About

Independent Claude Code content framework with commands, agents, modes, and hook-enforced workflows

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages