claude-code-plugins
CLAUDE.md1 starsChanged 11 months agoMITView on GitHub
See @README.md for project overview and installation. Before EVERY tool use, ask yourself: If you're about to do something "quick" or "clever" → STOP. That's a red flag. Routing: Microsoft tech → microsoft-learn (then validate with perplexity), libraries → context7+ref, general → perplexity+firecrawl. Training data may be stale - always verify with MCP. See .claude/memory/mcp-usage-patterns.md - Git Bash on Windows: Use MSYS_NO_PATHCONV=1 prefix to prevent path conversion issues when running scripts - ⛔ CRITICAL: Windows Edit Tool Bug - If…
- Deletes or force-pushes
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/audit/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/anti-duplication.mdcCursor rule
- .cursor/rules/claude-code-plugins.mdcCursor rule
- .cursor/rules/claude-skills.mdcCursor rule
- .cursor/rules/cursor-rules-best-practices.mdcCursor rule
- .cursor/rules/git-commit-attribution.mdcCursor rule
- .cursor/rules/official-docs.mdcCursor rule
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
24 rules. About 0 are common, 18 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Set plugin dev mode: when modifying plugin scripts - use env vars for local code instead of installed plugin.
- Distinctive: line 37
Research: Before answering ANY technical question about libraries, frameworks, APIs, versions, best practices
- Distinctive: line 40
Implementation: Verify code patterns, configurations, and dependencies are current before writing code
- Very specific: line 45
Git Bash on Windows: Use MSYS_NO_PATHCONV=1 prefix to prevent path conversion issues when running scripts
- Distinctive: line 46
⛔ CRITICAL: Windows Edit Tool Bug: - If Edit tool fails with "File has been unexpectedly modified":
- Distinctive: line 49
Or use Write tool: Read full file, modify in memory, Write entire content back
- Distinctive: line 59
Never use hardcoded rules: - all validation must be docs-driven and dynamic
- Very specific: line 63
⚠️ CRITICAL: No Suppressions Without MCP Verification: - Before adding ANY linter suppression (# noqa, // eslint-disable, #pragma warning …
- Distinctive: line 64
Research via MCP FIRST: - Check if there's a proper fix
- Distinctive: line 65
Verify no solution exists: - Check for overloads, alternatives, proper patterns
- Distinctive: line 66
Only suppress after PROOF: - Never assume "this can't be fixed"
- Very specific: line 70
⚠️ CRITICAL: Fix Code, Never Relax Rules: - When code violates analyzer/linting/style rules:
- Very specific: line 143
Run cc-check to detect if global plugins might cause doubling:
- Distinctive: line 164
Commit and push to GitHub
- Distinctive: line 170
Trust But Verify: Before making ANY change based on discovered issues, validate claims using MCP servers (microsoft-learn, context7, …
- Distinctive: line 171
Diagnose Before Theorizing: When investigating issues, gather concrete evidence (logs, error messages, actual state, reproduction steps) …
- Distinctive: line 172
TDD/BDD: When adding or changing non-trivial behavior, prefer test-driven development
- Distinctive: line 173
Consistency: Use the same patterns, structures, and naming everywhere - extend existing approaches
- Distinctive: line 174
Pattern-First: Before adding docs, workflows, or structures, look for existing patterns and align to them
- Distinctive: line 175
AI-Friendly Structure: Use predictable sections (Overview, Prerequisites, Installation, Configuration, Verification, Troubleshooting)
- Distinctive: line 176
Cross-Platform: Treat Windows, macOS, and Linux as first-class - consider platform differences up front
- Distinctive: line 177
ASCII Punctuation: Use straight quotes - smart/curly quotes cause encoding issues in scripts
- Distinctive: line 178
UTF-8 Encoding: Use UTF-8 for all files, preserve Unicode, set encoding in Python scripts.
- Very specific: line 183
Human-Readable Code: Write code that reads naturally.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
See @README.md for project overview and installation.
⛔ STOP AND CHECK (Before Every Action) ⛔
Before EVERY tool use, ask yourself:
| Check | If No, STOP |
| Did I verify this with MCP? | Research first |
| Am I complying with project rules? | Don't circumvent |
| Does this need user permission? | Ask first |
| Is this the minimal change? | Don't over-engineer |
| Edit failed? | Use sed or cat > file << 'EOF'. ⛔ NEVER PowerShell ⛔ |
| About to use PowerShell for files? | STOP. Use bash instead. ALWAYS. |
| Adding suppression/exclusion? | MCP verify the API first |
| Modifying config files? | Ask permission first |
| ⛔ Destructive git command? | NEVER run git reset --hard, git clean -fd, git checkout . without EXPLICIT permission |
If you're about to do something "quick" or "clever" → STOP. That's a red flag.
Critical Rules (Repo-Specific)
- ⚠️ FOUNDATIONAL: Correctness Over Speed - Optimize for correctness and compliance, NOT speed and completion. Before ANY action: (1) Verify with MCP/docs, (2) Comply with project rules, (3) Ask permission for architectural decisions, (4) Use minimal intervention. See
.claude/memory/behavioral-guardrails.md - Use Python 3.13 for spaCy operations
- Set plugin dev mode when modifying plugin scripts - use env vars for local code instead of installed plugin. See
.claude/memory/plugin-dev-mode.md - Use
docs-managementskill for documentation indexes - invoke the skill to search docs rather than reading index.yaml files directly ⚠️ CRITICAL: Proactive MCP Server Usage - MCP servers (
perplexity,microsoft-learn,ref,context7,firecrawl) are your PRIMARY research tools, not optional conveniences. MUST use MCP servers proactively for:- Research: Before answering ANY technical question about libraries, frameworks, APIs, versions, best practices
- Verification: Validate version numbers, API signatures, patterns, breaking changes before implementing
- Planning: Research current approaches, architecture patterns, and trade-offs before designing solutions
- Implementation: Verify code patterns, configurations, and dependencies are current before writing code
- Reviews: Cross-check recommendations against authoritative sources
- Validation: Confirm technical claims, compatibility matrices, and deprecation status
Routing: Microsoft tech →
microsoft-learn(then validate withperplexity), libraries →context7+ref, general →perplexity+firecrawl. Training data may be stale - always verify with MCP. See.claude/memory/mcp-usage-patterns.md- Git Bash on Windows: Use
MSYS_NO_PATHCONV=1prefix to prevent path conversion issues when running scripts ⛔ CRITICAL: Windows Edit Tool Bug - If Edit tool fails with "File has been unexpectedly modified":
- DO NOT retry Edit - it will fail again
- Use
sed:MSYS_NO_PATHCONV=1 sed -i 's/old/new/g' /path/to/file - Or use Write tool: Read full file, modify in memory, Write entire content back
- Use backslashes in paths:
C:\path\file.txtnotC:/path/file.txt(Issue #10437) - ⛔ POWERSHELL IS FORBIDDEN ⛔ - No
Set-Content, no-replace, no.ps1scripts. Issue #15326: user lost 3,500-line file. If you even THINK "PowerShell", STOP.
See
.claude/memory/windows-edit-tool-bug.mdfor details.⚠️ CRITICAL: Load Skills BEFORE Auditing/Modifying Plugin Components - When auditing or modifying skills, agents, commands, hooks, output-styles, etc. (any Claude Code ecosystem component/concept) you MUST:
- Load the relevant skill FIRST (e.g.,
subagent-developmentfor agents,skill-developmentfor skills,command-developmentfor commands,hook-managementfor hooks,output-customizationfor output styles, and so on) - Read the skill thoroughly - skills contain field definitions (including undocumented fields like
colorfor agents), validation criteria, and keyword registries - Follow the skill's delegation to docs-management - skills delegate to docs-management for official documentation; validation criteria comes from official docs, not assumptions
- Never use hardcoded rules - all validation must be docs-driven and dynamic
The audit chain is typically: Command → Agent → Skill → docs-management. Each level must properly delegate to the next. Skipping this chain leads to incorrect modifications (e.g., removing valid undocumented fields).
- Load the relevant skill FIRST (e.g.,
⚠️ CRITICAL: No Suppressions Without MCP Verification - Before adding ANY linter suppression (
# noqa,// eslint-disable,#pragma warning disable, etc.):- Research via MCP FIRST - Check if there's a proper fix
- Verify no solution exists - Check for overloads, alternatives, proper patterns
- Only suppress after PROOF - Never assume "this can't be fixed"
See
.claude/memory/code-analysis-verification.mdfor details.⚠️ CRITICAL: Fix Code, Never Relax Rules - When code violates analyzer/linting/style rules:
- FIX THE CODE to comply - this is always the default action
- NEVER modify configuration to bypass rules (
.editorconfig,.eslintrc,Directory.Build.props, etc.) - ASK before proposing rule changes - even if "samples use different patterns"
See
.claude/memory/rule-compliance.mdfor details.
Plugin Development Isolation
This repo contains the source for plugins that are also installed globally. The --plugin-dir flag is ADDITIVE - it doesn't disable globally installed plugins. Use these aliases to avoid plugin doubling.
Alias Quick Reference
Source file: setup/bashrc-claude.sh (sourced from ~/.bashrc)
| Tier | Alias | Description |
| Tier 1: Base CC | cc | Claude wrapper (handles slash commands) |
cc-yolo | + --dangerously-skip-permissions | |
cc-plan | + --permission-mode plan | |
cc-opus / cc-sonnet | Model selection | |
cc-cont / cc-cont-yolo | Continue last conversation | |
cc-headless | Scripting mode (-p --output-format json) | |
| Tier 2: CC-Dev | cc-dev | All dev plugins (works from ANY directory) |
cc-dev-yolo | All dev plugins + skip permissions | |
cc-dev-core | Core 4 plugins only | |
cc-dev-plan | All dev plugins + plan mode | |
cc-dev-{workload} | Workload-specific (security, ai, docs, saas, test) | |
| Short Alias | cca | All plugins + yolo (works from ANY directory) |
| Tier 3: CCP | ccp | All plugins + yolo (CDs to plugin repo) |
ccp-core | Core workload (~1.2K tokens) | |
ccp-dev | Dev workload (~2.6K tokens) | |
ccp-arch | Architecture workload (~4.2K tokens) | |
ccp-ba | Business analysis workload (~3.7K tokens) | |
ccp-{workload} | security, ai, docs, saas, test | |
| Utilities | cc-plugins | Show plugin configuration |
cc-check | Detect global plugin conflicts |
Two-Terminal Workflow
# Terminal 1: Plugin development
cd ~/repos/claude-code-plugins
ccp # Uses dev plugins via --plugin-dir
# Terminal 2: Other repo (uses SAME dev plugins)
cd ~/repos/citadel
cc-dev-yolo # Uses dev plugins from $CCP_REPO - no doubling!Both terminals use identical plugin source from $CCP_REPO/plugins.
Adding/Removing Plugins from Workloads
Edit the arrays at the top of setup/bashrc-claude.sh:
CC_PLUGINS_CORE=(claude-ecosystem code-quality git melodic-software)
CC_PLUGINS_DEV=(tac spec-driven-development)
CC_PLUGINS_ARCH=(enterprise-architecture systems-design data-architecture visualization tac)
CC_PLUGINS_BA=(business-analysis requirements-elicitation spec-driven-development)
CC_PLUGINS_SECURITY=(security compliance-planning)
CC_PLUGINS_AI=(ai-ml-planning google-ecosystem openai-ecosystem cursor-ecosystem)
CC_PLUGINS_DOCS=(documentation-standards spec-driven-development)
CC_PLUGINS_SAAS=(saas-patterns product-discovery content-management-system)
CC_PLUGINS_TEST=(test-strategy contract-testing)
CC_PLUGINS_EXCLUDE=() # Add broken plugins here to skip themThen re-source: source ~/.bashrc
Conflict Detection
Run cc-check to detect if global plugins might cause doubling:
$ cc-check
=== Plugin Conflict Check ===
WARNING: Global plugins detected in: ~/.claude/plugins/cache/melodic-software/
To fix: rm -rf ~/.claude/plugins/cache/melodic-software/DEV Mode for Scripts
Scripts that write to disk must use DEV mode to write to dev repo instead of global cache:
OFFICIAL_DOCS_DEV_ROOT="D:/repos/gh/melodic/claude-code-plugins/plugins/claude-ecosystem/skills/docs-management" python <script>See .claude/memory/plugin-dev-mode.md for all DEV mode variables.
Promoting Changes to Global
- Commit and push to GitHub
- In any Claude session:
/plugin marketplace update melodic-software - Restart Claude Code to pick up changes
General Software Principles
- Trust But Verify: Before making ANY change based on discovered issues, validate claims using MCP servers (microsoft-learn, context7, perplexity, ref). Never assume - always confirm version numbers, API signatures, patterns, and technical claims against authoritative sources before applying fixes
- Diagnose Before Theorizing: When investigating issues, gather concrete evidence (logs, error messages, actual state, reproduction steps) before proposing causes or solutions. Theories are starting points for investigation, not substitutes for it
- TDD/BDD: When adding or changing non-trivial behavior, prefer test-driven development
- Consistency: Use the same patterns, structures, and naming everywhere - extend existing approaches
- Pattern-First: Before adding docs, workflows, or structures, look for existing patterns and align to them
- AI-Friendly Structure: Use predictable sections (Overview, Prerequisites, Installation, Configuration, Verification, Troubleshooting)
- Cross-Platform: Treat Windows, macOS, and Linux as first-class - consider platform differences up front
- ASCII Punctuation: Use straight quotes - smart/curly quotes cause encoding issues in scripts
- UTF-8 Encoding: Use UTF-8 for all files, preserve Unicode, set encoding in Python scripts. Emojis (✅, ⚠️, ⛔, etc.) are allowed in documentation examples and output format specifications - they render correctly in terminals with Unicode support
- UTC Timestamps: Store persisted data in UTC (ISO-8601), convert to local only for display
- DRY: Minimize duplicated variables, magic strings, magic numbers, repeated code
- Law of Demeter: Minimize coupling by talking only to immediate friends
- Best tool for the job: Choose languages, libraries, techniques that keep solutions simple and testable
- Human-Readable Code: Write code that reads naturally. Use descriptive names:
if is_valid and has_permissionrather than cryptic abbreviations. Prefer positive naming:if is_not_availableinstead ofif not is_available - Minimal Comments: Code should be self-documenting. Avoid obligatory comments unless truly necessary (explaining non-obvious "why" decisions, complex algorithms). Let the code speak for itself through clear naming and structure
Documentation
For Claude Code topics, invoke the docs-management skill.
For Gemini CLI topics, invoke the gemini-cli-docs skill.
Build and Test Commands
Python Tests (hooks, scripts)
# From plugin with tests (e.g., docs-management)
cd plugins/claude-ecosystem/skills/docs-management
pytest -v
# With coverage
pytest --cov=. --cov-report=term-missingMarkdown Linting
# Via command
/code-quality:lint-md
# Or directly
npx markdownlint-cli2 "**/*.md"Validate Plugin Components
/claude-ecosystem:audit-skills
/claude-ecosystem:audit-commands
/claude-ecosystem:audit-agentsArchitecture Overview
Plugin Structure
plugins/<plugin-name>/
.claude-plugin/
plugin.json # Plugin manifest (name, version, description)
skills/ # Skills (noun-phrase names, e.g., "docs-management")
<skill-name>/
SKILL.md # Skill definition with YAML frontmatter
references/ # Supporting docs loaded on-demand
scripts/ # Python/Bash automation scripts
commands/ # Slash commands (verb-phrase names, e.g., "scrape-docs")
agents/ # Subagent definitions
hooks/ # Hook configurationsDocumentation Management Pattern
The docs-management and gemini-cli-docs skills manage scraped official documentation with search indexes. Always invoke the skill to search docs - never read index.yaml directly. Skills handle search ranking, keyword extraction, and subsection loading.
Key Plugins
| Plugin | Purpose |
| claude-ecosystem | Claude Code docs, skills (docs-management, hook-management, memory-management), hooks |
| google-ecosystem | Gemini CLI docs (gemini-cli-docs), planning agents |
| code-quality | Code review, markdown linting, debugging |
| tac | ADW workflows, prompt engineering, agent design |
| git | Git operations (config, GPG signing, hooks, GitHub issues) |
Conventions
- Skills: noun-phrase names (
hook-management) - Commands: verb-phrase names (
scrape-docs) - Skills use
allowed-tools, agents usetoolsin frontmatter - YAML frontmatter required for SKILL.md files (name, description, allowed-tools)
- References loaded progressively (just-in-time) to optimize tokens
- Skill tool uses fully qualified names:
Skill(plugin:skill-name)for plugin skills, notSkill(skill-name)
Detailed Documentation
For comprehensive guidance on working with this repository, see:
Always Loaded (Core Principles):
- Behavioral Guardrails @.claude/memory/behavioral-guardrails.md (~1,800 tokens) - CRITICAL: Verify before acting, comply don't circumvent, ask before architectural decisions
- Command/Skill Execution Protocol @.claude/memory/command-skill-protocol.md (~2,800 tokens) - CRITICAL: Prevents context collapse when executing commands/skills
- Operational Rules @.claude/memory/operational-rules.md (~2,400 tokens) - Core operational guidance (temp files, error handling, workflow management)
- Claude Code ecosystem reference @.claude/memory/claude-code-ecosystem.md (~2,300 tokens) - Enforcement layers, skills table, and delegation pattern for Claude Code documentation
- MCP Usage Patterns @.claude/memory/mcp-usage-patterns.md (~2,500 tokens) - CRITICAL: Proactive MCP usage, research-first mindset, technology routing
- Natural Language Prompting @.claude/memory/natural-language-guidance.md (~700 tokens) - Natural language, intent, agentic instructions
- Failure Generalization @.claude/memory/failure-generalization.md (~400 tokens) - Generalize lessons from specific failures to category-level prevention
- Windows Edit Tool Bug @.claude/memory/windows-edit-tool-bug.md (~1,000 tokens) - CRITICAL: Edit tool retry loops, mandatory fallback to sed/Write
- Code Analysis Verification @.claude/memory/code-analysis-verification.md (~1,000 tokens) - CRITICAL: No pragma suppressions without MCP verification
- Rule Compliance @.claude/memory/rule-compliance.md (~600 tokens) - CRITICAL: Fix code to comply, never relax rules
Context-Dependent (Load When Needed):
- Path Conventions
.claude/memory/path-conventions.md(~2,105 tokens) - Path resolution, absolute paths, path doubling, script execution - Script Automation
.claude/memory/script-automation.md(~2,180 tokens) - PowerShell, Python, Bash, script creation, automation - Agent Usage Patterns
.claude/memory/agent-usage-patterns.md(~3,370 tokens) - Parallelization, subagents, model selection, agent communication - Performance Quick Start
.claude/memory/performance-quick-start.md(~1,925 tokens) - Performance, speed, latency, optimization - Workflows
.claude/memory/workflows.md(~4,400 tokens) - TDD, visual iteration, headless mode, multi-Claude, plan mode - Behavioral Principles
.claude/memory/behavioral-principles.md(~1,600 tokens hub, ~2,300 tokens with research) - Communication, autonomy, limitations, transparency - Anti-Patterns & Design Decisions
.claude/memory/anti-patterns.md(~1,880 tokens) - @-file bloat, slash command over-engineering, hook timing - Audit Protocol
.claude/memory/audit-protocol.md(~1,500 tokens) - Component-to-skill mapping, mandatory pre-audit skill loading - Tool Optimization
.claude/memory/tool-optimization.md(~2,200 tokens) - Tool design, tool selection, namespacing, error messages - Context Engineering
.claude/memory/context-engineering.md(~4,390 tokens) - Context window, /compact, /clear, context rot, token budget - Hook Timing Philosophy
.claude/memory/hook-timing-philosophy.md(~2,050 tokens) - PreToolUse, PostToolUse, block-at-submit, auto-fix - Testing Principles
.claude/memory/testing-principles.md(~800 tokens hub, ~7,000 tokens total with details) - FIRST principles, test pyramid, AAA pattern, mocking - Clean Code Guidelines
.claude/memory/clean-code-guidelines.md(~1,000 tokens hub, ~16,000 tokens with all references) - SOLID, code smells, refactoring, naming conventions - Engineering Best Practices
.claude/memory/engineering-best-practices.md(~1,225 tokens) - Concurrency, caching, error handling, resilience - Anti-Duplication Enforcement
.claude/memory/anti-duplication-enforcement.md(~2,000 tokens) - Duplicate content, consolidation, single source of truth - Model Identification
.claude/memory/model-identification.md(~710 tokens) - Model identity, Opus, Sonnet, Haiku, audit metadata - Prompting Style Guide
.claude/memory/prompting-style-guide.md(~3,090 tokens) - Tone, prompting, Claude 4.5 best practices - Standard Operating Procedures
.claude/memory/standard-operating-procedures.md(~1,500 tokens) - SOP, best practices, agent execution - Claude Code Antipatterns
.claude/memory/claude-code-antipatterns.md(~1,200 tokens hub, ~10,600 tokens with all details) - Antipatterns, bad practices, Opus 4.5 issues - Session Configuration
.claude/memory/session-configuration.md(~2,500 tokens) - HTTPS_PROXY, timeout, API keys, session persistence - GitHub Actions Patterns
.claude/memory/github-actions-patterns.md(~2,195 tokens) - GitHub Actions, CI/CD, PR automation - Plugin Dev Mode
.claude/memory/plugin-dev-mode.md(~1,600 tokens) - Dev mode env vars, installed vs local plugin, scraping to dev repo - Settings Configuration
.claude/memory/settings-configuration.md(~2,800 tokens) - Permission model, hook env vars, security, MCP permissions - Known Claude Code Issues
.claude/memory/known-claude-code-issues.md(~800 tokens hub) - Index of Claude Code bug workarounds. Loads platform-specific files:known-issues/windows.md(~2,000 tokens) - Edit tool, PowerShell, hooksknown-issues/macos.md(~1,000 tokens) - Terminal, display issuesknown-issues/cross-platform.md(~1,500 tokens) - Performance, MCP, permissions
Claude Code Ecosystem:
- Claude Code Topics Index
.claude/memory/claude-code-topics-index.md(~3,420 tokens) - Hooks, memory, skills, subagents, MCP, plugins, settings, SDK
Token Budget Summary:
| Category | Token Count | Notes |
| Always Loaded (Core) | ~15,300 | 10 files, auto-loaded every session |
| Context-Dependent | ~600-4,400 each | Load on-demand as needed |
| Hub Files (expanded) | ~7,000-16,000 | Testing, Clean Code, Antipatterns |
| Topics Index | ~3,420 | Claude Code feature lookup |
Last Updated: 2025-12-30
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

