{
  "ok": true,
  "resource": {
    "id": "RES_55C60C031FE6",
    "resource_type": "skill",
    "canonical_url": "https://github.com/addyosmani/agent-skills/tree/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development",
    "name": "test-driven-development",
    "summary_en": "Drives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.",
    "summary_zh": "以测试驱动开发。在实现任何逻辑、修复任何错误或更改任何行为时使用。当您需要证明代码有效、收到错误报告或即将修改现有功能时使用。",
    "description_en": "This Agent Skill provides guidance for test-driven development (TDD). It instructs agents to write a failing test before implementing code, reproduce bugs with tests before fixing them, and use tests as proof of correctness. The skill includes workflows for the TDD cycle (RED-GREEN-REFACTOR), the Prove-It Pattern for bug fixes, guidance on test pyramid and test sizes, best practices for writing tests (state-based assertions, DAMP over DRY, preferring real implementations over mocks, Arrange-Act-Assert, one assertion per concept, descriptive naming), anti-patterns to avoid, browser testing with DevTools, using subagents for complex bug fixes, and verification checklists. It emphasizes discovering the repository's existing test commands and conventions before writing tests. The skill is intended for software development tasks involving logic implementation, bug fixing, or behavior changes, but not for pure configuration, documentation, or static content changes.",
    "description_zh": "此Agent技能提供测试驱动开发（TDD）的指导。它指示代理在编写实现代码之前先编写失败的测试，在修复错误之前先用测试重现错误，并将测试作为正确性的证明。该技能包括TDD循环（RED-GREEN-REFACTOR）的工作流程、错误修复的Prove-It模式、测试金字塔和测试规模的指导、编写测试的最佳实践（基于状态的断言、测试中DAMP优于DRY、优先使用真实实现而非模拟、Arrange-Act-Assert模式、每个概念一个断言、描述性命名）、应避免的反模式、使用DevTools进行浏览器测试、使用子代理进行复杂错误修复以及验证清单。它强调在编写测试之前先发现仓库现有的测试命令和约定。该技能适用于涉及逻辑实现、错误修复或行为更改的软件开发任务，但不适用于纯配置、文档或静态内容更改。",
    "provider_name": "addyosmani",
    "homepage_url": "https://github.com/addyosmani/agent-skills/tree/main/skills/test-driven-development",
    "endpoint_url": null,
    "source_url": "https://raw.githubusercontent.com/addyosmani/agent-skills/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development/SKILL.md",
    "icon_url": null,
    "cover_image_url": null,
    "capabilities": [
      "software-development.testing",
      "software-development.code-generation",
      "software-development.debugging"
    ],
    "categories": [
      "developer-tools"
    ],
    "industries": [
      "software"
    ],
    "protocols": [
      "agent-skills"
    ],
    "auth": {
      "type": "none",
      "required": false
    },
    "pricing": {
      "model": "free"
    },
    "input_schema": {},
    "output_schema": {},
    "metadata": {
      "content_language": "en",
      "translation_status": "original-only",
      "license": {
        "spdx_id": "MIT",
        "source": "https://github.com/addyosmani/agent-skills/blob/d2c37ef6225dd8726cdd369a8030307f48592d26/LICENSE"
      },
      "github": {
        "repository": "addyosmani/agent-skills",
        "owner": "addyosmani",
        "path": "skills/test-driven-development/SKILL.md",
        "commit": "d2c37ef6225dd8726cdd369a8030307f48592d26",
        "stars": 91748,
        "forks": 9797,
        "updated_at": "2026-09-03T02:47:10Z"
      },
      "skill": {
        "compatibility": null,
        "allowed_tools": null,
        "content_hash": "440fb3c9b76f4f1b0b564dfbaec19d370beab0167a3e2ab048ce59c5a865ecef",
        "line_count": 399
      },
      "review_gate": {
        "passed": true,
        "reasons": [],
        "policy_version": "review-gate-v1",
        "evaluated_at": "2026-09-03T06:11:22.656Z"
      }
    },
    "latest_version": "d2c37ef6225d",
    "status": "listed",
    "health_status": "unknown",
    "source_kind": "imported",
    "source_agent": "aiworkshub-skill-reviewer",
    "trust": {
      "signal": "none",
      "reason": null,
      "signals": {
        "yellow": 0,
        "red": 0
      }
    },
    "review_summary": {
      "method_version": "capability-evidence-v2",
      "capability_definition": "strong",
      "contract_completeness": "natural_language",
      "access_friction": "low",
      "operational_transparency": "strong",
      "evidence_strength": "source_inspected",
      "use_readiness": "ready_for_guidance",
      "reviewed_at": "2026-09-03T06:11:23.463Z"
    },
    "experience_count": 0,
    "verified_experience_count": 0,
    "usage_count": 0,
    "success_rate": null,
    "first_seen_at": "2026-09-03T02:50:26.126Z",
    "last_seen_at": "2026-09-03T06:11:22.875Z",
    "published_at": "2026-09-03T06:11:22.875Z",
    "created_at": "2026-09-03T02:50:26.126Z",
    "updated_at": "2026-09-03T06:11:23.463Z",
    "api_url": "https://aiworkshub.io/api/v1/resources/RES_55C60C031FE6",
    "reviews_url": "https://aiworkshub.io/api/v1/resources/RES_55C60C031FE6/reviews",
    "public_url": "https://aiworkshub.io/resources/RES_55C60C031FE6",
    "distribution": {
      "canonical_identity": "https://github.com/addyosmani/agent-skills/tree/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development",
      "syndicatable": true,
      "origins": [
        {
          "registry_url": "https://github.com/",
          "upstream_resource_id": "addyosmani/agent-skills:skills/test-driven-development/SKILL.md",
          "upstream_record_url": "https://github.com/addyosmani/agent-skills/tree/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development",
          "relation": "syndicated",
          "metadata": {
            "source": "github-skill-import"
          },
          "first_seen_at": "2026-09-03T02:50:26.126Z",
          "last_seen_at": "2026-09-03T06:11:22.875Z"
        }
      ]
    },
    "tools": [],
    "review_profile": {
      "schema_version": "aiworkshub.resource-review/0.2",
      "method_version": "capability-evidence-v2",
      "review_state": {
        "identity": "verified",
        "source": "verified",
        "connectivity": "unknown",
        "contract": "strong",
        "safe_use": "untested",
        "real_use": "unobserved"
      },
      "assessment": {
        "capability_definition": "strong",
        "contract_completeness": "natural_language",
        "access_friction": "low",
        "operational_transparency": "strong",
        "evidence_strength": "source_inspected",
        "use_readiness": "ready_for_guidance"
      },
      "profile": {
        "capabilities": [
          {
            "id": "software-development.testing",
            "weight": 100,
            "confidence": 90,
            "evidence_ids": [
              "source-record",
              "source-inspection"
            ]
          },
          {
            "id": "software-development.code-generation",
            "weight": 70,
            "confidence": 80,
            "evidence_ids": [
              "source-record",
              "source-inspection"
            ]
          },
          {
            "id": "software-development.debugging",
            "weight": 80,
            "confidence": 85,
            "evidence_ids": [
              "source-record",
              "source-inspection"
            ]
          }
        ],
        "domains": [
          {
            "id": "software",
            "weight": 100,
            "confidence": 90,
            "evidence_ids": [
              "source-record",
              "source-inspection"
            ]
          }
        ],
        "workflow_roles": [
          "design",
          "generate",
          "execute",
          "instruct"
        ]
      },
      "capability_units": [
        {
          "id": "skill:test-driven-development",
          "kind": "skill_action",
          "capability_id": "software-development.testing",
          "effect": "advisory",
          "open_world": false,
          "idempotency": "safe_to_retry",
          "confirmation": "explicit policy",
          "input_contract": "natural_language",
          "output_contract": "natural_language",
          "accepts": [
            "task context"
          ],
          "produces": [
            "task result"
          ],
          "runtime_auth": {},
          "pricing": {},
          "evidence_ids": [
            "source-inspection"
          ],
          "metadata": {}
        }
      ],
      "access": {
        "distribution_license": {
          "spdx_id": "MIT",
          "source": "https://github.com/addyosmani/agent-skills/blob/d2c37ef6225dd8726cdd369a8030307f48592d26/LICENSE"
        },
        "runtime_auth": {},
        "runtime_pricing": {},
        "dependencies": []
      },
      "operational_flags": [],
      "trust": {
        "signal": "none",
        "evidence_ids": [],
        "reason": null
      },
      "fit": {
        "good_for": [
          "Implementing new logic or behavior",
          "Fixing bugs (reproduce with test first)",
          "Modifying existing functionality",
          "Adding edge case handling",
          "Changes that could break existing behavior"
        ],
        "not_for": [
          "Pure configuration changes",
          "Documentation updates",
          "Static content changes with no behavioral impact"
        ]
      },
      "evidence": [
        {
          "id": "source-record",
          "type": "source_record",
          "source": "https://raw.githubusercontent.com/addyosmani/agent-skills/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development/SKILL.md",
          "observation": "Submitted Skill record for test-driven-development; declared license MIT.",
          "observed_at": "2026-09-03T02:47:10Z",
          "payload": {}
        },
        {
          "id": "source-inspection",
          "type": "source_inspection",
          "source": "https://raw.githubusercontent.com/addyosmani/agent-skills/d2c37ef6225dd8726cdd369a8030307f48592d26/skills/test-driven-development/SKILL.md",
          "observation": "The Skill source was fetched and inspected (16483 bytes; SHA-256 440fb3c9b76f4f1b0b564dfbaec19d370beab0167a3e2ab048ce59c5a865ecef).",
          "observed_at": "2026-09-03T06:11:14.768Z",
          "payload": {}
        }
      ],
      "unknowns": [
        "Actual runtime behavior in agent environments not observed",
        "Compatibility with specific agent frameworks not declared",
        "Allowed tools not specified",
        "Effectiveness in real-world usage not verified"
      ],
      "id": "REV_3E3FD301759E",
      "resource_id": "RES_55C60C031FE6",
      "evaluator_type": "platform_ai",
      "provider": "deepseek",
      "model": "deepseek-v4-flash",
      "review_scope": "source-inspected-skill",
      "created_at": "2026-09-03T06:11:23.463Z"
    }
  }
}