44 of the 48 `plugins/*/.claude-plugin/plugin.json` manifests had no `repository`, while the four that do already point at the repo URL their `homepage` names. The field is what the directory listing and `npm view` read, and its absence is invisible until something reads it. Add it to the 44 that lack it, then make `scripts/audit-plugin-manifest.mjs` enforce it so the next plugin cannot ship without one: - check 6 in the script header, the violation in `auditManifest`, and the clean-run summary line. A manifest may carry the repository as a string or as an object's `url`; anything else is reported as missing, and a value that is not an http(s) URL is reported separately. - the required-field lists in `create-plugin` and `validate-plugin` skills, so a scaffolded plugin passes the gate it is told to satisfy. Verified with the repo's own gates: - `node scripts/audit-plugin-manifest.mjs` scans 48 manifests, clean. - removing the field from one manifest reports `repository field: missing or empty` and exits 1; setting it to `ruvnet/ruflo` reports `repository is a URL` and exits 1; restoring it exits 0. - `node scripts/check-plugin-manifests.mjs` is unchanged by this diff (its two nested-manifest findings belong to `ruflo-ai-team/directory` and `ruflo-x-gateway/directory`, which this change does not touch). - `node scripts/audit-plugin-secrets.mjs` clean, 48 manifests. No plugin version is bumped: the installed artifact's behaviour does not change and no user-visible surface reads the field from an installed copy, so there is nothing for a version bump to deliver. The `Plugin version bump` workflow will flag the 44 manifests it sees as shipped files, and this PR needs the `skip-plugin-version-check` label rather than 44 unrelated version bumps that would collide with each plugin's own release cadence. Closes #4774
ruflo-testgen
Test gap detection, coverage analysis, and automated test generation. SPARC Refinement-phase canonical owner.
Install
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-testgen@ruflo
What's Included
- Coverage Gap Detection: Identify untested code paths with prioritized gap analysis
- Coverage-Aware Routing: Route tasks to agents based on test coverage needs
- Test Generation: Automated test scaffolding for uncovered modules
- TDD Support: London School (mock-first) test patterns with agent coordination
- testgaps Worker: Background worker for continuous coverage analysis
- Integration: Works with hooks system for post-edit test suggestions
Requires
ruflo-coreplugin (provides MCP server)
Compatibility
- CLI: pinned to
@claude-flow/cliv3.6 major+minor. - Verification:
bash plugins/ruflo-testgen/scripts/smoke.shis the contract.
testgaps worker + coverage CLI surface
This plugin's two MCP/CLI surfaces:
| Surface | Invocation |
|---|---|
MCP: dispatch the testgaps worker |
mcp tool call hooks_worker-dispatch --json -- '{"trigger":"testgaps"}' |
CLI: coverage-gaps (table of gaps) |
npx @claude-flow/cli@latest hooks coverage-gaps --format table --limit 20 |
CLI: coverage-route (route a task by gap) |
npx @claude-flow/cli@latest hooks coverage-route --task "add auth tests" |
CLI: coverage-suggest (suggest tests for a path) |
npx @claude-flow/cli@latest hooks coverage-suggest --path src/ |
testgaps is one of 12 background workers documented in ruflo-loop-workers ADR-0001.
SPARC Refinement-phase ownership
This plugin owns the Refinement phase per ruflo-sparc ADR-0001 §"Phase-to-plugin alignment". When SPARC's sparc-refine skill runs, it composes:
- This plugin — coverage gap detection + TDD test generation
- ruflo-jujutsu — diff-aware refactor recommendations
Together they enforce the Refinement gate: ≥80% coverage on new code + diff risk score below threshold.
Namespace coordination
This plugin owns the test-gaps AgentDB namespace (kebab-case, follows the convention from ruflo-agentdb ADR-0001 §"Namespace convention"). Reserved namespaces (pattern, claude-memories, default) MUST NOT be shadowed.
test-gaps indexes detected gaps by file + priority + last-seen timestamp. Accessed via memory_* (namespace-routed).
Verification
bash plugins/ruflo-testgen/scripts/smoke.sh
# Expected: "10 passed, 0 failed"
Architecture Decisions
Related Plugins
ruflo-loop-workers— defines thetestgapsbackground workerruflo-sparc— Refinement-phase canonical handoffruflo-jujutsu— diff-aware refactor companion in the Refinement gateruflo-agentdb— namespace convention owner
As a mod
This plugin also loads as a function-hook mod (ADR-445 pattern, hooks/hooks.json → register.ts). No network, no process spawn, no model call.
- Guard (default on, tighten-only). It counts the
hooks_worker-dispatchand coverage calls made this session. It is observe-only: testgen has no harmful input to guard, so it never denies and has nothing to configure. - Status file.
.claude-flow/testgen-mod/status.json({version: 1, updatedMs, guard, checked, blocked, seen}), written at session start and when a counter changes. /testgen-modanswers locally:status,workers. (The plugin's own commands are prompt commands, which a hook cannot answer, so the mod has its own name.)- Options. None.
Test it: claude plugin validate plugins/ruflo-testgen, claude plugin test plugins/ruflo-testgen, bash plugins/ruflo-testgen/scripts/smoke.sh.