examples-and-edge-cases
Skill2 starsChanged 4 months agoApache-2.0View on GitHub
Adds simple examples, realistic examples, incorrect usage examples, edge cases, common mistakes, and when-not-to-use guidance.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audience-alignmentSkill
- document-architectureSkill
- glossary-builderSkill
- knowledge-mappingSkill
- output-formatsSkill
- product-discoverySkill
- publishingSkill
- section-writerSkill
- technical-documentation-frameworkSkill
- technical-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
When not to use this feature or product
- Distinctive: line 82
Use the labeled formats above in reference-style catalogs where readers scan for their case.
- Distinctive: line 92
Implicit creation hides typos: When resources are created on first use (topics, buckets, queues), a misspelled name fails silently — …
- Distinctive: line 98
Guardrail only runs on final output: If guardrails check only the final answer, the agent may still make unsafe tool calls during …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Examples and Edge Cases Skill
Purpose
Make documentation practical.
A reader should be able to understand not only the happy path, but also mistakes, limits, and unusual situations.
Required additions
Where relevant, add:
- Simple example
- Realistic example
- Incorrect usage example
- Edge case
- Common mistake
- Decision note
- When not to use this feature or product
Example format
### Example: Scenario Name
**Scenario:**
...
**Goal:**
...
**Input:**
...
**Process:**
...
**Output:**
...
**Important note:**
...Edge-case format
### Edge Case: Case Name
**What happens:**
...
**Why it matters:**
...
**Recommended handling:**
...Incorrect usage format
### Incorrect Usage: Mistake Name
**Incorrect approach:**
...
**Why this is a problem:**
...
**Correct approach:**
...Placement rule
Use the labeled formats above in reference-style catalogs where readers scan for their case. Inside narrative sections, integrate examples into the prose — rules/example-rules.md explains the split, and examples/sample-output-signalhop/ shows both styles in a finished package.
Domain edge-case examples
Edge cases come from the product's own failure modes; the sets below illustrate the expected depth in two domains.
API and integration products
- Success response lost after processing. The consumer handles the request, but the acknowledgment never reaches the producer, which retries. Without idempotent consumption the same action executes twice. Documentation must state the delivery guarantee and show the deduplication pattern.
- The limit is hit only under production load. A rate limit or timeout that manual testing never reaches (one caller, idle server) fails constantly at real concurrency. Document limits next to realistic load numbers, not only in a reference table.
- Implicit creation hides typos. When resources are created on first use (topics, buckets, queues), a misspelled name fails silently — nothing errors, nothing arrives. Document the observable signal that distinguishes "empty" from "misrouted".
AI-agent products
- Tool succeeds but the final answer is wrong. A tool may return correct data that the agent interprets incorrectly. Tool output and final response should be traced separately so the failure can be located.
- Long-term memory stores temporary information. A passing user preference should not automatically become long-term memory. Memory writes should be deliberate and policy-controlled.
- Guardrail only runs on final output. If guardrails check only the final answer, the agent may still make unsafe tool calls during intermediate steps. Guardrails may be needed at input, planning, tool execution, and output stages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

