agentleFS
Arch1eSUNArch1eSUN/Arcgentic/skills/verify-gates/SKILL.md

verify-gates

Skill286 starsChanged 5 months agoMITView on GitHub

Runs the mechanical quality gates that the arcgentic state machine requires for state transitions. Invoked indirectly by transition.sh OR directly by orchestrator agent before declaring a state transition. Use when about to call transition.sh OR when manually verifying that a round artifact meets the gate criteria. Each gate is a single Bash script; output is PASS/FAIL with reason.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write <project>/.agentic-rounds/gates/your-gate.sh following the contract above

    line 46
  2. Very specific:

    Run transition.sh --gates-dir <project>/.agentic-rounds/gates ...

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verify gates

What this skill does

arcgentic's state machine has 4 gates (MVP):

GateTransitionVerifies
handoff-doc-gate.shplanning → awaiting_dev_starthandoff doc exists + has all required sections
round-commit-chain-gate.shdev_in_progress → awaiting_audit (also fix_in_progress → awaiting_audit)dev_commits count ≥ expected + every SHA resolves in git
verdict-fact-table-gate.sh`audit_in_progress → passedneeds_fix`verdict file exists + fact_table_pass==total + PASS outcome has no P0/P1 findings

transition.sh runs the required gate automatically. This skill is for the orchestrator (or human) when they want to pre-verify before attempting the transition.

When to invoke this skill

  • About to ask a sub-agent to attempt a state transition → invoke this skill first, run the gate, fix any failures, then transition
  • A transition failed and the orchestrator wants to know WHY → invoke this skill, run the relevant gate, read the failure reason
  • Setting up a new gate for a project-specific transition → this skill's references/gate-script-catalog.md shows the gate-script shape

Gate script contract

Every gate script:

  1. Takes --state-file PATH as its only argument
  2. Reads state.yaml + does whatever check it does
  3. Exits 0 on PASS, 1 on FAIL
  4. Prints PASS line to stdout, FAIL reason to stderr

This contract means gates are composable. You can chain them. You can write project-specific ones in your own <project>/.agentic-rounds/gates/ and reference them in state.yaml's states.<state>.gate field.

Run a gate manually

bash $PLUGIN_ROOT/scripts/gates/handoff-doc-gate.sh \
  --state-file <project>/.agentic-rounds/state.yaml
echo "exit: $?"

Adding a project-specific gate

  1. Write <project>/.agentic-rounds/gates/your-gate.sh following the contract above
  2. Edit state.yaml: set states.<source-state>.gate to your-gate.sh
  3. Run transition.sh --gates-dir <project>/.agentic-rounds/gates ... (override built-in gates dir)

See also

references/gate-script-catalog.md — catalog of built-in gates with anatomy + extension hooks

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.