Guard writer

From govctl-org/govctl · View interactive version

Guard writer is an AI agent skill from the GitHub repository govctl-org/govctl. Define reusable, non-interactive verification guards with stable commands and risk-matched scope

How to use this skill

Skill file

Guard Writer

Define reusable executable completion checks under [[RFC-0000:C-GUARD-DEF]].

This helper owns guard quality; the invoking workflow decides which Work Items

use a guard.

Discovery

govctl guard list
govctl guard show <GUARD-ID>
govctl work show <WI-ID>

Check gov/config.toml for project defaults. Use govctl <resource> --help

for current syntax.

Hard Stops

it is reusable.

the invoking workflow.

Writing A Guard

A guard has id, title, optional refs, a command, optional

timeout_secs, and an optional output pattern. Let govctl guard handle

serialization and field validation.

The command should:

Keep commands simple and portable. Reference the RFC or ADR the guard helps

verify. For a reusable scenario with a Conformance Case, add the guard to that

Case's guards field; never put CONF-* IDs in guard refs.

Placement

needs: fast, stable, environment-independent, and relevant even to

documentation-only work.

its changed surface, references, and criteria.

narrower guard can cover.

item guard set. Repeated waivers mean the guard's scope is wrong; fix the

scope instead of waiving again.

Checklist

serves the same purpose.

pattern syntax.

Hand VCS work to the commit skill.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.