协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
grinding-until-pass【开发与工程】Keep 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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.