# Custom Build Process

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

- Skill: `edanstarfire/custom-build-process` (Agent Skill)
- Install (CLI): `npx skillmds@latest add edanstarfire/custom-build-process`
- Raw SKILL.md: https://api.skillmd.com/api/skills/edanstarfire/custom-build-process/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: EdanStarfire (https://skillmd.com/u/edanstarfire)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/edanstarfire/custom-build-process

---


# 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:
```bash
git diff --name-only HEAD~1 | grep -q "^frontend/" && echo "Frontend changed"
```

If frontend code changed, build it:
```bash
# 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.

