← Back to list

build-verification
by Riggd
My little slice of the internet.
⭐ 0🍴 0📅 Jan 17, 2026
SKILL.md
name: build-verification description: Verify build succeeds before commits trigger: automatic
Build Verification Skill
This skill verifies that the Eleventy build succeeds without errors before allowing commits.
Purpose
Verify that the build process completes successfully, ensuring no build errors occur before the user commits changes.
Trigger Conditions
- Automatic: Before git commits (via commit protocol)
- Manual: Invoked by
/pre-flightcommand
Actions
-
Run Build Command:
- Execute
npm run buildto run the Eleventy build process - The build command runs:
rimraf public && eleventy - This cleans the
public/directory and rebuilds the site
- Execute
-
Monitor Build Output:
- Capture build output and errors
- Check for:
- Build failures
- Template errors
- Missing files or assets
- Syntax errors in Markdown or Nunjucks files
- SCSS compilation errors
- JavaScript bundling errors
-
Report Results:
- If build succeeds: Confirm success and allow commit to proceed
- If build fails:
- Display error messages
- Identify the file(s) causing the error
- Suggest fixes if possible
- Block commit until errors are resolved
-
Error Handling:
- Parse error messages to identify:
- File paths with errors
- Line numbers if available
- Error types (syntax, missing file, etc.)
- Provide actionable error messages to the user
- Parse error messages to identify:
Implementation Details
- Run build in non-interactive mode
- Capture both stdout and stderr
- Parse Eleventy error output format
- Check exit code to determine success/failure
Build Process
The build process:
- Removes existing
public/directory - Runs Eleventy to generate static site
- Processes all Markdown, Nunjucks, SCSS, and JavaScript files
- Outputs to
public/directory
Notes
- Build must succeed before any commit
- This prevents broken builds from being committed
- Part of the commit protocol defined in
.agent/rules.md - Can be run manually with
/pre-flightcommand for testing - Build errors should be fixed before proceeding with commit
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
