workflow-code-generation

workflow-code-generation is a skill for Claude Code, Codex from davidYichengWei/agentic-engineering-framework. It costs 89 tokens per session (1,420 once invoked), scanned A, original, MIT.

A required workflow for changing code files. It checks the requirements and project specifications, organizes the work into tasks, loads coding rules, and guides implementation and review.

In plain words
What is it for?
Use it for new features, optimizations, bug fixes, refactoring, or any other requested change to source-code files.
Why use it?
It prevents coding from starting with unclear requirements or missing project rules, and keeps multi-file changes organized and checkable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it for new features, optimizations, bug fixes, refactoring, or any other requested change to source-code files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-code-generation
Clone the repo
git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework

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 workflow-code-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation/github.svg)](https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation)
Your own site
<a href="https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation"><img src="https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation/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 workflow-code-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation"><img src="https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/workflow-code-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,420 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.00089 $0.01420
Opus 5.5 $0.00036 $0.00568
Sonnet 5.5 $0.00018 $0.00284
Haiku 4.5 $0.00009 $0.00142

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

Security

Grade A, and why

workflow-code-generation 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 1mo 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.

skills/workflow-code-generation/SKILL.md · 144 lines

How it starts

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

代码生成

所有代码修改的统一入口。先加载规范,再写代码。

工作流程

步骤 1:评估复杂度与路径路由

⚠️ 防御性检查:如果 AI 无法明确回答"要改什么模块/文件"、"要实现什么行为"、"怎样算完成"这三个问题中的任何一个,则立即停止,调用 workflow-requirements-clarification。本 skill 不负责需求澄清。

默认走标准流程(步骤 2 → 3 → 4 → 5)。Fast-Path 仅当改动为单文件、局部改动(能在路由阶段确定完整文件列表,且只涉及 1 个文件的局部修改)时才可进入。

无法确定 → 标准流程。

Fast-Path 执行
  1. 加载编码规范(同步骤 4)
  2. 实现改动
  3. 执行过程中发现实际需要改多个文件 → 立即退出,回到步骤 2 进入标准流程
  4. 询问用户是否需要 code review
    • 需要 → 加载 workflow-code-review skill(指定 skip_reviewers: [magical-prompt-reviewer])→ 修复循环
    • 不需要 → 输出改动说明
  5. 结束,不进入后续步骤
标准流程入口

查找 docs/design-docs/<module>/<feature>/spec.md:

  • 存在且完整 → 仔细通读全文(不要只读关注的章节),确认理解
  • 不存在/不完整 → 调用 workflow-requirements-clarification(禁止自行澄清)

强制:spec.md 与 tasks.md 同时存在时,编码前必须完整读取两者。

步骤 2:选定当前任务

从 tasks.md 中找第一个未完成任务,记录其编号和上下文。

步骤 3:检查/创建 tasks.md

🚨 创建 tasks.md 后必须停下来等用户确认。 展示任务列表,然后停止并等待用户回复。禁止自动进入步骤 4。

步骤 4:加载编码规范(🚨 强制前置)

未加载规范就写代码 → 立即停止,先加载。

必须加载
规范 说明
bp-coding-best-practices 通用编码最佳实践
bp-performance-optimization 性能优化(所有代码都是性能敏感的)
按需加载
规范 何时加载
std-cpp .cc/.cpp/.h 文件
std-go .go 文件
bp-distributed-systems 涉及网络通信、多节点协调、一致性、故障恢复

步骤 5:逐个任务实现

核心规则:一个 Task → review 通过 → 报告 → 等用户批准 → 下一个 Task

Phase 1: 实现

修改代码,更新 tasks.md 标记 In Progress。

Phase 2: Code Review 与修复循环(🚨 强制)

4a. 执行 Code Review

加载 workflow-code-review skill,按其工作流执行(指定 skip_reviewers: [magical-prompt-reviewer])。该 skill 会并行调用 reviewer subagent 执行审查——禁止主 agent 自己做 review 代替 subagent。

4b. 逐条反思犯错原因

对报告中每条 keep 的 finding,反思犯错原因:

原因分类 含义
Spec 理解偏差 spec 写清楚了但理解错误
规范未遵守 编码规范有要求但未执行
执行遗漏 漏掉边界/细节
设计考虑不足 需更深层设计思考

4c. 自动修复 → Re-review 循环

Read the full file on GitHub · 144 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 144 lines · 89 tokens per session scan A 8d0cc2079bfc

Subscribe to this mod's changes

workflow-code-generation is a skill published in the GitHub repository davidYichengWei/agentic-engineering-framework (159 stars, last pushed 7mo ago), licensed MIT. It adds 89 tokens to every session and 1,420 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens