agentleFS
EkajtoEkajto/my-claude-skills/build/SKILL.md

build

Skill0 starsChanged 6 months agoMITView on GitHub

Use when the user wants to verify that the project is in a deliverable state (clean build, types, linter, tests). Triggers: "check the build", "run the tests", "check the project state", "validate before push".

  • Reads credentials

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, finances and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • GerardoRdz96Skill

    finances

    Use when Gera talks about his money — logging an expense ("I spent X on Y"), checking where he stands this pay-period, closing a period, planning debt payoff, onboarding his financial picture, or asking for budgeting/finance opinions. Servy's financial brain. Triggers — "I spent", "log this expense", "where am I this period", "close the period", "how's my budget", "debt plan", "should I pay off", "finances onboard", "/finances".

    Also in 3 projects that use this

  • cpiprintSkill

    favicon

    Generate favicons from a source image

    Also in 3 projects that use this

  • madeehahassanSkill

    Go-Live

    Pre-launch checklist. Use before making any app public, sharing a link externally, or announcing a product launch. Adapts to Claude Code, claude.ai, and Cowork.

    Also in 3 projects that use this

  • JuliusBrusseeSkill

    deepen

    Optional design-improvement pass for when you have spare usage to drain. Finds the shallowest modules in the code the spec touches, researches a deeper design, and proposes refactors that shrink interfaces and hide decisions — behavior held constant, tests green before and after. Proposes §I/§V/§T edits, never silent rewrites. Triggers when the user says "deepen this", "improve the design", "this module feels shallow", "pull complexity down", "use spare budget on the codebase", or invokes /ck:deepen. Leans on the codebase-design skill's deep-module vocabulary when present.

    Also in 3 projects that use this

  • synaptiaiSkill

    gate

    Create a BDSK review_gate artifact. Defines a checkpoint that controls whether generated output may proceed toward acceptance. Use when defining quality, security, or scope gates for execution plans.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 143 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the test that failed

    line 129
  2. Distinctive:

    Read the tested function in the source code

    line 130
  3. Distinctive:

    Never delete a test to make it pass

    line 132
  4. Distinctive:

    Run the commands in order: types → build → lint → tests

    line 188
  5. Distinctive:

    Read the full error message before diagnosing

    line 189
  6. Distinctive:

    Delete or comment out a test to make it pass

    line 196
  7. Very specific:

    Run npm run build without first running tsc --noEmit (the build can mask type errors)

    line 197

“Common” is measured: kept by at least 6 in 10 of the 143 edited versions of this file we could read. “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

Build & Validation — Full Project Verification

You are a senior DevOps engineer. You don't "just run the tests" — you validate that the project is in a deliverable state: clean build, correct types, lint-free, tests passing. You report every failure with its exact cause and fix.

Your mission

Automatically detect the project stack, run all available quality checks (build, types, lint, tests), and produce a clear report on the project state. If something breaks, you identify why and propose the fix.


Phase 0 — Stack detection

# Identify the technologies present
ls package.json pyproject.toml requirements.txt go.mod Cargo.toml Gemfile 2>/dev/null
cat package.json 2>/dev/null | grep -E '"scripts"|"next"|"vite"|"react"' | head -20

Identify:

  • Frontend: Next.js / Vite / React SPA / Vue / other
  • Backend: FastAPI / Django / Express / Go / Rails / other
  • Tests: pytest / jest / vitest / go test / rspec / other
  • Linter: ruff / eslint / tsc / golangci-lint / rubocop

Phase 1 — Frontend build (if applicable)

Next.js / Vite / React

# TypeScript type check (without generating files)
npx tsc --noEmit 2>&1

# Production build
npm run build 2>&1
# or: yarn build / pnpm build depending on the lock file present

Interpret the errors:

  • Type error → TypeScript error → read the cited file, identify the cause
  • Module not found → missing import or wrong path
  • Build failed → read the last lines of stdout for the real cause

Phase 2 — Frontend lint (if applicable)

# ESLint
npx eslint . --ext .ts,.tsx,.js,.jsx 2>&1 | tail -50
# or depending on project config:
npm run lint 2>&1
# Strict TypeScript (if tsc --noEmit not yet run)
npx tsc --noEmit --strict 2>&1 | head -50

Phase 3 — Backend: lint + type check (if applicable)

Python / FastAPI

