К основному содержанию
команда

archive — команда для Claude Code: архивация оркестраций

Слэш-команда сохраняет завершённые оркестрации вместе с метриками и выводами, чтобы к ним можно было вернуться позже.

Установить в Claude Code · Через claude-code-templates Все способы и платформы ↓
npx claude-code-templates@latest --command orchestration/archive
Открыть на GitHub

Что делает archive

Команда /orchestration/archive разбирается с уже законченными оркестрациями: находит полностью закрытые, выгружает из них данные и раскладывает по папкам. Без аргументов она сама определяет, что готово к архиву. С --date 03_15_2024 --project auth_system берёт конкретный проект, с --analyze сначала прогоняет анализ.

Что попадает в архив: файлы задач и метаданные, история переходов статусов, привязка коммитов к задачам, расчёты скорости и качества. Рядом ложатся ARCHIVE-SUMMARY.md, LESSONS-LEARNED.md и METRICS-REPORT.json. Структура разбита по годам и кварталам, внутри — original-files/, analytics/ и git-correlation/.

Глубину выбираете флагами: --quick без разбора, --deep-analysis с поиском закономерностей и сравнением с похожими проектами, --include tasks,metrics --exclude original-files для ручного отбора. Форматы — standard, light и research. Команда рассчитана на оркестрации в Claude; если в проекте нет ни файлов задач, ни истории статусов, архивировать будет нечего, поэтому сначала стоит проверить, что трекеры вообще велись.

Какие задачи решает

  • сохранить метрики завершённой оркестрации перед тем, как чистить рабочие файлы
  • вытащить выводы из проекта и превратить их в список улучшений процесса
  • сравнить скорость и качество текущей оркестрации с прошлыми
  • связать коммиты в git с конкретными задачами оркестрации
  • собрать лёгкий архив только с ключевыми метриками

Примеры запросов агенту

  • /orchestration/archive
  • /orchestration/archive --date 03_15_2024 --project auth_system
  • /orchestration/archive --analyze

Как установить archive

1Через claude-code-templates

npx claude-code-templates@latest --command orchestration/archive

2Вручную: положить файлы

.claude/commands/archive.md

Вызов — /archive. Для всех проектов — ~/.claude/commands/

Из того же набора205

Весь набор →
setup-rate-limiting Слэш-команда разбирает проект и собирает систему ограничения запросов к API: алгоритмы, квоты по пользователям, хранение счётчиков. 247установок nextjs-migration-helper Слэш-команда для Claude, которая помогает переносить проект Next.js с Pages Router на App Router, с JavaScript на TypeScript и с классовых компонентов на хуки. 237установок team-knowledge-mapper Слэш-команда собирает матрицу навыков команды, находит пробелы в знаниях и подсказывает, кого чему учить. Пригодится тимлиду перед планированием. 235установок publisher-all Одна команда прогоняет четыре публикационных сценария подряд: тред для X, пост в LinkedIn, статью для Medium и RSS для Dev.to. 229установок game-performance-profiler Разбирает узкие места игрового проекта по кадрам, памяти и рендерингу и выдаёт список оптимизаций с приоритетами. 227установок setup-cdn-optimization Слэш-команда разбирает трафик и типы контента, затем настраивает CDN: кэш, сжатие, картинки, инвалидацию. 218установок discord-notifications Отправляет сообщение в Discord, когда Claude закончил работу или завершил субагента. Пригодится, если вы уходите от терминала и хотите знать, что задача готова. 217установок implement-graphql-api Слэш-команда собирает GraphQL API: схему, резолверы, подписки и защиту от N+1. Пригодится, когда нужен рабочий бэкенд, а не набросок. 212установок

Похожие

