red

red is a skill for Claude Code from morodomi/dev-crew. It costs 40 tokens per session (1,033 once invoked), scanned A, original, MIT.

A test-first workflow that creates tests and confirms they fail before implementation begins. Test-driven development, or TDD, uses this failing-test stage to define the behavior that new code must provide.

In plain words
What is it for?
Use it after a reviewed plan to choose test cases, mark them as in progress, create the test code, and verify the tests fail as expected.
Why use it?
It separates writing the expected behavior from writing the implementation and prevents tests from being shaped around code that already exists.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dev-crew plugin — 28 skills, 40 agents, 3 hooks shipped together

Good fit Use it after a reviewed plan to choose test cases, mark them as in progress, create the test code, and verify the tests fail as expected.

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

Made for: Claude Code.

Or install dev-crew, the plugin that ships this one along with the rest of its 28 skills, 40 agents, 3 hooks.

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 red

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morodomi/dev-crew/red"><img src="https://agentmods.dev/badge/skills/morodomi/dev-crew/red.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,033 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.00040 $0.01033
Opus 5 $0.00020 $0.00517
Sonnet 5 $0.00008 $0.00207
Haiku 4.5 $0.00004 $0.00103

Measured 8d ago against content hash 6844e6d5edfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

red 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 8d 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/red/SKILL.md · 86 lines

How it starts

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

Current State

!ls -t docs/cycles/*.md 2>/dev/null | head -1 || echo "(none)"

禁止事項

  • 実装コード作成(GREENで行う)
  • テストを通すための実装

Workflow

Cycle Doc Gate

for f in docs/cycles/*.md; do [ -f "$f" ] || continue; fm=$(awk '/^---$/{c++;next} c==1{print}' "$f"); echo "$fm" | grep -q '^phase:' || continue; echo "$fm" | grep -q 'phase: DONE' && continue; printf '%s\t%s\n' "$(echo "$fm" | awk 'sub(/^updated: */,""){gsub(/T/," ");print;exit}')" "$f"; done | sort | tail -1 | cut -f2 → found: continue / not found: BLOCK(run spec)

Pre-RED Gate (deterministic)

Cycle doc の Progress Log を確認し、以下が全て満たされなければ BLOCK:

  1. sync-plan完了: Progress Log に SYNC-PLAN または sync-plan セクションがあり、Phase completed 記録がある
  2. Plan Review完了: Progress Log に Plan Review または plan-review の記録がある
# Cycle doc を取得(Cycle Doc Gate で既に特定済み)
# 1. sync-plan チェック
awk '/SYNC.PLAN|sync-plan/,/Phase completed/' "$CYCLE_DOC" | grep -qi 'Phase completed'
# 2. Plan Review チェック
grep -qiE 'Plan Review|review.*plan' "$CYCLE_DOC"

いずれか失敗 → BLOCK(不足ステップを案内)

Test ListのTODOからテストケースを選択してWIPに移動。

Complexity Gate

Test List に対してREDフェーズ開始時に評価する。詳細: reference.md

Class Criteria Stages
trivial 1-2 items, Example only, no escalation triggers Stage 1 as 1-line GWT; Stage 2 skip; Stage 3
standard 3-5 items, Example only, no complex escalation triggers Stage 1 simplified; Stage 2 Review skip; Stage 3
complex 6+ items OR any non-Example paradigm Full 3-stage (all stages)

Stage 1: Test Plan

Cycle doc の Test List を Given/When/Then + 具体テストデータに展開。詳細: reference.md

Stage 2: Test Plan Review

要件とテスト計画を照合(網羅性・カテゴリバランス)。Gap発見時は追加。詳細: reference.md

Stage 3: Test Code

テストファイル依存関係分析 → red-worker並列起動 → 結果収集・マージ → テスト実行で失敗確認。 詳細: reference.md

Stage 3.5: False-pass 自己証明

新規 test の literal が「false-pass 不在を自己証明」できることを確認(対象行除去 → count 0 / FAIL の実証)。手順: reference.md

Read the full file on GitHub · 86 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 86 lines · 40 tokens per session scan A 6844e6d5edfe

Subscribe to this mod's changes

red is a skill published in the GitHub repository morodomi/dev-crew (1 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,033 once invoked, about $0.0002 per session on Opus 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-09-03.