agentleFS
IncredibleFyrkatIncredibleFyrkat/claude-buttons/skills/unpin/SKILL.md

unpin

Skill1 starsChanged 5 months agoMITView on GitHub

Remove a button from the Claude Buttons panel

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. rzaaeeff/agent-ledger★ 4same 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 repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Very specific:

    Read buttons.json to FIND the match: the button whose text or label matches the argument (be flexible — match with or without a leading /, …

    line 10
  2. Very specific:

    Write those fields to a temp .json file (UTF-8) and pass the PATH, since the text may contain quotes or newlines:

    line 18
  3. Distinctive:

    Delete the temp file afterwards — it contains the user's prompt text.

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

The user wants to remove a button from the Claude Buttons panel: $ARGUMENTS

Do the following:

  1. Locate buttons.json via the install marker %USERPROFILE%\.claude\claude-buttons-path.txt (its content is the full path). Also read %USERPROFILE%\.claude\active-session.json (its session_id is this chat).
  2. Read buttons.json to FIND the match: the button whose text or label matches the argument (be flexible — match with or without a leading /, case-insensitive). Prefer buttons pinned to this chat (chat == session_id), then global ones. Reading is fine; writing is not.

    Same fail-closed rule as /pin. If active-session.json is missing or unreadable, or its ts is more than 2 minutes old, you cannot tell which buttons belong to this chat. Do not fall back to removing a global button (that one is shared by every conversation, so removing it on a guess is the widest possible action), and do not treat a button as this chat's on an untrusted session_id. Instead, list the candidate matches with their scope — per-chat buttons carry chat/chatTitle, global buttons carry neither — and ask the user which one to remove, or ask them to send a message in this chat first so the session file refreshes. Remove nothing until they choose.

  3. Do NOT write buttons.json yourself. The panel writes it too, under a mutex, so a hand-written read-modify-write silently destroys whatever the panel saved in between. Run the panel's own locked entry point with the matched button's label, text and chat (omit chat for a global button — the three fields together identify it):

    Write those fields to a temp .json file (UTF-8) and pass the PATH, since the text may contain quotes or newlines:

    powershell -NoProfile -ExecutionPolicy Bypass -File "<install-dir>\claude-buttons.ps1" -RemoveButton "<path-to-temp.json>"

    Delete the temp file afterwards — it contains the user's prompt text.

    Interpret the result strictly. Never claim success on anything not listed as success:

    ExitOutputMeaning
    0REMOVED: 1Done. The panel reloads automatically.
    0NOTFOUND: ...Nothing matched, nothing changed. Show the visible buttons instead.
    3AMBIGUOUS: ...Several buttons match exactly. Nothing was removed. Show them and ask which one.
    1stderrThe file was locked or unreadable. Nothing was removed. Tell the user.
    2stderrBad payload. Nothing was removed.
    anything else, or no output—Treat as failure. Do NOT tell the user the button was removed.
  4. Confirm briefly. If nothing matches, show the buttons visible in this chat (global + this chat's) instead.

Tip to mention to the user: you can also just right-click a button in the panel and choose "Remove this button".

If there are no arguments: show the list and ask which button to remove (AskUserQuestion, multiSelect), then remove the chosen ones.

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.