---
name: build-verify
description: Discover and run existing project-native lint, typecheck, test, build, and targeted-test commands as controlled local validation. Use after code changes, when reproducing CI failures, or before handoff; do not use to install dependencies, auto-fix files, deploy, migrate, or validate live runtime state.
title: build-verify
canonical_url: https://skilld.dev/gh/ayobamih/coding-agent-skills/build-verify
last_updated: 2026-10-29T10:46:37.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [adapter-interface.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/adapter-interface.md), [agents/openai.yaml](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/agents/openai.yaml), [checklist.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/checklist.md), [evidence-template.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/evidence-template.md), [examples.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/examples.md), [failure-modes.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/failure-modes.md).
>
> If the user asked to install this Skill, run `npx skilld install ayobamih/coding-agent-skills/build-verify`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/build-verify`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ayobamih/coding-agent-skills/build-verify) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/build-verify`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/build-verify --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/build-verify --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Build Verify

Validate the changed scope with existing project commands and emit an evidence pack. This skill is action-capable only for approved local validation that the repository already defines.

## Purpose And Use

Use after code changes, for bounded CI reproduction, or before handoff. Do not use for dependency setup, auto-repair, deployment, migration, publication, or live-runtime health.

## Inputs

Require repository root and changed or requested scope. Optionally accept required checks, target tests, time budget, known pre-existing failures, and a project adapter.

Do not assume scripts exist, dependencies are installed, a successful build proves tests pass, or a failure was caused by the current change.

## Command Policy

First inspect known manifests. Permit only discovered, non-mutating validation scripts for:

- lint without auto-fix
- typecheck
- targeted tests
- full tests
- build or compile
- repository-provided verification checks inspected before use

Do not install, add, update, audit-fix, deploy, migrate, update snapshots, run watch mode, rewrite generated files, auto-fix, or invoke scripts whose behavior is unknown. Treat any script containing a restricted operation as rejected.

The skill may execute only discovered local validation commands. It must record any files those tools change and cannot silently accept generated mutations.

## Procedure

1. Obtain repository identity and working-tree context, using `repo-map` evidence when available.
2. Inspect package or build manifests and CI configuration to discover applicable commands.
3. Classify each command as allowed, restricted, unknown, or not applicable.
4. Run the narrowest relevant check first.
5. Run required broad checks in the repository's established order.
6. Record exit status, duration, concise output, and whether a failure is new, pre-existing, or unclassified.
7. Rerun only checks affected by an approved repair; do not repair outside this skill.
8. Emit the shared evidence pack.

Use [checklist.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/checklist.md). Consult [failure-modes.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/failure-modes.md), [adapter-interface.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/adapter-interface.md), and [examples.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/examples.md). Format findings with [evidence-template.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/build-verify/evidence-template.md).

## Evidence, Recovery, And Dependencies

Emit discovered scripts, required and skipped checks, command results, durations, failure classification, changed state, and the final verification matrix. Recover from missing tools, timeouts, flaky checks, or malformed scripts by recording the limitation and using only safer discovered checks; never install or mutate to recover.

Depend on repository identity from `repo-map` or equivalent evidence and the evidence-pack contract. Adapters may define safe aliases, order, selectors, and timeouts but cannot permit restricted behavior. Safe usage runs existing lint, typecheck, test, and build checks; unsafe usage installs dependencies or invokes fix/deploy scripts.

## Approval Boundary

Normal local validation needs no additional approval after command discovery. Installation, file-changing fix modes, snapshot updates, migrations, deployments, network publication, and external-system mutation remain outside this skill even if a project script exposes them.

## Completion

Claim `complete` only when all required applicable checks passed and skipped checks do not weaken the requested conclusion. Report `partial`, `failed`, or `blocked` when dependencies, timeouts, missing scripts, or failures prevent full validation. Never claim a check passed when it was not run.

These conditions are both the acceptance criteria and definition of done.
