agentleFS
thgMatajsthgMatajs/squirrel-mode/skills/off/SKILL.md

off

Skill2 starsChanged 4 months agoMITView on GitHub

Turn squirrel-mode's formatting off for the rest of the current session only. Only for an explicit /squirrel:off invocation.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. plumpslabs/matcha★ 2same name
    2. StakeholderSensei/polygraph★ 1same name
    3. YixuAn-13/we-need-ds★ 1same 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 repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the off-token line is missing entirely, or present but empty after the colon, tell the user in one line that the session off-token …

    line 21
  2. Very specific:

    Create ~/.squirrel/off/ if it does not exist yet.

    line 29
  3. Distinctive:

    Every other session, and every other project, is unaffected.

    line 37
  4. Very specific:

    Write the one-line confirmation in the profile's language field, if a profile exists.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

squirrel-mode off

/squirrel:off suppresses squirrel-mode's base rules for the rest of the current session only. It does not touch any other session, and it does not change the profile.

Why this cannot flip a flag directly (ADR-0005)

A running skill has no way to learn this session's own session id - Claude Code hands that value to hooks on every prompt, never to a skill. So this skill cannot name the one file that would suppress this exact session; it can only leave a note for the hook that runs on the next prompt, and let that hook - which does see the real session id - claim it.

Find the session off-token and working directory first

Your context already contains two lines, injected at the start of this session:

  • Session off-token: <token> - the opaque token this skill embeds in the sentinel filename. Copy that exact string. Do not invent a token, do not shorten it, do not substitute a random suffix of your own: the UserPromptSubmit hook recomputes the same value from the session id it receives on stdin, and a token you invent is one it cannot match.
  • Session working directory: <value> - the exact value written into the sentinel's contents (legacy dual-match / cwd path). Never determine this yourself by running a command, inspecting your own state, or any other means: a value you determine yourself can disagree with the one the claiming hook compares against on the legacy path (a symlinked project path, a trailing slash, a different shell context), and the mismatch is silent.

If the off-token line is missing entirely, or present but empty after the colon, tell the user in one line that the session off-token cannot be determined and stop. Do not write a sentinel in that case.

If the token begins with anon-, tell the user in one line that this session cannot be turned off - for example: "This session cannot be turned off: squirrel-mode was not given a session id for it. A new session restores /squirrel:off." - and stop. Do not write a sentinel in that case either. An anon- token is what squirrel-mode emits when this session's id was missing or unusable, and it is documentation only: the UserPromptSubmit hook that claims sentinels recomputes the token from that same session id, so it can never arrive at an anon- one. A PENDING.anon-... file would sit there unclaimed for the whole session while the user had been told the change was coming - the one outcome worse than saying plainly that it cannot be done.

If the working-directory line is missing entirely, or present but empty after the colon, tell the user in one line that the session's working directory cannot be determined and stop. Do not write a sentinel in that case: a sentinel that can never be claimed on the legacy path, and whose token binding you also cannot confirm, is worse than none at all.

Turning off

  1. Create ~/.squirrel/off/ if it does not exist yet.
  2. Inside it, create one new sentinel file named PENDING. followed immediately by the exact value from the injected Session off-token: line - no extra characters, no second random suffix. The token IS the filename suffix. Never reuse a fixed name unrelated to that token: a fixed name would let a second /squirrel:off run, in a different session, silently overwrite the first one's request before either reaches a hook that can claim it.
  3. Write the exact value from the injected Session working directory: line, and nothing else, as that file's entire contents, verbatim - not a re-typed copy, not a normalized form, the exact string. A single trailing newline in the write is fine; anything else in the file's contents is not.
  4. Confirm in exactly one line that the change starts with the user's next message - for example: "squirrel-mode will turn off starting with your next message." Do not say it is already off: the flag only takes effect once a UserPromptSubmit hook claims the sentinel on the next prompt, and this skill cannot confirm that happened.

What this does and does not do

  • Nothing changes for the message you are answering right now. Starting with your next message in this session, a UserPromptSubmit hook claims the sentinel written above (by matching the token to this session's own id) and begins injecting a counter-instruction on every prompt, overriding squirrel-mode's formatting for the rest of this session. /squirrel:on reverses it, in this same session only.
  • Every other session, and every other project, is unaffected. A token-named sentinel is claimable only by the session whose id equals that token - another session in the same directory cannot steal it.
  • This write is a tool call like any other and appears in the transcript the same way every other tool call does.
  • This is a soft off: the base rules stay loaded, and a per-prompt check keeps overriding them for the rest of this session once the sentinel is claimed. For a hard off that removes the rules from the system prompt entirely, run /plugin disable squirrel@squirrel-mode, then start a new session.

Language

Write the one-line confirmation in the profile's language field, if a profile exists. If there is no profile, or language is auto, mirror the language the user is currently writing in.

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.