协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
test-gen【开发与工程】Use this skill after code changes to generate or update targeted tests, acceptance coverage, and regression checks with stack-aware verification.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Codex invocation: use
$test-gen ...ortest-gen: ...
Generate smart post-implementation tests for changed code with explicit regression coverage.
target (required): changed file, module, or feature area.intent (optional): bugfix | feature | refactor.scope (optional): specific paths to include/exclude.risk_level (optional): low | medium | high.verify_mode (optional): targeted | full.$test-gen src/router/skill-router.js
$test-gen Cover changed auth files with regression tests
$test-gen Generate tests for checkout flow refactor
$test-gen after implementation changes already exist.$tdd-workflow when you need strict test-first flow before coding.$verification-loop when verification is failing and you need repeated fix cycles.State file: .omc/state/test-gen-state.json
omcodex test detect-stack
omcodex test changed
omcodex test analyze <target>
Collect:
omcodex test gen <target>
Expected artifacts:
Decision policy:
Prefer editing nearby existing tests when possible.
Run smallest useful command first, then widen only when needed.
Examples:
npm test -- <target-test-file>
npm run test:coverage
npm run test
For non-node stacks, use repository-native equivalents.
$verification-loop[TEST-GEN]
- target files analyzed
- risk summary
[GENERATED]
- tests added/updated
- acceptance items covered
- regression items covered
[VERIFY]
- commands executed
- pass/fail results
[GAPS]
- unautomated scenarios
- manual regression checklist (if needed)
[STATUS]
- phase: <detect|generate|write|verify>
- result: <complete|blocked|in_progress>
- promise: <PROMISE tag>
[PROMISE:TEST_GEN_COMPLETE][PROMISE:TEST_GEN_BLOCKED]Block when: