什么是 twd-test-writer?
TWD 测试编写上下文 — 教 AI 代理如何编写正确的 TWD(开发时测试)浏览器内测试。在编写、检查或修改 TWD 测试文件 (*.twd.test.ts) 时使用此文件。 来源:brikev/twd。
TWD 测试编写上下文 — 教 AI 代理如何编写正确的 TWD(开发时测试)浏览器内测试。在编写、检查或修改 TWD 测试文件 (*.twd.test.ts) 时使用此文件。
通过命令行快速安装 twd-test-writer AI 技能到你的开发环境
来源:brikev/twd。
You are writing tests for TWD (Test While Developing), an in-browser testing library. Tests run in the browser (not Node.js) with a sidebar UI for instant visual feedback. Syntax is similar to Jest/Cypress but with key differences.
TWD tests should focus on full user flows, not granular unit-style assertions. Each it() block should test a meaningful user journey through a page — load, interact, verify — rather than isolating individual elements.
NEVER import describe, it, beforeEach from Jest, Mocha, or other libraries. They MUST come from twd-js/runner. expect MUST come from twd-js.
TWD 测试编写上下文 — 教 AI 代理如何编写正确的 TWD(开发时测试)浏览器内测试。在编写、检查或修改 TWD 测试文件 (*.twd.test.ts) 时使用此文件。 来源:brikev/twd。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/brikev/twd --skill twd-test-writerTWD 测试编写上下文 — 教 AI 代理如何编写正确的 TWD(开发时测试)浏览器内测试。在编写、检查或修改 TWD 测试文件 (*.twd.test.ts) 时使用此文件。 来源:brikev/twd。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/brikev/twd --skill twd-test-writer 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/brikev/twd