edge-case-detection
Identifies failure modes and uncommon but relevant paths. Use when planning, design or review changes user flows, data transitions or operational behavior and the happy path is understood.
- License 许可
- MIT
- 所属仓库
- Eliyce/paqad-ai
- 最近更新
- 2026-11-13
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- edge-case-detection
- metadata
- { "cacheable": "false", "model_tier": "reasoning", "paqad-meta": "skill.meta.yaml", "output_format": "markdown" }
- description
- Identifies failure modes and uncommon but relevant paths. Use when planning, design or review changes user flows, data transitions or operational behavior and the happy path is understood.
02 资源文件 6
- 参考文档agents/openai.yaml124 B
- 资产文件assets/categories.txt558 B
- 资产文件assets/output.template.md437 B
- 参考文档references/edge-case-categories.md275 B
- 脚本scripts/lint-output.sh1.1 KB
- 参考文档skill.meta.yaml345 B
03 SKILL.md 正文
What It Does
Finds missing failure modes, uncommon paths, and state transitions that would materially affect requirements, design, implementation, or verification if ignored.
Use This When
During planning, design, or review when the work changes user flows, data transitions, or operational behavior and the happy path is already understood.
Inputs
- Read the request, acceptance criteria, and proposed solution first.
- Read canonical docs that describe current states or interfaces for the affected module.
- Read
references/edge-case-categories.mdand the shared coding checklist before producing findings.
Procedure
- Enumerate the primary flow as a baseline.
- Walk every category in
assets/categories.txt(empty, stale, loading, retry, permission, concurrency, rollback, integration, overflow, state-skip) against the request. - Keep only cases that materially change behavior, docs, or verification scope.
- Tie each case to the artifact that absorbs it (requirements, UX states, AC, tests, rollback plan).
- Format per
assets/output.template.md; validate withscripts/lint-output.sh.
Output Contract
- Match
assets/output.template.md:## Edge Cases+ per-case### ...withScenario:,Why It Matters:,Apply To:lines. - When nothing additional is found, output the literal
No Additional Edge Cases(with no other content). - Output must pass
scripts/lint-output.sh(exit 0).
Escalate / Stop Conditions
- Ask when current behavior is undocumented and edge-case expectations depend on product policy.
- Warn when a missing case implies unrecoverable data loss or customer-facing failure.
- Do not add theoretical scenarios that are not credible for the current request.
Resources
references/edge-case-categories.mdscripts/lint-output.shassets/output.template.mdassets/categories.txtruntime/capabilities/coding/checklists/edge-cases-coding.mdagents/openai.yaml
04 同仓库更多 Skills
sample-skill
Sample bundled skill fixture
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
understand-idea
Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.
size-work
Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.
refine-ticket
Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.