agent-tdd-london-swarm

agent-tdd-london-swarm is a skill for Claude Code from ruvnet/ruflo. It costs 28 tokens per session (1,567 once invoked), scanned A, original, MIT.

A test-driven development agent using the London School approach, which develops code from expected behaviour and uses mocks to check interactions between components.

In plain words
What is it for?
Use it for outside-in TDD, mock- and stub-based tests, behaviour verification, and coordinated testing within an agent swarm.
Why use it?
It helps define component contracts early and test how parts of a system collaborate, including when work is shared across agents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents); $skill-name invocation.

Part of the claude-flow plugin — 135 skills, 52 commands, 11 agents, 4 hooks shipped together

Good fit Use it for outside-in TDD, mock- and stub-based tests, behaviour verification, and coordinated testing within an agent swarm.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ruvnet/ruflo/agent-tdd-london-swarm
About the project

Ruflo is an execution and coordination layer for Claude Code and Codex that equips AI coding agents with tools, memory, control loops, sandboxes, and collaboration mechanisms. Developers use it to organize specialized agents into swarms, coordinate workflows, retain knowledge across sessions, and communicate across machines. The catalogue entries are Ruflo’s skills, commands, agents, hooks, and plugin components.

ruvnet/ruflo · 71,867 stars · on GitHub · cognitum.one

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 ruvnet/ruflo --skill agent-tdd-london-swarm
Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruflo

Made for: Claude Code.

Or install claude-flow, the plugin that ships this one along with the rest of its 135 skills, 52 commands, 11 agents, 4 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 agent-tdd-london-swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruvnet/ruflo/agent-tdd-london-swarm/github.svg)](https://agentmods.dev/skills/ruvnet/ruflo/agent-tdd-london-swarm)
Your own site
<a href="https://agentmods.dev/skills/ruvnet/ruflo/agent-tdd-london-swarm"><img src="https://agentmods.dev/badge/skills/ruvnet/ruflo/agent-tdd-london-swarm/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 agent-tdd-london-swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/ruvnet/ruflo/agent-tdd-london-swarm"><img src="https://agentmods.dev/badge/skills/ruvnet/ruflo/agent-tdd-london-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 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
  • Socket pass 18 Mar 2026
  • Snyk pass 1 Mar 2026
  • 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.00028 $0.01567
Opus 5 $0.00014 $0.00783
Sonnet 5 $0.00006 $0.00313
Haiku 4.5 $0.00003 $0.00157

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

Security

Grade A, and why

agent-tdd-london-swarm 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

.agents/skills/agent-tdd-london-swarm/SKILL.md · 249 lines

How it starts

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


name: tdd-london-swarm type: tester color: "#E91E63" description: TDD London School specialist for mock-driven development within swarm coordination capabilities:

  • mock_driven_development
  • outside_in_tdd
  • behavior_verification
  • swarm_test_coordination
  • collaboration_testing priority: high hooks: pre: | echo "🧪 TDD London School agent starting: $TASK"

    Initialize swarm test coordination

    if command -v npx >$dev$null 2>&1; then echo "🔄 Coordinating with swarm test agents..." fi post: | echo "✅ London School TDD complete - mocks verified"

    Run coordinated test suite with swarm

    if [ -f "package.json" ]; then npm test --if-present fi

TDD London School Swarm Agent

You are a Test-Driven Development specialist following the London School (mockist) approach, designed to work collaboratively within agent swarms for comprehensive test coverage and behavior verification.

Core Responsibilities

  1. Outside-In TDD: Drive development from user behavior down to implementation details
  2. Mock-Driven Development: Use mocks and stubs to isolate units and define contracts
  3. Behavior Verification: Focus on interactions and collaborations between objects
  4. Swarm Test Coordination: Collaborate with other testing agents for comprehensive coverage
  5. Contract Definition: Establish clear interfaces through mock expectations

London School TDD Methodology

1. Outside-In Development Flow

// Start with acceptance test (outside)
describe('User Registration Feature', () => {
  it('should register new user successfully', async () => {
    const userService = new UserService(mockRepository, mockNotifier);
    const result = await userService.register(validUserData);
    
    expect(mockRepository.save).toHaveBeenCalledWith(
      expect.objectContaining({ email: validUserData.email })
    );
    expect(mockNotifier.sendWelcome).toHaveBeenCalledWith(result.id);
    expect(result.success).toBe(true);
  });
});

Read the full file on GitHub · 249 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. 8d ago First seen · 249 lines · 28 tokens per session scan A 192b64f17131

Subscribe to this mod's changes

agent-tdd-london-swarm is a skill published in the GitHub repository ruvnet/ruflo (71,867 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 1,567 once invoked, about $0.0001 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.