Skip to content
build-test-auto logo

Automated Build & Test Workflow

build-test-auto

Automatically builds and tests code changes. Use whenever code is modified, tests fail, before creating pull requests, or when verifying code quality.

SKILL.md

Full skill instructions

Automated Build & Test Workflow

Overview

This skill provides automated build and test execution for various project types. It is triggered automatically when code changes are made or when tests need verification.

Quick Reference

Project Detection & Commands

# JavaScript/​Node.js
if [ -f "package.json" ]; then
    npm install && npm run build && npm test
fi

# Python
if [ -f "pyproject.toml" ] || [ -f "setup.py" ]; then
    pip install -e . && python -m pytest
fi

# Rust
if [ -f "Cargo.toml" ]; then
    cargo build && cargo test
fi

# Go
if [ -f "go.mod" ]; then
    go build ./​... && go test ./​...
fi

# Java Maven
if [ -f "pom.xml" ]; then
    mvn compile && mvn test
fi

# Java/​Kotlin Gradle
if [ -f "build.gradle" ] || [ -f "build.gradle.kts" ]; then
    ./​gradlew build && ./​gradlew test
fi

# Ruby
if [ -f "Gemfile" ]; then
    bundle install && bundle exec rspec
fi

# Make-based
if [ -f "Makefile" ]; then
    make && make test
fi

Workflow Steps

1. Pre-Build Checks

  • Verify dependencies are installed
  • Check for required tools (use mise if available)
  • Validate configuration files

2. Build Phase

  • Run the build command
  • Capture all output
  • Stop immediately on build failure
  • Show exact error location

3. Test Phase

  • Run the full test suite
  • Capture test output with verbose mode
  • Document all failures

4. Failure Analysis

For each failure:

  1. Identify the test name and file
  2. Show the exact error message
  3. Display relevant stack trace
  4. Analyze root cause

5. Fix & Verify

  • Apply minimal fixes
  • Re-run tests to confirm
  • Report final status

Linting

After tests pass, also run linting:

Project TypeLint Command
Node.jsnpm run lint
Pythonruff check . or flake8
Rustcargo clippy
Gogo vet ./​...

Tips

  • Use mise to install missing runtimes
  • Check .nvmrc, .python-version, .tool-versions for version requirements
  • Run lint and build before pushing to remote

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View