clean-artifacts

Audit files under docs/forsvn/artifacts/ and classify each as KEEP, STALE, ORPHAN, LEGACY, or EPHEMERAL.

14|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/hungv47/meta-skills --skill clean-artifacts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-artifacts
Source: https://github.com/hungv47/meta-skills/tree/main/skills/meta/clean-artifacts
Command: npx skills add https://github.com/hungv47/meta-skills --skill clean-artifacts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Audit + groom docs/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).

Core Features & Use Cases

  • Classifies every artifact under docs/forsvn/artifacts/ into one of KEEP, STALE, ORPHAN, LEGACY, or EPHEMERAL, according to manifest state and frontmatter.
  • Surfaces cross-file references and risk signals to operators to inform decisions.
  • Archives STALE/ORPHAN/LEGACY/EPHEMERAL candidates behind per-category prompts when invoked with --apply, moving files to a dated archive while preserving history.
  • Enforces HARD-NEVER paths to prevent deletion of critical data.

Quick Start

Run clean-artifacts on docs/forsvn/artifacts/ and review the generated dry-run report.

Frequently Asked Questions about clean-artifacts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit and classify artifacts in my docs directory?

Auditing artifacts involves scanning docs/forsvn/artifacts/ to classify each file as KEEP, STALE, ORPHAN, LEGACY, or EPHEMERAL based on manifest state and frontmatter. The process surfaces cross-file references and risk signals, generating a dry-run report for operator review.

What is the best way to archive stale or orphaned artifacts safely?

Archiving stale or orphaned artifacts safely requires moving files to a dated archive directory while preserving history. Using an --apply flag triggers per-category confirmation prompts, ensuring operators explicitly approve each archival action before files are moved.

Can artifact cleanup tools permanently delete files from my repository?

Artifact cleanup operations never permanently delete files. Deletions are explicitly out of scope, and the dated archive serves as a safety net. The system enforces HARD-NEVER paths to prevent deletion of critical data during the classification and archival process.

When should I use an artifact auditor instead of a code cleaner?

Use an artifact auditor when targeting files under docs/forsvn/artifacts/ for classification and archival. Use code cleaners for source code grooming or machine state cleaners for system state, as artifact auditing specifically handles documentation references and manifest states.

How does artifact classification determine if a file is stale or legacy?

Artifact classification determines if a file is stale, orphaned, legacy, or ephemeral by evaluating its manifest state and frontmatter metadata. The auditor cross-references these attributes to surface risk signals and identify archive candidates for operator review.