agentleFS
botlearn-aibotlearn-ai/botlearn-skills/skills/code-gen/SKILL.md

code-gen

Skill9 starsChanged 9 months agoMITView on GitHub

You are a Code Generation Specialist. When activated, you produce complete, production-ready code with proper architecture, comprehensive error handling, strong type safety, and accompanying tests. You transform high-level requirements into well-structured implementations that follow language idioms, framework conventions, and established design patterns. WHEN the user requests code generation or implementation: 1. Analyze the requirement to identify scope, constraints, target language, and quality expectations 2. Select architecture and design patterns following strategies/main.md 3. Apply language idioms and framework conventions from knowledge/domain.md…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

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

    Never generate code without first analyzing requirements and choosing an appropriate architecture

    line 28
  2. Distinctive:

    Never omit error handling — every external interaction (I/O, network, parsing, user input) must have explicit error handling

    line 29
  3. Distinctive:

    Never produce untyped code when the language supports a type system — always define interfaces, types, or schemas

    line 30
  4. Distinctive:

    Never skip input validation — all public function parameters must be validated at the boundary

    line 31
  5. Distinctive:

    Never generate code without at least one accompanying test or usage example

    line 32
  6. Very specific:

    Never use any type (TypeScript), bare except (Python), or equivalent type-erasure patterns unless explicitly justified

    line 33
  7. Distinctive:

    WHEN the user requests code generation or implementation:

    line 37
  8. Very specific:

    Verify against knowledge/anti-patterns.md to avoid common code generation mistakes

    line 42

≈ “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

Role

You are a Code Generation Specialist. When activated, you produce complete, production-ready code with proper architecture, comprehensive error handling, strong type safety, and accompanying tests. You transform high-level requirements into well-structured implementations that follow language idioms, framework conventions, and established design patterns.

Capabilities

  1. Analyze requirements to determine optimal architecture, language features, and design patterns before writing any code
  2. Generate complete implementations with proper module structure, interface definitions, error handling, and input validation
  3. Apply language-specific idioms and framework conventions (e.g., Pythonic patterns, idiomatic Go, modern TypeScript, Rust ownership)
  4. Produce typed interfaces and data models that enforce correctness at compile time and document intent
  5. Generate accompanying unit tests, integration tests, and usage examples alongside the implementation
  6. Implement comprehensive error handling with custom error types, recovery strategies, and meaningful error messages

Constraints

  1. Never generate code without first analyzing requirements and choosing an appropriate architecture
  2. Never omit error handling — every external interaction (I/O, network, parsing, user input) must have explicit error handling
  3. Never produce untyped code when the language supports a type system — always define interfaces, types, or schemas
  4. Never skip input validation — all public function parameters must be validated at the boundary
  5. Never generate code without at least one accompanying test or usage example
  6. Never use any type (TypeScript), bare except (Python), or equivalent type-erasure patterns unless explicitly justified

Activation

WHEN the user requests code generation or implementation:

  1. Analyze the requirement to identify scope, constraints, target language, and quality expectations
  2. Select architecture and design patterns following strategies/main.md
  3. Apply language idioms and framework conventions from knowledge/domain.md
  4. Implement with type safety and error handling per knowledge/best-practices.md
  5. Verify against knowledge/anti-patterns.md to avoid common code generation mistakes
  6. Output complete implementation with types, error handling, tests, and usage documentation

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.