generate-code
Skill38 starsChanged 3 months agoBSD-3-ClauseView on GitHub
Hypothesis-driven fix/change workflow — consults the review-current-state factblock, forms an explicit guess at the root cause and fix, then updates code and tests to verify it scientifically. Use when asked to fix a bug, change behavior, or implement something against a specific target, with a documented, hypothesis-driven process rather than an ad hoc edit.
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- vcashwin/skillstheir own version, first seen Nov 29, 2026
- bkraad47/fat_llama_fftwedited, first seen Sep 9, 2026
- lunashia/code-generation-skilltheir own version, first seen May 28, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- bkraad47/fat_llama_fftw★ 1497% same
Wrote their own version · 2
- lunashia/code-generation-skill★ 16same name
- vcashwin/skills★ 1same name
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 repository5 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- iterate-fat-llamaSkill
- review-current-stateSkill
- test-fat-llamaSkill
- triage-issueSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
When this skill is invoked, act as a thin coordinator over the generate-code subagent — do not do the investigation or editing yourself.
- Very specific: line 11
Before doing anything else, read .claude/skills/rules/generate-code.md (target-handling and relaying policy), …
- Very specific: line 19
Before Step 1, open this run's log file per .claude/rules/logging.md (name: generate-code-<time>-<user>.log).
- Very specific: line 23
Check whether docs/CURRENT_STATE.md exists.
- Very specific: line 24
If it's missing entirely, invoke the review-current-state skill first (via the Skill tool) to generate it — generate-code depends on that …
- Distinctive: line 25
If it already exists, don't regenerate it automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
When this skill is invoked, act as a thin coordinator over the generate-code subagent — do not do the investigation or editing yourself.
Before doing anything else, read .claude/skills/rules/generate-code.md (target-handling and relaying policy), .claude/rules/scope-and-safety.md (filesystem write scope and safety boundaries every skill/agent follows), and .claude/rules/project-mission.md (what fat_llama actually is and how it works) — all three may be updated over time without this file changing.
Also read README.md at the repo root in full, right now, before Step 1 — it's fat_llama's own description of its purpose and method (iterative soft thresholding of FFT data to upscale compressed audio across supported formats, tested and built primarily against the MP3→FLAC outcome, CUDA-only, deliberately without AI/ML-based upscaling). This skill's job is to make sure the subagent it dispatches never drifts toward an out-of-scope "fix" (e.g. reaching for a trained/learned model or a CPU fallback path), so carry this context into the subagent's prompt in Step 2.
args names the target: what to look at and what to fix or change. If args is empty, ask the user what target to work on before proceeding.
Logging
Before Step 1, open this run's log file per .claude/rules/logging.md (name: generate-code-<time>-<user>.log). Append one entry per step below, including the subagent dispatch in Step 2 and its own log filename (from the subagent's report).
Steps
- Check whether
docs/CURRENT_STATE.mdexists.- If it's missing entirely, invoke the
review-current-stateskill first (via the Skill tool) to generate it —generate-codedepends on that factblock as its starting map. - If it already exists, don't regenerate it automatically; the subagent itself will flag if it looks stale for the files it needs and read source directly in that case.
- If it's missing entirely, invoke the
- Launch the
generate-codesubagent via the Agent tool withsubagent_type: "generate-code"andrun_in_background: false(the caller needs the result in this turn). Give it a self-contained prompt containing the exact target text fromargs, plus the condensed mission context from.claude/rules/project-mission.md(mp3→flac is the primary tested outcome among the formats fat_llama supports, via IST on FFT data, CUDA-only, no AI/ML-based upscaling) — it also reads its own rules file, the mission-context file, and the factblock, so no further context is required beyond that. - The subagent's final message is JSON per the contract in
.claude/agents/rules/scientific-coding.md. Relay it per the relaying policy in.claude/skills/rules/generate-code.md.
Note for coordinator agents
A coordinator does not need this skill at all — it can call the generate-code subagent directly via the Agent tool with subagent_type: "generate-code", passing the target in the prompt. This skill exists as the interactive /generate-code <target> entry point; the subagent is the reusable unit.
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.

