# gstack Verify: Build-Check-Fix Loop (verify)

> While coding, runs the repo's declared checks and the tests /ship would pick, fixes and repeats until green.

- Category: [Feature Development](https://www.myskills.tools/en/categories/feature-development/)
- Source: Community · Garry Tan
- Repository: https://github.com/garrytan/gstack/tree/main/verify (commit 923ed3c · v0.1.0)
- SKILL.md: https://github.com/garrytan/gstack/blob/main/verify/SKILL.md
- Install command: `npx skills add garrytan/gstack --skill verify`
- License: MIT
- Compatible with: Claude Code, Codex, Cursor, Copilot
- Permissions: read-repo ✓, write-files ✓, shell ✓, network ✗
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.
- ⚠ Requires gstack; usage is logged to the local gstack analytics directory.

## Core rule

Never weaken, skip, delete or edit a test, a checker config or a package.json script to get green.

## Execution Phases

1. **See what will run** — gstack-checks detect reads files only and lists each check and test selection; if the repo declares none, say so and stop without inventing commands.
2. **Confirm trust** — When repo commands are untrusted, show them and ask before trusting in an interactive session.
3. **Run, fix, run** — Fix code on FAIL, add tests on UNMAPPED, report ENV or TIMEOUT without working around it; stop after 5 runs or a repeated failure.
4. **Hand off** — gstack-checks status reruns nothing; only READY_FOR_SHIP counts as green.

## Permissions (summarised from SKILL.md)

| Capability | Needed | Details |
|---|---|---|
| File writes | Required | Edits code under test and adds tests; never bumps a version, edits CHANGELOG, pushes or opens a PR. |
| Command execution | Limited | Runs the repo's declared checks through gstack-checks; untrusted commands need user consent or an explicit flag. |
| Network outbound | Not required | The skill does not call for network access. |

## SKILL.md frontmatter (YAML)

```yaml
---
name: verify
preamble-tier: 1
version: 0.1.0
description: "Build loop while coding: run the repo's checks and the tests /ship would pick, fix, repeat until green. (gstack)"
triggers:
  - verify my change
  - run the checks
  - make the tests pass
  - check my work before ship
allowed-tools:
  - Bash
  - Read
  - Edit
  - Grep
  - Glob
  - AskUserQuestion
---
```

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/verify/
