cc-thingz
CLAUDE.md482 starsChanged 3 months agoMITView on GitHub
Things to make Claude Code even better — hooks, skills, and commands, organized as a marketplace of independent plugins.
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Changelog: when bumping a plugin version, update CHANGELOG.md in the same change.
≈ “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.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Repository Purpose
Things to make Claude Code even better — hooks, skills, and commands, organized as a marketplace of independent plugins.
Key Rules
- README.md must be kept up to date — whenever a new component, script, or configuration is added, update README.md with a description of what it does and how to use it.
- Content is MIT-licensed.
- This is a personal project by Umputun (GitHub).
- No personal configuration — scripts and configs must be generic and not contain hardcoded personal paths, editor preferences, or machine-specific settings. Use environment variables (e.g.,
$EDITOR) for user-specific values. - Self-contained documentation — do not reference external custom skills, actions, or configurations that exist only in a user's personal Claude Code setup. All documentation must refer only to what exists in this repository.
Conventions
- Hook scripts use
${CLAUDE_PLUGIN_ROOT}for path resolution when running as a plugin. The plugin system copies files to a cache location during install, so absolute/relative paths won't work. - Manual install instructions are kept in README.md as a fallback for users who prefer direct setup.
- Versioning — each plugin has its own
versioninplugins/<name>/.claude-plugin/plugin.json. Bump independently per plugin. Use semver: patch for bug fixes, minor for new components, major for breaking changes. Bump triggers on any change to bundled plugin content — prompts, agents, references (e.g.,usage.md), scripts, commands, hooks — not just.claude-plugin/files. Anything shipped to consumers via the plugin is a release artifact. - Changelog: when bumping a plugin version, update
CHANGELOG.mdin the same change. Version headings use the plugin name and plugin version (e.g.,## planning v3.7.1 - YYYY-MM-DD), not tags. Keep entries grouped like the changelog style: New Features, Improvements, Bug Fixes, Other. - Cross-references — when skills reference other skills within the same plugin, use the plugin name prefix (e.g.,
/review:writing-style). When referencing skills in other plugins, use that plugin's name (e.g.,/planning:make).
Structure
.claude-plugin/marketplace.json— marketplace catalog listing all pluginsplugins/— each subdirectory is an independent plugin:plugins/brainstorm/— collaborative design skillplugins/review/— PR review skill + writing style skillplugins/planning/— plan command, exec skill, plan-annotate hook, and bundled reference filesplugins/release-tools/— release workflow + last-tag skillsplugins/thinking-tools/— dialectic analysis + root-cause-investigator skillsplugins/skill-eval/— skill evaluation hookplugins/workflow/— session workflow helpers (learn, clarify, wrong, md-copy, txt-copy)
- Each plugin has its own
.claude-plugin/plugin.json, and standard subdirectories (skills/,commands/,hooks/) as needed.
Local Plugin Development
- Testing locally — use
claude --plugin-dir plugins/<name>to load a local plugin without publishing. Use/reload-pluginsinside a session to pick up file changes without restarting. - Updating marketplace cache — plugin hooks and skills are read from
~/.claude/plugins/marketplaces/, notcache/. When manually testing changes, copy files to the marketplace path.
Known Claude Code Limitations
- Plugin skill autocomplete — skills defined in
skills/*/SKILL.mddon't appear in the/autocomplete dropdown, only commands incommands/*.mddo. Skills are still invocable by typing the full name (e.g.,/planning:exec) or via natural language intent matching. - Plugin hook deny rendering — PreToolUse hooks that return
permissionDecision: "deny"display as "blocking error" with an ugly error prefix in the TUI. The same deny from a settings.json hook renders cleanly as a permission prompt. This is a Claude Code rendering issue, not fixable from the plugin side.
Testing
- Python scripts include embedded tests run via
--testflag:python3 plugins/planning/scripts/plan-annotate.py --test - Shell test scripts live in
tests/:bash tests/test-planning-resolve-rules.sh,bash tests/test-brainstorm-resolve-rules.sh. CI runs everytests/test-*.sh, so a new file there is picked up automatically - CI helper scripts live in
.github/scripts/.check-frontmatter.pyvalidates YAML frontmatter across the repo (python3 .github/scripts/check-frontmatter.py .) and carries its own tests (--test)
Plugin Design Constraints
- Subagents have no Agent tool — verified empirically (Claude Code 2.1.140): a spawned
general-purposesubagent invokingToolSearch("select:Task")returns "No matching deferred tools found". Subagents cannot spawn other subagents. - Implication for prompt design: any prompt that needs to fan out parallel subagents must be executed by the main session orchestrator, not given to a spawned subagent. Example:
plugins/planning/skills/exec/references/prompts/review.mdis a playbook that the orchestrator reads and follows directly (per SKILL.md steps 7 and 10) — never passed to a subagent as its prompt. - Single-subagent prompts are fine —
task.md,fixer.md,finalizer.md,codex-review.md,agents/smells.txtall run as spawned subagents because they perform leaf work (no further spawning needed). Multi-level orchestration must collapse to one level via the main session.
Custom Rules Injection
- Plugins can support user-provided custom rules via
resolve-rules.shscripts inplugins/<name>/scripts/ - Resolution chain:
.claude/<rules-file>(project) →$CLAUDE_PLUGIN_DATA/<rules-file>(user), first-found-wins, never merged - Skills/commands load rules via LLM-invoked bash (
bash ${CLAUDE_PLUGIN_ROOT}/scripts/resolve-rules.sh <filename>) and apply as additional instructions - Reference docs for each plugin's rules mechanism live in
plugins/<name>/references/custom-rules.md
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.

