Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LandonSchropp/agent-toolkit --skill close-workspacegit clone --depth 1 https://github.com/LandonSchropp/agent-toolkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/landonschropp/agent-toolkit/close-workspace)<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/close-workspace"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/close-workspace/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/close-workspace"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/close-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.01228 |
| Opus 5.5 | $0.00014 | $0.00491 |
| Sonnet 5.5 | $0.00007 | $0.00246 |
| Haiku 4.5 | $0.00003 | $0.00123 |
Grade A, and why
close-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Close Workspace
This skill destroys a checkout, so every step must succeed first. If anything in it would go with it — uncommitted changes, or commits that are neither merged nor pushed — stop and leave the workspace intact.
It does not integrate the branch. Merging into the default branch, or opening a pull request, is a separate task that happens before this one. The ls-agent:instructions skill's Local Engineering reference covers which of the two a repository gets.
Never close a workspace while it's babysitting pull requests. It closes only after its pull requests merge.
herdr worktree remove refuses only a dirty working tree. It does not check for unpushed commits or unmerged branches, so both of those checks belong to this skill.
This skill closes the workspace you are in, and nothing else. Closing a main checkout does not close its worktrees' tabs, so they can close in any order.
Process
Herdr injects $HERDR_WORKSPACE_ID into every managed pane. If it is empty you are not inside a herdr workspace, so stop without closing anything.
-
Identify the workspace. Run
herdr workspace get "$HERDR_WORKSPACE_ID"and readresult.workspace.worktree. When it is absent, oris_linked_worktreeisfalse, this is a plain workspace on the main checkout. Its checkout is the current directory, and it skips step 3. When it is present withis_linked_worktreeset totrue, this is a herdr-managed worktree. Take the checkout fromworktree.checkout_path. -
Confirm no pull request is open. Read the branch with
git -C <checkout_path> rev-parse --abbrev-ref HEAD. Herdr injects no variable for it. Then rungh pr list --head <branch> --state open --json url, unless the repository has no GitHub remote. If it lists a pull request, leave the workspace open. Invoke thels-git:babysitskill on it instead. -
Confirm nothing is left behind. Check the working tree and the branch, and stop unless the tree is clean and the branch is merged into the default branch or pushed to
origin/<branch>. Once the worktree is removed, whatever lived only here is gone.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed 11348a3fab6c
- 19d ago Changed 9c9731f9b646
- 24d ago Changed · +8 lines ec306e3c5a68
- 28d ago Changed · +1 lines 5a602bdd9bb9
- 2mo ago Changed · -1 lines 41e12466a2c7
- 2mo ago Changed b8bf2aaf5862
- 2mo ago Changed · +16 lines · -6 tokens per session 3684e7928354
- 3mo ago First seen · 42 lines · 41 tokens per session scan A 0c8355301624
close-workspace is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,228 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
close-workspace compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| close-workspaceLandonSchropp/agent-toolkit | Skill | 3 | today | MIT | A | 35 | Claude Code |
| artifactscloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 66 | Claude Code |
| skill-upstream-prluongnv89/asm | Skill | 976 | yesterday | MIT | A | 56 | Claude Code |
| skill-changelogluongnv89/asm | Skill | 976 | yesterday | MIT | A | 53 | Claude Code |
| meanest-editorelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 33 | Claude Code |
| headline-generatorelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 88 | Claude Code |
| ai-visibility-writingelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 137 | Claude Code |