code-generator

code-generator is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 132 tokens per session (3,405 once invoked), scanned A, original, Apache-2.0.

A code generator that turns a structured implementation plan into code files. It uses templates for common Python FastAPI, TypeScript Express, and Go Gin patterns, and can use a language model for more complex cases.

In plain words
What is it for?
Use it to generate CRUD features, REST endpoints, data-transfer objects, and input validation from a code-intent-planner plan, or preview the output without writing files.
Why use it?
It removes the repetitive work of turning an approved plan into a starting codebase. It requires the planner's JSON output, so it is not intended to inspect or debug existing code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/code_generator.py --project examples/sample-codebase --format json --dry-run # bundled sample; swap in your real scenario with --project <proj.

Good fit Use it to generate CRUD features, REST endpoints, data-transfer objects, and input validation from a code-intent-planner plan, or preview the output without writing files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/code-generator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-generator/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-generator)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-generator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/code-generator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/code-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.03405
Opus 5.5 $0.00053 $0.01362
Sonnet 5.5 $0.00026 $0.00681
Haiku 4.5 $0.00013 $0.00341

Measured 2mo ago against content hash 2d131be4f272, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

site/skills/programming/planning/code-generator/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Generator — Automated Plan-to-Code Generator

Converts code-intent-planner's task plan into runnable code files. Two-tier architecture: L1 script template engine (fast, covers common patterns) + L2 agent generation (flexible, handles complex logic).

Applicability Decision Table

Situation Use this skill? Which tier
The plan is a Python FastAPI CRUD implementation ✅ L1 script direct output code_generator.py --plan ... --format json
The plan is a bug fix / test stub ✅ L1 script emits a skeleton Same as above (fix/test intent)
TypeScript/Go CRUD ⚠️ Script L1 doesn't cover it; the agent renders by hand from the .j2 template references/templates/typescript_express_crud.ts.j2
Custom / complex business logic ⚠️ L2 generated by the agent (see the honesty statement) The agent follows the "L2 generation discipline"
No implementation plan yet ❌ Go to code-intent-planner first —
Reviewing/debugging existing code ❌ Out of scope —

Honesty Statement (read first; this section is aligned item-by-item with the scripts' actual behavior)

  • L2 is a Mock inside the scripts. The L2 path of code_generator.py (generate_l2) makes no LLM call at all: for the implement intent it always returns a FastAPI CRUD scaffold, and for other intents it returns empty. The --no-mock flag is just a marker; there is no real LLM backend. The actual "LLM generation" is performed by the agent running this skill (you) — the script's role is an L1 accelerator + structured reporter.
  • The scripts do not validate code. The validation field in the returned JSON is always "skip (mock mode)"; checks like py_compile/tsc/black are run by the agent itself after files land on disk (workflow Step 4). "✓ generated" in the report only means "content was produced", not that it works.
  • The script does not read the .j2 files under references/templates/. The script uses built-in in-memory templates (3 families); the .j2 files are reference material for the agent and tests to do Jinja2 rendering (4 of them). Do not confuse the two systems.
  • A scaffold ≠ a product. The service layer L1 produces is an in-memory list store, with no auth and no persistence — it's a starting point, not an endpoint, and must be adapted to the project's real needs before delivery (see dark knowledge 1).

Read the full file on GitHub · 189 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -1 lines · -34 tokens per session 2d131be4f272
  2. 2mo ago Changed · -43 lines · -128 tokens per session 097688c9bc72
  3. 2mo ago First seen · 233 lines · 294 tokens per session scan A 0da06869654a

Subscribe to this mod's changes

code-generator is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 132 tokens to every session and 3,405 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

code-generator compared with skills from other repositories

code-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-generatorMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A132Claude Code, Codex
stripe-projectsNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill313k7d agoMITA35Claude Code, Kiro
statusmem0ai/mem0Skill70k3d agoApache-2.0A54Claude Code
mem0-test-integrationmem0ai/mem0Skill70k3d agoApache-2.0A207Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
backendlangwatch/langwatchSkill5.1ktodayApache-2.0A190Claude Code