env-doctor
Skill2 starsChanged 7 days agoMITView on GitHub
Guided recovery for environment.json drift. Use when the researcher runs /carrel-fix, mentions environment drift, broken setup state, or wants help repairing conflicting settings.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- venhdev/skillstheir own version, first seen Nov 1, 2026
- sharklandy/claude-code-starter-kittheir own version, first seen Oct 20, 2026
- unreadlogs/node-agent-skillstheir own version, first seen Oct 13, 2026
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- angelgabrieljacintohuayllasco/clipboard-skillstheir own version, first seen Sep 20, 2026
- taxueseek/session-diggertheir own version, first seen Jul 17, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- taxueseek/session-digger★ 34same name
- tellmefrankie/ai-investment-skills★ 14same name
- unreadlogs/node-agent-skills★ 4same name
- venhdev/skills★ 1same name
- abigayleh/claude-workflow-plugin★ 0same name
- angelgabrieljacintohuayllasco/clipboard-skills★ 0same name
- sharklandy/claude-code-starter-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- automationSkill
- carrelSkill
- collaborator-onboardingSkill
- convertSkill
- environment-setupSkill
- knowledge-wikiSkill
- model-teammatesSkill
- research-partnerSkill
- self-improveSkill
- session-reflectionSkill
- transcribeSkill
- vault-opsSkill
- web-captureSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Always work in order:
- Very specific: line 16
If status is valid, say so plainly and stop.
- Very specific: line 21
Only run carrel env fix --safe --vault .
- Distinctive: line 24
If validation or the dry-run reports deferred items, shift into guided recovery.
- Distinctive: line 29
Use plain language. Avoid "ValidationError", "enum", or other implementation terms unless the researcher asks.
- Distinctive: line 31
If the ambiguity is about sensitivity or cloud consent, explain the practical consequence: "This setting decides whether cloud tools are …
- Very specific: line 33
If CLAUDE.md and environment.json disagree, say explicitly that environment.json is the structured source of truth, but ask which one …
- Distinctive: line 38
Use short, concrete questions.
- Very specific: line 46
After every applied change, append an entry to _meta/capability-log.md that includes:
- Distinctive: line 53
Use a compact format, for example:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
env-doctor
Diagnoses .carrel/environment.json, offers safe repairs with approval, and walks the researcher through ambiguous drift without hiding the tradeoffs.
Mode Detection
Always work in order:
- Layer 1: Validate
Run
carrel env validate --vault . --format json. If status isvalid, say so plainly and stop. - Layer 2: Safe fix preview
Run
carrel env fix --safe --dry-run --vault . --format json. Group the safe fixes into a short plain-language summary and ask whether to apply them. Only runcarrel env fix --safe --vault .after explicit approval. - Layer 3: Interactive doctoring If validation or the dry-run reports deferred items, shift into guided recovery. Explain the ambiguity in ordinary language, present 2-3 options, and ask the researcher to choose.
Interaction Rules
- Use plain language. Avoid "ValidationError", "enum", or other implementation terms unless the researcher asks.
- Group related fixes. Do not dump every field unless the researcher wants the raw detail.
- If the ambiguity is about sensitivity or cloud consent, explain the practical consequence: "This setting decides whether cloud tools are okay by default."
- If CLAUDE.md and environment.json disagree, say explicitly that
environment.jsonis the structured source of truth, but ask which one reflects the researcher's current intent before changing either. - Re-run
carrel env validate --vault . --format jsonafter any applied fix to confirm the vault is clean.
Questions for Ambiguous Drift
Use short, concrete questions. Examples:
- "Your sensitivity setting uses an older label. Should I treat this as
mediumsensitivity, which keeps cloud tools off by default?" - "CLAUDE.md says cloud tools are okay, but environment.json says no. Which one is current?"
- "This tool is marked configured in your profile, but it is not installed on this machine. Should I mark it unavailable here?"
Logging
After every applied change, append an entry to _meta/capability-log.md that includes:
- Timestamp
- What changed
- Why it changed
- How to revert it
Use a compact format, for example:
- 2026-04-20 14:03 UTC — Updated `.carrel/environment.json` sensitivity from `cautious` to `medium`; revert by restoring `.carrel/environment.json.bak`.References
references/fix-catalog.mdfor the safe-fix rules supported by Layer 2/carrel-fixfor the slash-command wrapper
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

