Skip to content
design-prune logo

Design Documentation Pruning

design-prune

Remove historical cruft from design docs. Use when docs accumulate outdated content, after major refactorings, or when preparing for releases.

SKILL.md

Full skill instructions

Design Documentation Pruning

Removes historical cruft from design documentation by detecting and removing outdated content, update histories, and deprecated sections while preserving essential historical context.

Overview

This skill cleans up design documentation by identifying historical content patterns, calculating staleness scores, generating pruning plans, and applying safe removal strategies to keep docs focused on current state while preserving important context.

Quick Start

Basic pruning:

/​design-prune effect-type-registry

Aggressive pruning:

/​design-prune effect-type-registry --aggressive

Dry-run (preview only):

/​design-prune effect-type-registry --dry-run

Parameters

Required

  • module: Module name to prune (or "all" for all modules)

Optional

  • doc: Specific document to prune (default: all docs in module)
  • aggressive: Remove all historical content (default: false, conservative mode)
  • dry-run: Preview changes without applying (default: false)

Workflow

High-level pruning process:

  1. Parse parameters to determine module, document, and pruning mode
  2. Load design.config.json to get module paths and pruning configuration
  3. Read design document and parse structure, sections, and content types
  4. Detect historical content using pattern matching for historical markers
  5. Calculate staleness score based on age, markers, redundancy, and cross-references
  6. Generate pruning plan with specific actions (remove, condense, archive, preserve)
  7. Apply pruning according to mode (conservative/​aggressive/​dry-run)
  8. Update frontmatter with last-pruned date and reduction percentage
  9. Validate result to ensure document still valid after pruning
  10. Generate pruning report with summary and actions taken

For detailed implementation steps, see supporting documentation below.

Supporting Documentation

When you need detailed information, load the appropriate supporting file:

For Detailed Workflow

See instructions.md for:

  • Complete step-by-step pruning workflow
  • Historical content detection algorithms
  • Staleness scoring formulas and categories
  • Pruning plan generation
  • Pruning execution (conservative, aggressive, dry-run)
  • Frontmatter updates
  • Validation procedures
  • Report generation
  • Edge case handling (cross-references, partial historical, conflicting dates)

Load when: Performing pruning or need implementation details

For Pruning Strategies

See pruning-strategies.md for:

  • Remove entirely strategy (when and how)
  • Condense to summary strategy
  • Archive strategy
  • Preserve with marker strategy
  • Strategy selection criteria
  • Safety checks and rollback

Load when: Need strategy details or deciding which approach to use

For Content Patterns

See content-patterns.md for:

  • Historical content markers (keywords, dates, strikethrough)
  • Update history patterns
  • Deprecated section patterns
  • Redundant content patterns
  • Pattern matching algorithms
  • False positive handling

Load when: Detecting historical content or understanding pattern matching

For Usage Examples

See examples.md for:

  • Basic conservative pruning
  • Aggressive pruning
  • Dry-run preview
  • Pruning specific document
  • Example pruning reports (before/​after)
  • Error scenarios (over-pruning, broken references)

Load when: User needs examples or clarification

Error Handling

No Historical Content Found

INFO: No historical content detected

Document: {doc}
All content appears current.

No pruning needed.

Over-Pruning Warning

WARNING: Pruning would remove >50% of content

Document: {doc}
Removal: {percentage}%

Suggestion: Review document - consider if it should be archived entirely
or switch to conservative mode.

Broken References After Pruning

ERROR: Pruning would break cross-references

Section: {section}
Referenced by: {other-docs}

Action: Preserved section to maintain references.
Update referencing docs before pruning.

Integration

Works well with:

  • /​design-sync - Sync docs before pruning to ensure currency
  • /​design-review - Identify documents needing pruning
  • /​design-validate - Validate after pruning
  • /​design-archive - Archive documents that are mostly historical

Success Criteria

A successful pruning:

  • ✅ Historical content identified accurately
  • ✅ Staleness scores calculated
  • ✅ Appropriate pruning strategy applied
  • ✅ Cross-references preserved
  • ✅ Document still validates
  • ✅ Frontmatter updated with pruning metadata
  • ✅ Clear pruning report generated
  • ✅ Content reduction documented

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View