一键导入
edge-case-and-state-analysis
Deep boundary and state-machine analysis for passes 1, 3, 4. Find non-obvious triggers — apply findings within your pass category.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deep boundary and state-machine analysis for passes 1, 3, 4. Find non-obvious triggers — apply findings within your pass category.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Shared CodeCortexLoop expert protocol — one pass, one category, handoff JSON, defer boundaries. Load this on every pipeline expert before domain skills.
After Direct-mode fixes, summarize what changed and record reusable problem→fix patterns into the playbook. Use when CodeCortexLoop Direct mode completes successfully, or when manually invoked via /cortexloop-reflect.
Deep correctness and architecture analysis for /cortexloop pass 1. Logic, invariants, structure, and maintainability — go deep here; defer other domains via handoff.
Deep cleanup analysis for /cortexloop pass 7. Dead code and dependency proof — go deep on evidence before removal.
Deep error-path analysis for /cortexloop pass 4. Propagation, observability, recovery — go deep on failure semantics; defer security exploits and logic bugs to other passes.
Deep performance analysis for /cortexloop pass 5. Hot paths, complexity, measurement — go deep with proof; defer correctness and security to other passes.
基于 SOC 职业分类
| name | edge-case-and-state-analysis |
| description | Deep boundary and state-machine analysis for passes 1, 3, 4. Find non-obvious triggers — apply findings within your pass category. |
Auxiliary depth skill for passes 1 (correctness), 3 (tests), 4 (errorHandling). Pair with the pass domain skill.
Go deep on triggers and state. This skill finds how bugs happen — your pass contract decides how to score them (logic bug vs missing test vs silent failure).
| Class | Examples to trace |
|---|---|
| Empty | [], {}, "", no rows, first page empty |
| Extremes | max length, max int, zero quantity, negative where unsigned expected |
| Missing | optional field absent vs null vs undefined vs wrong type |
| Duplicate | double click, replayed idempotency key, duplicate message |
| Malformed | parse succeeds but semantic garbage reaches logic |
Respect validation: don't invent states ruled out upstream unless you prove validator bypass.
Score within your category:
Other categories → deferToLaterPasses.
Trigger: [concrete input/event sequence]
Path: [A → branch B → state C → outcome D]
Impact: [in YOUR pass category vocabulary]
Example (pass 1):
Trigger: double POST /checkout with same Idempotency-Key within 200ms
Path: handler1 read none → create; handler2 read none → create (race)
Impact: duplicate charge records (correctness)
Example (pass 3):
Trigger: (same)
Path: no test uses parallel requests with same key
Impact: regression class untested (tests)
T0 user clicks Pay
T1 request A in flight
T2 user clicks Cancel
T3 A completes, C completes — final state?
"What must never happen?" — hunt for path that violates it.
When A and B each have 2 outcomes, consider combinations (especially async).