discord-manager: Skill for Claude Code

.claude/skills/worktrees/SKILL.md

worktrees is a skill for Claude Code from seasonedcc/discord-manager. It costs 65 tokens per session (1,147 once invoked), scanned A, original, MIT.

A guide for running work in separate git worktrees. A worktree is an additional checkout of a repository, allowing tasks to use separate branches, environment files, and SQLite databases.

In plain words
What is it for?
Use it when creating or removing worktrees, running parallel tasks, or starting tests and MCP servers in isolated environments.
Why use it?
It keeps parallel development and testing from sharing files, data, or processes with the main checkout.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is seasonedcc/discord-manager's own configuration. It tells Claude Code how to work on discord-manager itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything discord-manager configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../discord-manager-worktrees/<lane> -b <branch> origin/main.

Reuse

Borrowing it

Nothing to install: this file belongs to seasonedcc/discord-manager. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/seasonedcc/discord-manager/main/.claude/skills/worktrees/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/seasonedcc/discord-manager

Made for: Claude Code.

Wrote 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.

agentmods badge for worktrees

README.md
[![agentmods](https://agentmods.dev/badge/skills/seasonedcc/discord-manager/worktrees/github.svg)](https://agentmods.dev/skills/seasonedcc/discord-manager/worktrees)
Your own site
<a href="https://agentmods.dev/skills/seasonedcc/discord-manager/worktrees"><img src="https://agentmods.dev/badge/skills/seasonedcc/discord-manager/worktrees/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.

agentmods 80×15 button for worktrees

Your own site · 80×15
<a href="https://agentmods.dev/skills/seasonedcc/discord-manager/worktrees"><img src="https://agentmods.dev/badge/skills/seasonedcc/discord-manager/worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01147
Opus 5 $0.00032 $0.00574
Sonnet 5 $0.00013 $0.00229
Haiku 4.5 $0.00006 $0.00115

Measured 8d ago against content hash 7e919a929e8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

worktrees 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 8d 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.

.claude/skills/worktrees/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Worktrees

Everything here documents the repository as it is on main. If main disagrees with this file, main wins: follow it and flag the drift.

Each worktree is an isolated copy of Discord Manager: its own git checkout, its own gitignored .env when it needs one, and its own SQLite store. Parallel lanes never share state, so gates, seeded demo stores, and MCP sessions run concurrently across worktrees. The main checkout may be a live installation — a running daemon, a real bot token, a store with real data — so its files, its store, and its processes are never touched from a worktree.

Lifecycle

Create from the main checkout:

git worktree add ../discord-manager-worktrees/<lane> -b <branch> origin/main
cd ../discord-manager-worktrees/<lane>
pnpm install

A fresh worktree has no node_modules and no .env. The four gates (pnpm run lint, pnpm run tsc, pnpm run test:unit, pnpm run test:e2e) need no .env — both test harnesses provision their own throwaway stores. Running the product from a worktree (pnpm run mcp, a seeded demo store for a real-client session) needs a worktree-local .env whose DATABASE_PATH points inside the worktree — never the main checkout's store, and never a store another lane owns. .mcp.json spawns pnpm run mcp from the project directory it lives in, so a real MCP client session opened from a worktree talks to that worktree's store, which is exactly what the Definition of Done's live proof wants.

Remove a worktree from the main checkout once its branch has merged:

git worktree remove ../discord-manager-worktrees/<lane>

Run removal from the main checkout, never from inside the worktree being removed — removal deletes the shell's working directory, so every later command in the same chain fails (git exits 128 on a vanished cwd). Never chain removal behind a prerequisite with ; — it runs even when the prerequisite failed; confirm the merge actually landed, then remove as its own command.

Read the full file on GitHub · 44 lines

Changes

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.

  1. 8d ago First seen · 44 lines · 65 tokens per session scan A 7e919a929e8f

Subscribe to this mod's changes

worktrees is a skill published in the GitHub repository seasonedcc/discord-manager (3 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 1,147 once invoked, about $0.0003 per session on Opus 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.