Generate Code

Use when the task involves generating, modifying, debugging, validating, or reviewing code. Do not use for non-code tasks.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add lunashia/code-generation-skill --skill generate-code
Manual install
git clone --depth 1 https://github.com/lunashia/code-generation-skill.git /tmp/code-generation-skill
mkdir -p ~/.claude/skills
cp -r /tmp/code-generation-skill/. ~/.claude/skills/generate-code

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Generate Code

首先:判断任务是否涉及生成代码?
如果是涉及到生成代码的任务,才动用这个skill,如果任务不涉及生成代码就不动用这个skill

核心目标:让每次代码交付都聚焦一个可感知结果。
这个结果不是“我改完了”,而是一份用户可以验收的工程交付单:需求 checklist、修改范围、验证结果、已知限制都要说清楚。

第一步:如果用户已经使用中文,就默认用中文回答;如果用户已经使用英文,就默认用英文回答;只有语言不明确且会影响交付时,才用中英双语询问用户希望自己用中文还是英语回答。

第二步:如果用户已经在对话中提供范例,编写代码前先参考示例;如果用户没有提供范例,不要强制询问,直接进入第三步。

第三步:引入constraints.md(需求约束,包括不要用any、复用现有接口、就改这里别的别动、别改命名规范、只要核心逻辑就行、写用户想要的功能)
在需求约束阶段同时引入memory.md,进入任何改动之前就先做历史错误回放

第四步:生成代码,引入generation.md,不要过度设计
如果在生成代码的时候遇到不确定的地方,先停下来询问用户,不要擅自生成TODO

第五步:交付校验,引入check.md,检查产物是否真的符合要求,并把最终回答组织成可验收交付单

第六步:调试返工,引入debug.md,修BUG。

第七步:提交代码前再引用memory.md,把用户提出过的错误与自己的行为再对照检查一遍,如果犯了就改正
Read the full skill on GitHub

Details

Skill name
generate-code
Repo updated
19 June 2026

FAQ

What does the Generate Code skill do?

Use when the task involves generating, modifying, debugging, validating, or reviewing code. Do not use for non-code tasks.

How do I install the Generate Code skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add lunashia/code-generation-skill --skill generate-code. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Generate Code popular?

It lives in lunashia/code-generation-skill, which has 17 GitHub stars and 0 forks.

Related skills

Claude Codex Collaboration

14

thelearningest/Byterover-Claude-Codex-Collaboration-

Enable automated collaboration between Claude Code and Codex CLI using Byterover as shared memory. This skill should be used when architectural review or code validation from Codex is desired before or after implementation. Claude creates plans, directly invokes Codex for expert review via Bash, and implements based on feedback - all automatically without manual user intervention. All context persists in Byterover.

Software Development

Planmysaas

14

creationskiro/planmysaas-claude-skill

Use this skill when the user wants to plan a SaaS product end-to-end — turn a one-line idea into a full blueprint with research, analysis, architecture, feature specs, frontend wireframes, phases, and a deep step-by-step build playbook for Claude Code. Triggers on phrases like "plan my saas", "/planmysaas", "build a saas blueprint", "I want to build a saas for X", "turn this idea into a plan", or when the user describes a product idea and asks for structure.

Software Development

Repopedia

15

bolongpa/repopedia

Use when working with a codebase's structure — finding who calls a function, what breaks if code changes (blast radius), looking up symbols, or generating code documentation. For Python/TypeScript repos indexed into a repopedia knowledge graph.

Software Development

Alibaba Java Coding Guidelines Skill

14

ns3154/alibaba-java-coding-guidelines-skill

Use when 需要按 Alibaba Java Coding Guidelines(阿里巴巴 Java 编码规范)审查、生成或重构 Java、Spring、MyBatis、Maven、MySQL、SQL、日志、异常、安全或数据库相关代码。

Software Development

History

13

ay-bh/chat-history

Search, inspect, and export Claude Code, Cursor, and Codex conversation history. Use when the user asks about past conversations, wants to find a previous session, needs to search chat history, wants a summary of what they worked on, or asks to resume a session. Also use when the user says "what did I work on", "find that conversation where I...", "show me my recent sessions", or "search my history for...".

Software Development

Grok Search

18

Autsunset/grok-search

Use when the user explicitly asks to search the web, check latest/current facts, fetch a URL, or discover pages on a website. Also use when the user asks to install, configure, or setup grok-search (API URL/key, chat vs responses). Do not use for local code search or stable offline knowledge unless the user asks for live web access.

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.