| name | update-build-script |
| description | Safely add or update build and test scripts in the scripts directory using project conventions. |
update-build-script Skill
Purpose:
Safely update or add build/test scripts in the scripts/ directory.
When to Use:
- When automating new build steps or modifying existing ones.
- When adding new scripts for content, testing, or deployment.
Instructions:
- Place scripts in
scripts/ and use .ts for TypeScript or .js for Node.js.
- Use cross-platform Node.js APIs (avoid OS-specific commands).
- Document script usage and environment variables at the top of the file.
- Update
package.json scripts section if adding new entry points.
- Test scripts locally before committing.
- Add or update smoke tests in
scripts/test.ts if relevant.
Code Example:
import { promises as fs } from "fs";
Related Files: