スキル test-driven-development
📦

test-driven-development

コンテンツリビジョン r2 高リスク ⚙️ 外部コマンド

運用測試驅動開發建置功能

實作優先的工作方式可能掩蓋薄弱的測試與迴歸問題。此技能引導 Claude、Codex 和 Claude Code 遵循嚴謹的 red-green-refactor 循環。

対応: Claude Codex Code(CC)
Maintain this Skill? Claim it ⚠️ 38 不十分

自分のエージェントでインストール

このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。

エージェントリクエスト
Review the Skillstore skill "test-driven-development" from https://skillstore.io/skills/davila7-test-driven-development.md and its manifest at https://skillstore.io/api/skills/davila7-test-driven-development/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.

エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。

エージェントが読めるリソース

AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。

テストする

「test-driven-development」を使用しています。 為失敗的操作加入重試行為。

期待される結果:

  • RED:新增一個測試,證明操作會在第三次嘗試時成功。
  • VERIFY:確認測試失敗是因為缺少重試行為。
  • GREEN:僅加入測試所需的重試迴圈。
  • REFACTOR:改善命名,同時維持測試套件全部通過。

「test-driven-development」を使用しています。 修正會接受空白電子郵件地址的表單。

期待される結果:

為空白電子郵件建立一個會失敗的迴歸測試、驗證失敗情況、加入最基本的驗證,然後重新執行所有相關測試。

「test-driven-development」を使用しています。 審查大量使用模擬物件的測試套件。

期待される結果:

找出僅測試模擬物件是否存在的斷言、定位過度模擬的相依項目,並建議在實際可行時使用真實元件進行以行為為重點的測試。

セキュリティ監査

高リスク

The 27 external-command matches are Markdown fences, inline examples, or documented npm test commands, not Ruby or shell execution primitives. The four reconnaissance matches are ordinary testing prose and a local reference. However, the skill repeatedly directs agents to delete implementation code, creating a real data-loss risk without explicit confirmation.

2
スキャンされたファイル
672
解析済み行数
0
レビュー項目
0
誤検知を無視

確認済みのセキュリティ上の懸念 (1)

高
Destructive Code Deletion Guidance
The skill says "Write code before the test? Delete it. Start over." and later requires deleting code before restarting TDD. An agent could remove valuable user work without confirmation or recovery.
The deletion instruction is explicit and repeated at lines 37-45 and 288, so the destructive intent is clear despite its TDD purpose.
監査者: codex 監査履歴を表示 →
このレポートを共有・引用

バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。

バージョン別レポートを開く
セキュリティ評価

レポートリンクをコピー

https://skillstore.io/skills/davila7-test-driven-development/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdownバッジ

[![Skillstore security assessment](https://skillstore.io/badges/skills/davila7-test-driven-development/security.svg)](https://skillstore.io/skills/davila7-test-driven-development?utm_source=security_passport_badge)

HTMLバッジ

<a href="https://skillstore.io/skills/davila7-test-driven-development?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/davila7-test-driven-development/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

埋め込みカード

<iframe src="https://skillstore.io/embed/skills/davila7-test-driven-development.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
学術引用 (APA · BibTeX · CFF)

APA形式の引用

davila7. (2026). test-driven-development security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/davila7-test-driven-development/audits/9

BibTeX形式の引用

@techreport{davila7-davila7-test-driven-development-2026, author = {davila7}, title = {test-driven-development security audit report (audit version 9)}, institution = {Skillstore}, year = {2026}, number = {9}, url = {https://skillstore.io/skills/davila7-test-driven-development/audits/9}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "test-driven-development security audit report (audit version 9)" version: "unspecified" type: report authors: - name: "davila7" date-released: "2026-07-23" url: "https://skillstore.io/skills/davila7-test-driven-development/audits/9" identifiers: - type: other value: "skillstore:davila7-test-driven-development:audit:9" description: "Skillstore immutable audit report identifier"

バリアントを比較

インストール可能なバリアント 10 件

各作者のスキルは個別のインストール項目として維持されます。推奨バリアントは Skillstore の証拠で順位付けされます。

このバリアントが首位の理由

Skillstore スコアが最高
DMJGilbert 推奨

dmjgilbert-test-driven-development

Skillstore スコア 79
証拠の信頼度 高
Skillstore 利用状況 17
更新済み

2026-09-09

obra-test-driven-development

Skillstore スコア 78
証拠の信頼度 高
Skillstore 利用状況 16
更新済み

2026-09-09

cycleaddict-test-driven-development

Skillstore スコア 78
証拠の信頼度 高
Skillstore 利用状況 14
更新済み

2026-09-09

cygnusfear-test-driven-development

Skillstore スコア 78
証拠の信頼度 高
Skillstore 利用状況 11
更新済み

2026-09-09

addyosmani-test-driven-development

Skillstore スコア 78
証拠の信頼度 中
Skillstore 利用状況 7
更新済み

2026-09-22

dyai2025-test-driven-development

Skillstore スコア 75
証拠の信頼度 中
Skillstore 利用状況 14
更新済み

2026-09-09

codingcossack-test-driven-development

Skillstore スコア 74
証拠の信頼度 高
Skillstore 利用状況 19
更新済み

2026-09-09

zhanlincui-test-driven-development

Skillstore スコア 69
証拠の信頼度 高
Skillstore 利用状況 107
更新済み

2026-09-09

sickn33-test-driven-development

Skillstore スコア 38
証拠の信頼度 中
Skillstore 利用状況 14
更新済み

2026-09-09

davila7 現在

davila7-test-driven-development

Skillstore スコア 38
証拠の信頼度 中
Skillstore 利用状況 11
更新済み

2026-09-09

Skillstore スコア

このスコアの理由 証拠の信頼度: 中
55
アーキテクチャ
85
保守性
87
コンテンツ
71
コミュニティ
91
仕様準拠

作成できるもの

實作新功能

定義一項行為、撰寫一個會失敗的測試、實作最小限度的變更,並在測試套件通過後進行重構。

修正迴歸問題

在變更正式環境程式碼之前,先以會失敗的測試重現回報的錯誤。

提升測試品質

審查模擬物件、僅供測試使用的正式環境方法、不完整的測試固定資料,以及未驗證行為的斷言。

これらのプロンプトを試す

撰寫第一個 TDD 測試
將 TDD 應用於這項小型功能:[feature]。先撰寫一個聚焦的測試,並說明預期的失敗情況。接著實作最小限度的變更。
使用 TDD 修正錯誤
使用 TDD 修正此錯誤:[bug]。以一個會失敗的測試重現問題。驗證失敗原因、實作修正,並重新執行相關測試。
在測試保護下進行重構
在不改變行為的情況下重構 [module]。先建立特徵測試。進行一項小幅重構,並確認完整測試套件仍然全部通過。
稽核測試套件
審查 [test suite] 中的薄弱測試與模擬反模式。找出以行為為重點的改進方式。提出包含整合測試涵蓋範圍的分階段 red-green-refactor 計畫。

ベストプラクティス

  • 讓每個測試聚焦於一項可觀察的行為。
  • 確認每個新測試都會基於預期原因而失敗。
  • 僅在聚焦測試及相關測試套件皆通過後進行重構。

回避

  • 在撰寫有意義且會失敗的測試之前先進行實作。
  • 測試模擬物件的行為,而非系統的可觀察行為。
  • 在正式環境程式碼中加入僅供測試使用的方法。

よくある質問

此技能採用哪種開發循環?
它採用 red-green-refactor:先撰寫一個會失敗的測試,以最少的程式碼使其通過,接著改善設計。
我可以將它用於錯誤修正嗎?
可以。先撰寫一個能重現錯誤的測試,再實作最小限度的修正。
它需要特定的測試框架嗎?
不需要。此指引不受特定框架限制,但範例使用 TypeScript 和 npm test 指令。
它如何處理模擬物件?
它建議測試真實行為,並在正確的相依性邊界上將模擬降至最低。
它會設定我的測試環境嗎?
不會。您的專案必須已提供合適的測試工具與指令。
應該刪除現有的實作程式碼嗎?
請先與使用者一同審查該指引。在移除或重寫檔案之前,保留有價值的成果。

開発者情報

作成者

davila7

ライセンス

MIT

Skillstore リビジョン

r2

バージョンに関する注意

作者はバージョンを宣言していません。

参照

c43861a65bb95efcae259cd161c9d6f4dc7eec6f

メンテナンスの新しさ

2026/7/25

利用状況

5 ダウンロード · 280 閲覧

ファイル構成

davila7 のその他のスキル

すべて表示
すべて表示