/soleur:heal-skillfrom soleur
Detects when a skill has incorrect instructions, outdated API references, or wrong parameters, then diffs and applies fixes after user approval.
Ships in soleur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
Analyze the conversation to detect which skill is running, reflect on what went wrong, propose specific fixes, get user approval, then apply changes with optional commit.
If a fix adds a new user-facing capability, run its domain assessment (brainstorm Phase 0.5, or plan Phase 2.5 on a pipeline run) with CPO and CMO in the room (CTO when architectural) before applying it; CMO may be omitted with a one-line rationale for operator-facing-only capabilities, CPO never. The rule's canonical text is `plugins/soleur/skills/brainstorm/references/brainstorm-domain-config.md` under `## New-capability leader mandate`.Skill detection: !ls -1 ./skills/*/SKILL.md | head -5
<quick_start>
</quick_start>
Identify the skill from conversation context:Identify the skill name and locate its directory at ./skills/<skill-name>/.
If unclear, ask the user. </step_1>
<step_2 name="reflection_and_analysis"> Focus on $ARGUMENTS if provided, otherwise analyze broader context.
Determine:
<step_3 name="scan_affected_files">
List the skill directory contents. Replace <skill-dir> with the actual skill directory path (e.g., plugins/soleur/skills/<skill-name>):
ls -la <skill-dir>/
ls -la <skill-dir>/references/ 2>/dev/null
ls -la <skill-dir>/scripts/ 2>/dev/null
</step_3>
<step_4 name="present_proposed_changes">
soleur:<name> and an agent by its registry id, nothing else — no slash, dollar or at-sign prefix, no bare agent leaf — the adapter renders the harness form (formatSkillInvocation / spawnAgent, plugins/soleur/lib/harness.ts); a doc that writes one harness's form names a component the other three cannot resolve (ADR-226). If a shell variable or glob collides with a skill name, brace or rename it ("${work}") — never widen the gate's boundary set. plugins/soleur/test/harness-parity-tree.test.ts is the gate; bun plugins/soleur/scripts/harness-parity-census.ts --fix repairs the mechanical shapes.Present changes in this format:
**Skill being healed:** [skill-name]
**Issue discovered:** [1-2 sentence summary]
**Root cause:** [brief explanation]
**Files to be modified:**
- [ ] SKILL.md
- [ ] references/[file].md
- [ ] scripts/[file].py
**Proposed changes:**
### Change 1: SKILL.md - [Section name]
**Location:** Line [X] in SKILL.md
**Current (incorrect):**
[exact text from current file]
**Corrected:**
[new text]
**Reason:** [why this fixes the issue]
[repeat for each change across all files]
**Impact assessment:**
- Affects: [authentication/API endpoints/parameters/examples/etc.]
**Verification:**
These changes will prevent: [specific error that prompted this]
</step_4>
<step_5 name="request_approval">
Should I apply these changes?
1. Yes, apply and commit all changes
2. Apply but don't commit (let me review first)
3. Revise the changes (I'll provide feedback)
4. Cancel (don't make changes)
Choose (1-4):
Wait for user response. Do not proceed without approval. </step_5>
<step_6 name="apply_changes"> Only after approval (option 1 or 2):
6.0 — Validation gate for gated classifier-skill edits (primary in-session hook).
Before applying ANY correction, run node plugins/soleur/skills/eval-harness/scripts/eval-gate.cjs --check <target-file> for each file being edited. If gated is false, apply normally (step 1 below). If gated is true, the edit may change a verifiable classifier block (the soleur:go routing table, the soleur:support:ticket-triage rubric) — gate it:
a. Buffer pre-check (the rejected-edit reader). Read .claude/.skill-edit-rejections.jsonl (if present); if a prior entry matches this source_file + the same targeted miss (target_task id), surface it and do NOT re-propose the same dead-end edit — a previously-rejected edit is recognized, not re-run (avoids re-spending ~230 API calls on a known failure).
b. Run the gate. Write the proposed-edited file to a temp path, then run eval-gate.cjs --candidate-file <tmp> --target <target> --target-task <synthesized row encoding the miss being fixed> (synthesized fixtures only, per cq-test-fixtures-synthesized-only). The verdict is computed deterministically in verdict.cjs (the LLM is out of the assertion path).
c. Accept (accept:true): apply the Edit (step 1). Optionally --append-on-accept so the fixed case becomes a permanent corpus regression guard.
d. Reject (accept:false) or any gate error (fail-closed): do NOT apply; append {source_file, target_task_id, reason, verdict, timestamp} to .claude/.skill-edit-rejections.jsonl; surface the verdict. Do NOT stamp any sync marker — the fix is not abandoned, it can be re-attempted with a different edit.
e. Headless (HEADLESS_MODE=true) — fail CLOSED, DO NOT apply: an unattended run must NEVER apply an unvalidated gated-block edit (the gate's API budget is not spent unattended, so the edit is unvalidated). DEFER THE EDIT: record a one-line deferred note (the proposed edit is preserved in the heal context and can be re-attempted interactively, where the gate runs). Do NOT stamp any sync marker. The #5703 CI backstop re-asserts at PR time. Headless applies a gated-block edit only when the gate has run and returned accept:true.
This gate fires only on edits that change a gated block; a correction to prose outside the block (the common case) extracts an identical block and short-circuits to accept (no API). It never displaces a deterministic hook fix — it only validates a prose-rule change to a classifier surface.
<success_criteria>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jikig-ai/soleur --plugin soleur108 skills in this plugin
/admin-ip-refreshThis skill should be used to refresh the prod SSH allowlist (Doppler ADMIN_IPS) after operator IP rotation. Detects drift, mutates Doppler with explicit ack./agent-browserThis skill should be used when automating browser interactions via Vercel's agent-browser CLI. It handles web page navigation, form filling, screenshots, and data scraping using ref-based element selection./agent-native-architectureThis skill should be used when designing agent-native applications where agents are first-class citizens: architecting autonomous agents, creating MCP tools, building apps where features are agent-driven outcomes.Other plugins' skills for the same job