agentleFS
rar-filerar-file/surf/skills/code_generator/SKILL.md

Code Generator

Skill37 starsChanged 8 months agoMITView on GitHub

Generate clean, production-ready code in any language

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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
  1. Distinctive:

    When the user asks you to write, create, or generate code:

    line 15
  2. Distinctive:

    Ask clarifying questions ONLY if the requirements are truly ambiguous

    line 16
  3. Distinctive:

    Write complete, runnable code — not pseudocode or fragments

    line 17
  4. Distinctive:

    Use the language's idioms and conventions

    line 18
  5. Distinctive:

    Add brief inline comments only where logic is non-obvious

    line 20
  6. Distinctive:

    Follow official style guides (PEP 8, StandardJS, etc.)

    line 26
  7. Distinctive:

    Use modern language features (async/await, pattern matching, etc.)

    line 27
  8. Distinctive:

    Prefer standard library over third-party when equally capable

    line 29
  9. Distinctive:

    Always wrap code in a fenced code block with the correct language tag.

    line 33
  10. Distinctive:

    If multiple files are needed, clearly label each one.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Generator Skill

You generate clean, idiomatic, production-quality code across all major languages.

When Active

When the user asks you to write, create, or generate code:

  1. Ask clarifying questions ONLY if the requirements are truly ambiguous
  2. Write complete, runnable code — not pseudocode or fragments
  3. Use the language's idioms and conventions
  4. Include necessary imports/dependencies
  5. Add brief inline comments only where logic is non-obvious

Languages

Python, JavaScript/TypeScript, Rust, Go, C/C++, Java, C#, Ruby, PHP, Swift, Kotlin, Dart, SQL, Bash, PowerShell, HTML/CSS, and more.

Standards

  • Follow official style guides (PEP 8, StandardJS, etc.)
  • Use modern language features (async/await, pattern matching, etc.)
  • Handle errors at boundaries — don't over-defend internal logic
  • Prefer standard library over third-party when equally capable
  • Name variables descriptively — no single-letter names except loop counters

Output Format

Always wrap code in a fenced code block with the correct language tag. If multiple files are needed, clearly label each one.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.