prune-projects

prune-projects is a skill for Claude Code, Codex from the-sid-dani/second-brain-os. It costs 208 tokens per session (1,747 once invoked), scanned A, original, MIT.

A weekly review workflow that finds projects that have not been updated recently and asks which ones to archive.

In plain words
What is it for?
Use it to review stale active, paused, or accidentally unfinished projects, then archive the approved ones.
Why use it?
It helps identify neglected projects while leaving the final decision to the user, reducing the risk of archiving active work automatically.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/the-sid-dani/second-brain-os/prune-projects
Any agent
npx skills add the-sid-dani/second-brain-os --skill prune-projects
Clone the repo
git clone --depth 1 https://github.com/the-sid-dani/second-brain-os

Made for: Claude Code, Codex.

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 prune-projects

README.md
[![agentmods](https://agentmods.dev/badge/skills/the-sid-dani/second-brain-os/prune-projects.svg)](https://agentmods.dev/skills/the-sid-dani/second-brain-os/prune-projects)
Your own site
<a href="https://agentmods.dev/skills/the-sid-dani/second-brain-os/prune-projects"><img src="https://agentmods.dev/badge/skills/the-sid-dani/second-brain-os/prune-projects.svg" alt="Measured on agentmods" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00208 $0.01747
Opus 5 $0.00104 $0.00873
Sonnet 5 $0.00042 $0.00349
Haiku 4.5 $0.00021 $0.00175

Measured 4d ago against content hash af968adf91c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prune-projects 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 4d 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/prune-projects/SKILL.md · 164 lines

How it starts

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

prune-projects

Friday-cadence cleanup of <workspace.root>/<workspace.projects>/. <assistant.name> proposes archive candidates, the user approves in one multiselect, the chain handles the rest.

Before you begin: read the Configuration section in root CLAUDE.md. Path tokens like <scripts.project_query> and <workspace.projects> resolve to whatever's defined there — don't hardcode.

Why this exists

Active projects rot if nobody triggers cleanup. A pure auto-move on a 90-day timer eats live work — projects in long planning phases look dead. So the design is: <assistant.name> does the detection (fast, deterministic, scriptable), the user does the judgment (a 30-second multiselect) once a week. No drift, no surprise mass-archives.

The two prerequisites are already shipped:

  • <scripts.project_query> — outputs the project table with days and a STALE flag.
  • /archive-project — handles the per-project archive (status flip + folder move).

This skill is just the orchestration: query → filter → ask → chain.

When to use

Trigger phrases (intentionally broad):

  • "what's stale?"
  • "any stale projects?"
  • "Friday review" / "Friday cleanup"
  • "what should I archive?" / "prune projects"
  • "review my projects" / "what can I clean up?"
  • "anything I should close out?" / "what's gone cold?"

Do NOT trigger for:

  • Archiving a specific known project — use /archive-project directly.
  • Asking about one project's status — just read its CLAUDE.md.
  • Code repos under <workspace.coding>/ — different lifecycle, separate skill (TBD).

Process

Step 1: Run the query

bash <scripts.project_query> --tsv

The TSV output has these columns (tab-separated, no header):

slug   status   type   created   touched   days   flag

Parse it. If the script errors (missing dir, etc.), abort and tell the user.

Step 2: Filter stale candidates

A project is a candidate if any of these are true:

  • status == "active" AND type != "ongoing" AND days >= 90
  • status == "paused" AND days >= 60
  • status == "done" (any age — these slipped through /archive-project somehow and should be archived now)

Read the full file on GitHub · 164 lines

Files

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.

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. 4d ago First seen · 164 lines · 208 tokens per session scan A af968adf91c8

Subscribe to this mod's changes

prune-projects is a skill published in the GitHub repository the-sid-dani/second-brain-os (2 stars, last pushed 28d ago), licensed MIT. It adds 208 tokens to every session and 1,747 once invoked, about $0.0010 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.

Related

Other skills, from other repositories

issue-match

Measure a TARGET repository's queue + find a LIVE door (an open issue matching our artifact) BEFORE pushing a PR there. Trigger on "/issue-match", "is this repo worth a PR", "measure the queue", "find a live issue". Answers "knock here or skip": how many open PRs, how many of the last N closed ones were actually…

tonydzi/second-brain-starter-kit · 100 tokens

agenda

The operator's day at a glance, on demand — today's calendar plus what needs THEM personally (leads due, real humans awaiting a reply, deadlines) pulled from Calendar + Telegram, ranked. Trigger on "/agenda", "what's on today", "my agenda". READ-ONLY summary — it never sends or commits anything. Pairs with a…

tonydzi/second-brain-starter-kit · 83 tokens

pm

When you want to manage projects across your businesses using a kanban + Eisenhower methodology. One kanban per business (whatever portfolio of businesses, projects, or initiatives you run). Tool-agnostic — connects via API/MCP to whatever PM tool each business uses (Notion, GitHub Projects, Plane, Linear, Obsidian…

coreyhaines31/makerskills · 206 tokens

harness-design

Design and build multi-agent harness architectures for long-running AI application development. GAN-inspired Generator-Evaluator pattern, Sprint Contract negotiation, context management, quality criteria calibration. Based on Anthropic Engineering patterns. Use when: "build a harness", "multi-agent architecture"…

AnastasiyaW/codex-claude-code-config · 171 tokens

backlog-capture

Quickly capture product ideas, feature requests, or insights from meetings and conversations. Rapid documentation with smart categorization and deduplication.

mvschwarz/openrig · 32 tokens

yao-board

Kanban board and task query expert. ALWAYS invoke this skill when the user asks about boards, tasks, task status, or project progress. Do not guess task state — use this skill first.

YaoApp/yao · 43 tokens