fable-native-code
Skill6 starsChanged 3 months agoMITView on GitHub
Use when writing or editing code in an existing codebase — before adding comments, docstrings, try/catch blocks, validation, logging, or TODOs the surrounding file doesn't have, and before explaining your style choices in the reply.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- DizzyMii/fable-skillsedited, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- DizzyMii/fable-skills★ 5543% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- skills/fable-tend/AGENTS.mdAGENTS.md
- skills/fable-wise/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/fable-tend/CLAUDE.mdCLAUDE.md
- skills/fable-tend/site/CLAUDE.mdCLAUDE.md
- skills/fable-wise/CLAUDE.mdCLAUDE.md
- public/llms.txtllms.txt
- get-fableSkill
- typesafe-aiSkill
- get-fableSkill
- get-fableSkill
- fable-architectureSkill
- fable-artifactSkill
- fable-configSkill
- fable-context-thriftSkill
- fable-councilSkill
- fable-coworkSkill
- fable-datavizSkill
- fable-delegateSkill
- fable-discoverSkill
- fable-domainSkill
- fable-ecoSkill
- fable-evalSkill
- fable-executeSkill
- fable-finish-your-turnSkill
- fable-handoffSkill
- fable-healSkill
- fable-judgeSkill
- fable-learningSkill
- fable-loopSkill
- fable-memorySkill
- fable-methodSkill
- fable-outcome-firstSkill
- fable-planSkill
- fable-prove-itSkill
- fable-recoverSkill
- fable-redteamSkill
- fable-releaseSkill
- fable-researchSkill
- fable-reviewSkill
- fable-runSkill
- fable-scope-disciplineSkill
- fable-securitySkill
- fable-simplifySkill
- fable-simulatorSkill
- fable-skill-creatorSkill
- fable-sparkSkill
- fable-tddSkill
- fable-tendSkill
- fable-verifySkill
- fable-wiseSkill
- get-fableSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
When writing or editing code in an existing repository.
- Distinctive: line 42
Before adding docstrings, comments, type annotations, or validations to a file that lacks them.
- Distinctive: line 43
When choosing naming conventions, error-handling patterns, or import structures.
- Distinctive: line 44
When reviewing a completed diff before finalizing the turn.
- Very specific: line 48
When bootstrapping a brand new project from scratch with no established idioms (use fable-architecture or fable-execute).
- Distinctive: line 64
Match the File: Follow naming, error-handling idiom, comment density, formatting, and import organization.
- Distinctive: line 66
Suppress Defensive Bloat: No try/catch around code that works, no validating invariants the types or callers already guarantee, no logging, …
- Distinctive: line 68
Clean Exit: No debug prints, no commented-out code, no TODO crumbs you created.
- Distinctive: line 105
If surrounding code uses early returns, use early returns.
- Distinctive: line 106
If surrounding code lets errors bubble up, bubble them up.
- Distinctive: line 107
Never add a docstring unless the enclosing interface or file strictly enforces docstrings on all exported symbols.
- Distinctive: line 111
Read neighboring functions before editing to absorb file conventions.
- Very specific: line 112
Use precise line replacement tools (replace_file_content) to prevent whitespace and indentation drift.
- Distinctive: line 113
Do not reformat untouched lines in the same file.
- Distinctive: line 122
If linter flags a style mismatch, conform strictly to the project's linter rules.
- Distinctive: line 123
If an unneeded comment or debug print slipped into the diff, remove it immediately before completing the turn.
≈ “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
Fable Native Code
Your diff should read like the file's longtime owner wrote it. The file has a style — naming, error handling, comment density, formatting. Write in it. Your personal preferences are not improvements; they're an accent.
Purpose
Enforce codebase idioms and suppress foreign AI patterns. Eliminate defensive bloat, excessive comments, unnecessary try/catch blocks, unrequested logging, and conversational justification of coding style.
When to Use
- When writing or editing code in an existing repository.
- Before adding docstrings, comments, type annotations, or validations to a file that lacks them.
- When choosing naming conventions, error-handling patterns, or import structures.
- When reviewing a completed diff before finalizing the turn.
When NOT to Use
- When bootstrapping a brand new project from scratch with no established idioms (use
fable-architectureorfable-execute). - Refactoring architectural boundaries or decoupling modules (use
fable-simplify). - Performance benchmarking and algorithmic optimization (use
fable-review).
Inputs
source_diff: The proposed code modification.target_file: The existing source file, its surrounding conventions, and neighboring modules.
Expected Outputs
idiomatic_code: Clean, minimal, idiom-matched code edits that blend seamlessly with surrounding style.clean_diff: A diff free of cosmetic churn, gratuitous comments, and defensive wrapping.
Procedure
- Match the File: Follow naming, error-handling idiom, comment density, formatting, and import organization. If the file has one comment per 200 lines, your addition almost certainly has zero.
- Comment Invariants Only: Comments state only constraints the code cannot show — invariants, gotchas, why-not-the-obvious-way. Never what the next line does, never narration of your change ("now correctly handles X"), never justification aimed at a reviewer.
- Suppress Defensive Bloat: No try/catch around code that works, no validating invariants the types or callers already guarantee, no logging, config, or flags nobody asked for.
- Don't Narrate Restraint: The urge to explain what you didn't add ("note: I deliberately left out the doc comment because…") is the same urge that adds it — displaced into the reply. Deliver the code; mention style only if the user asks.
- Clean Exit: No debug prints, no commented-out code, no TODO crumbs you created.
- Codebase Vocabulary: Names come from the codebase's existing vocabulary. Don't coin a second name for an existing concept.
Decision Rules
Contrast Example: Terse Go File
Task: add clampWindow to a terse Go file whose only comment in 200 lines marks a sorting invariant; callers guarantee max >= 0.
Foreign (AI habits, not the file's):
// clampWindow clamps start and end into the valid range [0, max] and
// normalizes inverted windows. Returns (start, start) when end < start.
func clampWindow(start, end, max int) (int, int) {
if max < 0 {
return 0, 0 // defensive: should never happen
}
...
}Native (what the file's owner would write):
func clampWindow(start, end, max int) (int, int) {
if start < 0 {
start = 0
}
if end > max {
end = max
}
if end < start {
end = start
}
return start, end
}- If surrounding code uses early returns, use early returns.
- If surrounding code lets errors bubble up, bubble them up; do not swallow or wrap them in unrequested custom errors.
- Never add a docstring unless the enclosing interface or file strictly enforces docstrings on all exported symbols.
Tool Policy
- Read neighboring functions before editing to absorb file conventions.
- Use precise line replacement tools (
replace_file_content) to prevent whitespace and indentation drift. - Do not reformat untouched lines in the same file.
Evidence Requirements
- Provide the exact diff showing changes integrate natively with the file.
- Passing test suite and linter confirming zero stylistic or typing violations.
Failure Handling
- If linter flags a style mismatch, conform strictly to the project's linter rules.
- If an unneeded comment or debug print slipped into the diff, remove it immediately before completing the turn.
Completion Criteria
- Diff reads as if authored by the repository's primary maintainer.
- Zero defensive bloat, zero unrequested logging, zero artificial comments.
- Code compiles, passes existing style checks, and passes all unit tests.
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.