pp-archive-is Matt Van Horn Ищет копии страниц, обходит пейволлы и отправляет адреса в веб-архивы с автоматической сменой бэкенда. Пригодится агенту для чтения закрытых статей и пакетного сохранения ссылок. CX Codex +1 642установок platform-trust-archive-manage forcedotcom Скилл для работы с Salesforce Archive через Archive Connect API: поиск, восстановление, маскирование и удаление архивных записей. CX Codex +1 5 100установок worker-integration ruvnet Скилл связывает фоновые воркеры со специализированными агентами и распределяет задачи по типам триггеров. Помогает следить за задержкой и сохранять результаты в память. CX Codex +1 1 100установок decide coreyhaines31 Помогает принять решение через отбор 6–8 ключевых вопросов и сохраняет логику выбора в архив с датой проверки. CX Codex +1 500установок pp-slack Matt Van Horn Скилл синхронизирует переписку Slack в локальную базу SQLite с полнотекстовым поиском, чтобы старые сообщения оставались доступны после истечения срока хранения. CX Codex +1 373установок recipe-label-and-archive-emails официальный googleworkspace Скилл наводит порядок в Gmail: находит письма по запросу, вешает метку и убирает их из входящих. Пригодится, если ящик забит уведомлениями. CX Codex +1 30 400установок

Рядом в теме «Настройка агента: память, контекст, субагенты»

Все слэш-команды по теме «Настройка агента: память, контекст, субагенты» →

Вопросы о archive

Как установить archive в Claude?

Через шаблоны: npx claude-code-templates@latest --command orchestration/archive. После этого файл команды лежит в .claude/commands/archive.md.

Что делает команда archive?

Архивирует завершённые оркестрации: выгружает метрики, файлы задач, историю статусов и привязку к коммитам, а затем складывает всё в структуру по годам и кварталам.

Чем отличаются форматы архива?

standard даёт полный набор данных и анализа, light оставляет только ключевые метрики и выводы, research рассчитан на глубокий разбор. Выбор задаётся флагом --format.

Исходный текст

archive.md · MIT
---
description: "Properly archive completed orchestrations while preserving valuable data, metrics, and lessons learned for future reference."
---

# Orchestration Archive Command

Properly archive completed orchestrations while preserving valuable data, metrics, and lessons learned for future reference.

## Usage

```
/orchestration/archive [options]
```

## Description

Manages the archival process for completed orchestrations, extracting insights, preserving critical data, and organizing historical information for future analysis and learning.

## Basic Commands

### Archive Completed Orchestrations
```
/orchestration/archive
```
Identifies and archives all fully completed orchestrations automatically.

### Archive Specific Orchestration
```
/orchestration/archive --date 03_15_2024 --project auth_system
```
Archives a specific orchestration with full data preservation.

### Archive with Analysis
```
/orchestration/archive --analyze
```
Performs comprehensive analysis before archiving, extracting lessons learned.

## Archival Process

### Pre-Archive Analysis
```
## Pre-Archive Analysis for: auth_system (03_15_2024)

Completion Status:
- Total Tasks: 24 (24 completed, 0 active)
- Duration: 8 days (estimated: 6 days)
- Final Velocity: 3.0 tasks/day
- Quality Score: 92% (2 QA iterations avg)

Outstanding Items:
- No active tasks
- No blocked dependencies
- Git branches: 3 merged, 0 pending
- Documentation: Complete

Ready for Archive: ✓
```

### Data Extraction
```
## Extracting Archive Data

Performance Metrics:
✓ Task completion times
✓ Velocity calculations  
✓ Quality metrics
✓ Resource utilization
✓ Dependency patterns

Project Artifacts:
✓ All task files and metadata
✓ Git commit history correlation
✓ Status transition logs
✓ Agent assignment patterns

Learning Points:
✓ What worked well
✓ Pain points and bottlenecks
✓ Estimation accuracy
✓ Team collaboration insights
```

### Archive Structure
```
/archived-orchestrations/
└── 2024/
    └── Q1/
        └── 03_15_2024_auth_system/
            ├── ARCHIVE-SUMMARY.md
            ├── LESSONS-LEARNED.md
            ├── METRICS-REPORT.json
            ├── original-files/
            │   ├── MASTER-COORDINATION.md
            │   ├── EXECUTION-TRACKER.md
            │   ├── TASK-STATUS-TRACKER.yaml
            │   └── tasks/
            ├── analytics/
            │   ├── velocity-chart.png
            │   ├── dependency-graph.svg
            │   └── timeline-visualization.html
            └── git-correlation/
                ├── commit-task-mapping.json
                └── branch-analysis.md
```

