test-driven-development
Drive Safer Development With Tests
Teams need reliable ways to implement changes and fix bugs without relying on intuition or fragile manual checks. This skill guides a red-green-refactor workflow with repository-aware commands, focused tests, and full-suite verification.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "test-driven-development" from https://skillstore.io/skills/addyosmani-test-driven-development.md and its manifest at https://skillstore.io/api/skills/addyosmani-test-driven-development/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“test-driven-development”。 A task completion bug leaves the completion timestamp empty.
预期结果:
- Reproduction test: complete a task and assert that its status changes and its completion timestamp is present.
- Expected first result: the test fails because the timestamp is missing.
- Next step: implement the smallest fix, rerun the focused test, then run the full suite.
正在使用“test-driven-development”。 A developer wants to test a list operation that sorts records.
预期结果:
- Prefer an assertion on the returned order and values.
- Avoid asserting that a specific internal database query string was called.
- This keeps the test focused on observable behavior during refactoring.
正在使用“test-driven-development”。 A browser change alters a critical checkout flow.
预期结果:
- Run the focused automated tests first.
- Reproduce the flow in a browser and inspect console errors, network responses, DOM structure, styles, and a screenshot.
- Run the repository's full test suite after the change.
安全审计
安全All 44 static findings are false positives. The detections are Markdown backticks, code fences, testing guidance, headings, or a documentation link rather than executable shell code, path traversal, or reconnaissance. No prompt injection, data exfiltration, or other net-new intent-level finding was identified.
风险因素
⚙️ 外部命令 (37)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/addyosmani-test-driven-development/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/addyosmani-test-driven-development?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/addyosmani-test-driven-development?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/addyosmani-test-driven-development/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/addyosmani-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 引用
addyosmani. (2026). test-driven-development security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/addyosmani-test-driven-development/audits/1BibTeX 引用
@techreport{addyosmani-addyosmani-test-driven-development-2026,
author = {addyosmani},
title = {test-driven-development security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/addyosmani-test-driven-development/audits/1},
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 1)"
version: "unspecified"
type: report
authors:
- name: "addyosmani"
date-released: "2026-09-19"
url: "https://skillstore.io/skills/addyosmani-test-driven-development/audits/1"
identifiers:
- type: other
value: "skillstore:addyosmani-test-driven-development:audit:1"
description: "Skillstore immutable audit report identifier"
比较变体
10 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
dmjgilbert-test-driven-development
2026-09-09
cycleaddict-test-driven-development
2026-09-09
cygnusfear-test-driven-development
2026-09-09
addyosmani-test-driven-development
2026-09-22
codingcossack-test-driven-development
2026-09-09
zhanlincui-test-driven-development
2026-09-09
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Build New Features
Plan a failing test, implement the smallest passing behavior, and refactor while preserving verified outcomes.
Fix Reported Bugs
Turn a bug report into a reproduction test, confirm the failure, implement a fix, and check for regressions.
Verify Browser Changes
Combine automated tests with browser inspection of the DOM, console, network behavior, styles, and screenshots.
试试这些提示
Guide me through writing a failing test for this behavior: [describe behavior]. Ask only for the repository test command and relevant file context.
Apply the Prove-It Pattern to this bug: [bug report]. Define the expected behavior, propose a reproduction test, and explain what failure would confirm the bug.
Review these tests for state-based assertions, isolation, determinism, meaningful names, and appropriate use of mocks. Suggest focused improvements without changing the intended behavior: [tests].
Create a verification plan for this change: [change]. Identify focused tests, integration or end-to-end coverage, browser checks when relevant, the repository's full-suite command, and risks that need manual review.
最佳实践
- Discover the repository's actual test command before starting the TDD cycle.
- Test observable behavior with deterministic, isolated cases.
- Run focused tests during iteration and the full suite after implementation.
避免
- Writing implementation code before creating a test that demonstrates the expected behavior.
- Testing internal call sequences when an observable result can verify the behavior.
- Skipping tests or repeating unchanged test commands without a code change.
常见问题
When should I use this skill?
What does red-green-refactor mean?
Does this skill choose the test command?
Should every test use mocks?
Does it support browser testing?
Can it replace a security review?
开发者详情
作者
addyosmani许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
5d5054f8a23586f9b500fece1cb613a9dffc787b
维护新鲜度
2026/9/19
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md