agentleFS
mrzhangguoguomrzhangguoguo/oh-my-workbuddy/skills/doctor/SKILL.md

doctor

Skill2 starsChanged 5 months agoMITView on GitHub

Diagnose and fix oh-my-workbuddy skill installation issues — missing or duplicate skill roots, stale package versions, broken AGENTS.md/memory. Trigger "doctor", "fix skill install", "why is my skill missing", "diagnose skills".

  • Deletes or force-pushes

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use status, setup and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 6 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 10 projects that use this

  • termdockSkill

    recall

    Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Generate or update chat customization files for AI coding agents

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If both a legacy path (e.g.

    line 31
  2. Very specific:

    Use the task list (TaskCreate/TaskUpdate) to track the six checks below as you go, and append a short summary to …

    line 38
  3. Very specific:

    If ~/.workbuddy/skills does not exist or is empty: CRITICAL — no user skills installed.

    line 52
  4. Very specific:

    If a per-skill version marker is present and differs from LATEST: WARN — outdated install (run setup again).

    line 53
  5. Very specific:

    If ~/.workbuddy/skills and .workbuddy/skills both contain the same skill: WARN — same skill present in two scopes (project copy shadows …

    line 66
  6. Very specific:

    If a legacy tree (~/.codebuddy/skills, ~/.agents/skills) exists with oh-my-workbuddy skills: WARN — legacy root can cause duplicate entries.

    line 68
  7. Very specific:

    If a project AGENTS.md exists but lacks the oh-my-workbuddy marker: WARN — outdated project guidance.

    line 80
  8. Very specific:

    If the memory directory is missing: INFO — memory is optional.

    line 92
  9. Very specific:

    If legacy *.sh wrappers exist (e.g.

    line 104
  10. Distinctive:

    If a known skill is missing from the active root: CRITICAL — install is incomplete.

    line 115
  11. Distinctive:

    After running all checks, output:

    line 121
  12. Distinctive:

    If issues are found, ask the user: "Would you like me to fix these automatically?" Use the AskUserQuestion tool for a clean yes/no.

    line 152
  13. Distinctive:

    Use the AskUserQuestion tool for a clean yes/no.

    line 153
  14. Distinctive:

    Do not delete unrelated project documentation.

    line 182
  15. Distinctive:

    After applying fixes, inform the user:

    line 188

“Common” is measured: kept by at least 6 in 10 of the 29 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ported from oh-my-codex doctor. OMX runtime conventions ($macro invocation, omx CLI, .omx/ state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list, .workbuddy/memory).

Doctor Skill

You are the oh-my-workbuddy Doctor — diagnose and fix installation issues for this skill package. WorkBuddy loads skills from a user skill root (~/.workbuddy/skills/) and an optional project skill root (.workbuddy/skills/ in the repo). A healthy install has exactly one copy of each skill in the active root(s), and no stale leftovers from older installs that could cause duplicate or shadowed entries.

Note: OMX/Codex-specific surfaces (~/.codex/config.toml, ~/.codex/hooks/*.sh, .omx/ state) do not exist in WorkBuddy and are intentionally dropped from this diagnostic.

Canonical skill roots

  • User scope (recommended): ~/.workbuddy/skills/
  • Project scope: .workbuddy/skills/ (repo-relative)

If both a legacy path (e.g. an old ~/.codebuddy/skills/ or ~/.agents/skills/) and the canonical root exist, WorkBuddy may discover skills from both trees and show duplicate entries. Archive or remove the legacy tree once you have confirmed ~/.workbuddy/skills/ is your active root.

Task: Run Installation Diagnostics

Use the task list (TaskCreate/TaskUpdate) to track the six checks below as you go, and append a short summary to .workbuddy/memory/YYYY-MM-DD.md when done.

Step 1: Check Package Version

# Installed location(s) of oh-my-workbuddy skills
find ~/.workbuddy/skills -maxdepth 2 -name SKILL.md 2>/dev/null | head
# Latest published version (if distributed via npm)
LATEST=$(npm view oh-my-workbuddy version 2>/dev/null)
echo "Latest npm: ${LATEST:-<not published via npm>}"

Diagnosis:

  • If ~/.workbuddy/skills does not exist or is empty: CRITICAL — no user skills installed.
  • If a per-skill version marker is present and differs from LATEST: WARN — outdated install (run setup again).

Step 2: Check for Duplicate / Legacy Skill Roots

ls -la ~/.workbuddy/skills/ 2>/dev/null
ls -la .workbuddy/skills/ 2>/dev/null
# Look for legacy leftovers from older tooling
ls -la ~/.codebuddy/skills/ 2>/dev/null
ls -la ~/.agents/skills/ 2>/dev/null

Diagnosis:

  • If ~/.workbuddy/skills and .workbuddy/skills both contain the same skill: WARN — same skill present in two scopes (project copy shadows user copy).
  • If a legacy tree (~/.codebuddy/skills, ~/.agents/skills) exists with oh-my-workbuddy skills: WARN — legacy root can cause duplicate entries; remove it.

Step 3: Check AGENTS.md / Project Wiring

ls -la ~/.workbuddy/AGENTS.md 2>/dev/null
ls -la .workbuddy/AGENTS.md 2>/dev/null
ls -la AGENTS.md 2>/dev/null

Diagnosis:

  • If a project AGENTS.md exists but lacks the oh-my-workbuddy marker: WARN — outdated project guidance. Refresh it (see Fix below).
  • Missing AGENTS.md is OK unless the project expects orchestration wiring.

Step 4: Check Memory Directory

ls -la ~/.workbuddy/memory/ 2>/dev/null
ls -la .workbuddy/memory/ 2>/dev/null

Diagnosis:

  • If the memory directory is missing: INFO — memory is optional; create it if you want durable cross-session notes (used by note/hud idioms).

Step 5: Check for Stale Leftover Scripts

# Any old hook/wrapper scripts left by previous installs
ls -la ~/.workbuddy/hooks/ 2>/dev/null
ls -la .workbuddy/hooks/ 2>/dev/null

Diagnosis:

  • If legacy *.sh wrappers exist (e.g. keyword-detector.sh, session-start.sh): WARN — stale scripts from an older install; safe to remove.

Step 6: Verify a Known Skill Loads

test -f ~/.workbuddy/skills/doctor/SKILL.md && echo "doctor: OK" || echo "doctor: MISSING"
test -f ~/.workbuddy/skills/omx-setup/SKILL.md && echo "omx-setup: OK" || echo "omx-setup: MISSING"

Diagnosis:

  • If a known skill is missing from the active root: CRITICAL — install is incomplete.

Report Format

After running all checks, output:

## oh-my-workbuddy Doctor Report

### Summary
[HEALTHY / ISSUES FOUND]

### Checks

| Check | Status | Details |
|-------|--------|---------|
| Package Version | OK/WARN/CRITICAL | ... |
| Skill Roots (dup/legacy) | OK/WARN | ... |
| AGENTS.md | OK/WARN | ... |
| Memory Dir | OK/INFO | ... |
| Legacy Scripts | OK/WARN | ... |
| Known Skill Loads | OK/CRITICAL | ... |

### Issues Found
1. [Issue description]
2. [Issue description]

### Recommended Fixes
[List fixes based on issues]

Auto-Fix (if user confirms)

If issues are found, ask the user: "Would you like me to fix these automatically?" Use the AskUserQuestion tool for a clean yes/no. If yes, apply fixes:

Fix: Missing / Incomplete Install

Re-run setup:

./omw setup --force --verbose
# or, for a single user: install skills to ~/.workbuddy/skills

See the omx-setup skill for details.

Fix: Legacy / Duplicate Skill Roots

# Remove legacy trees only if they contain oh-my-workbuddy skills.
# Back up first if unsure:
# mv ~/.codebuddy/skills ~/.codebuddy/skills.bak
rm -rf ~/.codebuddy/skills
rm -rf ~/.agents/skills

Fix: Stale Leftover Scripts

rm -f ~/.workbuddy/hooks/keyword-detector.sh
rm -f ~/.workbuddy/hooks/persistent-mode.sh
rm -f ~/.workbuddy/hooks/session-start.sh

Fix: Outdated AGENTS.md

Refresh the project guidance. If a AGENTS.md exists, prefer merging rather than overwriting user-authored content; otherwise write the oh-my-workbuddy-managed block. Do not delete unrelated project documentation.


Post-Fix

After applying fixes, inform the user:

Fixes applied. Restart the WorkBuddy session / reload skills for changes to take effect.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.