## Archive Options

### Quick Archive
```
/orchestration/archive --quick
```
Fast archival without detailed analysis, suitable for simple orchestrations.

### Deep Analysis Archive
```
/orchestration/archive --deep-analysis
```
Comprehensive analysis including:
- Detailed performance metrics
- Pattern recognition
- Predictive insights
- Comparative analysis with similar projects

### Selective Archive
```
/orchestration/archive --include tasks,metrics --exclude original-files
```
Custom archive content selection.

## Analysis Features

### Performance Analysis
```
## Performance Analysis Summary

Velocity Analysis:
- Peak velocity: 4.2 tasks/day (Day 3)
- Average velocity: 3.0 tasks/day
- Velocity trend: Stable with 15% improvement over time

Task Metrics:
- Average task duration: 3.8h (vs 4.0h estimated)
- Estimation accuracy: 87% (excellent)
- Most accurate estimates: Backend tasks (95%)
- Least accurate estimates: UI tasks (72%)

Quality Metrics:
- First-pass QA success: 78%
- Average QA iterations: 1.3
- Zero critical bugs in production
- Documentation completeness: 95%
```

### Team Performance
```
## Team Performance Insights

Agent Effectiveness:
┌─────────────────┬──────────────┬─────────────┬──────────────┐
│ Agent           │ Tasks Done   │ Avg Duration│ Quality Score│
├─────────────────┼──────────────┼─────────────┼──────────────┤
│ dev-backend     │ 12 tasks     │ 3.2h        │ 94%          │
│ dev-frontend    │ 8 tasks      │ 4.1h        │ 89%          │
│ qa-engineer     │ 4 reviews    │ 1.5h        │ 96%          │
│ test-developer  │ 6 tasks      │ 2.8h        │ 91%          │
└─────────────────┴──────────────┴─────────────┴──────────────┘

Collaboration Patterns:
- Cross-functional tasks: 20% of total
- Pair programming events: 8 instances
- Knowledge transfer sessions: 3 sessions
- Optimal team size: 4 agents (confirmed)
```

### Lessons Learned Extraction
```
## Lessons Learned

What Worked Well:
1. Early dependency identification prevented major blocks
2. JWT implementation pattern reusable for future auth projects
3. Parallel testing approach reduced QA bottlenecks
4. Daily standup format kept team aligned

Pain Points:
1. OAuth provider documentation was incomplete (external factor)
2. Database schema changes mid-project caused 1-day delay
3. Test environment instability affected 3 tasks
4. Frontend-backend API contract unclear initially

Process Improvements:
1. Add API contract review gate before implementation
2. Implement test environment monitoring
3. Create OAuth integration template for future use
4. Add database change impact assessment

Estimation Insights:
- Security tasks consistently underestimated by 25%
- UI tasks with new libraries take 40% longer
- Integration tasks require 20% buffer for external dependencies
- Testing parallel to development saves 30% overall time
```

## Archive Validation

### Completeness Check
```
## Archive Completeness Validation

Required Data:
✓ All 24 task files preserved
✓ Status tracking history complete  
✓ Git commit correlation verified
✓ Performance metrics calculated
✓ Agent assignments recorded

Data Integrity:
✓ No corrupted files detected
✓ Timeline consistency verified
✓ Dependency graph validated
✓ Metrics calculations confirmed

Archive Quality: 100% Complete
```

### Historical Correlation
```
## Historical Correlation Analysis

Similar Projects Comparison:
- user_management (02_20_2024): 85% similar
- payment_system (01_15_2024): 60% similar  
- admin_dashboard (03_01_2024): 45% similar

Performance Comparison:
- This project: 3.0 tasks/day (above average)
- Team average: 2.7 tasks/day
- Best performance: 3.4 tasks/day (payment_system)
- Worst performance: 2.1 tasks/day (admin_dashboard)

Learning Application Opportunities:
- Apply JWT pattern to upcoming mobile_auth project
- Use dependency analysis template for API projects
- Replicate testing strategy for integration-heavy work
```

