← Back to list

build-frontend
by MarcelMichau
A slightly more-than-trivial full-stack application built with DDD & CQRS concepts
⭐ 85🍴 18📅 Jan 22, 2026
SKILL.md
name: build-frontend description: Builds the Fake Survey Generator React frontend with Vite and TypeScript. Use this skill when frontend code changes need to be compiled and validated for TypeScript errors. This skill orchestrates the npm build command and reports build errors.
Build Frontend Skill
Use this skill to validate that all frontend TypeScript and React components compile successfully without errors.
What This Skill Does
- Runs
npm run buildinsrc/client/frontend/ - Validates TypeScript compilation via
tsctype checking - Bundles React application with Vite
- Captures and parses build errors
- Reports errors with file and line number references
- Exits with failure status if any build errors are found
When to Use
- After implementing or modifying React components
- After updating frontend TypeScript types or interfaces
- To validate that TypeScript compilation succeeds
- Before running E2E validation against the UI
- To ensure Vite bundling produces valid output
How the Agent Should Use This Skill
- Prepare: Ensure you are in the repository root directory
- Invoke: Run the frontend build helper script from the repository root:
dotnet .github/skills/build-frontend/build-frontend.cs - Parse Output: Monitor stdout for success message and stderr for errors
- Handle Errors: If exit code is non-zero, the build failed. Review the error messages to identify:
- TypeScript compilation errors (e.g., type mismatches, missing properties)
- Import/export issues
- React component rendering errors
- Vite bundling failures
- Report: If any errors occur, halt further validation and report the build error details to the user
Success Criteria
- Exit code: 0
- Stdout contains:
[BUILD] Frontend build completed successfully
Failure Indicators
- Exit code: 1
- Stderr contains TypeScript or build errors
- Error messages may reference file paths, line numbers, and error codes (e.g.,
TS7006)
Notes
- The build script automatically finds the repository root by searching for
FakeSurveyGenerator.slnxorFakeSurveyGenerator.sln - Frontend directory is located at
src/client/frontend/ - Build process includes TypeScript type checking (
npm run buildruns bothtsccheck and Vite bundling) - The script automatically runs
npm ciifnode_modulesdirectory is missing, ensuring dependencies are installed before building - On Windows, the script uses
cmd.exe /c npmto reliably invoke npm, avoiding PATH resolution issues
Next Steps After Success
Once frontend build succeeds, typically invoke:
- Validate Aspire Runtime Skill - to start the application and UI server
- Validate E2E Skill - to run interactive UI tests with Playwright MCP
Score
Total Score
70/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

