1flowbase: Skill for Claude Code

.agents/skills/test-driven-development/SKILL.md

test-driven-development is a skill for Claude Code, Codex from taichuy/1flowbase. It costs 44 tokens per session (1,837 once invoked), scanned A, original, Apache-2.0.

A test-first development workflow for changes that can be checked with automated tests. TDD, or test-driven development, means writing a small test that fails, implementing the change, and then confirming the test passes.

In plain words
What is it for?
Use it for features, bug fixes, refactors, APIs, state changes, permissions, data mappings, and other behavior changes covered by tests.
Why use it?
It gives each feature or fix a clear behavioral target and helps catch regressions before changes are considered complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is taichuy/1flowbase's own configuration. It tells Claude Code and Codex how to work on 1flowbase itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything 1flowbase configures →

Reuse

Borrowing it

Nothing to install: this file belongs to taichuy/1flowbase. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/taichuy/1flowbase/main/.agents/skills/test-driven-development/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/taichuy/1flowbase

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/taichuy/1flowbase/test-driven-development/github.svg)](https://agentmods.dev/skills/taichuy/1flowbase/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/taichuy/1flowbase/test-driven-development"><img src="https://agentmods.dev/badge/skills/taichuy/1flowbase/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/taichuy/1flowbase/test-driven-development"><img src="https://agentmods.dev/badge/skills/taichuy/1flowbase/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,837 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.01837
Opus 5.5 $0.00018 $0.00735
Sonnet 5.5 $0.00009 $0.00367
Haiku 4.5 $0.00004 $0.00184

Measured 1mo ago against content hash c6988ee20d0c, 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 1mo 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.

.agents/skills/test-driven-development/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Strategy and Evidence

Outcome

用足以识别错误行为的证据支持开发,在风险、实际运行成本与上下文消耗之间选择验证方式。保留 test-driven-development 名称作为已有调用入口;先红后绿是可选策略,不由 Single Issue / Issue Tree 形态决定。

Entry and Scope

  • 承接已确认目标、范围与验收预期;用户明确要求直接实现时沿用该授权,不重复建立审批。只有业务语义或范围仍有关键歧义时回到 problem-framing。
  • 实现前明确可观察结果及预期来源。已有 AC 编号时映射到测试或证据;简单任务无需另建矩阵。
  • 纯文案、样式 token、机械修改、生成代码或无法自动化的场景,可复用现有检查或人工取证;说明未新增测试的原因与替代证据。
  • 产品设计与实现规则由对应 frontend / backend skill 负责,本 skill 不重新审批方案或规定 agent 编排。

Choose Evidence by Risk

场景 优先策略 证据边界
缺陷、回归 复用真实复现;缺少时先取得最小失败证据,再修复 失败须来自目标行为,编译、认证或环境故障不算业务红灯
明确的新功能 先固定预期,允许测试与实现同批编写,完成后定向运行 关键断言应能拒绝代表性错误实现,避免测试照抄实现
权限、状态转换、数据完整性等高风险变化 用正反例、领域不变量或适当的属性测试锁定边界 需要真实失败证据或受控反例证明关键测试的识错能力
重构 优先复用既有行为测试,只补受影响边界的缺口 无需为了红灯故意破坏已经成立的行为
源码归属、禁止构造点等结构规则 优先使用已有轻量扫描器及其正反例 源码扫描不能代替运行行为测试

已有日志、失败测试或确定性扫描结果可承接相应验收点,不为满足顺序重新制造红灯。测试入口暂不可用时保留缺口并继续不依赖它的开发;关键行为缺少验证时不能宣称验收通过。

Development and Acceptance

  • 同一行为族批量实现与验证,不按每个字段或断言建立微循环。
  • 默认完成本次开发后集中 QA;开发中允许能消除具体不确定性的廉价语法、类型或定向反馈,不把这些检查升级成逐段验收。
  • Issue Tree 的 fixture、assembly 和集中 QA 边界遵循 long-running-work.md。已有证据可复用,最终由冻结 assembly 的集中 QA 结算 AC,不逐 Packet 启动 QA。
  • 只补当前变更与直接风险需要的回归;既有测试债不自动纳入修复。

Execution Cost and Stop Conditions

以下规则同时供开发验证与 QA 使用:

  • 选择入口时看实际编译、链接、服务依赖与缓存;只指定一个测试名不代表构建变小。源码扫描无需链接 Rust 服务;cargo check --tests 只证明测试可编译。
  • 优先已有可执行入口。重型验证按 gate-lanes.md 的资源边界安排,不为局部验收临时重构测试架构,也不按命令数量判断成本。
  • 预计昂贵的命令启动前明确本次要取得的证据、可承受资源与转向条件,复用已知环境记录即可,不为估算成本另开大规模调查。
  • 资源失败或运行成本明显超出预期时,先区分产品、fixture、工具和资源问题。停止当前任务拥有且已无法合理完成的验证进程;只有构建范围、资源条件或入口实质变化才重试。换测试名或 feature 本身不是成本下降的证据。
  • 切换到能回答同一问题的低成本入口;没有等价入口时标明未验证及适合执行的 CI / 专门环境,继续独立开发。不得把计划在 CI 执行写成 CI 已通过。
  • 同一 worktree 同时只运行一条 Cargo 命令。沿用仓库资源配置;从仓库根使用现有包装入口,或显式指定 api/Cargo.toml 并使用 scripts/node/testing/verify-runtime.js cargo-jobs 解析并行度。先确认辅助命令成功,避免路径错误后仍启动昂贵构建。

Evidence Reuse and Context

Δ ∩ D(e) = ∅ ⇒ e 可复用

Read the full file on GitHub · 73 lines

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. 1mo ago Changed · -35 lines · -36 tokens per session c6988ee20d0c
  2. 2mo ago First seen · 108 lines · 80 tokens per session scan A 07bec20dac38

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository taichuy/1flowbase (284 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 1,837 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories