behavior-implement

behavior-implement is a skill for Claude Code from yarlson/yarstack. It costs 74 tokens per session (587 once invoked), scanned A, original, MIT.

A test-first implementation workflow for one clearly defined software behavior. TDD, or test-driven development, means writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
It guides changes through a red-green-refactor cycle, using existing code and test patterns and adding focused tests when the behavior is complex or failure-prone.
Why use it?
It helps confirm the intended behavior and protect it from regressions when focused automated tests are justified.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the yarstack plugin — 46 skills, 1 agent shipped together

Good fit It guides changes through a red-green-refactor cycle, using existing code and test patterns and adding focused tests when the behavior is complex or failure-prone.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yarlson/yarstack/behavior-implement
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 yarlson/yarstack --skill behavior-implement
Clone the repo
git clone --depth 1 https://github.com/yarlson/yarstack

Made for: Claude Code.

Or install yarstack, the plugin that ships this one along with the rest of its 46 skills, 1 agent.

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 behavior-implement

README.md
[![agentmods](https://agentmods.dev/badge/skills/yarlson/yarstack/behavior-implement/github.svg)](https://agentmods.dev/skills/yarlson/yarstack/behavior-implement)
Your own site
<a href="https://agentmods.dev/skills/yarlson/yarstack/behavior-implement"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/behavior-implement/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 behavior-implement

Your own site · 80×15
<a href="https://agentmods.dev/skills/yarlson/yarstack/behavior-implement"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/behavior-implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 587 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.00074 $0.00587
Opus 5.5 $0.00030 $0.00235
Sonnet 5.5 $0.00015 $0.00117
Haiku 4.5 $0.00007 $0.00059

Measured yesterday against content hash 192ec2fc0af0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

behavior-implement 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 yesterday.

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.

plugins/yarstack/skills/behavior-implement/SKILL.md · 30 lines

How it starts

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

Test-Driven Implementation

Implement one coherent observable behavior and prove it with a test that failed before the change and passes after it.

Workflow

  1. Read the behavior contract, the repository instructions, the closest implementation and test patterns, and the callers of the code you will change.
  2. For tooling or infrastructure, prove the change with the native checks and skip the red test, unless those checks cannot show behavior that matters.
  3. Define the observable result, the side effects, and the state that must stay unchanged on failure. Rely only on the documented behavior of dependencies.
  4. Choose the smallest mechanism, and stop at the first option that works: no change, existing code, the standard library or platform, an installed dependency, or one clear line. Never drop validation, data-loss prevention, security, accessibility, or an explicit requirement to make the change smaller. If the contract needs much more scope than expected, explain the gap and ask for direction instead of building an approximation.
  5. Use test-design when the test level, cases, or fixtures are not obvious. Otherwise extend the existing test pattern.
  6. Write the smallest focused test in the repository's style, with the scenario values visible. Run it and confirm that it fails because the behavior is missing or wrong, not because of a setup, import, or compile error.
  7. Write the minimum production code that makes the test pass.
  8. For several cases, repeat steps 6 and 7 one case at a time.
  9. Refactor only where the new code needs it for clarity. Run the tests after each refactoring step.
  10. Run the surrounding tests and the checks that the repository requires. Use crap-index-assess when the user asks for it or the repository's CRAP check covers the changed methods.

Never edit the new test or an existing test to make it pass. If a test seems wrong or the contract seems impossible, stop and explain why.

If a test is impractical for an in-scope behavior, say why before you edit, name the evidence that will replace it, and state the remaining risk. Do not build a test harness that grows the scope. Do not use this workflow for documentation, formatting, metadata, or generated-state changes that do not change behavior.

Read the full file on GitHub · 30 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. yesterday Changed · +1 lines · +29 tokens per session 192ec2fc0af0
  2. 1mo ago Changed · -1 lines · -3 tokens per session 9d74a241f605
  3. 1mo ago Changed 7b73324918a2
  4. 1mo ago First seen · 30 lines · 48 tokens per session scan A 22238808c4e0

Subscribe to this mod's changes

behavior-implement is a skill published in the GitHub repository yarlson/yarstack (3 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 587 once invoked, about $0.0003 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

gentle-ai

Use Gentle AI harness discipline for Pi work: clarify first, preserve OpenSpec artifacts, use strict TDD where available, delegate through subagents when useful, and protect review workload.

Gentleman-Programming/gentle-pi · 40 tokens

ring:running-dev-cycle

Running the backend dev cycle: implements every task in a rolling-wave plan.md (ring:writing-plans format) for a Go/TS service, driving specialist agents through Gate 0 implementation/TDD, Gate 8 parallel review, and Gate 9 validation per epic, elaborating later phases at each phase boundary. Use when starting or…

LerianStudio/ring · 122 tokens

ring:instrumenting-streaming-events

Instrumenting streaming events: wires lib-streaming event emission end-to-end into a Lerian Go service via a 13-gate cycle (catalog, Builder bootstrap, Emit sites, outbox, HTTP manifest, NoopEmitter fallback, integration and chaos tests), dispatching ring:backend-go under TDD. Consumes the validated…

LerianStudio/ring · 102 tokens

ring:implementing-tasks

Implementing a single planned task (Task N.M.T) end-to-end: selects the right backend agent by language and service type, drives one TDD RED->GREEN turn, then verifies coverage, lint, license headers, runtime, and delivery before handoff. Runs as Gate 0 before ring:reviewing-code. Use to drive ONE task inside an…

LerianStudio/ring · 103 tokens

testing-strategy

Design test strategies and test plans with coverage targets. Complements /draft:coverage which measures what this skill plans. Auto-loaded by /draft:implement before TDD.

drafthq/draft · 38 tokens

plan

Analyzes architecture, selects patterns, assesses testability, then decomposes work into ordered TDD tasks with exact verification commands and explicit acceptance mapping. Works from an approved spec (zuvo:brainstorm output) or directly from a user-provided description.

greglas75/zuvo · 53 tokens