gate-build

gate-build is a skill for Claude Code from Obsidian-Owl/specwright. It costs 51 tokens per session (808 once invoked), scanned A, original, MIT.

A build-and-test check that runs the project's configured commands in order. Tiers are separate levels such as compilation, ordinary tests, integration tests, and smoke tests.

In plain words
What is it for?
It runs build, test, integration-test, and smoke-test commands when configured, stops after a failure, captures evidence, and reports pass, fail, warning, or skip results.
Why use it?
It shows whether the code builds and tests pass, and makes unconfigured or skipped checks visible instead of hiding them.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It runs build, test, integration-test, and smoke-test commands when configured, stops after a failure, captures evidence, and reports pass, fail, warning, or skip results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obsidian-owl/specwright/gate-build
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Obsidian-Owl/specwright --skill gate-build
Clone the repo
git clone --depth 1 https://github.com/Obsidian-Owl/specwright

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gate-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-build/github.svg)](https://agentmods.dev/skills/obsidian-owl/specwright/gate-build)
Your own site
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/gate-build"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gate-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/gate-build"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 808 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00808
Opus 5.5 $0.00020 $0.00323
Sonnet 5.5 $0.00010 $0.00162
Haiku 4.5 $0.00005 $0.00081

Measured 1mo ago against content hash 25fa60b56b0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gate-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/skills/gate-build/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gate: Build

Goal

Confirm the codebase compiles and tests pass across all configured tiers. This is the most basic gate — if the code doesn't build or tests don't pass, nothing else matters.

Inputs

  • {projectArtifactsRoot}/config.json -- commands.build, commands.test, commands.test:integration, commands.test:smoke
  • {repoStateRoot}/work/{selectedWork.id}/workflow.json -- selected work unit for evidence path

Outputs

  • Evidence file at {workDir}/evidence/build-report.md
  • Gate status update in the selected work's workflow.json: PASS, FAIL, WARN, or SKIP
  • Console output showing results inline (users see findings, not just badges)

Constraints

Tiered Execution (LOW freedom):

Run tiers in execution order: commands.build → commands.test → commands.test:integration → commands.test:smoke. Each tier runs only if the previous tier passes (any tier failure stops further execution).

  • If a tier's command is null or not configured, that tier produces SKIP. Emit an INFO note for each unconfigured tier — visibility rule: display the unconfigured tier name so users know what was skipped.
  • If all tier commands are null/unconfigured, gate status is SKIP.
  • Timeout: 5 minutes per command. If exceeded, status is ERROR.

Per-Tier Verdicts (LOW freedom):

Tier Failure verdict
commands.build FAIL
commands.test FAIL (test failure = FAIL)
commands.test:integration FAIL (integration failure = FAIL)
commands.test:smoke WARN (smoke produces WARN on failure — charter exception: quality gates default to FAIL: smoke tests validate optional end-to-end paths; degraded smoke is advisory, not blocking)

Unconfigured tier = SKIP.

Evidence (LOW freedom):

Follow protocols/evidence.md. Evidence starts with a tier layout header summarizing configured tiers and their run order. Each tier produces its own evidence section containing: command executed (capture command run), exit code, stdout/stderr output, and duration (elapsed wall time). Per-tier sections are written regardless of tier outcome.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 88 lines · 51 tokens per session scan A 25fa60b56b0f

Subscribe to this mod's changes

gate-build is a skill published in the GitHub repository Obsidian-Owl/specwright (10 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 808 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

integration-e2e-testing

Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria. Use when designing integration tests, E2E tests, or reviewing test quality.

shinpr/claude-code-workflows · 42 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

brooks-health

Combined codebase health dashboard that scores a project across all four quality dimensions — PR quality, architecture, tech debt, and test quality — in a single pass, drawing on twelve classic engineering books. Triggers when: user wants an overall quality assessment, asks "how healthy is this codebase?", "run all…

hyhmrright/brooks-lint · 156 tokens

brooks-test

Test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock abuse, coverage illusions, slow…

hyhmrright/brooks-lint · 161 tokens

recipe-add-integration-tests

Add integration/E2E tests to existing codebase using Design Docs.

shinpr/claude-code-workflows · 19 tokens

testing-principles

Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with frontend and browser E2E implementation references. Use when writing tests, deciding test scope, or reviewing test quality.

shinpr/claude-code-workflows · 50 tokens