EdanStarfire

custom-build-process

Project-specific build process for the Builder workflow. Builds frontend assets for claudecode_webui.

EdanStarfire 15 1 Updated 3mo ago
GitHub

Install

npx skillscat add edanstarfire/claudecode-webui/custom-build-process

Install via the SkillsCat registry.

SKILL.md

Custom Build Process

Purpose

This is a project-specific custom skill called by the Builder workflow after implementation is complete.
It handles building project artifacts specific to this project (claudecode_webui).

Generic workflow skills invoke this skill if it exists; if absent, the build step is skipped.

When Called

The Builder invokes this skill from its working directory (the worktree) after code changes are complete but before testing.

Build Steps

Frontend Build (if frontend code changed)

Check if frontend code was modified:

git diff --name-only HEAD~1 | grep -q "^frontend/" && echo "Frontend changed"

If frontend code changed, build it:

# Clean stale build artifacts so old hashed chunks don't linger across worktree checkouts
rm -rf frontend/dist

# Build fresh
cd frontend && npm run build

Verification

After build:

  • Verify frontend/dist/ directory was created/updated
  • Check build output for errors
  • Report any build failures

Usage by Generic Skills

The Builder workflow calls this skill like:

Invoke custom-build-process skill (no arguments - uses cwd)

The skill runs project-specific build commands in the Builder's working directory.
If this skill does not exist, the generic workflow skips the build step.