test-driven-development

test-driven-development is a skill for Claude Code, Codex from Jacobinwwey/notemdpro. It costs 16 tokens per session (374 once invoked), scanned A, original, MIT.

A test-first development guide. TDD means using automated tests to check expected behavior before and after code changes.

In plain words
What is it for?
It requires running the project's 35 Jest tests when modifying core utilities such as Mermaid or formula processing code.
Why use it?
It helps catch regressions, meaning changes that accidentally break existing behavior in core utilities and batch processors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It requires running the project's 35 Jest tests when modifying core utilities such as Mermaid or formula processing code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jacobinwwey/notemdpro/test-driven-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jacobinwwey/notemdpro --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/Jacobinwwey/notemdpro

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/test-driven-development/github.svg)](https://agentmods.dev/skills/jacobinwwey/notemdpro/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/test-driven-development"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/test-driven-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/test-driven-development"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00374
Opus 5.5 $0.00006 $0.00150
Sonnet 5.5 $0.00003 $0.00075
Haiku 4.5 $0.00002 $0.00037

Measured 16d ago against content hash df214a3f878c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-driven-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/test-driven-development/SKILL.md · 23 lines

What it actually says

Test-driven development

English

From a complete checkout, install locked dependencies with npm ci. Run npm test (Node test runner through tsx) and npm run typecheck. The tests import actual helpers; they do not use Obsidian mocks.

Before a behavior fix, add a fixture demonstrating lost structure or incorrect output and confirm the failure. Implement the smallest change, rerun focused tests, then the full local suite. Use isolated temporary directories for file tests; never delete a fixed user vault.

Cover unchanged valid content, nested/long/tilde fences, BOM and line endings, unknown Mermaid families, errors and cancellation. Parser success is not proof of semantic fidelity or visual quality. Review node/edge preservation and output diffs separately. Documentation-only changes need link and command consistency checks.

中文

在完整仓库中运行 npm ci 安装锁定依赖,再运行 npm test(通过 tsx 使用 Node 测试运行器)与 npm run typecheck。测试导入真实工具函数,不使用 Obsidian mock。

修复行为前,先增加能重现结构丢失或输出错误的样例并确认失败。实施最小修改,先跑专项测试,再跑完整本地套件。文件测试使用隔离临时目录,绝不删除固定的用户笔记库。

覆盖有效内容不变、嵌套/长/波浪号围栏、BOM 与换行、未知 Mermaid 类型、错误与取消。解析成功不能证明语义保真或视觉质量,需要另行检查节点/关系与输出差异。仅文档修改需检查链接与命令一致性。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · -54 lines · -15 tokens per session df214a3f878c
  2. 1mo ago First seen · 77 lines · 31 tokens per session scan A b9beb6d86d94

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository Jacobinwwey/notemdpro (2 stars, last pushed 16d ago), licensed MIT. It adds 16 tokens to every session and 374 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

Test Driven Development

Strict Red-Green-Refactor implementation methodology for high quality, regression-free software.

ankur-gaurav161418/omniforge · 21 tokens

tdd

Use this skill to practice test-driven development — writing tests before implementation, using tests to drive design, and validating implementation against pre-written tests. Activates when implementing new functionality, refactoring code, or fixing bugs where regression coverage is needed.

karthikrshet/aiskills · 53 tokens

test-driven-development

Drives development with tests using the red-green-refactor loop. 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. Use when asked to add tests to a function, fix a bug…

addyosmani/agent-skills · 92 tokens

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.

wshobson/agents · 39 tokens

web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

wshobson/agents · 46 tokens