attune-ai: Skill for Claude Code

.agents/skills/smart-test/SKILL.md

smart-test is a skill for Claude Code, Codex from Smart-AI-Memory/attune-ai. It costs 41 tokens per session (775 once invoked), scanned A, original, Apache-2.0.

A testing tool that looks for uncovered code and can generate pytest tests, including edge cases and error paths. Pytest is a Python testing framework.

In plain words
What is it for?
It is for auditing test gaps, generating tests for a Python module, or creating tests across many modules.
Why use it?
It helps identify public functions without tests and reduces the work of writing tests for them by hand.

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 Smart-AI-Memory/attune-ai's own configuration. It tells Claude Code and Codex how to work on attune-ai 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 attune-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Smart-AI-Memory/attune-ai. 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/Smart-AI-Memory/attune-ai/main/.agents/skills/smart-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

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 smart-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/smart-test.svg)](https://agentmods.dev/skills/smart-ai-memory/attune-ai/smart-test)
Your own site
<a href="https://agentmods.dev/skills/smart-ai-memory/attune-ai/smart-test"><img src="https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/smart-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 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.00041 $0.00775
Opus 5 $0.00020 $0.00387
Sonnet 5 $0.00008 $0.00155
Haiku 4.5 $0.00004 $0.00077

Measured 3d ago against content hash caaaa9e52974, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

smart-test 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 3d 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/smart-test/SKILL.md · 114 lines

How it starts

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

Smart Test

IMPORTANT: Start your response with a context preamble.

Call help_lookup(topic="smart-test", mode="preamble") and display the returned preamble text as a blockquote. Then tell the user they can say "tell me more" for a step-by-step guide, or answer the scoping questions below to proceed.

If the MCP call fails, fall back to:

Smart Test — Finds untested code and generates pytest tests with edge cases and error paths.

Scoping

Before running, ask:

  1. Target: "Which file or module needs tests?"
  2. Approach: "What kind of testing?"
    • Gap analysis — Find untested public functions
    • Generate tests — Write pytest tests for a module
    • Both — Audit gaps then generate tests for them

MCP Tools

Tool What It Does
test_audit Coverage audit and gap detection
test_generation Generate unit tests with edge cases
test_gen_parallel Batch test generation (10-50 modules)

Execution

Shared command workspace (preferred)

Open adapter smart-test with the validated target and gap, generate, or both approach. The bound audit action is read-only. Publish the actual audit as audit_result, including exact proposed test paths before any generator is called. Present the proposal widget or Markdown; only an explicitly confirmed generate_tests action authorizes those paths.

After test_generation, publish generation_result with the exact files reported from disk. The adapter independently hashes those files and rejects writes outside or different from the approved set. Run the returned test probe and publish its exact command and exit code as validation_result. Generator or test failure must say “did not complete” and retain the written paths for rollback; it may not claim tests were created successfully. Preserve the same preview/write/validation gates in compact text when the shared tools are unavailable.

For gap analysis:

test_audit(path="<target>")

For targeted test generation:

Read the full file on GitHub · 114 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. 3d ago Changed · +17 lines caaaa9e52974
  2. 7d ago First seen · 97 lines · 41 tokens per session scan A 090e9760d383

Subscribe to this mod's changes

smart-test is a skill published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 775 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-08-31.

Related

Other skills, from other repositories

axiom-swift-testing

Use when writing unit tests, adopting Swift Testing framework, making tests run faster without simulator, architecting code for testability, testing async code reliably, or migrating from XCTest - covers @Test/@Suite macros.

ComeOnOliver/skillshub · 48 tokens

solidity-testing

Every core function must have tests covering.

ComeOnOliver/skillshub · 57 tokens

axiom-ios-testing

Use when writing ANY test, debugging flaky tests, making tests faster, or asking about Swift Testing vs XCTest. Covers unit tests, UI tests, fast tests without simulator, async testing, test architecture.

ComeOnOliver/skillshub · 45 tokens

prodtest

Senior-QA test pass on a newly implemented feature. Detects the project's real test stack, writes unit and functional/integration tests, then drives the running app with Playwright for end-to-end coverage, saving screenshots to a gitignored folder for human review. Asks upfront whether found bugs should be fixed or…

nazmulnahid-git/Ai-Stack · 90 tokens

test-gen

Generate tests for code — use when asked to write tests, create a test suite, add test coverage, or generate unit/integration tests for a file or module. Triggers the deterministic test-gen workflow (analyze → generate via test-writer agent → run-fix loop → report).

5uck1ess/devkit · 61 tokens

verify

Verify recent code changes work end-to-end by building, running tests, and exercising affected features. Use when the user asks to verify changes, requests "/verify", or wants confirmation a feature actually works.

qinghaoliqaq/AutoCoder · 42 tokens