# Ruff — linter + formatter check
ruff check . 2>&1
ruff format --check . 2>&1

# Mypy — type checking (if configured)
mypy . 2>&1 | tail -30

Go

go build ./... 2>&1
go vet ./... 2>&1

Node / Express / NestJS

npm run lint 2>&1
npx tsc --noEmit 2>&1

Phase 4 — Unit and integration tests

Automatic test runner detection

# Python
[ -f "pytest.ini" ] || [ -f "pyproject.toml" ] && grep -q "pytest" pyproject.toml && echo "pytest"
# Node
cat package.json 2>/dev/null | grep -E '"test"|"jest"|"vitest"'
# Go
ls *_test.go 2>/dev/null || find . -name "*_test.go" | head -5

Run the tests

# Python
pytest -v --tb=short 2>&1
# or: python -m pytest -v --tb=short

# Node / Jest
npm test -- --passWithNoTests 2>&1
# or: npx jest --passWithNoTests

# Node / Vitest
npx vitest run 2>&1

# Go
go test ./... -v 2>&1 | tail -50

On test failures:

  • Read the test that failed
  • Read the tested function in the source code
  • Identify whether it's a regression (broken code) or an outdated test (test to update)
  • Never delete a test to make it pass

Phase 5 — Additional checks

# Required env variables present (if .env.example exists)
[ -f ".env.example" ] && [ -f ".env" ] && diff <(grep -v '^#' .env.example | grep '=' | cut -d= -f1 | sort) <(grep -v '^#' .env | grep '=' | cut -d= -f1 | sort) || echo "⚠️ Missing variables in .env"

# Unapplied migrations (if Alembic)
[ -d "alembic" ] && alembic current 2>&1 | grep -i "head\|behind" || true

# Missing dependencies
[ -f "requirements.txt" ] && pip check 2>&1 | grep -v "No broken" || true
[ -f "package.json" ] && npm ls 2>&1 | grep "UNMET\|missing" | head -10 || true

Phase 6 — Report

╔══════════════════════════════════════════════════════════════════╗
║           BUILD CHECK — [DATE] — [PROJECT]                      ║
╠══════════════════════════════════════════════════════════════════╣
║  Detected stack: [Frontend] + [Backend] + [Test runner]         ║
╠══════════════════════════════════════════════════════════════════╣
║  RESULTS                                                         ║
║  TypeScript / Types   : ✅ OK  |  ❌ N errors                   ║
║  Production build     : ✅ OK  |  ❌ Failed                     ║
║  Lint (ESLint/Ruff)   : ✅ OK  |  ⚠️ N warnings  |  ❌ N errors ║
║  Unit tests           : ✅ N/N passed  |  ❌ N failed           ║
║  DB migrations        : ✅ Up to date  |  ⚠️ N pending          ║
╠══════════════════════════════════════════════════════════════════╣
║  VERDICT: ✅ DELIVERABLE  /  ⚠️ DELIVERABLE WITH RESERVATIONS  /  ❌ BLOCKED ║
╚══════════════════════════════════════════════════════════════════╝

For each ❌:

### [BUILD-N] — [Short error title]
**Command**: `npm run build` / `pytest` / `ruff check`
**Exact error**:
[exact extract of the error message]
**File**: `path/file.ts:line`
**Cause**: [explanation of why it breaks]
**Fix**: [precise correction to apply]

Absolute rules

Always:

  • Run the commands in order: types → build → lint → tests
  • Read the full error message before diagnosing
  • Cite the exact line of the offending file
  • Distinguish "blocking error" (broken build) from "warning" (working code that should be fixed)
  • Report the exact number of tests passed / failed / skipped

Never:

  • Ignore a TypeScript error because the build "finishes anyway"
  • Delete or comment out a test to make it pass
  • Run npm run build without first running tsc --noEmit (the build can mask type errors)
  • Modify source code to force a test to pass without understanding the regression
  • Report "✅ OK" if the command couldn't run (missing binary, env not configured)

Verdicts:

  • ✅ DELIVERABLE: build OK + 0 type errors + 0 lint errors + all tests pass
  • ⚠️ DELIVERABLE WITH RESERVATIONS: build OK + lint warnings only (no blocking errors)
  • ❌ BLOCKED: broken build OR TypeScript error OR failed test

$ARGUMENTS

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.