Skip to content
clavix-archive logo

Clavix Archive Skill

clavix-archive

Archive completed projects by moving outputs to archive directory. Use when a project is complete and ready for archival.

SKILL.md

Full skill instructions

Clavix Archive Skill

Done with a project? Move it to the archive to keep your workspace tidy. You can always restore it later if needed.

What This Skill Does

  1. Find your completed projects - Look for 100% done PRDs
  2. Ask which to archive - You pick, or archive all completed ones
  3. Move to archive folder - Out of the way but not deleted
  4. Track everything - So you can restore later if needed

Your work is never deleted, just organized.


State Assertion (REQUIRED)

Before ANY action, output:

**CLAVIX MODE: Archival**
Mode: management
Purpose: Organizing completed projects
Implementation: BLOCKED (file operations only)

Self-Correction Protocol

DETECT: If you find yourself doing any of these 6 mistake types:

TypeWhat It Looks Like
1. Deleting Without ConfirmationRemoving files without explicit user confirmation
2. Archiving Incomplete ProjectsMoving projects without warning about unchecked tasks
3. Wrong Directory OperationsOperating on wrong project directory
4. Skipping Safety ChecksNot verifying project exists before operations
5. Silent FailuresNot reporting when operations fail
6. Capability HallucinationClaiming Clavix can do things it cannot

STOP: Immediately halt the incorrect action

CORRECT: Output: "I apologize - I was [describe mistake]. Let me return to the archive workflow."

RESUME: Return to the archive workflow with correct approach.


Archive vs Delete Decision Tree

CRITICAL: Use this decision tree before any destructive action

Is this a failed experiment with no learning value? → DELETE
Is this a duplicate/​test project with no unique info? → DELETE
Might you need to reference this code later? → ARCHIVE
Could this be useful for learning/​reference? → ARCHIVE
Are you unsure? → ARCHIVE (safe default)

Remember: Archive is free, disk space is cheap, regret is expensive.


Phase 1: Completion Detection

Read Task Status

  1. Read tasks.md file from the project
  2. Count completed vs total tasks
  3. Calculate completion percentage
📊 Project Status: {project-name}
- Completed: 8/​10 tasks
- Percentage: 80%

If Incomplete Tasks Exist

⚠️ Project has {N} incomplete tasks:
- [ ] Task 3.2: Add error handling
- [ ] Task 3.3: Write tests

Do you want to:
1. Complete tasks first with `/​clavix-implement`
2. Archive anyway (tasks remain incomplete but archived)
3. Cancel archival

Require explicit confirmation for incomplete projects.


Phase 2: Archive Operations

Tools Used (Agentic-First)

ToolPurpose
ReadRead tasks.md and check completion status
Bash/​mvMove directories
Bash/​rmDelete directories (only with confirmation)
Glob/​ListList projects and archive contents

Operation: Archive Project

  1. Verify project exists in .clavix/​outputs/
  2. Check task completion status
  3. Move directory:
    mv .clavix/​outputs/<project> .clavix/​outputs/​archive/<project>
    
  4. Verify move completed

Operation: Interactive Selection

When multiple projects exist:

📦 Projects available:
1. user-authentication (100% complete) ✅
2. payment-integration (75% complete) ⚠️
3. dashboard-redesign (0% complete) ❌

Which project(s) to archive? [Enter number(s)]

Operation: Delete Project (Destructive)

WARNING: This PERMANENTLY deletes the project. Cannot be restored.

Safety Confirmation Required:

  1. Show project details and task status:

    🗑️ DELETE: {project-name}
    - Tasks: {completed}/​{total}
    - Files: {list files to be deleted}
    - Location: .clavix/​outputs/​{project}/
    
    ⚠️ This action is PERMANENT and cannot be undone.
    
  2. Ask user to type project name to confirm:

    Type the project name "{project-name}" to confirm deletion:
    
  3. Only proceed if exact match

  4. Execute:

    rm -rf .clavix/​outputs/<project>
    

Operation: Restore from Archive

Move project back from archive:

mv .clavix/​outputs/​archive/<project> .clavix/​outputs/<project>

Handle name conflicts:

  • If project already exists in active outputs, ask user:
    1. Archive the active project first, then restore
    2. Keep both (manual rename required)
    3. Cancel restoration

Phase 3: Verification

After every operation:

  1. Confirm success: Verify the operation completed
  2. Show new location: For archives, show destination path
  3. List related files: Note any cleanup needed
✅ Archive Complete

Project: user-authentication
From: .clavix/​outputs/​user-authentication/
To: .clavix/​outputs/​archive/​user-authentication/

Files archived:
- full-prd.md
- quick-prd.md
- tasks.md
- .clavix-implement-config.json

Prompts Are Separate

Optimized prompts from /​clavix-improve are stored in .clavix/​outputs/​prompts/.

Prompts have independent lifecycle from PRD projects.

Prompt Cleanup Options

📝 Found {N} saved prompts:
- std-20240110-143022-a3f2.md (executed)
- std-20240111-091534-b7c1.md (executed)
- comp-20240112-154623-d4e5.md (not executed)

Options:
1. Delete executed prompts only
2. Delete prompts older than 30 days
3. Keep all prompts
4. Delete specific prompts

Offer prompt cleanup separately from project archival.


Post-Archive Next Steps

After archiving, ask:

What would you like to do next?

1. Start a new project with `/​clavix-prd`
2. Archive another completed project
3. Review archived projects
4. Return to something else

Archive Size Management

Proactive maintenance to prevent archive bloat:

When to Clean Up

  • Archive exceeds 50 projects or 100MB
  • Projects older than 12 months that haven't been referenced
  • Duplicate or superseded projects
  • Failed experiments with no learning value

Size Check

# Count archived projects
ls .clavix/​outputs/​archive/ | wc -l

# Check total archive size
du -sh .clavix/​outputs/​archive/

Retention Recommendations

Project TypeKeep ForThen
Completed featuresIndefinitelyArchive forever (reference value)
Failed experiments30 daysDelete if no learning value
Superseded versions90 daysDelete if newer version exists
Test/​demo projects7 daysDelete unless documenting patterns

Mode Boundaries

What I'll do:

  • ✓ Find projects ready for archive
  • ✓ Show you what's complete (100% tasks done)
  • ✓ Move projects to archive when you confirm
  • ✓ Track everything so you can restore later
  • ✓ Warn about incomplete tasks
  • ✓ Offer cleanup for executed prompts

What I won't do:

  • ✗ Delete anything without explicit confirmation
  • ✗ Archive projects you're still working on (without warning)
  • ✗ Make decisions for you - you pick what to archive
  • ✗ Remove files outside .clavix/ directory

Troubleshooting

Issue: No projects available to archive

Solution: Check .clavix/​outputs/​archive/ for archived projects, or create new with /​clavix-prd

Issue: Name conflict during restore

Solution: Archive the active project first, or rename one manually

Issue: Accidentally deleted project

Solution: Check git history or IDE local history. Prevention: Use ARCHIVE by default.

Issue: Archive directory too large

Solution: Review contents, delete obsolete projects, consider external backup.


Workflow Navigation

You are here: Archive (Project Cleanup)

Related commands:

  • /​clavix-implement - Complete tasks before archiving
  • /​clavix-plan - Review task completion status
  • /​clavix-prd - Start new project after archiving

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View