Best for
- Designing new constraints for the codebase
- Auditing existing constraints for enforcement gaps
- Deciding whether a rule needs a hook or a skill
athola/claude-night-market/plugins/imbue/skills/vow-enforcement/SKILL.md
Classifies and enforces constraints via soft vows, hard vows, and Nen Court layers. Use when designing or auditing enforcement mechanisms for project rules.
Decision brief
Classifies and enforces constraints via soft vows, hard vows, and Nen Court layers.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/athola/claude-night-market --skill "plugins/imbue/skills/vow-enforcement"Inspect the Agent Skill "vow-enforcement" from https://github.com/athola/claude-night-market/blob/6720bb5cdeadeea6de6e4786a449126b3d417536/plugins/imbue/skills/vow-enforcement/SKILL.md at commit 6720bb5cdeadeea6de6e4786a449126b3d417536. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Add the rule to the relevant skill or CLAUDE.md. This is the cheapest path: zero cost, minutes to deploy, 80% compliance.
Track violations via execution logs, post-hoc audits (imbue:justify reports), user complaints, and Nen Court findings from related audits.
If violation rate exceeds 20% over a 30-day window:
1. Document the violation pattern with evidence 2. Design the hook or validator agent 3. Test the enforcement mechanism in isolation 4. Deploy alongside the soft vow (shadow mode) 5. After 1 week with no false positives, retire the soft vow
ODCV-Bench found that agents break self-imposed constraints 30-50% of the time when goals conflict. Practitioner consensus confirms: past 150 soft rules, compliance drops for ALL rules, not just the new ones.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 331 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Rules that depend on willpower fail under pressure. Enforcement earns trust by making the right path the only path.
ODCV-Bench found that agents break self-imposed constraints 30-50% of the time when goals conflict. Practitioner consensus confirms: past 150 soft rules, compliance drops for ALL rules, not just the new ones.
The core insight: "settings.json is a firewall; CLAUDE.md is an employee handbook." Handbooks work for guidance. Firewalls work for enforcement. Mixing them up creates a false sense of security.
| Layer | Mechanism | Compliance | Examples |
|---|---|---|---|
| Soft Vow | Skill instructions, CLAUDE.md rules | ~80% | "Write tests first", "Keep commits small" |
| Hard Vow | Hooks (PreToolUse/PostToolUse), settings.json permissions | ~100% | Block --no-verify, enforce file size limits |
| Nen Court | External validator agents checking output | Deterministic | Lint checks, test runs, constraint audits |
Soft Vows rely on model compliance. Cheap to add and easy to iterate, but unreliable under goal conflict. Use when the constraint requires judgment, violation is annoying but not dangerous, or you are still learning what the right rule is.
Hard Vows block forbidden actions before they execute via hooks and settings.json permissions. Use when the constraint is binary, violation causes real damage, or the soft vow version was violated repeatedly.
Nen Court spawns external validator agents that audit output after a phase completes. Use when the constraint requires analysis (not pattern matching), a hook cannot express the rule, or the check needs codebase context.
When adding a new constraint, follow this sequence:
Add the rule to the relevant skill or CLAUDE.md. This is the cheapest path: zero cost, minutes to deploy, ~80% compliance.
Track violations via execution logs, post-hoc audits
(imbue:justify reports), user complaints, and Nen
Court findings from related audits.
If violation rate exceeds 20% over a 30-day window:
Current classification of existing constraints:
| Constraint | Current Layer | Target Layer | Notes |
|---|---|---|---|
| Iron Law (no impl without failing test) | Nen Court | Nen Court | validators/iron_law.py audits commit order (#406) |
No --no-verify | Hard | Hard | Already hook-enforceable |
| Scope-guard worthiness scoring | Soft | Soft | Requires judgment, not binary |
| Proof-of-work evidence | Nen Court | Nen Court | validators/proof_of_work.py checks [Ex] refs and status (#406) |
| Bounded discovery reads | Hard | Hard | vow_bounded_reads.py with fcntl.flock for parallel safety (#418) |
| No AI attribution in commits | Hard | Hard | Hook pattern-matches git commit command |
| Markdown line wrapping at 80 chars | Nen Court | Nen Court | validators/markdown_wrap.py flags >80-char prose lines (#406) |
| No emojis in commits | Hard | Hard | Hook pattern-matches git commit command |
The three Nen Court validators are standalone scripts under
plugins/imbue/validators/. Each reads JSON on stdin and writes a
verdict JSON on stdout, using exit codes 0 (pass), 1 (violation), and
2 (inconclusive). Examples:
# Markdown wrap audit on a list of files
echo '{"files": ["README.md", "docs/guide.md"]}' \
| python plugins/imbue/validators/markdown_wrap.py
# Iron Law audit on an explicit commit log
echo '{"commits": [
{"sha": "abc", "ts": 100, "files": ["tests/test_x.py"]},
{"sha": "def", "ts": 200, "files": ["src/x.py"]}
]}' | python plugins/imbue/validators/iron_law.py
# Proof-of-work audit on agent output
echo '{"text": "Tested foo [E1] [E2] [E3]. Status: PASS.", "min_evidence": 3}' \
| python plugins/imbue/validators/proof_of_work.py
Mission orchestrator integration: dispatch the appropriate validator at each phase boundary (see Nen Court Protocol below) and treat exit code 1 as a blocking gate, exit code 2 as advisory.
A vow graduates when any of these conditions hold:
Hard Vows can be demoted back to Soft if:
Nen Court runs at phase boundaries in the mission orchestrator lifecycle:
specify: validate spec completenessplan: validate plan feasibilityexecute: validate Iron Law, additive bias,
proof-of-workpr-prep: final compliance auditvalidator:
name: iron-law-court
constraint: "Tests must drive implementation"
inputs:
- git log with timestamps
- diff of test files vs implementation files
checks:
- test file modified before implementation file
- no test assertions changed to match output
- coverage did not decrease
output:
verdict: pass | violation | inconclusive
evidence: [list of specific findings]
recommendation: [action if violation]
| Verdict | Meaning | Action |
|---|---|---|
| pass | Constraint satisfied | Phase advances |
| violation | Constraint broken with evidence | Phase blocked until fixed or user overrides |
| inconclusive | Cannot determine compliance | Flag for human review, do not block |
The user can override any Nen Court verdict:
imbue:scope-guard: Soft vow layer. Worthiness
scoring is a judgment call that belongs in skills.imbue:proof-of-work: Mixed enforcement.
Evidence rules are soft; evidence content can be
verified by a Nen Court validator.imbue:justify: Post-hoc Nen Court audit.
Already functions as a validator agent for additive
bias, Iron Law, and test mutations.specify -> [Nen Court: spec review] -> plan
plan -> [Nen Court: plan review] -> execute
execute -> [Nen Court: justify] -> pr-prep
Phase advances only when Nen Court returns pass or
the user provides an explicit override.
imbue:karpathy-principles - the discursive layer
this skill governs (vow-enforcement decides which
principles graduate from skills to hooks)imbue:scope-guard, imbue:proof-of-work,
leyline:additive-bias-defense - example soft vows
that vow-enforcement classifies and may promotedocs/quality-gates.md#skill-level-quality-gate-composition
for the federation this skill governspass, violation, inconclusive) via
exit codes 0, 1, 2; exit code 1 blocks phase advancement
unless the user provides an explicit overrideFrequently asked questions
Classifies and enforces constraints via soft vows, hard vows, and Nen Court layers.
The source record exposes this install command: npx skills add https://github.com/athola/claude-night-market --skill "plugins/imbue/skills/vow-enforcement". Inspect the command and pinned source before running it.
Alternatives
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
prowler-cloud/prowler
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance