# Add SR plugin marketplace
/plugin marketplace add https://github.com/Sruimeng/sr-plugin
# Install sr plugin
/plugin install sr@sr-pluginCopy the entire contents of CLAUDE.example.md from this repository into your user-level ~/.claude/CLAUDE.md file.
This enables:
- The SR command router (e.g.
/what,/do,/mission,/campaign) - The multi-agent system (investigator, librarian, scout, worker, critic, recorder, cartographer)
- The documentation-first
/llmdocworkflow
Done. Now you can use the plugin in Claude Code normally.
/plugin marketplace update https://github.com/Sruimeng/sr-pluginSR Claude Code Plugin is a documentation-driven, multi-agent toolkit designed by Sruimeng for internal and personal projects.
It turns Claude Code into a disciplined engineering assistant that:
- Follows
/llmdocas the “Constitution” of your codebase - Separates investigation, planning, execution, review, and documentation into dedicated agents
- Keeps documentation in sync with real code changes
investigator– Retrieval agent: finds relevant files, existing utils, and implicit rules.librarian– Standards agent: locates “Constitution” docs and external specs.scout– Strategy agent: analyzes complexity and writesstrategy-*.md.worker– Execution agent: implements code strictly following Strategy and Constitution.critic– Quality gate: audits code/doc for safety and standard compliance.recorder– Documentation agent: syncs/llmdocwith code reality.cartographer– Map maker: builds and maintains the/llmdocstructure.
/initDoc– Bootstraps a lean but complete/llmdocsystem for the project./updateDoc– Syncs documentation with recent code changes using git diffs and strategies./memo– Appends “Lessons Learned” to/llmdoc/reference/lessons-learned.md.doc-standard.example.md– Example of the LLM-friendly documentation standard. Copy it tollmdoc/guides/doc-standard.mdand customize.
/what– Strategic entrypoint. Analyzes your request, offers routes (fix / enhance / cleanup), then dispatches/do,/mission, or/campaign./do– Direct action mode for small, explicit changes with automatic critic + doc sync./mission– Commander mode for complex features, refactors, or math-heavy tasks./campaign– Swarm mode for batch tasks across multiple files or features./commit– Smart commit gateway that enforces safety checks and Conventional Commit style./reviewPR– Virtual Tech Lead review for GitHub PRs (viagh prcommands)./audit– System doctor that scans for performance issues, debug code, and architectural drift.
# First-time setup: establish the /llmdoc documentation system
/initDoc# Get clear, doc-driven programming guidance
/what "I need to implement user authentication"
# For complex refactors or architecture changes
/mission "Refactor rendering pipeline for new design"
# For small, explicit edits
/do "Rename component LoginButton to SignInButton and update references"
# Generate a safe, conventional commit message
/commit# Sync docs after code changes
/updateDoc
# Record lessons learned to avoid repeating mistakes
/memo "Avoid heavy synchronous work in React server components"# Run a health check on a module
/audit "auth module"
# Review a Pull Request before merging
/reviewPR 123Made with ❤️ by Sruimeng