bdk
CLAUDE.md1 starsChanged 48 days agoMITView on GitHub
Claude Code plugin packaging reusable dev workflows (skills, agents, hooks) that install into any project. rules/ = BDK distributable output — ships to user projects. Not .claude/rules/ (dev-time conventions for BDK itself). Portability rule: skill only makes sense for one language stack or domain → not BDK. Put in target project's .claude/ instead. STARTUP_INSTRUCTIONS.md injected into every user session. Changes affect all skills. - Keep concise — occupies context every session start - Verify skills relying on modified section still…
In this repository26 other files it gives its agents.
- agent-lintSkill
- skill-lintSkill
- add-ruleSkill
- bdk-implementer-return-contractSkill
- bdk-lint-toolsSkill
- bdk-rules-architectureSkill
- bdk-rules-code-qualitySkill
- bdk-rules-design-patternsSkill
- bdk-rules-languagesSkill
- bdk-rules-securitySkill
- bdk-test-toolsSkill
- commitSkill
- create-adrSkill
- create-planSkill
- crSkill
- debugSkill
- designSkill
- explain-complex-codeSkill
- mermaid-drawerSkill
- pr-reviewSkill
- refine-rulesSkill
- setupSkill
- subagent-execute-planSkill
- test-driven-developmentSkill
- update-docsSkill
- verify-planSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Every skill starts with: > Relies on BDK foundation (STARTUP_INSTRUCTIONS.md)...
- Distinctive: line 48
Verify: no project-specific paths, tool names, or commands
- Very specific: line 49
Add entry to ## Skills table in README.md
- Very specific: line 50
Write eval in tests/evals/skills/<name>/
- Distinctive: line 63
Keep concise — occupies context every session start
- Distinctive: line 64
Verify skills relying on modified section still work
- Distinctive: line 65
Test in isolated project after changes
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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
BDK — Broneq Dev Kit
Claude Code plugin packaging reusable dev workflows (skills, agents, hooks) that install into any project.
Architecture
skills/ — thin workflow definitions (language-agnostic)
agents/ — subagent definitions used internally by skills
hooks/ — hooks.json + shell scripts
rules/ — convention docs distributed WITH the plugin to end-users
STARTUP_INSTRUCTIONS.md — injected into user sessions at SessionStart via hook
tests/evals/ — skill behavior evals (LLM output grading, iterations)
tests/unit/ — pytest unit/integration tests for scripts
docs/ — design specs and analysis
rules/= BDK distributable output — ships to user projects. Not.claude/rules/(dev-time conventions for BDK itself).
Key Conventions
- Skills must be language-agnostic — no hardcoded
pytest,go test,npm test, etc. - Environment discovery (test runner, build tool, lint command) delegated to
STARTUP_INSTRUCTIONS.md - New skills auto-inherit all conventions — edit shared foundation, not individual skills
- Skills reference each other with full namespace:
/bdk:create-plan,/bdk:debug - Every skill starts with:
> Relies on BDK foundation (STARTUP_INSTRUCTIONS.md)...
Development Commands
# Install BDK locally into a test project
# Launch Claude Code from the target project directory with:
claude --plugin-dir ~/projects/bdk
# Invoke a skill in the test project
/bdk:commit
/bdk:debug
# Run unit tests (deterministic, fast)
pytest tests/unit/
# Run skill evals — see .claude/rules/skill-test-eval.md for formatAdding a New Skill
- Create
skills/<name>/skill.md - Verify: no project-specific paths, tool names, or commands
- Add entry to
## Skillstable inREADME.md - Write eval in
tests/evals/skills/<name>/
Portability rule: skill only makes sense for one language stack or domain → not BDK. Put in target project's .claude/ instead.
Adding an Agent
- Create
agents/<name>.md - Assign model (
haiku= fast/cheap,sonnet= balanced,opus= deep analysis) - List in
## Agentstable inREADME.md
Modifying the Shared Foundation
STARTUP_INSTRUCTIONS.md injected into every user session. Changes affect all skills.
- Keep concise — occupies context every session start
- Verify skills relying on modified section still work
- Test in isolated project after changes
Plugin Reference Verification
When implementing or modifying anything that depends on Claude Code plugin loader behaviour — directory layout, manifest fields, hook events, frontmatter, ${CLAUDE_PLUGIN_ROOT}, skill discovery, MCP/LSP server config, etc. — fetch https://code.claude.com/docs/en/plugins-reference first and verify the convention against the current spec. Don't trust prior assumptions; the spec evolves. Cite the relevant section before recommending non-standard behaviour.
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.

