remove-project

remove-project is a command for Claude Code from TheDecipherist/claude-code-mastery-project-starter-kit. It costs 8 tokens per session (727 once invoked), scanned C, original, MIT.

A command for removing a project from a starter kit's project registry, with an option to delete the project's files from disk.

In plain words
What is it for?
Use it to find a registered project, inspect its details, then either stop tracking it or delete it and its files.
Why use it?
It removes old projects from the starter kit's tracking list and can clean up their files when needed.

Command for Claude Code

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 commands/thedecipherist/claude-code-mastery-project-starter-kit/remove-project
Clone the repo
git clone --depth 1 https://github.com/TheDecipherist/claude-code-mastery-project-starter-kit

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 remove-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/thedecipherist/claude-code-mastery-project-starter-kit/remove-project.svg)](https://agentmods.dev/commands/thedecipherist/claude-code-mastery-project-starter-kit/remove-project)
Your own site
<a href="https://agentmods.dev/commands/thedecipherist/claude-code-mastery-project-starter-kit/remove-project"><img src="https://agentmods.dev/badge/commands/thedecipherist/claude-code-mastery-project-starter-kit/remove-project.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 727 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00008 $0.00727
Opus 5 $0.00004 $0.00364
Sonnet 5 $0.00002 $0.00145
Haiku 4.5 $0.00001 $0.00073

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

Security

Grade C, and why

remove-project scanned grade C with 1 finding 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 3d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Delete the directory: `rm -rf <path>`
.claude/commands/remove-project.md · 96 lines

How it starts

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

Remove Project — Unregister and Optionally Delete

Remove a project from the starter kit registry and optionally delete its files from disk.

Arguments: $ARGUMENTS

Steps

1. Read the registry

Read ~/.claude/starter-kit-projects.json. If the file does not exist, tell the user:

No projects have been created yet. Nothing to remove.

And stop.

2. Find the project

Search the registry for a project matching $ARGUMENTS (by name).

If no argument provided:

  • List all projects by name
  • Ask via AskUserQuestion: "Which project do you want to remove?"
  • Options: list all project names from the registry

If the project name is not found:

  • Tell the user: "Project <name> not found in the registry."
  • Show the list of registered projects
  • Stop

3. Show project details

Display the project details:

Project: my-app
Path:    ~/projects/my-app
Profile: default
Language: node
Framework: next
Created: 2025-01-15
Status:  exists on disk / directory not found

4. Ask what to do

Ask via AskUserQuestion: "What do you want to do with this project?"

  • Remove from registry only — Keep the files, just remove the tracking entry
  • Delete everything — Delete the project directory AND remove from registry

5a. If "Remove from registry only"

  • Read ~/.claude/starter-kit-projects.json
  • Remove the matching project entry from the projects array
  • Write the updated registry back
  • Confirm: "Removed <name> from the project registry. Files at <path> are untouched."

5b. If "Delete everything"

Safety check — ask for explicit confirmation:

Ask via AskUserQuestion: "Are you sure you want to permanently delete <path> and all its contents? This cannot be undone."

  • Yes, delete it — Proceed with deletion
  • No, cancel — Stop without deleting

If confirmed:

  1. Check if the project directory exists on disk
  2. If it exists:
    • Check for uncommitted git changes: cd <path> && git status --porcelain 2>/dev/null
    • If there are uncommitted changes, WARN the user and ask again: "This project has uncommitted changes. Are you SURE you want to delete?"
    • Delete the directory: rm -rf <path>
  3. Remove the entry from ~/.claude/starter-kit-projects.json
  4. Confirm: "Deleted <path> and removed <name> from the registry."

Read the full file on GitHub · 96 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. 3d ago First seen · 96 lines · 8 tokens per session scan C 64889af423e1

Subscribe to this mod's changes

remove-project is a command published in the GitHub repository TheDecipherist/claude-code-mastery-project-starter-kit (337 stars, last pushed 2mo ago), licensed MIT. It adds 8 tokens to every session and 727 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.