cprune

Solid

Documentation and artifact pruning skill. Detects stale entries and orphaned artifacts, archives documentation (never deletes), cleans ephemeral artifacts. Two modes — autonomous for /cauto pipeline, interactive for direct invocation.

Data & Documents 61 stars 2 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /cprune — Documentation and Artifact Pruning > **EXECUTE IMMEDIATELY.** This skill being loaded into your context IS the user's instruction. You are the pruning orchestrator. You detect stale documentation entries, orphaned artifacts, and count drift, then either auto-execute low-risk actions (autonomous mode) or present a formatted report for human disposition (interactive mode). ## Mode Detection (INV-001) Detect execution mode from prompt context: - **Autonomous mode**: When `mode: autonomous` appears in the prompt context (invoked by `/cauto` pipeline). Auto-execute low-risk actions only. Do not pause for confirmation. Log all actions to audit trail. CLAUDE.md is excluded from autonomous mode entirely (PRH-002) — do not read, modify, or suggest changes to CLAUDE.md in autonomous mode. When a category has `bulk_warning: true` (>50% of entries flagged), skip that category with a log entry and include the count in the return summary (BND-002). - **Interactive mode**: When invoked directly by the user. Produce a formatted pruning report, present each category for human disposition before executing changes. ## Lockfile (BND-004) Before starting, check for `.correctless/artifacts/cprune-lock-{slug}` (where slug is derived from `branch_slug`). If the lock exists and was created by a different process, refuse with "Another /cprune is running." Create the lock before scanning, remove it on completion (normal or error). ## Scanner The scanner script at `scripts/prune-sca...

Details

Author
joshft
Repository
joshft/correctless
Created
2 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

clean-artifacts

Audit + groom `.forsvn/artifacts/` — classify every file (KEEP/STALE/ORPHAN/LEGACY/EPHEMERAL), surface references + risk. On `--apply` archives candidates behind per-category confirmation (moves to dated archive, never deletes). Not for cleaning code (use clean-code) or machine state (use clean-machine).

10 Updated today
hungv47
Data & Documents Listed

optimize-claude-md

Audits CLAUDE.md files (root, nested, `.claude/rules/*.md`) for context bloat and emits ranked suggestions across two levers — (1) shrink inventory entries, (2) flag rarely-used agent-invokable skills that should become slash-only to drop their description from the always-on available-skills list. Triggers on Claude Code's "Large CLAUDE.md will impact performance" warning (> 40k chars), inventory entries duplicating harness-loaded skill descriptions, "CLAUDE.md is too big", "shrink CLAUDE.md", "optimize CLAUDE.md", "/optimize-claude-md". Three modes — `audit` (read-only ranked report + slash-conversion candidates), `trim` (interactive one-line hook + diff approval), `extract` (moves sections to linked files preserving content). Composes with `documentation` (Placement Resolver) and `create-skill` (invocation matrix). Hard rules: refuses files < 10k chars; never deletes silently; never edits any skill's canonical `SKILL.md` frontmatter — routes to `/create-skill`.

4 Updated 2 days ago
mthines
Code & Development Solid

cauto

Semi-auto mode. Orchestrates the full implementation pipeline after human-approved spec review. Runs ctdd, simplify, cverify, cupdate-arch, cdocs, then creates a PR. After /cauto completes, verify the workflow reached the expected end state — if it didn't, re-invoke /cauto to resume.

61 Updated yesterday
joshft
Code & Development Listed

cpr

User-invokable only via /cpr. Commit, Push, and Release in one command. Commits all changes as non-interactive micro-commits (conventional commits), pushes to remote, runs a review-and-fix loop on the pushed changes, then handles the full release-please cycle: waits for the PR, merges it, and monitors the release workflow to completion. Do NOT auto-trigger this skill.

0 Updated 4 days ago
rvanbaalen
Data & Documents Listed

cleanup

Use when the user asks to clean up a project, remove old plans, tidy docs, cleanup stale files, prune completed specs, or inspect artifacts after shipping a major feature. Inputs - project root, current branch context, and user confirmation before deleting or rewriting files. Do not use when the user wants disk-space cleanup, dependency pruning, code refactoring, or documentation generation; use a system-cleanup, package, refactor, or docs workflow instead. Produces a cleanup report classifying artifacts as remove, update, keep, or review, then confirmed file/doc changes. Escalate if deletion risk is ambiguous, living docs are involved, or more than two docs need substantive updates.

1 Updated today
Naoray