Get the FREE Ultimate OpenClaw Setup Guide →

ln-781-build-verifier

Scanned
npx machina-cli add skill levnikolaevich/claude-code-skills/ln-781-build-verifier --openclaw
Files (1)
SKILL.md
4.0 KB

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-781-build-verifier

Type: L3 Worker Category: 7XX Project Bootstrap Parent: ln-780-bootstrap-verifier


Purpose

Detects project types, restores dependencies, executes builds, and verifies successful compilation.

Scope:

  • Auto-detect project types from file markers
  • Restore dependencies using appropriate package manager
  • Execute build commands for each project
  • Verify build artifacts exist

Out of Scope:

  • Running tests (handled by ln-782)
  • Container operations (handled by ln-783)
  • Workflow orchestration (handled by ln-780)

When to Use

ScenarioUse This Skill
Called by ln-780 orchestratorYes
Standalone build verificationYes
CI/CD pipeline build stepYes
Test execution neededNo, use ln-782

Workflow

Step 1: Detect Project Types

Scan project root for type markers.

Marker FileProject TypeBuild System
package.jsonNode.js/Frontendnpm/yarn/pnpm
*.csproj.NETdotnet
setup.py / pyproject.tomlPythonpip/poetry
go.modGogo build
Cargo.tomlRustcargo
pom.xmlJava/Mavenmvn
build.gradleJava/Gradlegradle

Step 2: Restore Dependencies

For each detected project, restore dependencies before building.

Project TypeDependency Restoration
Node.jsInstall packages from lock file
.NETRestore NuGet packages
PythonInstall from requirements or pyproject
GoDownload modules
RustFetch crates

Step 3: Build Projects

Execute build for each project type in Release/Production mode.

Project TypeBuild ModeExpected Outcome
Node.jsProductionBundled assets in dist/ or build/
.NETReleaseCompiled DLLs in bin/Release/
PythonEditable installPackage installed in environment
GoProductionCompiled binary
RustReleaseOptimized binary in target/release/

Step 4: Verify Build Artifacts

Confirm build outputs exist.

Project TypeArtifact Check
Node.jsdist/ or build/ directory exists, contains files
.NETDLL files in bin/Release/{framework}/
PythonPackage importable
GoBinary executable exists
RustBinary in target/release/

Step 5: Report Results

Return structured results to orchestrator.

Result Structure:

FieldDescription
projectNameName of the project
projectTypeDetected type (nodejs, dotnet, python, etc.)
statussuccess / failed
durationBuild time in seconds
outputPathPath to build artifacts
errorMessageError details if failed

Error Handling

Error TypeRecovery Action
Dependency restore failedCheck network, verify lock file integrity
Compilation errorsLog full error output, report as failed
Missing build toolReport required tool installation
TimeoutReport timeout, suggest increasing limit

Critical Rules

  1. Always restore dependencies first - builds may fail without fresh dependencies
  2. Use production/release mode - development builds may hide issues
  3. Verify artifacts exist - successful exit code is not sufficient
  4. Report all projects - include both successful and failed builds

Definition of Done

  • All project types detected
  • Dependencies restored for each project
  • Build executed for each project
  • Artifacts verified to exist
  • Results returned to orchestrator

Reference Files

  • Parent: ../ln-780-bootstrap-verifier/SKILL.md

Version: 2.0.0 Last Updated: 2026-01-10

Source

git clone https://github.com/levnikolaevich/claude-code-skills/blob/master/ln-781-build-verifier/SKILL.mdView on GitHub

Overview

The ln-781-build-verifier automatically detects project types from repository markers, restores dependencies, runs builds, and confirms artifacts exist. It supports common ecosystems (Node.js, .NET, Python, Go, Rust, Java) and ensures every detected project compiles before proceeding.

How This Skill Works

It scans the repository root for type markers (e.g., package.json, *.csproj, go.mod, etc.), then uses the appropriate package manager and build tool to restore dependencies and compile in Release/Production mode. After building, it verifies the presence of expected artifacts (dist/build, bin/Release, binaries) and returns a structured result including projectName, projectType, status, duration, outputPath, and errorMessage if any.

When to Use It

  • Called by ln-780 orchestrator
  • Standalone build verification
  • CI/CD pipeline build step
  • Pre-release validation
  • Pre-merge quality checks

Quick Start

  1. Step 1: Run the verifier at the repo root to auto-detect projects
  2. Step 2: Let it restore dependencies and build all detected projects
  3. Step 3: Review the returned results (projectName, status, outputPath) for success

Best Practices

  • Always restore dependencies before building to avoid flaky failures
  • Build in production/release mode to surface real issues
  • Verify that artifacts exist and are accessible after each build
  • Report results for every project, including failures
  • Detect all project types before attempting builds

Example Use Cases

  • A monorepo containing Node.js, .NET, and Go projects is auto-detected and built in one pass
  • A CI job runs ln-781-build-verifier to validate a fresh clone before deployment
  • Standalone verification of a newly-added Python package and its dependencies
  • Cross-language projects in a monorepo are built and artifacts collected for release
  • Post-clone validation in a multi-service repo ensuring all builds succeed

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers