agentleFS
TechDufusTechDufus/oh-my-claude/CLAUDE.md

oh-my-claude

CLAUDE.md174 starsChanged 10 months agoMITView on GitHub

Claude Code plugin providing ultrawork mode, context protection, and specialized agent workflows. Plugin-root CLAUDE.md is not loaded as runtime context by current Claude Code. Ship runtime behavior through hooks, skills, agents, commands, MCP, and plugin settings instead. Claude Code caches plugins. Any change requires bumping version in BOTH: 1. .claude-plugin/marketplace.json - metadata.version AND plugins[0].version 2. plugins/oh-my-claude/.claude-plugin/plugin.json Then: /plugin update oh-my-claude and start new session. Run hook unit tests: GitHub Actions validates: JSON syntax, version sync across files, no ../ paths,…

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run hook unit tests:

    line 43
  2. Very specific:

    NEVER use ../ paths - files outside source do not exist in cache

    line 61
  3. Very specific:

    Use ${CLAUDE_PLUGIN_ROOT} for hook script paths

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

oh-my-claude Development

Claude Code plugin providing ultrawork mode, context protection, and specialized agent workflows.

Structure

├── .claude-plugin/marketplace.json    # Marketplace registry (version x2)
├── .github/workflows/validate-plugin.yml
├── PLUGIN-STRUCTURE.md               # Detailed architecture guide
├── tests/oh-my-claude/hooks/         # Hook unit tests
│   └── CLAUDE.md                     # Testing conventions
└── plugins/oh-my-claude/             # The actual plugin
    ├── .claude-plugin/plugin.json    # Plugin metadata (version x1)
    ├── agents/                       # 7 specialized agents
    ├── docs/                         # Authoring guides and compatibility notes
    ├── hooks/                        # Python hooks (PEP 723)
    │   └── CLAUDE.md                 # Hook development patterns
    ├── commands/                     # /prime (auto-discovered)
    ├── skills/                       # Skills (in plugin.json)
    │   └── oh-my-claude-runtime/     # Runtime workflow guidance skill
    └── .mcp.json                     # Plugin MCP servers

Plugin-root CLAUDE.md is not loaded as runtime context by current Claude Code. Ship runtime behavior through hooks, skills, agents, commands, MCP, and plugin settings instead.

Development Workflow

Prerequisites

  • jq - JSON validation
  • Python 3.11+ - Hooks auto-install deps via uv

Version Bumping (CRITICAL)

Claude Code caches plugins. Any change requires bumping version in BOTH:

  1. .claude-plugin/marketplace.json - metadata.version AND plugins[0].version
  2. plugins/oh-my-claude/.claude-plugin/plugin.json

Then: /plugin update oh-my-claude and start new session.

Testing

Run hook unit tests:

cd tests/oh-my-claude/hooks
uv run --with pytest pytest . -v

CI/CD

GitHub Actions validates: JSON syntax, version sync across files, no ../ paths, shellcheck, ruff linting, pytest, and skill directories. Pytest covers structured hook args and hook script existence.

Hook Development

See plugins/oh-my-claude/hooks/CLAUDE.md for patterns and templates. Key: PEP 723 inline deps, JSON stdin/stdout, @hook_main decorator.

Rules

  1. Plugins MUST be in plugins/your-plugin/ subdirectory
  2. NEVER use ../ paths - files outside source do not exist in cache
  3. hooks/hooks.json auto-discovered - do NOT reference in plugin.json
  4. Use ${CLAUDE_PLUGIN_ROOT} for hook script paths
  5. Skills must be explicitly listed in plugin.json

See /PLUGIN-STRUCTURE.md for complete guide.

Site Sync

The site/ landing page hardcodes plugin component names and counts. When you change any of these, update the site too:

ChangeUpdate
Add/remove agentsite/src/components/AgentGrid.astro
Add/remove skillsite/src/content/copy.ts stats
Add/remove hooksite/src/content/copy.ts stats
Change agent descriptionsAgentGrid.astro + relevant components
Change workflow/featuresRelevant component in site/src/components/

Claude Code Update Sources

Official sources for researching Claude Code features and release notes.

Primary (Most Stable)

Documentation

Announcements

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.