Skip to content
Agentmart
Submit a tool

repo-health--phase-6-tests

INTERNAL SUBSKILL of repo-health.

Skill by handbrianc

IndexedMIT
Write a review

Chalk Labs

Need help deploying repo-health--phase-6-tests?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/handbrianc-repo-health-phase-6-tests

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

INTERNAL SUBSKILL of repo-health. Test suite health — presence, pass/fail, coverage, slow tests. Not for direct invocation.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/repo-health-phase-6-tests

What's inside

Skill name
repo-health--phase-6-tests
Description
INTERNAL SUBSKILL of repo-health. Test suite health — presence, pass/fail, coverage, slow tests. Not for direct invocation.
License
MIT
Instructions
113 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PHASE 6 — Test Suite Health

## Step 6.1 — Presence Check

```bash
./skills/repo-health/scripts/scan-tests.sh --check-presence
```text

If no test files or no test scripts: **CRITICAL**.

## Step 6.2 — Test Run with Coverage

```bash
./skills/repo-health/scripts/scan-tests.sh --run-coverage
```text

Produces:

```text
PASSED: NNN
FAILED: NN   ← list each failure (EACH is a separate CRITICAL finding)
ERRORS: NN   ← list each error (EACH is a separate CRITICAL finding)
SKIPPED: NN  ← list each skip with reason
RETRIED: NN  ← flaky test indicators
TIMED_OUT: NN
```text

**Clean run:** EXIT_CODE=0, FAILED=0, ERRORS=0, RETRIED=0. Skips OK if documented.

## Step 6.3 — Test Failure Classification (MANDATORY)

**Any FAILED or ERROR test → CRITICAL severity finding.** Each failing test is a separate CRITICAL finding. They are NOT eligible for downgrade or NITPICK classification. Test failures MUST be addressed in the remediation loop (Phase 10 — runs only in mode=fix).

| Condition | Severity | Action |
| ----------- | ---------- | -------- |
| FAILED > 0 | **CRITICAL** (per failing test) | Fix each failing test |
| ERRORS > 0 | **CRITICAL** (per error) | Fix each test error |
| RETRIED > 0 | MEDIUM | Investigate flakiness |
| SKIPPED with no documented reason | LOW | Document or fix |

### Exit Condition for Tests

A finding is **NOT fixed** until:

- `EXIT_CODE=0` (test suite exits successfully)
- `FAILED=0` (zero failing tests)
- `ERRORS=0` (zero test errors)
- `RETRIED=0` (zero flaky tests, or documented)

All test failures are tracked under the `FAILED_TESTS` metric in the Phase 10 exit condition.

## Step 6.4 — Parse Results

```bash
./skills/repo-health/scripts/scan-tests.sh --parse-results
```text

## Step 6.5 — Slow Tests

```bash
./skills/repo-health/scripts/scan-tests.sh --slow-tests
```text

## Step 6.6 — Coverage Analysis

```bash
./skills/repo-health/scripts/scan-tests.sh --coverage-report
```text

### Coverage Thresholds

| Coverage | Action Required |
| --------- | --------------------------------------------------------- |
| < 50% | Add tests covering core functionality — prioritize modules |
| 50-80% | Bring coverage above 80%; identify untested hot paths |
| >= 80% | Acceptable; investigate uncovered branches specifically |

### Gap Analysis

```bash
./skills/repo-health/scripts/find-uncovered.sh /tmp/coverage/
```

---

## ⚠️ Known Failure Modes

### parse-test-results.sh may auto-detect wrong framework

The `parse-test-results.sh` script attempts to auto-detect the test framework from test
output. For bash-only repos (bats), it may fail with "Couldn't auto-detect framework."

**Fallback:** Manually parse the test runner output:

```bash
# Run bats tests directly
bash tests/run-tests.sh
EXIT_CODE=$?
echo "EXIT_CODE: $EXIT_CODE"
echo "PASSED: $(grep -c '^ok' /tmp/test-output.txt 2>/dev/null || echo 0)"
echo "FAILED: $(grep -c '^not ok' /tmp/test-output.txt 2>/dev/null || echo 0)"
```

### scan-tests.sh sub-scripts may not exist

The `scan-tests.sh` script dispatches to sub-scripts (`scan-tests-presence.sh`,
`scan-tests-coverage.sh`, `scan-tests-parse.sh`, `scan-tests-slow.sh`). If any of these
are missing, that step silently produces no output.

**Mitigation:** After running `scan-tests.sh`, verify each step produced output. If a
step is empty, run the corresponding check directly (e.g., `ls tests/` for presence).text

From handbrianc/skill-library, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 27, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get repo-health--phase-6-tests running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying repo-health--phase-6-tests?

CallGet help
Cite this page

repo-health--phase-6-tests skill. Agent Mart. https://agentmart.dev/skills/handbrianc-repo-health-phase-6-tests (last updated 2026-10-24)