agentleFS
mentealternementealterne/GYOS/skills/doctor/SKILL.md

doctor

Skill1 starsChanged 6 days agoApache-2.0View on GitHub

Checks that a product GYOS set up is still in shape: every module has a domain skill, every skill matches the domain skill standard (files, activation, glossary, invariants, workflow, ceilings), every decision's Confirmation still resolves, scenarios are indexed, links work. Then explains what it found and offers the fixes. Use when the user runs /gyos:doctor, asks whether the skills or the knowledge are up to date, or before a release.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use uninstall, cancel and 10 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

    uninstall

    Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.

    Also in 6 projects that use this

  • woosikkimSkill

    cancel

    Clear any stale OMC-Slim state

    Also in 4 projects that use this

  • ibahgatSkill

    hud

    Control omi visual HUD profile and keep status output readable in normal, compact, or hidden mode.

    Also in 3 projects that use this

  • ibahgatSkill

    ralplan

    Create a strict, quality-first execution plan with explicit gates and rollback-ready sequencing.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • Arman-KudaibergenovSkill

    inspect

    Этот скилл MUST быть вызван для анализа и инспекции любого объекта 1С из XML-выгрузки: конфигурация (cf-info), объект метаданных (meta-info), управляемая форма (form-info), схема компоновки данных СКД (skd-info), макет табличного документа MXL (mxl-info), подсистема (subsystem-info), роль и права (role-info). SHOULD вызывать как подготовительный шаг перед любой модификацией объекта. Do NOT использовать для модификации — для изменений используй соответствующие edit/compile скиллы.

    Also in 4 projects that use this

  • +1 more from ibahgat

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 72 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    If the product has no scripts/gyos-doctor.ts,: run the plugin's copy on it instead: node ${CLAUDE_PLUGIN_ROOT}/scripts/gyos-doctor.ts .

    line 23
  2. Distinctive:

    Read the skills for these, and report them as your own findings, clearly labelled as such:

    line 52
  3. Distinctive:

    No core file reads as generic: Every one says something true of this context and of no other.

    line 55
  4. Distinctive:

    After fixing,: run the script again and report its last line.

    line 71

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

Doctor

You check a product's knowledge against docs/standards/domain-skill.md, the same way its CI does, and then help fix what's wrong. A script does the checking, deterministically. Your part is to explain the findings, cover the few checks a script can't make, and propose fixes.

1. Run the checks

node scripts/gyos-doctor.ts --json

If the product has no scripts/gyos-doctor.ts, run the plugin's copy on it instead: node ${CLAUDE_PLUGIN_ROOT}/scripts/gyos-doctor.ts . --json. Then offer to copy it into scripts/ so the product's CI can run it too, and copy it only if the user agrees.

Is the product's copy out of date? The JSON output carries the script's version. Compare it with node ${CLAUDE_PLUGIN_ROOT}/scripts/gyos-doctor.ts . --json. If the plugin's is newer, say so, run both, and offer to update the product's copy.

2. Explain

Group the findings by skill: failures first, then warnings, then notes. One line per finding: what it means, and how to fix it.

FindingWhat it usually means
Not a GYOS product, or no skills foundThe wrong directory, or a product not set up with GYOS
A module has no domain skillA context was added without /gyos:context
A {{slot}} or <!-- gyos: remainsGeneration stopped half-way
A vocabulary term isn't a core termThe activation words and the glossary drifted
A Confirmation doesn't resolveA scenario was renamed or deleted, or an invariant renumbered. The decision may no longer hold: that's a question for the user, not a typo
A superseded decision is still activeSomeone changed their mind and forgot the second edit
A log heading can't be parsedA decision the doctor can't see; its status may be read wrongly until it is fixed
A file is over its ceilingIt needs pruning: a judgement, not a mechanical edit
A trace names a missing fileThe code moved and the trace is stale; it fails unless the trace is marked Unverified:
Notes: Unverified:, token countsClaims nobody has checked yet; the measured size of each load set
A warning: the tenant comes from the x-tenant-id headerThe host's development placeholder (apps/api/src/http/tenant.ts) is still there. It is not authentication, and a production host refuses to start with it. Ask how the product authenticates its callers; never make the warning go away by renaming the header

3. What the script can't check

Read the skills for these, and report them as your own findings, clearly labelled as such:

  • Neighbours are named only in glossary.md, SKILL.md and architecture.md, never as a list in workflow.md.
  • No core file reads as generic. Every one says something true of this context and of no other.
  • workflow.md is specialized: the clarify dimensions, gates and standing risks are this context's, and the Change protocol matches docs/decisions/0002-testing-style.md.
  • Promises in scenarios.md name no files, functions or types.

4. Fix, with consent

  • Mechanical fixes: a stale link, a missing index line in scenarios.md, a superseded row still in an Active table, the token counts in SKILL.md, a log heading in the wrong form. Propose them as one list, and apply them when the user says go.
  • Fixes that need judgement or knowledge: pruning a file over its ceiling, a Confirmation that no longer resolves, an invariant without its trap, a term to define. Propose each one separately, and ask the user, one question at a time. Never invent the answer.
  • A module without a skill: suggest /gyos:context.

After fixing, run the script again and report its last line. Don't commit unless the user asks.

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.