brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
grinding-until-passKeep iterating on code changes until the tests pass, the build succeeds, or linting is clean. Runs in a tight loop of fix → run → check → repeat. Use when you want the agent to autonomously grind through test failures or build errors.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when you want the agent to keep working autonomously until a specific goal is met — all tests pass, the build succeeds, or linting is clean. Instead of stopping after one attempt, the agent loops until done.
Define the goal command — the command whose exit code determines success:
npm test or npx vitest runnpm run buildnpm run lintnpx tsc --noEmitnpm run lint && npx tsc --noEmit && npm test && npm run buildRun the command — execute it and capture the output.
If it fails — analyze and fix:
If it passes — stop and report:
@ts-ignore, eslint-disable, or any types to silence errors. Fix the actual problem.You can automate this with a Cursor hook in .cursor/hooks.json that triggers after the agent's turn ends, checks if tests pass, and sends a follow-up message if they don't:
{
"hooks": [
{
"event": "stop",
"command": "bash .cursor/scripts/check-tests.sh",
"description": "Re-run tests after agent stops and send follow-up if failing"
}
]
}
The script checks the exit code and returns a followup_message if tests are still failing.
--bail or --fail-fast flags to stop at the first failure for faster iteration.