## Archive Formats

### Standard Archive
```
/orchestration/archive --format standard
```
Creates structured archive with all essential data and analysis.

### Lightweight Archive  
```
/orchestration/archive --format light
```
Minimal archive with key metrics and lessons learned only.

### Research Archive
```
/orchestration/archive --format research
```
Comprehensive archive suitable for academic research or deep analysis.

### Template Archive
```
/orchestration/archive --format template
```
Creates reusable templates from successful patterns.

## Query and Retrieval

### Search Archives
```
/orchestration/archive --search "JWT authentication"
```
Finds archived orchestrations with similar requirements.

### Compare Archives
```
/orchestration/archive --compare 03_15_2024 02_20_2024
```
Detailed comparison between two archived orchestrations.

### Extract Templates
```
/orchestration/archive --extract-template auth_system
```
Creates orchestration template from successful archive.

## Integration Features

### Metrics Dashboard
```
/orchestration/archive --dashboard
```
Generates visual dashboard of archived orchestration metrics.

### Knowledge Base
```
/orchestration/archive --knowledge-base
```
Integrates lessons learned into searchable knowledge base.

### Predictive Analysis
```
/orchestration/archive --predict similar_to:auth_system
```
Uses archived data to predict outcomes for similar future projects.

## Automation Options

### Auto-Archive Completed
```
/orchestration/archive --auto-schedule weekly
```
Automatically archives completed orchestrations weekly.

### Smart Archive Rules
```
/orchestration/archive --rules "age:>30days status:completed"
```
Archives orchestrations meeting specific criteria.

### Archive Notifications
```
/orchestration/archive --notify [email protected]
```
Sends archive completion notifications with key insights.

## Examples

### Example 1: Standard Project Archive
```
/orchestration/archive --date 03_15_2024 --project auth_system --analyze
```

### Example 2: Batch Archive Completed
```
/orchestration/archive --all-completed --since "last month"
```

### Example 3: Create Project Template
```
/orchestration/archive --date 03_15_2024 --create-template auth_pattern
```

### Example 4: Research Analysis
```
/orchestration/archive --search "authentication" --analyze-patterns
```

## Storage Management

### Archive Location
```
Default: ./archived-orchestrations/
Custom: /orchestration/archive --location /shared/archives/
```

### Compression Options
```
/orchestration/archive --compress high
```
Reduces storage requirements while preserving data integrity.

### Retention Policies
```
/orchestration/archive --retention "keep:2years delete:metrics-only"
```

## Best Practices

1. **Archive Regularly**: Don't let completed orchestrations accumulate
2. **Analyze Before Archive**: Extract maximum learning value
3. **Preserve Context**: Include sufficient context for future reference
4. **Template Creation**: Convert successful patterns to templates
5. **Team Review**: Share insights before archiving
6. **Search Optimization**: Use consistent tagging and keywords

## Configuration

### Archive Settings
```yaml
archive:
  auto_archive_after: "30 days"
  analysis_depth: "standard"
  preserve_git_history: true
  create_visualizations: true
  retention_period: "2 years"
  compression_level: "medium"
```

## Recovery Options

### Restore from Archive
```
/orchestration/archive --restore 03_15_2024_auth_system
```
Restores archived orchestration to active state (rare use case).

### Extract Specific Data
```
/orchestration/archive --extract metrics 03_15_2024_auth_system
```
Retrieves specific data from archived orchestration.

## Notes

- Archived orchestrations are read-only by default
- All archive operations are logged for audit purposes
- Archive analysis improves over time with machine learning
- Templates created from archives are immediately usable
- Archived data contributes to predictive orchestration models
- Integration with external backup systems supported

© davila7 · MIT · davila7/claude-code-templates

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой