Agent redline
Agent governance as a skill. Stops AI agents from quietly turning local fixes into architecture debt.
npx -y skills add rore/agent-redline --skill agent-redlineAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when setting up agent governance for a repo, or when working in a repo that contains agent-policy.yaml. Classifies structural risk and routes human attention to red-zone changes.
SKILL.md
3.0 KB, 681 tokens by cl100k_base, as published. Nobody here has run it
agent-redline
You classify changes before editing. Deterministic CI checks (a boundary-rule backend, the reporter) catch what you miss.
Vocabulary
| Term | Meaning |
|---|---|
| Red zone | Changes are dangerous: contracts, modeling, architecture, security, persistence, shared behavior. |
| Blue zone | Autonomous work fine: isolated, replaceable, strongly testable, low blast-radius. |
| Gray zone | Unclassified. Cautious by default. |
| Watch | Additive tag (not a zone): paths surfaced in the PR comment regardless of red/blue/gray classification. No checkpoint, no gate — visibility only. |
| Boundary rule | Deterministic dependency rule (X must not import Y). Enforced by a backend (e.g., ArchUnit). |
| Checkpoint | Required human attention; satisfied by a label or CODEOWNER approval. Types: architecture-review, api-review, persistence-review, security-review, ops-review. |
Pick a mode
agent-policy.yamlexists in the repo root → readoperating-mode.md. Everyday work.- The user asked you to set up agent-redline → read
bootstrap-mode.md. One-time setup. - Neither → this skill is not relevant.
Read only the file for the mode that applies.
Principles (non-negotiable)
- Classify before editing. Decide blue / red / gray before you touch a file; note any
watchpaths to surface in the PR. - Refuse boundary shortcuts. If a change would create a forbidden dependency, fix the structure or escalate. Do not suppress, do not modify the architecture-test files, do not launder the import.
- Architecture-test files are red. Any change to the boundary-rule backend's definition files (e.g., ArchUnit test classes) requires
architecture-review, regardless of what the policy says. - Never auto-commit CI changes. Workflows, branch protection, CODEOWNERS — propose, don't commit.
- Default conservative on uncertainty. Gray > blue, red > gray, boundary risk > everything.
- No slop. Tight PR descriptions, tight code comments. What's not obvious from the code, and what it does.
Decision priority
When ambiguous:
- The repo's
agent-policy.yaml - The repo's
AGENTS.md/CLAUDE.md/GEMINI.md - The active language extension's
operating.md(if present) - These principles
- Ask the developer
Do not invent rules the policy doesn't state.
Resources (load on demand)
operating-mode.md— read when entering operating modebootstrap-mode.md— read when entering bootstrap mode- Active extension's files in
extensions/<name>/—profile.mdandscaffold.mdduring bootstrap;operating.mdonce per session in operating mode if present docs/agent/in the consuming repo — read a per-checkpoint doc only when escalating to that checkpoint
What ships with it: 36 files
294.2 KB alongside SKILL.md, 5 of them executable
assets/
extensions/
- jvm-archunit/adapter.yaml1.1 KB
- jvm-archunit/operating.md2.3 KB
- jvm-archunit/profile.md17.6 KB
- jvm-archunit/README.md3.6 KB
- jvm-archunit/scaffold.md11.6 KB
- jvm-archunit/suppressions.yaml394 B
- python/adapter.yaml1.0 KB
- python/operating.md2.8 KB
- python/profile.md16.8 KB
- python/README.md3.4 KB
- python/scaffold.md18.5 KB
- python/scripts/run-import-linter.pyruns11.9 KB
- python/suppressions.yaml629 B
references/
- per-checkpoint/api-change-checkpoint.md2.2 KB
- per-checkpoint/blue-zone-work.md1.2 KB
- per-checkpoint/boundary-violation.md2.8 KB
- per-checkpoint/gray-zone-change.md2.0 KB
- per-checkpoint/persistence-change-checkpoint.md2.6 KB
- per-checkpoint/pr-discipline.md2.3 KB
- per-checkpoint/red-zone-change.md1.9 KB
- per-checkpoint/security-change-checkpoint.md2.1 KB
scripts/
- agent-redline-report.pyruns61.0 KB
- agent-redline-tune.pyruns15.3 KB
- _reporter.pyruns61.0 KB
- bootstrap-mode.md18.1 KB
- operating-mode.md5.3 KB
- .package-source-rev8 B
- README.md1.6 KB
Gives 0 of the 12 instructions most context ai engineering skills give in 681 tokens
Counted across 1,193 of the 1,976 authors here whose files we hold, read 2026-08-07
- Dispatch a fresh implementer subagent per taskin 48 of 1193, across 19 files
- Dispatch a final code reviewer after all tasksin 33 of 1193, across 8 files
- Provide full task text to the subagentin 30 of 1193, across 9 files
- Review spec compliance before code qualityin 27 of 1193, across 10 files
- Make the hook script executablein 26 of 1193, across 8 files
- Re-snapshot after navigation or DOM changesin 25 of 1193, across 19 files
- Read files before editing themin 22 of 1193, across 11 files
- Answer subagent questions before proceedingin 22 of 1193, across 7 files
- Mark task complete in TodoWrite after approvalin 22 of 1193, across 6 files
- Merge hook into existing settingsin 21 of 1193, across 3 files
- Ask if installation is global or projectin 20 of 1193, across 2 files
- Copy the hook script to target locationin 20 of 1193, across 2 files
Said here and by no other author read
- refuse boundary shortcuts
- treat architecture-test files as red zone
- escalate or fix when facing boundary violations
- default to conservative classification on uncertainty
- never auto-commit CI configuration changes
- write tight PR descriptions and code comments
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.