Skip to content
Agentmart
Submit a tool

control-guard

Fail a change that weakens a deterministic control (deleted or skipped tests, lowered thresholds, disabled workflow steps, edited control files, added…

Skill by ALTEN-group

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/alten-group-control-guard

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fail a change that weakens a deterministic control (deleted or skipped tests, lowered thresholds, disabled workflow steps, edited control files, added suppressions, removed assertions, production credentials in agent workflows) and enforce the bug rule (the failing check is committed before the fix). Use in the Code loop, after every agent fix, and in CI on the pull request diff.

Use cases: devops, productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/control-guard
  • /dev/null

What's inside

Skill name
control-guard
Description
Fail a change that weakens a deterministic control (deleted or skipped tests, lowered thresholds, disabled workflow steps, edited control files, added suppressions, removed assertions, production credentials in agent workflows) and enforce the bug rule (the failing check is committed before the fix). Use in the Code loop, after every agent fix, and in CI on the pull request diff.
License
MIT
Instructions
41 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (7)

  • SKILL.md
  • control-guard-contract.md · references/
  • bug-rule.mjs · scripts/
  • bug-rule.test.mjs · scripts/
  • control-guard-fixture.mjs · scripts/
  • control-guard.mjs · scripts/
  • control-guard.test.mjs · scripts/

SKILL.md (first lines)

# Control Guard

Deterministic control-integrity guard. It reads a unified diff and fails when the change weakens the checks that judge it. It also enforces the bug rule on a commit range. Agents run it, they never change it.

## When to Use This Skill

- An agent finished a change or a gate fix and must prove it did not weaken a control to get a pass.
- CI scans the pull request diff before any other control result is trusted.
- A production defect is fixed and the failing check must be committed before the fix.

## Path resolution

Resolve `references/` and `scripts/` relative to **this skill's install directory** (the folder that contains this `SKILL.md`). If the skill was installed under `.agents/skills/control-guard/` or `.claude/skills/control-guard/`, use that base path.

## Workflow

1. **Read `references/control-guard-contract.md`** for the eight rules (R1 to R8), the configuration, and the bug rule.
2. Scan the change. Commit or stage new files first: untracked files are not scanned.

```bash
# Working tree and commits since the merge base with main
node scripts/control-guard.mjs --git origin/main

# A saved diff, or JSON output for an agent
node scripts/control-guard.mjs --diff change.diff --json
```

3. Each finding is printed as `RULE file:line message`. Treat a nonzero exit as a failure: remove the weakening (restore the test, the threshold, the step) and fix the real fault instead. Do not edit `control-guard.json`, workflows, or installed skills. Only the Architect passes `--allow-path` for a control change.
4. For a defect fix, check the commit order, then prove the new check fails without the fix with the `test-probe` skill:

```bash
node scripts/bug-rule.mjs --git origin/main..HEAD --defect "#123"
```

## Done When

- `scripts/control-guard.mjs` exits with code 0 on the final diff.
- For a defect fix, `scripts/bug-rule.mjs` exits with code 0: a tests-only commit precedes the first commit that changes non-test files.
- No `--allow-path` was used by an agent, and no protected file was edited.

From ALTEN-group/coding-pal, MIT.

More from ALTEN-group/coding-pal

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Oct 13, 2026 (15 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ALTEN-group

Cite this page

control-guard skill. Agent Mart. https://agentmart.dev/skills/alten-group-control-guard (last updated 2026-10-24)