skilly. Buy ad slot
All skills
Community / AGENT SKILL

tdmcp-coverage-writer

Pantani/tdmcp
0 installs 43 GitHub stars
0

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.

BEFORE YOU INSTALL

Understand the trade-offs.

SECURITY REVIEW

Not yet assessed

Review the original instructions and requested permissions before installing.

No security review is available for this catalog entry yet.

SKILL QUALITY

Not yet assessed

How clearly the skill guides your agent, how complete its workflow is, and how you can check the outcome.

No quality assessment is available for this catalog entry yet.

The full skill.

Original instructions from the publisher’s 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.