test
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想写测试、生成测试用例、给代码加单元测试时使用 — 自动生成测试,覆盖正常路径和边界情况
98 other projects use a version of this.
Adopted by
Most recently taken up by
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- crbnos/carbontheir own version, first seen Oct 4, 2026
- vericontext/vibeframetheir own version, first seen Oct 4, 2026
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
Used with
Projects with it also use develop, document and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
bamechoSkilldevelop
开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移
Also in 6 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 8 projects that use this
BugRogerSkillproject
Project lifecycle management. Dispatches to Ada.
Also in 6 projects that use this
vltingSkillscope
Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.
Also in 5 projects that use this
bitwize-music-studioSkilltutorial
Provides interactive guided album creation for new users. Use when the user is new to the plugin or asks for a walkthrough of the album creation process.
Also in 3 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 8 projects that use this
Other versions98 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 98
- NVIDIA/TensorRT★ 13ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- crbnos/carbon★ 2.7ksame name
- jsmastery-pro/skills★ 1.4ksame name
- getsentry/sentry-java★ 1.4ksame name
- bitwize-music-studio/claude-ai-music-skills★ 531same name
- boshu2/agentops★ 447same name
- platformplatform/PlatformPlatform★ 440same name
- owainlewis/blueprint★ 410same name
- OyadotAI/oya-browser★ 350same name
88 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- apiSkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- databaseSkill
- debugSkill
- deploySkill
- docSkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- gitsetupSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- storageSkill
The file
Files
生成测试
为指定的代码自动生成测试用例,让用户不用自己写测试。
步骤
1. 确定测试目标
如果用户指定了函数或文件,直接读取。
如果没有指定,问:
你想给哪个函数或文件生成测试?
2. 分析代码
读取目标代码,分析:
- 函数的输入参数和返回值
- 正常执行路径
- 可能的边界情况(空值、空列表、极大/极小值、类型错误)
- 错误处理路径
- 外部依赖(数据库、API、文件系统)
3. 检查项目的测试习惯
查看项目中已有的测试文件,了解:
- 用的什么测试框架(pytest、jest、go test 等)
- 测试文件的命名和存放位置
- 已有的测试风格和模式(比如是否用 fixture、mock)
如果项目没有已有测试,根据技术栈选择最常用的测试框架。
4. 生成测试用例
按以下优先级生成测试:
- 正常路径 — 最基本的输入,验证核心功能正确
- 边界情况 — 空值、零值、极端值、特殊字符
- 错误处理 — 非法输入、异常情况是否正确处理
规则:
- 每个测试用例只测试一个行为,命名要清晰说明测试什么
- 测试数据要具体、有意义,不要用 "test"、"foo" 这类占位符
- 如果有外部依赖,用 mock 隔离
- 与项目已有的测试风格保持一致
5. 确认并写入
展示生成的测试代码,告诉用户:
生成了 N 个测试用例,覆盖了 xxx。要我写入到测试文件吗?
用户确认后,写入对应的测试文件。然后运行测试确认全部通过。
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
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.

