Designing Tests
CloudAI-X/opencode-workflow
Guides test strategy, TDD/BDD approaches, test coverage planning, and testing best practices.
Agent skill
by davidYichengWei in davidYichengWei/agentic-engineering-framework
测试生成。基于 spec.md 或被测代码,生成单元测试、集成测试、性能测试。当用户请求生成测试、TDD 模式、或 workflow-code-generation 完成后触发。
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generation --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/workflow-test-generation .claude/skills/workflow-test-generation && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .claude/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generation --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/workflow-test-generation .agents/skills/workflow-test-generation && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .agents/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generation --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/workflow-test-generation .cursor/skills/workflow-test-generation && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .cursor/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davidYichengWei/agentic-engineering-framework.git --path skills/workflow-test-generation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generation --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/workflow-test-generation .gemini/skills/workflow-test-generation && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .gemini/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/workflow-test-generation .github/skills/workflow-test-generation && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .github/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davidYichengWei/agentic-engineering-framework workflow-test-generation --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/workflow-test-generation .opencode/skills/workflow-test-generation && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "workflow-test-generation" agent skill from https://github.com/davidYichengWei/agentic-engineering-framework/tree/main/skills/workflow-test-generation into .opencode/skills/workflow-test-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "workflow-test-generation", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
workflow-test-generation测试生成。基于 spec.md 或被测代码,生成单元测试、集成测试、性能测试。当用户请求生成测试、TDD 模式、或 workflow-code-generation 完成后触发。
Workflow Test Generation is an agent skill from davidYichengWei/agentic-engineering-framework. 测试生成。基于 spec.md 或被测代码,生成单元测试、集成测试、性能测试。当用户请求生成测试、TDD 模式、或 workflow-code-generation 完成后触发。
Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/boundary-checklist.md`).
It sits in Testing & QA, covering Test generation and Test-driven development. The repository describes itself as: 开箱即用、可按项目定制的 AI Coding Agent Skills 框架:提供通用 Workflow、可扩展的项目私有知识、自我学习闭环和问题排查能力,适配任意技术栈和工程场景。兼容主流 Coding Agent。 The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1f7ac0f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Workflow Test Generation loads about 580 tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 171 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from davidYichengWei/agentic-engineering-framework at commit 1f7ac0f, republished under its MIT licence (© davidYichengWei). 171 words, ~580 tokens.
.claude/skills/workflow-test-generation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.根据调用上下文判断走哪条路径:
| 信号 | 路径 | 执行步骤 |
|---|---|---|
由 workflow-code-generation 完成后衔接进入,或用户明确提到需求管理链接 | 完整流程 | Step 1 → 2 → 3 → 4 → 5 |
| 用户直接说"给 X 写个测试"/"补个单测",指定了具体代码 | 快速补测试 | Step 2 → 3 → 4 |
由 workflow-system-design 讨论测试计划章节时加载 | 测试策略设计 | Step 1 → 2 → 3,只输出计划,不生成代码 |
如果无法判断,默认走完整流程。
完整流程和测试策略设计执行本步骤。快速补测试跳过(用户已指定了被测代码)。
尝试读取 docs/design-docs/<module>/<feature>/spec.md:
有 spec.md:
无 spec.md(为已有代码补测试):
根据代码特征自动判断需要哪些测试类型(可组合,非互斥),无法判断时才询问:
| 特征 | 测试类型 |
|---|---|
| 纯函数、无外部依赖 | 单元测试 |
| 端到端流程、多组件交互 | 集成测试 |
| spec.md 有性能指标要求 | 性能测试 |
一个 feature 通常需要多种测试类型组合,例如:核心逻辑用单元测试 + 端到端用集成测试。
分析被测代码,制定测试计划(不生成代码):
创建测试任务清单,与用户确认后再继续:
示例:
1. [pending] UnitTest - FooClass::Bar() 正常路径 + 边界条件
2. [pending] UnitTest - FooClass::Bar() 异常处理
3. [pending] IntegrationTest - 端到端流程测试策略设计路径到此结束。将测试计划输出为 spec.md 测试计划章节的内容,不进入 Step 4。
仅完整流程和快速补测试执行本步骤。
| 规范 | 何时加载 |
|---|---|
bp-coding-best-practices | 始终 |
std-cpp | .cc/.cpp/.h 文件 |
std-go | .go 文件 |
根据项目需要,额外加载其他编码规范 skill。
对每个测试任务生成测试代码。每个测试必须覆盖三类场景:
生成后更新构建配置,复用项目现有的测试基类和断言工具(不要自己造)。
每完成一个任务,标记 [completed],继续下一个。
仅完整流程执行本步骤。
前置条件:所有测试用例已通过。
提示用户进入 workflow-code-review 进行 AI 代码评审(同时评审功能代码和测试代码):
自测已全部通过。
推荐下一步:
- 说"CR"或"代码评审"进入 AI 代码评审阶段© davidYichengWei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/workflow-test-generation of davidYichengWei/agentic-engineering-framework.
Open the folder on GitHubat commit 1f7ac0f
Workflow Test Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Workflow Test Generation this skilldavidYichengWei/agentic-engineering-framework | 158 | — | ~580 | Automated safety check: Pass | MIT | |
| Designing TestsCloudAI-X/opencode-workflow | 275 | — | ~2.9k | Automated safety check: Pass | MIT | |
| TDD Guidealirezarezvani/claude-code-skill-factory | 880 | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Automated Test Planningtestdouble/han | 279 | — | ~6.7k | Automated safety check: Pass | MIT | |
| TDDparcadei/Continuous-Claude-v3 | 3.9k | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Manual Test Planningtestdouble/han | 279 | — | ~2.9k | Automated safety check: Pass | MIT |
CloudAI-X/opencode-workflow
Guides test strategy, TDD/BDD approaches, test coverage planning, and testing best practices.
alirezarezvani/claude-code-skill-factory
Comprehensive Test Driven Development guide for engineering subagents with multi-framework support, coverage analysis, and intelligent test generation
testdouble/han
Produce a standalone test plan by analyzing code for test coverage gaps and edge cases.
parcadei/Continuous-Claude-v3
Test-driven development workflow with philosophy guide - plan → write tests → implement → validate
testdouble/han
Produce a plain-language manual test plan from the context supplied to it — an executive summary, a high-level list of named tests, and a detail section per test with the steps a person follows by…
proffesor-for-testing/agentic-qe
Move testing activities earlier in the development lifecycle to catch defects when they're cheapest to fix.
davidYichengWei/agentic-engineering-framework
Gives architecture design principles for system design discussions and code review: module boundaries, dependency direction, data ownership and interface rules, plus a checklist.
davidYichengWei/agentic-engineering-framework
A checklist of language-neutral rules for writing and reviewing code: naming, function design, control flow, resource safety, comments and logging.
davidYichengWei/agentic-engineering-framework
Chinese-language checklists for component-level design: class and module structure, public interfaces, data models, concurrency and error handling.
davidYichengWei/agentic-engineering-framework
Chinese-language guide to writing and improving SKILL.md files: frontmatter rules, concise writing, progressive disclosure, common patterns and a pre-release checklist.
davidYichengWei/agentic-engineering-framework
Turns mistakes you correct into proposed updates to persistent Rules and Skills so the same error does not recur in later sessions, triggered automatically or with /reflect.
davidYichengWei/agentic-engineering-framework
Diagnoses compile errors, runtime exceptions, failing tests, pipeline failures and production alerts from code and logs, giving a root cause before any fix.
Categories
测试生成。基于 spec.md 或被测代码,生成单元测试、集成测试、性能测试。当用户请求生成测试、TDD 模式、或 workflow-code-generation 完成后触发。. Workflow Test Generation is an agent skill from davidYichengWei/agentic-engineering-framework.
Workflow Test Generation fits situations like: tasks that involve Test generation; tasks that involve Test-driven development.
Run `npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a claude-code`. Or copy the skill folder (skills/workflow-test-generation in davidYichengWei/agentic-engineering-framework) into .claude/skills/workflow-test-generation in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a codex`. Or copy the skill folder (skills/workflow-test-generation in davidYichengWei/agentic-engineering-framework) into .agents/skills/workflow-test-generation in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidYichengWei/agentic-engineering-framework --skill workflow-test-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/workflow-test-generation, .gemini/skills/workflow-test-generation, .github/skills/workflow-test-generation and .opencode/skills/workflow-test-generation in your project.
SKILL.md names no scripts, command-line tools or credentials: Workflow Test Generation is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Workflow Test Generation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 580 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Workflow Test Generation: Designing Tests (CloudAI-X/opencode-workflow, 275 stars), TDD Guide (alirezarezvani/claude-code-skill-factory, 880 stars), Automated Test Planning (testdouble/han, 279 stars) and TDD (parcadei/Continuous-Claude-v3, 3.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davidYichengWei (a GitHub user) maintains it in davidYichengWei/agentic-engineering-framework, which has 158 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on March 25, 2026.
Source: davidYichengWei/agentic-engineering-framework on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.