plan-critique-skills: Skill for Claude Code

.gemini/skills/plan-archive/SKILL.md

plan-archive is a skill for Claude Code, Gemini CLI from serbanghita/plan-critique-skills. It costs 13 tokens per session (1,004 once invoked), scanned A, original, MIT.

A tool for storing a finished or abandoned development plan in an archive folder for later reference.

In plain words
What is it for?
Use it to archive a selected plan from the configured plans folder after planning work ends.
Why use it?
It keeps old plans out of the active planning area while preserving them for review. It also cleans up session records for processes that are no longer running.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: allowed-tools in frontmatter, but also installed under .gemini/. Also seen: names the AskUserQuestion tool.

This is serbanghita/plan-critique-skills's own configuration. It tells Claude Code and Gemini CLI how to work on plan-critique-skills 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 plan-critique-skills configures →

Part of the plan plugin — 10 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to serbanghita/plan-critique-skills. 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/serbanghita/plan-critique-skills/main/.gemini/skills/plan-archive/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/serbanghita/plan-critique-skills

Made for: Claude Code, Gemini CLI.

Or install plan, the plugin that ships this one along with the rest of its 10 skills.

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 plan-archive

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/serbanghita/plan-critique-skills/plan-archive"><img src="https://agentmods.dev/badge/skills/serbanghita/plan-critique-skills/plan-archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,004 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.00013 $0.01004
Opus 5 $0.00006 $0.00502
Sonnet 5 $0.00003 $0.00201
Haiku 4.5 $0.00001 $0.00100

Measured 4d ago against content hash 74c86e9fcca8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

plan-archive 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • archive — 98% identical, 10 lines differ
.gemini/skills/plan-archive/SKILL.md · 77 lines

What it actually says

You are archiving the user's completed (or abandoned) plan for future reference.

To do this, follow these steps precisely:

  1. Read .gemini/plan-critique-config.json and get plansFolder path from settings. If that file does not exist, read .claude/plan-critique-config.json instead. If neither file exists or plansFolder is not set or is an empty string: Respond with "No plans folder configured. Run /plan-create first to set up."
  2. Get the session process ID by running: echo $PPID. Store this as sessionPID.
  3. Clean up stale sessions: Scan [plansFolder]/.sessions/ for files. For each file named with a PID, check if that process is still running via kill -0 [PID] 2>/dev/null. If the command fails (process not running), delete that session file. This is non-blocking cleanup.
  4. Read the current session's plan from [plansFolder]/.sessions/[sessionPID] if it exists. Store as sessionPlan.
  5. Scan [plansFolder]/ for subdirectories (each subdirectory is a plan). Exclude archived/ and .sessions/ folders and any files, only list plan directories. If no plan folders exist: Respond with "No plans found. Nothing to archive."
  6. Select the plan to archive:
    • If sessionPlan exists and matches a plan folder, auto-select it. Inform the user: "Using current session plan: [sessionPlan]"
    • Else if only one plan exists, auto-select it and inform user.
    • Otherwise, ask the user to select a plan from the list. Example:
      Available plans:
      1. add-user-authentication
      2. refactor-database-layer
      3. implement-caching
      
      Which plan would you like to archive? [1-3]
      
  7. Check prerequisites. If [plansFolder]/[selected-plan]/plan.md does not exist or is empty: Respond with "Nothing to archive. Plan file is missing or empty."
  8. Ensure [plansFolder]/archived/ exists, create it if not.
  9. Extract metadata:
    • Read plan.md to get the plan title (first H1 heading). If no title, use folder name.
    • Read critique.md to get keywords (if available)
    • Read execution-log.md to get execution status (if available)
  10. Generate archive folder name using format: YYYY-MM-DD_HH-MM-SS_[slug]/ Example: 2026-01-12_14-30-00_add-user-authentication/
  11. Create the archive folder at [plansFolder]/archived/[folder-name]/
  12. Copy contents from [plansFolder]/[selected-plan]/ to the archive:
    • Include: plan.md, execution-log.md (if exists), all other files (SQL, images, etc.)
    • Exclude: critique.md, execution-state.json
  13. Create archive-info.md in the archive folder using the format in archive-info-format.md.
  14. Delete the original plan folder [plansFolder]/[selected-plan]/ entirely.
  15. Clean up session references to the archived plan:
    • Delete [plansFolder]/.sessions/[sessionPID] if it contains the archived plan slug.
    • Scan all other session files and delete any that reference the archived plan (handles stale references).
  16. Respond with confirmation:
    Plan archived to: [plansFolder]/archived/[folder-name]/
    
    The original plan folder has been removed.
    Create a new plan with `/plan:create`.
    

Notes:

  • Never include critique.md in the archive (only keywords are preserved in archive-info.md)
  • Always include the full original plan and all supporting files
  • Include execution log only if the plan was executed
  • Use current timestamp for the archive folder name
  • Preserve the original file structure within the archived folder
  • Always delete the original plan folder after archiving
  • It is valid to archive a plan that was never executed (abandoned, reference, or superseded plans). In this case, the execution status will be NOT_EXECUTED.
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 Changed · +2 lines 74c86e9fcca8
  2. 12d ago First seen · 75 lines · 13 tokens per session scan A c90181a2b43b

Subscribe to this mod's changes

plan-archive is a skill published in the GitHub repository serbanghita/plan-critique-skills (13 stars, last pushed 4d ago), licensed MIT. It adds 13 tokens to every session and 1,004 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

review-responder

Use when receiving feedback on code you implemented, responding to reviewer comments, deciding which review suggestions to implement, or pushing back on incorrect review feedback.

Joncik91/ucai · 33 tokens

pr-sweep

Use when you want to sweep all open pull requests across all repos, triage their status, run code reviews on unreviewed PRs, merge what's ready, fix quick blockers, and produce a full status report. Trigger when the user says "check my PRs", "close out open PRs", "what's the status of my PRs", "sweep my PRs", "PR…

harnessprotocol/harness-kit · 0 tokens

rubber-ducky

Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures — and any time the user says "rubber duck this", "rubber ducky", "get a second opinion", "sanity-check my plan", "poke holes in this", "what am…

harnessprotocol/harness-kit · 186 tokens

open-pr

Use when wrapping up a development task and getting a PR ready — runs local tests, creates a PR (if one doesn't exist) with a structured description template, conducts a code review via the review skill, and checks CI status with quick fixes. Trigger when the user says they're done with a feature, want to open a PR…

harnessprotocol/harness-kit · 111 tokens

review

Use when user invokes /review to review code changes. Also triggers on "review my code", "check this PR", "look at my changes". Accepts a PR number (e.g. /review 123), a path filter (e.g. /review src/auth/), or no argument (reviews current branch vs base). Produces structured per-file review with severity labels…

harnessprotocol/harness-kit · 103 tokens

code-reviewer

Use when reviewing pull requests, analyzing code quality, identifying issues, or generating review checklists. Covers TypeScript, JavaScript, Python, Go, Swift, and Kotlin.

Joncik91/ucai · 39 tokens