什麼是 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