agentleFS
Ubuntu-BuddhaUbuntu-Buddha/claude-code-stranger-danger/skills/doctor/SKILL.md

doctor

Skill8 starsChanged 12 days agoMITView on GitHub

Check that stranger-danger is installed and working in this session. Runs a read-only setup check, then four harmless live probes that show whether the gates and the settings guard are loaded, then asks for the rules canary.

  • Reads credentials

81 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use uninstall, cancel and 8 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 3 projects that use this

  • ibahgatSkill

    mode

    Inspect or switch omi operating mode/profile for speed, depth, autonomy, or strict quality gates.

    Also in 3 projects that use this

  • BlockSkill

    open

    Open markdown documents in Penpal for collaborative review. Use when you want a human to review a document, plan, or research artifact.

    Also in 3 projects that use this

  • QinghongLinSkill

    editor

    Read analyst.json and detective.json, make all editorial decisions — what the blog argues, which findings matter, narrative arc and section structure. No visual design. Outputs editor.md (prose) and editor.json (structure with edt_xx IDs).

    Also in 3 projects that use this

  • 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 15 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run each probe once, exactly as written, from this main session (not from a subagent).

    line 21
  2. Very specific:

    Secret paths: read ~/.ssh/stranger-danger-probe-does-not-exist with the Read tool.

    line 26
  3. Very specific:

    Launch gate: run npx --version with Bash.

    line 29
  4. Distinctive:

    Don't retry a probe another way, and don't run anything else to work around a block.

    line 37
  5. Very specific:

    If you found it and it holds only letters, digits, - and _, run this once, with the word in single quotes in place of WORD:

    line 44
  6. Distinctive:

    If the word holds any other character, don't run it: tell the user to compare it with their rules file in their own editor.

    line 51

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

stranger-danger doctor

Run these steps in order, then summarize. Every probe is harmless even when a gate isn't loaded: it targets a closed local port, a file that doesn't exist, npx --version, which doesn't download anything, and a write to a file the settings template denies, which you decline if asked.

1. Setup check

Run:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/doctor/doctor.py"

It prints PASS, WARN, FAIL and INFO lines, and exits 1 if anything failed. Keep its output for the summary. It never prints secrets or the rules canary.

2. Live probes

Run each probe once, exactly as written, from this main session (not from a subagent). Record which layer answered. Each probe that a gate refuses is a real deny, so it adds a line to the decision log (codes web-host, secret, launch-launcher and settings-guard).

  1. Reader gate: fetch http://127.0.0.1:9/stranger-danger-probe with WebFetch.
    • Expected: blocked with a message that starts reader gate:.
    • A connection error or a fetch result means the reader gate isn't loaded in this session.
  2. Secret paths: read ~/.ssh/stranger-danger-probe-does-not-exist with the Read tool.
    • Expected: blocked with reader gate (rule 5), or by a permission deny rule.
    • "File does not exist" means neither the gate nor a deny rule covered ~/.ssh.
  3. Launch gate: run npx --version with Bash.
    • Expected: blocked with a message that starts launch gate.
    • A printed version number means the launch gate isn't loaded. Another layer, such as an auto-mode classifier, may block it first. Say which layer blocked it.
  4. Settings guard: only if step 1's settings deny rules line is PASS; if it isn't, skip this probe and say why, since a Write that nothing stops would create the folder. Write the one line probe to .config/stranger-danger/doctor-probe in the user's home folder with the Write tool, giving its full absolute path.
    • Expected: blocked with a message that starts settings guard:.
    • A block by a permission deny rule instead means either the settings guard isn't loaded in this session, or this Claude Code version checks deny rules before hooks (not yet tested: VERIFY.md row S1). Say it's one of the two. While the guard isn't loaded, your settings file, the CLAUDE.md that loads the rules and the rules folder are only asked about, not checked. If you're asked to approve the write, decline it, and say the guard isn't loaded.

Don't retry a probe another way, and don't run anything else to work around a block. The blocks are the point.

3. Rules canary

Without reading any file, find the rules canary word in the instructions loaded in this session (the Rules canary: line). Don't look for it any other way.

  • If you can't find it, or it's still <your-canary-word>, say so: either ~/.claude/stranger-danger/RULES.md isn't loaded, or its word isn't filled in yet. Check the @~/.claude/stranger-danger/RULES.md line in ~/.claude/CLAUDE.md, and start a new session after fixing it. The plugin fills in a placeholder line at the next session start.
  • If you found it and it holds only letters, digits, - and _, run this once, with the word in single quotes in place of WORD:

    python3 "${CLAUDE_PLUGIN_ROOT}/skills/doctor/doctor.py" --canary 'WORD'

    It compares the word with the rules file and prints one line: matches, doesn't match, or not set. Report that line. It never prints the file's word.

  • If the word holds any other character, don't run it: tell the user to compare it with their rules file in their own editor.

4. Summary

Give a short table: check, result, and fix for anything that isn't PASS. Put the live probes and the canary first; they show what is actually enforced in this session. Then list the setup check's WARN and FAIL lines with their fixes.

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.