ward

ward is a skill for Claude Code from eric-cielo/moflo. It costs 0 tokens per session (1,029 once invoked), scanned A, original, MIT.

An in-session audit that looks for code not protected by tests, especially in the current change, and shows suggested test outlines. A test is code that checks whether other code behaves correctly.

In plain words
What is it for?
Use it to review a diff or selected path for untested functions, edge cases, error handling, and missing integration tests, then adapt the suggested tests to the project's conventions.
Why use it?
It helps find likely regression risks before shipping, while avoiding repeated scans of unrelated parts of the codebase.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter.

Good fit Use it to review a diff or selected path for untested functions, edge cases, error handling, and missing integration tests, then adapt the suggested tests to the project's conventions.

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

Made for: Claude Code.

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 ward

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eric-cielo/moflo/ward"><img src="https://agentmods.dev/badge/skills/eric-cielo/moflo/ward.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,029 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.00000 $0.01029
Opus 5.5 $0.00000 $0.00412
Sonnet 5.5 $0.00000 $0.00206
Haiku 4.5 $0.00000 $0.00103

Measured 1mo ago against content hash 9a21700382f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ward 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 1mo 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.

.claude/skills/ward/SKILL.md · 63 lines

How it starts

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

/ward — Test-Gap Audit

Cast over the code to reveal where it sits unprotected and raise wards against regression. This is the ad-hoc, in-session successor to the removed testgaps background worker: instead of a billed daemon loop re-scanning the whole tree every 20 minutes into a report nobody reads, /ward runs when you ask, scopes to what actually changed, and surfaces gaps — with test skeletons — in the conversation where you can act on them.

Arguments: $ARGUMENTS

Phase 1: Memory first (gate requirement)

mcp__moflo__memory_search { query: "<the symbols/files in scope> test coverage", namespace: "tests" }

The tests namespace maps source → covering tests; use it to see what's already covered before flagging a gap. Also check patterns for the project's test framework and conventions so skeletons match house style.

Phase 2: Decide scope

Pick the smallest scope that answers the ask — a whole-codebase re-scan is exactly the waste this skill was built to end.

Argument Scope
(none) The current diff: git diff HEAD + git diff main...HEAD. Ward the changed code only.
a path or glob That subtree (e.g. /ward src/api).
an area in prose Resolve to files via code-map search, then ward those.
--all Whole codebase. Only on explicit request — say so and expect it to be slower.

If the diff is empty and no target was given, ask what to ward rather than defaulting to --all.

Phase 3: Detect the framework

Before writing any skeleton, determine the project's test runner and conventions (vitest / jest / pytest / go test / etc.) from config files, existing tests, and the tests memory. Skeletons MUST be in the project's actual framework and match its file naming, import style, and assertion idiom — a skeleton in the wrong dialect is noise.

Phase 4: Find the gaps

For the in-scope code, look for, in rough order of risk:

  1. Untested functions / classes / exports — public surface with no covering test. Cross-check against the tests namespace before flagging.
  2. Uncovered edge cases — boundaries (empty, null/undefined, zero, negative, max), off-by-one, unusual-but-valid inputs the happy-path test skips.
  3. Missing error-handling tests — throw/reject/error branches with no test asserting the failure path; validation that nothing exercises.
  4. Integration gaps — units tested in isolation but the seam between them (I/O, DB, external calls, cross-module contracts) is unexercised.
  5. Regression-prone changes — in a diff, logic that changed behavior but whose tests didn't.

Read the full file on GitHub · 63 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. 1mo ago First seen · 63 lines · 0 tokens per session scan A 9a21700382f4

Subscribe to this mod's changes

ward is a skill published in the GitHub repository eric-cielo/moflo (19 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,029 tokens. 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