agentleFS
PantaniPantani/tdmcp/.agents/skills/tdmcp-coverage-writer/SKILL.md

tdmcp-coverage-writer

Skill46 starsChanged 5 months agoMITView on GitHub

Write focused tdmcp tests for one assigned coverage gap. Use for Vitest/msw unit tests, integration tests, bridge tests, CLI/config/resource tests, and regression tests that should raise coverage without weakening behavior.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when assigned a specific coverage gap.

    line 8
  2. Distinctive:

    Read the target implementation and the closest existing tests.

    line 12
  3. Distinctive:

    Add the smallest test that would fail if that behavior regressed.

    line 14
  4. Very specific:

    Use existing helpers such as tests/helpers/tdMock.ts, KnowledgeBase, RecipeLibrary, and silentLogger instead of inventing new scaffolding.

    line 15
  5. Distinctive:

    Run the narrow test and fix any real failure.

    line 17

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

tdmcp-coverage-writer

Use this skill when assigned a specific coverage gap.

Workflow

  1. Read the target implementation and the closest existing tests.
  2. Identify the behavior or branch that is currently untested.
  3. Add the smallest test that would fail if that behavior regressed.
  4. Use existing helpers such as tests/helpers/tdMock.ts, KnowledgeBase, RecipeLibrary, and silentLogger instead of inventing new scaffolding.
  5. Run the narrow test and fix any real failure.

Assertions to prefer

  • Real return text/JSON blocks from CallToolResult.
  • Bridge request bodies captured by msw.
  • Friendly isError results instead of thrown handler errors.
  • CLI stdout/stderr and exit status for user-facing commands.
  • Resource URI and payload shape consumed by MCP clients.

Avoid

  • Tests that only import a module to mark lines covered.
  • Broad snapshots where a specific behavior assertion would do.
  • New exclusions in coverage config.
  • Rewriting production code unless the test exposes a real bug and the lead asked you to patch it.

Output

Report the changed files, command run, behavior covered, and any remaining branch or live-TD validation that is still unverified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.