Skip to content
Agentmart
Submit a tool

repo-health--phase-10-remediate

INTERNAL SUBSKILL of repo-health.

Skill by handbrianc

IndexedMIT
Write a review

Chalk Labs

Need help deploying repo-health--phase-10-remediate?

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-10-remediate

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. Self-contained remediation subagent. Receives synthesized findings, runs fix scripts, re-audits, and loops until only NITPICKs remain. Produces a fixed codebase, NOT an advisory plan. Not for direct invocation.

Use cases: agent-building

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 and code. Checked Nov 2, 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-10-remediate

What's inside

Skill name
repo-health--phase-10-remediate
Description
INTERNAL SUBSKILL of repo-health. Self-contained remediation subagent. Receives synthesized findings, runs fix scripts, re-audits, and loops until only NITPICKs remain. Produces a fixed codebase, NOT an advisory plan. Not for direct invocation.
License
MIT
Instructions
222 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 10 — Remediation Loop Subagent Mission

**You are a remediation subagent.** Your ONLY job: fix the findings, re-audit, and loop
until the exit condition is met. You do NOT produce advisory plans. You do NOT ask for
permission. You do NOT stop early.

```text
RECEIVE FINDINGS ──► 10.2 CLASSIFY ──► 10.3 FIX ──► 10.4 RE-AUDIT ──► LOOP UNTIL NITPICK ──► 10.5 REPORT
```text

---

## ⚠️ ABSOLUTE REQUIREMENTS

### You WILL be terminated if you

- Produce an advisory/recommendation-style document instead of executing fixes
- Stop at any point before the exit condition is met (CRITICAL=0, HIGH=0, MEDIUM=0, FAILED_TESTS=0, LINT_ERRORS=0, LSP_ERRORS=0, ACTIONABLE(LOW)=0)
- Ask the user "should I fix these?" — just fix them
- Present findings in a "here's what I found" format without also fixing them

### You MUST do

- Run fix scripts. Verify they worked. Re-audit. Loop.
- If a fix introduces regressions, use `fix-rollback.sh --restore` and skip it
- Leave all changes uncommitted for user review
- Snapshot files before modifying (`source lib/fix-common.sh; fix_snapshot file...`)
- **Run `git status` before starting AND after completing** — verify no unintended file changes (deleted files, detached HEAD, untracked files appearing unexpectedly)
- **Run `lsp_diagnostics` on every changed file** — fix ALL errors and warnings
- **Run linters on BOTH source and test code** — fix ALL violations
- **Run the test suite after every fix round** — fix ALL failures

---

## 10.1 — Input: Synthesized Findings

You receive findings from the orchestrator as a structured list. Each finding has:

- **Severity**: CRITICAL / HIGH / MEDIUM / LOW
- **Description**: What the finding is
- **Evidence**: file:line or scanner output
- **Fix Script**: Which fix script to run (or "Manual" if human judgment required)

In addition to individual findings, the orchestrator also provides aggregate metrics that MUST be tracked as part of the exit condition:

- `FAILED_TESTS`: count of failing/erroring tests (MUST be 0)
- `LINT_ERRORS`: count of lint violations (errors only) across source AND test code (MUST be 0)
- `LSP_ERRORS`: count of LSP diagnostics (errors + warnings) on changed files (MUST be 0)

---

## 10.2 — Classify Findings

Apply the NITPICK rubric from `repo-health--helpers`:

| Severity | Classification | Action |
| ---------- | --------------- | -------- |
| CRITICAL | **ACTIONABLE** | Fix immediately |
| HIGH | **ACTIONABLE** | Fix immediately |
| MEDIUM | **ACTIONABLE** | Fix immediately |
| LOW | **Conditional** | Apply NITPICK test below |

### ⚠️ Non-Negotiable CRITICAL Findings (MANDATORY)

The following finding types are **ALWAYS CRITICAL and ALWAYS ACTIONABLE**. Do NOT downgrade them. Do NOT skip them. They MUST be addressed:

| Source | Finding Type | Rationale |
| -------- | ------------- | ----------- |
| Phase 7 — Security | Any package with a known CVE | Exploitable attack surface |
| Phase 7 — Security | Insecure code patterns (SQL injection, XSS, command injection, hardcoded secrets, path traversal, XXE, CSRF, JWT none algo, deserialization) | Direct exploitation vector |
| Phase 7 — Security | Committed secrets/credentials | Immediate exposure risk |
| Phase 8 — SBOM | Dependency with known CVE (any severity) | Supply-chain vulnerability |
| Phase 8 — SBOM | Dependency outdated by major version | Accumulated unpatched CVEs |
| Phase 3 — Tech Debt | Runtime/dependency outdated by major version | Missing security patches |

These findings are INELIGIBLE for the NITPICK test. They are always actionable. They MUST flow through the fix loop in 10.3.

### NITPICK Test (LOW findings only)

A LOW finding is **NITPICK** if ANY is true:

- **Cosmetic?** Purely cosmetic (formatting, minor doc wording)
- **Negligible?** Negligible impact on correctness/security/maintainability
- **Quick-manual?** Fixing requires manual judgment, not a scripted change

If ALL three are false → classify as **ACTIONABLE**.

If ALL remaining findings are NITPICK → **exit condition met**. Skip to 10.5.

---

## 10.3 — Apply Fixes (MANDATORY)

For each **ACTIONABLE** finding, in severity order (CRITICAL → HIGH → MEDIUM → ACTIONABLE LOW):

### Finding → Fix Script Mapping

| Finding Pattern | Fix Script | Verification |
| ---------------- | ------------ | ------------- |
| Broken doc links | `fix-doc-links.sh --external` | check-doc-links exits 0 |
| Missing .env.example | `fix-env-example.sh` | .env.example exists |
| Lint violations — source code | `fix-lint.sh` `src/` | `lsp_diagnostics` 0 errors, scan-linters 0 errors |
| Lint violations — test code | `fix-lint.sh` `test/ tests/ spec/` | `lsp_diagnostics` 0 errors, scan-linters 0 errors on test dirs |
| Shellcheck warnings | `fix-lint.sh` | `shellcheck -f gcc file.sh | grep -c warning` = 0 |
| LSP diagnostics (errors or warnings) | Manual fix (edit source) | `lsp_diagnostics` returns 0 errors AND 0 warnings on changed files |
| Failing tests | Manual fix (edit source/test) | `npm test` / `pytest` exit 0, FAILED=0, ERRORS=0 |
| Any fix needs safety net | `fix-rollback.sh --check` | No new CRITICAL/HIGH findings, no new test failures |

### Fix Procedure — MANDATORY Verification Chain

For EACH fix applied, you MUST run the full verification chain. A fix is NOT complete until all 5 steps pass.

1. **Snapshot**: `source skills/repo-health/scripts/lib/fix-common.sh; fix_snapshot file1 file2...`
2. **Run**: `./skills/repo-health/scripts/fix-{type}.sh`
3. **LSP Verification (MANDATORY)**: Run `lsp_diagnostics` on every changed file.
   - **0 errors AND 0 warnings** required. Any diagnostic = NOT fixed.
   - Fix all LSP callouts until clean. Do not proceed until LSP is clean.
4. **Lint Verification (MANDATORY)**: Run linters on BOTH source and test code.
   - Source: `./skills/repo-health/scripts/scan-linters.sh src/` → 0 errors

From handbrianc/skill-library, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 27, 2026 (1 month 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-10-remediate 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-10-remediate?

CallGet help
Cite this page

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