Configure 50+ governance checks, per-language rules, and 3-tier enforcement. Toggle options below — only non-default values are included.
Start BuildingEvery NAAb project needs two files: govern.json for runtime enforcement and CLAUDE.md for LLM code generation. Download both to your project root.
mkdir my-project && cd my-project curl -o CLAUDE.md https://raw.githubusercontent.com/b-macker/NAAb/master/CLAUDE-TEMPLATE.md curl -O https://raw.githubusercontent.com/b-macker/NAAb/master/govern-template.json mv govern-template.json govern.json # Edit govern.json for your project, add project-specific sections to CLAUDE.md
Toggle options below. Only non-default values appear in your config.
{
"version": "3.0",
"mode": "enforce"
}
Every check in govern.json can be set to one of three enforcement levels.
Cannot be overridden. Use for security-critical rules: injection, secrets, privilege escalation.
Can bypass with --governance-override. Use for quality gates: placeholders, debug artifacts, incomplete logic.
Continues execution with a warning. Use for style guidance: naming conventions, complexity, documentation.
{
"version": "3.0",
"mode": "enforce",
"languages": { "allowed": ["python", "javascript", "shell"] },
"restrictions": {
"dangerous_calls": { "level": "hard" }
}
}
{
"version": "3.0",
"mode": "enforce",
"languages": { "allowed": ["python", "javascript", "go"] },
"code_quality": {
"no_secrets": { "level": "hard" },
"no_placeholders": { "level": "soft" },
"no_debug_artifacts": { "level": "soft" }
},
"audit": { "level": "basic" }
}
{
"version": "3.0",
"mode": "enforce",
"languages": {
"allowed": ["python", "javascript"],
"per_language": {
"python": {
"banned_functions": ["eval(", "exec("],
"imports": { "mode": "blocklist",
"blocked": ["subprocess", "ctypes"] }
}
}
},
"restrictions": {
"dangerous_calls": { "level": "hard" },
"privilege_escalation": { "level": "hard" },
"code_injection": { "level": "hard" }
},
"output": {
"file_output": { "report_sarif": "governance.sarif" }
}
}
{
"version": "3.0",
"mode": "enforce",
"code_quality": {
"no_hallucinated_apis": { "level": "soft",
"check_cross_language": true,
"check_made_up_functions": true },
"no_oversimplification": { "level": "hard",
"check_empty_bodies": true,
"check_fabricated_results": true },
"no_incomplete_logic": { "level": "hard",
"check_empty_catch": true },
"no_simulation_markers": { "level": "hard" },
"no_mock_data": { "level": "advisory" }
}
}