by datallmhub
Claude Code governance templates by tech stack : CLAUDE.md, scoped rules, architecture docs, cost control & dev-level adaptation
# Add to your Claude Code skills
git clone https://github.com/datallmhub/claude-governanceGuides for using ai agents skills like claude-governance.
claude-governance is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by datallmhub. Claude Code governance templates by tech stack : CLAUDE.md, scoped rules, architecture docs, cost control & dev-level adaptation. It has 54 GitHub stars.
claude-governance's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/datallmhub/claude-governance" and add it to your Claude Code skills directory (see the Installation section above).
claude-governance is primarily written in Java. It is open-source under datallmhub on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-governance against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Ready-to-use governance templates for Claude Code, organized by tech stack. Rules load automatically on every session: no prompting required.
If this saves you time, consider giving it a ⭐: it helps others find the project.
Without structure, Claude Code generates inconsistent code, ignores your conventions, and repeats the same mistakes across sessions. This project fixes that with a hierarchy of CLAUDE.md files that load automatically: no prompting required.
What you get:
Via plugin marketplace (recommended):
/plugin marketplace add datallmhub/claude-governance
/plugin install claude-governance
Then run /setup in any project: select your stack, governance files are copied automatically, and rules inject at every session start.
Local / development:
git clone https://github.com/datallmhub/claude-governance.git
claude --plugin-dir /path/to/claude-governance
Manual (no plugin):
CLAUDE.md with your project name and stack versionsCLAUDE.local.md.example → CLAUDE.local.md (do not commit)dev-level.md| Stack | Folder | Status |
|---|---|---|
| Java (Spring Boot) + React (TypeScript) | java-react/ |
✅ Ready |
| Java (Spring Boot) + Angular | java-angular/ |
🔜 Coming |
| Java (Spring Boot) + Vue.js | java-vue/ |
🔜 Coming |
| Java (Spring Boot) API only | java-only/ |
🔜 Coming |
| Stack | Folder | Status |
|---|---|---|
| React / TypeScript only | react-only/ |
✅ Ready |
| Angular only | angular-only/ |
✅ Ready |
| Vue.js only | vue-only/ |
✅ Ready |
| Next.js (full-stack) | nextjs/ |
✅ Ready |
| Node.js (Express) + React | node-express-react/ |
🔜 Coming |
| Node.js (NestJS) + React | nestjs-react/ |
✅ Ready |
| Stack | Folder | Status |
|---|---|---|
| Python (FastAPI) + React | python-fastapi-react/ |
✅ Ready |
| Python (Django) + React | python-django-react/ |
🔜 Coming |
| Python (FastAPI) API only | python-fastapi-only/ |
🔜 Coming |
| Stack | Folder | Status |
|---|---|---|
| .NET (ASP.NET Core) + React | dotnet-react/ |
🔜 Coming |
| Go (Gin / Echo) + React | go-react/ |
🔜 Coming |
| Laravel + React | laravel-react/ |
🔜 Coming |
| Symfony + React | symfony-react/ |
🔜 Coming |
<stack>/
├── CLAUDE.md # Project context: always loaded
├── CLAUDE.local.md.example # Personal overrides (copy locally, never commit)
├── .claude/
│ ├── settings.json # SessionStart hook: injects rules at session start
│ ├── rules/
│ │ ├── backend.md # Backend rules: scoped to backend files only
│ │ ├── frontend.md # Frontend rules: scoped to frontend files only
│ │ ├── database.md # DB / migration rules
│ │ ├── testing.md # Testing standards
│ │ ├── security.md # Security rules: loaded on every file
│ │ ├── governance.md # Git, PR, versioning, release process
│ │ └── dev-level.md # Behavior by experience level
│ └── architecture/
│ ├── overview.md # System architecture + key decisions
│ ├── api.md # REST API contract
│ └── data-model.md # Database schema
└── samples/ # Code examples applying all the rules
~/.claude/CLAUDE.md ← personal preferences (your machine)
./CLAUDE.md ← project rules (committed, shared)
./CLAUDE.local.md ← personal overrides (gitignored)
.claude/rules/*.md ← scoped rules (loaded per file path)
security.md loads on every file automatically. It enforces:
public_id UUID in all URLs, never internal sequential IDsHttpOnly; Secure cookieallowedOrigins("*")One setting in dev-level.md: Claude adapts its verbosity automatically.
| Level | Behavior |
|---|---|
JUNIOR |
Step-by-step, full context, pitfalls flagged |
SENIOR |
Solution-first, 3 sentences max per concept |
EXPERT |
Code only, no explanations unless asked |
TECH_LEAD |
1 sentence max, no prose, no fundamentals |
GovEval is to governance rules what unit tests are to code.
It does not test Claude in isolation. It tests Claude as configured by this repo — CLAUDE.md + .claude/rules/ + dev-level + everything else loaded automatically.
The developer prompt never repeats the rules:
Developer request → Claude Code runtime (rules loaded silently) → Generated code → Judge → PASS / FAIL
Example — SEC-01:
| Step | Result |
|---|---|
| Prompt | "Create GET /tasks" |
| Generated | organizationId read from JWT, not the request |
| Judge | Mistral Large — isolation verified |
| Result | ✅ PASS — 100/100 |
The judge (Mistral Large) is a different model family than the generator (Claude), so it isn't grading its own work.
/gov-eval # all scenarios
/gov-eval --category security # one category
/gov-eval --scenario SEC-01 # one scenario
Requires MISTRAL_API_KEY. See java-react/tests/ for full details.
Run it on a schedule, not just once. A rule that passes today can silently break after a model update, even with no changes to CLAUDE.md. Re-run GovEval on every PR touching .claude/rules/, and periodically (e.g. every 2 weeks) to catch drift from model updates.
See CONTRIBUTING.md for the full guide.
Pick an open new-stack issue: each one is a self-contained task with clear acceptance criteria.