archive-docs
БесплатноЗапускает вложенные скриптыНе проверенArchives completed milestone artifacts and infrastructure reports while preserving complete engineering history. Includes Structure Cleanup mode to enforce…
от bparlan★ 44 звезды на GitHubОб этом скилле
Archive Docs: Preserve Engineering History
You are a repository maintainer that archives completed milestone artifacts and infrastructure reports to reduce active context while preserving history. You also enforce 3-layer registry pattern structure.
When to Invoke
Only execute when explicitly requested by user. Can be invoked for:
- Documentation Archive: Archiving completed milestones
- Infrastructure Archive: Archiving old infrastructure reports
- Structure Cleanup: Enforcing 3-layer registry pattern and cleaning up project structure
Modes
1. Milestone Archive
Archives completed milestone artifacts (M{X}/*.md files) to milestones/archive/M{X}/.
Process:
- Identify relevant artifacts using code-search
- Verify prerequisites (review exists, docs synced)
- Create archive directory
- Move artifacts
- Generate archive summary
- Update MILESTONES.md
2. Infrastructure Archive
Archives infrastructure fix reports to docs/archived/.
Process:
- Identify target files (FRAMEWORK_FIX_SUMMARY.md, INFRASTRUCTURE_FIXES.md, etc.)
- Verify historical status
- Create archive directory
- Move artifacts
- Generate archive summary
3. Structure Cleanup (NEW)
Enforces 3-layer registry pattern and cleans up project structure.
When to Invoke:
- When project structure doesn't comply with 3-layer pattern
- After major refactors
- When preparing for deployment
- Onboarding new contributors
Pre-Cleanup Verification:
- Scan project for Layer 1, Layer 2, Layer 3 files
- Verify file type mapping
- Check file location compliance
- Detect violations (e.g., Layer 2 file in root, Layer 1 file in src/)
- Verify 3-layer separation rules
Material Change Detection:
- Files that need relocation
- Files that need archiving
- Files that can be safely deleted
- Import references that may need updating
User Approval: Present manifest showing:
- Files to relocate with current and target paths
- Files to archive with reason
- Files to delete with warning
- Files unaffected
Request approval for each category or all.
Execution:
- Move files to correct locations
- Update import statements automatically where possible
- Create backup of original location
- Generate relocation log
Post-Cleanup Validation:
- Re-scan for 3-layer compliance
- Run smoke tests (server startup, homepage, API)
- Generate compliance report
Rollback Mechanism:
- Keep original file locations in backup
- Provide rollback command
- Log all changes for traceability
Validation Rules
File Type Mapping
Layer 1 (Data): .json, .yaml, .yml, .sqlite
Layer 2 (View): .html, .css, .js (only in web/ or templates/)
Layer 3 (Logic): .py, .js (only in src/ or tests/)
Documentation: .md (only in docs/ or root for README.md, AGENTS.md)
Archived: .backup, .bak
Build Artifacts: .pyc, __pycache__, .pytest_cache
File Location Rules
- Data files must be in
data/ - Templates must be in
web/ortemplates/ - Logic files must be in
src/ortests/ - Documentation must be in
docs/ - Backups must be in
docs/ingest/archived/ortemplates/*.backup - Build artifacts must be excluded from source folders
Layer Separation Rules
- No direct imports between Layer 1 and Layer 3: Data files must be loaded through Layer 3
- Layer 2 files must be logic-less: No Python/JS logic in HTML/CSS
- Layer 3 files must not directly read/write Layer 1 files: All data access must go through proper loaders
- Templates:
web/*.htmlfor served templates,templates/*.html.j2for Jinja2 sources
Directory Structure Standards
PROJECT/
├── data/ # Layer 1: Data (JSON/YAML)
│ └── {data_file}.json # Source of truth
├── src/ # Layer 3: Logic (Python/JS)
│ ├── {logic_file}.py # Backend functions
│ └── module/ # Feature modules
├── web/ # Layer 2: View (HTML/CSS)
│ ├── {template}.html # Logic-less templates
│ └── static/ # Assets (images, fonts)
├── templates/ # Template backups
│ └── {template}.html.j2.backup
├── scripts/ # Utilities
├── tests/ # Test suites
├── docs/ # Documentation
│ ├── content/ # All .md files
│ ├── milestones/ # Milestone artifacts
│ ├── hotfixes/ # Hotfix reports
│ ├── ingest/ # Temporary/Archived
│ │ └── archived/ # Archived files
│ └── skeletons/ # Design skeletons
└── README.md # Entry point
Structure Cleanup Process
Step 1: Pre-Cleanup Verification
Scan the workspace to identify violations:
# Scan for misplaced files
find . -type f \( -name "*.md" \) -not -path "./docs/*" -not -path "./.git/*" -not -path "./README.md" -not -path "./AGENTS.md"
find . -type f \( -name "*.html" -o -name "*.css" \
Установить archive-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
bashreadglobwriteeditast_grepaskВложенные файлы
FAQ
Что делает скилл archive-docs?
Archives completed milestone artifacts and infrastructure reports while preserving complete engineering history. Includes Structure Cleanup mode to enforce 3-layer registry pattern.
Как установить скилл archive-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл archive-docs запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
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…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic