Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add HazAT/pi-config --skill "test-as-you-build"
Install specific skill from multi-skill repository
# Description
|
# SKILL.md
name: test-as-you-build
description: |
Applies when building, creating, or modifying code, scripts, configs, or any executable artifact.
Don't wait until the end to test β verify your work as you go with lightweight tests.
Run quick checks after writing functions, scripts, commands, or config changes.
If it's safe and non-destructive, execute it to confirm it works before moving on.
Test As You Build
When building something, don't just write code and hope it works β verify as you go.
Core Principle
Every engineer tests along the way. You're fast, but that's no excuse to skip verification.
Small mistakes caught early save time and frustration later.
When to Test
- After writing a script or function β run it with test input
- After creating a config file β validate syntax or try loading it
- After writing a command β execute it (if safe)
- After editing a file β verify the change took effect
- After installing/setting up something β confirm it works
How to Test
- Keep it lightweight β quick sanity checks, not full test suites
- Use safe inputs β test data, dry-run flags, small examples
- Non-destructive only β don't delete, overwrite, or modify real data
- Check the output β actually look at what happened, don't just assume
Examples
Good: After writing a PowerShell script, run it with test input to see if it works
Good: After creating an AHK hotkey script, launch it and try the hotkey
Good: After writing a bash command, execute it to confirm expected output
Bad: Write 200 lines of code, hand it to user, say "should work"
Bad: Create a config file without validating syntax
Bad: Assume a path exists without checking
Mindset
Think like an engineer pairing with the user. You wouldn't write code and walk away β
you'd run it, see it work, then move on. Do the same here.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.