autonomous-ai-agency: Skill for Claude Code

.agents/skills/test-first-executor/SKILL.md

test-first-executor is a skill for Claude Code, Codex from strikersam/autonomous-ai-agency. It costs 29 tokens per session (704 once invoked), scanned A, original, MIT.

A skill that requires tests to be written before or alongside code changes. TDD, or test-driven development, means describing expected behavior in tests before implementing it.

In plain words
What is it for?
Adding or updating functions, classes, FastAPI endpoints, agent tools, and router features with tests in the `tests/` directory.
Why use it?
It helps catch regressions and makes each change verifiable, including bugs and risky edge cases.

Skill for Claude CodeCodex

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

This is strikersam/autonomous-ai-agency's own configuration. It tells Claude Code and Codex how to work on autonomous-ai-agency 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 autonomous-ai-agency configures →

Reuse

Borrowing it

Nothing to install: this file belongs to strikersam/autonomous-ai-agency. 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/strikersam/autonomous-ai-agency/master/.agents/skills/test-first-executor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/strikersam/autonomous-ai-agency

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-first-executor

README.md
[![agentmods](https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/test-first-executor/github.svg)](https://agentmods.dev/skills/strikersam/autonomous-ai-agency/test-first-executor)
Your own site
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/test-first-executor"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/test-first-executor/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-first-executor

Your own site · 80×15
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/test-first-executor"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/test-first-executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 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.00029 $0.00704
Opus 5 $0.00015 $0.00352
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

test-first-executor 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 11d 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-first-executor/SKILL.md · 113 lines

How it starts

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

Skill: test-first-executor

When to Use

Use this skill whenever:

  • Adding a new function, class, or FastAPI endpoint
  • Fixing a bug (regression test required)
  • Adding a new agent tool or router capability
  • A reviewer asks "where are the tests?"

Instructions

Step 1 — Identify what needs testing

  • What is the expected input/output?
  • What are the failure modes?
  • Is there a risky edge case (empty input, auth bypass, model unavailability)?

Step 2 — Write the test first

For this repo, tests live in tests/. Match the pattern:

tests/test_<module>.py     # mirrors src module name

Test structure template:

"""Tests for <module>.<Class>."""
from __future__ import annotations

import pytest
# imports

# ── Fixtures ──────────────────────────────────────────────────────────────────

@pytest.fixture
def some_fixture():
    ...

# ── Happy path ────────────────────────────────────────────────────────────────

def test_<function>_<expected_outcome>():
    ...

# ── Edge cases ────────────────────────────────────────────────────────────────

def test_<function>_raises_on_<bad_input>():
    with pytest.raises(SomeError):
        ...

# ── Regression ────────────────────────────────────────────────────────────────

def test_regression_<issue_description>():
    # Previously this caused <symptom>. Fixed in <commit/version>.
    ...

Step 3 — Confirm the test FAILS before implementation

Run pytest -x tests/test_<module>.py::test_<name>. A test that passes immediately (before implementation) is not testing the right thing.

Step 4 — Implement until the test passes

Step 5 — Run the full suite

pytest -x

All pre-existing tests must still pass.

Step 6 — Check coverage of risky paths

For any change to admin_auth.py, key_store.py, agent/tools.py:

  • Write a test that specifically exercises the security boundary.
  • Confirm the test would catch a regression if the boundary were removed.

Acceptance Checks

Read the full file on GitHub · 113 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. 11d ago First seen · 113 lines · 29 tokens per session scan A 7e4efd2356f5

Subscribe to this mod's changes

test-first-executor is a skill published in the GitHub repository strikersam/autonomous-ai-agency (8 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 704 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-08-31.