code-instructor
80透過建置應用程式學習程式碼
當範例與實際專案脫節時,學習程式碼可能會顯得抽象。這項技能會在逐步建置可運作的應用程式時,同步教授相關概念。
使用 Vitest 建置 TypeScript 測試
團隊常常很晚才加入測試,這會讓 TypeScript 回歸問題更難被捕捉。此技能會引導 Claude、Codex 和 Claude Code 進行測試優先的 Vitest 工作流程。
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "tdd-vitest-typescript" from https://skillstore.io/skills/emz1998-tdd-vitest-typescript.md and its manifest at https://skillstore.io/api/skills/emz1998-tdd-vitest-typescript/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Using "tdd-vitest-typescript". 我需要針對計算機除法行為的測試。
Expected outcome:
此技能會識別成功案例和除以零案例,先撰寫失敗測試,然後引導最小實作。
Using "tdd-vitest-typescript". 我們的非同步使用者查詢測試不穩定。
Expected outcome:
此技能會用支援 promise 的斷言取代時間延遲,在測試之間重設 mock,並分離成功與失敗情境。
Using "tdd-vitest-typescript". 在重構前審查這些 Vitest 測試。
Expected outcome:
此技能會標示與實作耦合的斷言、建議以行為為核心的覆蓋範圍,並透過有意義的測試保護重構。
Most static findings are false positives from Markdown code fences, JavaScript template literals, and sample Vitest assertions. The setup script does have real external command and filesystem side effects, and it accepts an unvalidated target directory before writing generated files.
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
https://skillstore.io/skills/emz1998-tdd-vitest-typescript/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/emz1998-tdd-vitest-typescript?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/emz1998-tdd-vitest-typescript?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/emz1998-tdd-vitest-typescript/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/emz1998-tdd-vitest-typescript.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Emz1998. (2026). tdd-vitest-typescript security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/emz1998-tdd-vitest-typescript/audits/4@techreport{emz1998-emz1998-tdd-vitest-typescript-2026,
author = {Emz1998},
title = {tdd-vitest-typescript security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/emz1998-tdd-vitest-typescript/audits/4},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "tdd-vitest-typescript security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "Emz1998"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/emz1998-tdd-vitest-typescript/audits/4"
identifiers:
- type: other
value: "skillstore:emz1998-tdd-vitest-typescript:audit:4"
description: "Skillstore immutable audit report identifier"
建立第一個失敗的 Vitest 測試,實作最小可通過的程式碼,並有信心地進行重構。
在合併前識別過於寬泛的斷言、過多 mock、共享狀態和缺少的邊界案例。
使用 TypeScript 範例練習聚焦測試、非同步斷言、fixture 和覆蓋率習慣。
使用此技能為這個 TypeScript 行為撰寫第一個失敗的 Vitest 測試。接著說明最小的實作步驟。
審查這個 TypeScript 函式,並針對正常案例、邊界案例和錯誤提出 Vitest 測試。遵循 Red-Green-Refactor。
為這次重構設計 Vitest 安全網。優先採用以行為為核心的測試,並避免與實作細節綁定的斷言。
使用 Vitest 為這個 TypeScript 工作流程建立整合測試計畫。區分單元測試、整合測試、mock 和設定需求。
Author
Emz1998License
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
30c73eac2afe762f6aa9c4553158769369d47351
Maintenance freshness
7/21/2026
Usage
7 downloads · 165 views
File structure
透過建置應用程式學習程式碼
當範例與實際專案脫節時,學習程式碼可能會顯得抽象。這項技能會在逐步建置可運作的應用程式時,同步教授相關概念。
以結構化構想腦力激盪 App 功能
團隊需要實用的功能構想,能連結使用者價值、可行性與指標。此技能會引導針對 Web 與行動 App 規劃的結構化腦力激盪。
建立精簡的 Next.js 頁面版面配置
當版面配置、型別與頁面邏輯一起成長時,Next.js 頁面檔案可能會變得難以維護。此 skill 會引導 Claude、Codex 和 Claude Code 產生模組化的 page.tsx 版面配置,並將型別分離出來。
產生專案任務路線圖
專案團隊經常難以將規格轉化為清晰的實作工作。此技能會將規格轉換為分階段的任務,並包含相依性與驗證步驟。
撰寫模組化 Next.js 型別
Next.js 專案可能累積難以維護的大型型別檔案。此技能會引導 Claude、Codex 和 Claude Code 在 srs/types 中撰寫小型 TypeScript 型別與介面。
提交前審查實作成果
當工作流程步驟快速推進時,團隊可能會漏掉計畫缺陷或程式碼問題。此技能會在進入下一階段前,將已完成的計畫和實作成果轉交給審查代理。
提升 Playwright 測試覆蓋率
by C0ntr0lledCha0s
當設定、定位器和 fixtures 不一致時,Playwright 測試套件可能會變得不穩定。此技能提供可靠瀏覽器測試、除錯和可重用 page objects 的實用模式。
建構可靠的測試自動化
by 89jobrien
薄弱的測試會拖慢發布並掩蓋回歸問題。此技能可引導測試策略、TDD、自動化、覆蓋率審查,以及 Playwright 網頁檢查。
建立實用的測試策略
by Atman36
團隊經常在沒有明確範圍、工具或覆蓋率目標的情況下新增測試。此技能為 Vitest、Playwright 和 CI 測試提供實用計畫。
建立可靠的 Jest 測試套件
by C0ntr0lledCha0s
Jest 專案通常需要一致的設定、模擬和斷言模式。此技能為 JavaScript、TypeScript、React 和 Vitest 風格的測試提供聚焦的指引、範本和檢查。
Audit NestJS Code with Evidence-Backed Findings
by amirtaherkhani
NestJS repositories can hide boundary flaws and runtime risks that lint results alone cannot reveal. This skill combines local evidence collection and semantic review into one prioritized report.
使用 starknet.js 建置 Starknet 應用程式
by internet-court
Starknet 整合需要精確處理提供者、帳戶、交易與費用。此技能為 Claude、Codex 與 Claude Code 提供實用的 starknet.js v9 模式。