agentic-testing

Testing guidance for agentic.nvim, which uses mini.test with a style similar to Busted. TDD, or test-driven development, means writing a failing test first, then making the smallest code change that passes it.

In plain words
What is it for?
Use it before creating, editing, or reviewing tests in agentic.nvim, including focused test runs, red-to-green development, full checks, and counting generated cases.
Why use it?
It provides a consistent way to test bug fixes and behavior changes while catching setup failures, dropped test cases, and incorrect case counts.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/carlos-algms/agentic.nvim/agentic-testing
Any agent
npx skills add carlos-algms/agentic.nvim --skill agentic-testing
Clone the repo
git clone --depth 1 https://github.com/carlos-algms/agentic.nvim

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.00819
Opus 5 $0.00026 $0.00409
Sonnet 5 $0.00010 $0.00164
Haiku 4.5 $0.00005 $0.00082

Measured 2d ago against content hash 5b112144abe0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentic-testing 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 2d 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/agentic-testing/SKILL.md · 88 lines

How it starts

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

Agentic Testing

Framework

  • mini.test with Busted-style emulation.
  • Test files live next to source files as <module>.test.lua.
  • tests/ holds the runner, helpers, functional tests, and integration tests.
  • The previous Busted/lazy.nvim setup is gone.

TDD

For every bug fix or behavioral change:

  1. Bootstrap missing symbols first so the test loads.
  2. Write the failing assertion.
  3. Run the focused test with make test-file FILE=<path> and confirm it fails for behavior, not setup:
    1. wrong: missing module, nil method, syntax error, unresolved import
    2. right: value/state/output mismatch
  4. Implement the minimum code to pass.
  5. Re-run make test-file FILE=<path>.
  6. Run the relevant full check.
  7. After adding or changing tests, reconcile the case count. This guards against silently dropped OR unexpectedly generated tests. Both are failures.
    1. Compute EXPECTED cases by reading the file, not grepping:
      • each static it() = 1 case
      • each it() inside a for/each/table-driven loop = the loop's iteration count (a single it( line can emit many cases, or zero)
      • a grep of it( is a lower bound, never the answer
    2. Read ACTUAL from Total number of cases: N in the make test-file FILE=<path> output.
    3. EXPECTED MUST equal ACTUAL. Mismatch = a test was dropped, a loop is empty, or a generator misfired; stop and reconcile before claiming green. Eyeballing ACTUAL alone is NOT the check - you must derive EXPECTED first.

Pure refactors, formatting, and docs can skip red/green, but say that in the PR.

Commands

make test
make test-file FILE=lua/agentic/acp/agent_modes.test.lua

Use make test-file FILE=<path> for the red/green inner loop; it runs one file in seconds. Never run make validate between iterations. After all .lua edits, run make validate and fix until it passes - the task is not done until it does. Pre-commit gate, not a per-test step.

For Lua or test changes, root AGENTS.md requires make validate after the focused checks.

Read the full file on GitHub · 88 lines

Files

What ships with it

3 files 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. 2d ago First seen · 88 lines · 51 tokens per session scan A 5b112144abe0

Subscribe to this mod's changes

agentic-testing is a skill published in the GitHub repository carlos-algms/agentic.nvim (609 stars, last pushed 9d ago), licensed MIT. It adds 51 tokens to every session and 819 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

add

Categorize new Neovim plugins and insert them into the correct markdown category files.

yutkat/my-neovim-pluginlist · 18 tokens

write-teach-commit

Draft teach: commit messages for .github/workflows/improve-add-skill.yml. Use when preparing or reviewing a correction commit that should trigger the Improve Add Skill workflow from $add categorization feedback, including moved plugin entries, removed or excluded plugins, changed .reason.md categories, or…

yutkat/my-neovim-pluginlist · 82 tokens

improve-add-skill

Improve the repo-local add skill from reviewed Neovim plugin categorization corrections. Use when a correction commit, PR review result, diff, or artifact such as a teach: commit shows that $add placed, excluded, or reasoned about plugins incorrectly and the reusable lesson should be folded back into…

yutkat/my-neovim-pluginlist · 75 tokens

git-branch-commit-pr

Automates the workflow of creating a feature branch, committing changes, and opening a PR. Use this when asked to create a branch, make changes, commit, and open a pull request for Lua code improvements or fixes.

juhaku/aiwaku.nvim · 51 tokens

source-drafting

Use when drafting documents, reports, posts, presentations, or review comments from source materials, or conducting research across provided documents. Enforces read-first drafting, a source map for every claim, agent verification, and separation of verified from unverified claims.

nicknisi/dotfiles · 54 tokens

git-commit

Create a new git commit for staged changes. Use when the user asks to commit staged changes with an auto-generated Conventional Commits message, or when Claude Code itself wants to run git commit.

aiya000/dotfiles · 43 tokens