Skip to content
Development
Skill

/testing-coverage

TDD and coverage standards for Engram. Trigger: When implementing behavior changes in any package.

From plugin
gentleman-programming-engram
5.9k22 skills1 MCP
Install
$ npx -y skills add Gentleman-Programming/engram --skill testing-coverage --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/testing-coverage

Context preview

The summary Claude sees to decide when to auto-load this skill.

TDD and coverage standards for Engram. Trigger: When implementing behavior changes in any package.

SKILL.md

testing-coverage.SKILL.md
name: engram-testing-coverage
description: >
  TDD and coverage standards for Engram.
  Trigger: When implementing behavior changes in any package.
license: Apache-2.0
metadata:
  author: gentleman-programming
  version: "1.0"

When to Use

Use this skill when:

  • Adding new behavior
  • Fixing a bug
  • Refactoring logic with branch complexity

---

TDD Loop

1. Write a failing test for the target behavior. 2. Implement the smallest code to pass. 3. Refactor while keeping tests green. 4. Add edge/error-path tests before closing.

---

Coverage Rules

  • Cover happy path + error paths + edge cases.
  • Prefer deterministic tests over flaky integration paths.
  • Add seams only when branches are impossible to trigger naturally.
  • Keep runtime behavior unchanged when adding seams.

---

Validation Commands

Run:

go test ./...
go test -cover ./...

Report package coverage and total coverage in the PR.

Ships withgentleman-programming-engram

Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5, MCP server, HTTP API, CLI, and TUI.

Get the whole plugin
Stats
5,941
Stars
629
Forks
Active
Maintenance
Go
Language
MIT
License
10d ago
Last commit
5mo ago
Created

Repo: Gentleman-Programming/engram