claude-code-orchestrator-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/.claude/agents/database/workers/api-builder.md +155 -0
  2. package/.claude/agents/database/workers/database-architect.md +193 -0
  3. package/.claude/agents/database/workers/supabase-auditor.md +1070 -0
  4. package/.claude/agents/development/workers/code-reviewer.md +968 -0
  5. package/.claude/agents/development/workers/cost-calculator-specialist.md +683 -0
  6. package/.claude/agents/development/workers/llm-service-specialist.md +999 -0
  7. package/.claude/agents/development/workers/skill-builder-v2.md +480 -0
  8. package/.claude/agents/development/workers/typescript-types-specialist.md +649 -0
  9. package/.claude/agents/development/workers/utility-builder.md +582 -0
  10. package/.claude/agents/documentation/workers/technical-writer.md +152 -0
  11. package/.claude/agents/frontend/workers/fullstack-nextjs-specialist.md +206 -0
  12. package/.claude/agents/frontend/workers/visual-effects-creator.md +159 -0
  13. package/.claude/agents/health/orchestrators/bug-orchestrator.md +1045 -0
  14. package/.claude/agents/health/orchestrators/dead-code-orchestrator.md +1045 -0
  15. package/.claude/agents/health/orchestrators/dependency-orchestrator.md +1045 -0
  16. package/.claude/agents/health/orchestrators/security-orchestrator.md +1045 -0
  17. package/.claude/agents/health/workers/bug-fixer.md +525 -0
  18. package/.claude/agents/health/workers/bug-hunter.md +649 -0
  19. package/.claude/agents/health/workers/dead-code-hunter.md +446 -0
  20. package/.claude/agents/health/workers/dead-code-remover.md +437 -0
  21. package/.claude/agents/health/workers/dependency-auditor.md +379 -0
  22. package/.claude/agents/health/workers/dependency-updater.md +436 -0
  23. package/.claude/agents/health/workers/security-scanner.md +700 -0
  24. package/.claude/agents/health/workers/vulnerability-fixer.md +524 -0
  25. package/.claude/agents/infrastructure/workers/infrastructure-specialist.md +156 -0
  26. package/.claude/agents/infrastructure/workers/orchestration-logic-specialist.md +1260 -0
  27. package/.claude/agents/infrastructure/workers/qdrant-specialist.md +503 -0
  28. package/.claude/agents/infrastructure/workers/quality-validator-specialist.md +984 -0
  29. package/.claude/agents/meta/workers/meta-agent-v3.md +503 -0
  30. package/.claude/agents/research/workers/problem-investigator.md +507 -0
  31. package/.claude/agents/research/workers/research-specialist.md +423 -0
  32. package/.claude/agents/testing/workers/accessibility-tester.md +813 -0
  33. package/.claude/agents/testing/workers/integration-tester.md +188 -0
  34. package/.claude/agents/testing/workers/mobile-fixes-implementer.md +252 -0
  35. package/.claude/agents/testing/workers/mobile-responsiveness-tester.md +180 -0
  36. package/.claude/agents/testing/workers/performance-optimizer.md +262 -0
  37. package/.claude/agents/testing/workers/test-writer.md +800 -0
  38. package/.claude/commands/health-bugs.md +297 -0
  39. package/.claude/commands/health-cleanup.md +297 -0
  40. package/.claude/commands/health-deps.md +297 -0
  41. package/.claude/commands/health-metrics.md +747 -0
  42. package/.claude/commands/health-security.md +297 -0
  43. package/.claude/commands/push.md +21 -0
  44. package/.claude/commands/speckit.analyze.md +184 -0
  45. package/.claude/commands/speckit.checklist.md +294 -0
  46. package/.claude/commands/speckit.clarify.md +178 -0
  47. package/.claude/commands/speckit.constitution.md +78 -0
  48. package/.claude/commands/speckit.implement.md +182 -0
  49. package/.claude/commands/speckit.plan.md +87 -0
  50. package/.claude/commands/speckit.specify.md +250 -0
  51. package/.claude/commands/speckit.tasks.md +137 -0
  52. package/.claude/commands/translate-doc.md +95 -0
  53. package/.claude/commands/worktree-cleanup.md +382 -0
  54. package/.claude/commands/worktree-create.md +287 -0
  55. package/.claude/commands/worktree-list.md +239 -0
  56. package/.claude/commands/worktree-remove.md +339 -0
  57. package/.claude/schemas/base-plan.schema.json +82 -0
  58. package/.claude/schemas/bug-plan.schema.json +71 -0
  59. package/.claude/schemas/dead-code-plan.schema.json +71 -0
  60. package/.claude/schemas/dependency-plan.schema.json +74 -0
  61. package/.claude/schemas/security-plan.schema.json +71 -0
  62. package/.claude/scripts/gates/check-bundle-size.sh +47 -0
  63. package/.claude/scripts/gates/check-coverage.sh +67 -0
  64. package/.claude/scripts/gates/check-security.sh +46 -0
  65. package/.claude/scripts/release.sh +740 -0
  66. package/.claude/settings.local.json +21 -0
  67. package/.claude/settings.local.json.example +20 -0
  68. package/.claude/skills/calculate-priority-score/SKILL.md +229 -0
  69. package/.claude/skills/calculate-priority-score/scoring-matrix.json +83 -0
  70. package/.claude/skills/extract-version/SKILL.md +228 -0
  71. package/.claude/skills/format-commit-message/SKILL.md +189 -0
  72. package/.claude/skills/format-commit-message/template.md +64 -0
  73. package/.claude/skills/format-markdown-table/SKILL.md +202 -0
  74. package/.claude/skills/format-markdown-table/examples.md +84 -0
  75. package/.claude/skills/format-todo-list/SKILL.md +222 -0
  76. package/.claude/skills/format-todo-list/template.json +30 -0
  77. package/.claude/skills/generate-changelog/SKILL.md +258 -0
  78. package/.claude/skills/generate-changelog/commit-mapping.json +47 -0
  79. package/.claude/skills/generate-report-header/SKILL.md +228 -0
  80. package/.claude/skills/generate-report-header/template.md +66 -0
  81. package/.claude/skills/parse-error-logs/SKILL.md +286 -0
  82. package/.claude/skills/parse-error-logs/patterns.json +26 -0
  83. package/.claude/skills/parse-git-status/SKILL.md +164 -0
  84. package/.claude/skills/parse-package-json/SKILL.md +151 -0
  85. package/.claude/skills/parse-package-json/schema.json +43 -0
  86. package/.claude/skills/render-template/SKILL.md +245 -0
  87. package/.claude/skills/rollback-changes/SKILL.md +582 -0
  88. package/.claude/skills/rollback-changes/changes-log-schema.json +101 -0
  89. package/.claude/skills/run-quality-gate/SKILL.md +404 -0
  90. package/.claude/skills/run-quality-gate/gate-mappings.json +97 -0
  91. package/.claude/skills/validate-plan-file/SKILL.md +327 -0
  92. package/.claude/skills/validate-plan-file/schema.json +35 -0
  93. package/.claude/skills/validate-report-file/SKILL.md +256 -0
  94. package/.claude/skills/validate-report-file/schema.json +67 -0
  95. package/.env.example +49 -0
  96. package/.github/BRANCH_PROTECTION.md +137 -0
  97. package/.github/workflows/build.yml +70 -0
  98. package/.github/workflows/claude-code-review.yml +255 -0
  99. package/.github/workflows/claude.yml +79 -0
  100. package/.github/workflows/deploy-staging.yml +90 -0
  101. package/.github/workflows/test.yml +104 -0
  102. package/.gitignore +116 -0
  103. package/CLAUDE.md +137 -0
  104. package/LICENSE +72 -0
  105. package/README.md +1098 -0
  106. package/docs/ARCHITECTURE.md +746 -0
  107. package/docs/Agents Ecosystem/AGENT-ORCHESTRATION.md +568 -0
  108. package/docs/Agents Ecosystem/AI-AGENT-ECOSYSTEM-README.md +658 -0
  109. package/docs/Agents Ecosystem/ARCHITECTURE.md +606 -0
  110. package/docs/Agents Ecosystem/QUALITY-GATES-SPECIFICATION.md +1315 -0
  111. package/docs/Agents Ecosystem/REPORT-TEMPLATE-STANDARD.md +1324 -0
  112. package/docs/Agents Ecosystem/spec-kit-comprehensive-updates.md +478 -0
  113. package/docs/FAQ.md +572 -0
  114. package/docs/MIGRATION-GUIDE.md +542 -0
  115. package/docs/PERFORMANCE-OPTIMIZATION.md +494 -0
  116. package/docs/ROADMAP.md +439 -0
  117. package/docs/TUTORIAL-CUSTOM-AGENTS.md +2041 -0
  118. package/docs/USE-CASES.md +706 -0
  119. package/index.js +96 -0
  120. package/mcp/.mcp.base.json +21 -0
  121. package/mcp/.mcp.frontend.json +29 -0
  122. package/mcp/.mcp.full.json +67 -0
  123. package/mcp/.mcp.local.example.json +7 -0
  124. package/mcp/.mcp.local.json +7 -0
  125. package/mcp/.mcp.n8n.json +45 -0
  126. package/mcp/.mcp.supabase-full.json +35 -0
  127. package/mcp/.mcp.supabase-only.json +28 -0
  128. package/package.json +78 -0
  129. package/postinstall.js +71 -0
  130. package/switch-mcp.sh +101 -0
@@ -0,0 +1,95 @@
1
+ ---
2
+ description: Translate documentation file from English to Russian
3
+ allowed-tools: Read, Write
4
+ ---
5
+
6
+ # /translate-doc command
7
+
8
+ ## Syntax
9
+
10
+ /translate-doc {file_path}
11
+
12
+ ## Your task
13
+
14
+ You are translating technical documentation from English to Russian for developers.
15
+
16
+ ### Step 1: Read Source File
17
+
18
+ Read the English documentation file specified by the user:
19
+ - Use Read tool with the provided file_path
20
+ - Verify file exists and is readable
21
+ - If file not found, report error and stop
22
+
23
+ ### Step 2: Translate to Russian
24
+
25
+ Translate the content while preserving structure and accuracy:
26
+
27
+ **Preserve**:
28
+ - Markdown formatting (headers, lists, tables, code blocks)
29
+ - Code blocks UNCHANGED (do not translate code)
30
+ - Technical terms accuracy (orchestrator, worker, quality gate)
31
+ - Links and URLs UNCHANGED
32
+ - File paths and commands UNCHANGED
33
+ - YAML frontmatter (if present)
34
+ - JSON examples UNCHANGED
35
+
36
+ **Translate**:
37
+ - All text content (paragraphs, descriptions)
38
+ - Headers and titles
39
+ - List items (except code)
40
+ - Table content (except code columns)
41
+
42
+ **Translation Guidelines**:
43
+ - Use professional technical Russian
44
+ - Maintain consistency with existing Russian docs
45
+ - Keep Claude Code terminology: agent, orchestrator, worker, quality gate
46
+ - Preserve tone and style (formal technical documentation)
47
+
48
+ ### Step 3: Add Translation Header
49
+
50
+ At the top of the translated document (after YAML frontmatter if present), add:
51
+
52
+ > Warning: Automatic translation
53
+ > Translated from English: {source_file_path}
54
+ > Translation date: {YYYY-MM-DD}
55
+ > The original may contain more up-to-date information. In case of discrepancies, use the English version.
56
+
57
+ ### Step 4: Save Translated File
58
+
59
+ Save the translated content:
60
+ - Generate filename: {original_filename}.ru.md
61
+ - Save in the same directory as the source file
62
+ - Use Write tool with full path
63
+
64
+ Example:
65
+ - Source: docs/Agents Ecosystem/ARCHITECTURE.md
66
+ - Output: docs/Agents Ecosystem/ARCHITECTURE.ru.md
67
+
68
+ ### Step 5: Report Completion
69
+
70
+ Inform the user:
71
+
72
+ Translation complete
73
+
74
+ Source: {source_file_path}
75
+ Output: {output_file_path}
76
+
77
+ Translation includes:
78
+ - N sections translated
79
+ - M code blocks preserved
80
+ - Translation header added
81
+
82
+ Note: Review the translation for technical accuracy, especially domain-specific terms.
83
+
84
+ ## Examples
85
+
86
+ ### Example 1: Basic usage
87
+
88
+ User: /translate-doc docs/Agents Ecosystem/ARCHITECTURE.md
89
+ Assistant: Translating document...
90
+ Output: docs/Agents Ecosystem/ARCHITECTURE.ru.md created
91
+
92
+ ### Example 2: Error handling
93
+
94
+ User: /translate-doc docs/nonexistent.md
95
+ Assistant: Error: File not found at docs/nonexistent.md
@@ -0,0 +1,382 @@
1
+ ---
2
+ description: Clean up stale worktree administrative files and optionally remove empty directories
3
+ ---
4
+
5
+ # Cleanup Git Worktrees
6
+
7
+ Очищает устаревшие административные файлы git worktrees и опционально удаляет пустые директории.
8
+
9
+ **Что делает команда:**
10
+ - Находит и удаляет административные файлы для несуществующих worktrees
11
+ - Опционально удаляет пустые директории в `megacampus2-worktrees/`
12
+ - Проверяет целостность worktrees
13
+ - Восстанавливает поврежденные worktrees (если возможно)
14
+
15
+ **Аргументы:**
16
+ - `[--dry-run]` - показать что будет удалено без удаления (опционально)
17
+ - `[--remove-dirs]` - удалить пустые директории (опционально)
18
+
19
+ **Примеры:**
20
+ ```bash
21
+ /worktree-cleanup
22
+ /worktree-cleanup --dry-run
23
+ /worktree-cleanup --remove-dirs
24
+ /worktree-cleanup --dry-run --remove-dirs
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Your Task
30
+
31
+ ### Step 1: Получение аргументов
32
+
33
+ Извлеки флаги из запроса пользователя:
34
+ - `--dry-run` - только показать, не удалять (опциональный)
35
+ - `--remove-dirs` - удалить пустые директории (опциональный)
36
+
37
+ ---
38
+
39
+ ### Step 2: Анализ текущего состояния
40
+
41
+ 1. **Получить список worktrees**
42
+ ```bash
43
+ git worktree list --porcelain
44
+ ```
45
+
46
+ 2. **Проверить директорию worktrees**
47
+ ```bash
48
+ ls -la ../megacampus2-worktrees/ 2>/dev/null
49
+ ```
50
+
51
+ 3. **Найти orphaned worktrees**
52
+ - Директории в `megacampus2-worktrees/`, которых нет в `git worktree list`
53
+ - Worktrees в `git worktree list`, директории которых не существуют
54
+
55
+ ---
56
+
57
+ ### Step 3: Поиск проблем
58
+
59
+ **Типы проблем:**
60
+
61
+ 1. **Prunable worktrees** - административные файлы для удаленных worktrees
62
+ 2. **Orphaned directories** - директории без git worktree записей
63
+ 3. **Missing directories** - worktree записи без директорий
64
+ 4. **Empty directories** - пустые папки в megacampus2-worktrees/
65
+
66
+ Для каждой проблемы собери информацию.
67
+
68
+ ---
69
+
70
+ ### Step 4: Git Worktree Prune
71
+
72
+ 1. **Проверить что будет удалено** (если --dry-run)
73
+ ```bash
74
+ git worktree prune --dry-run --verbose
75
+ ```
76
+
77
+ 2. **Выполнить cleanup** (если не --dry-run)
78
+ ```bash
79
+ git worktree prune --verbose
80
+ ```
81
+
82
+ ---
83
+
84
+ ### Step 5: Удаление orphaned директорий
85
+
86
+ Для каждой orphaned директории:
87
+
88
+ 1. **Проверить содержимое**
89
+ ```bash
90
+ ls -la ../megacampus2-worktrees/DIRNAME/
91
+ ```
92
+
93
+ 2. **Проверить git статус**
94
+ ```bash
95
+ cd ../megacampus2-worktrees/DIRNAME && git status 2>&1
96
+ ```
97
+
98
+ 3. **Если директория валидна, но не зарегистрирована:**
99
+ - Попытаться восстановить через `git worktree repair`
100
+ ```bash
101
+ git worktree repair ../megacampus2-worktrees/DIRNAME
102
+ ```
103
+
104
+ 4. **Если директория невалидна или пустая:**
105
+ - Если --dry-run: показать что будет удалено
106
+ - Если --remove-dirs: удалить директорию
107
+ ```bash
108
+ rm -rf ../megacampus2-worktrees/DIRNAME
109
+ ```
110
+
111
+ ---
112
+
113
+ ### Step 6: Проверка целостности
114
+
115
+ 1. **Проверить все зарегистрированные worktrees**
116
+ ```bash
117
+ git worktree list --porcelain
118
+ ```
119
+
120
+ 2. **Для worktrees с missing directories:**
121
+ - Показать предупреждение
122
+ - Предложить удалить через `git worktree remove`
123
+
124
+ ---
125
+
126
+ ### Step 7: Вывод отчета
127
+
128
+ **Dry-run режим:**
129
+ ```markdown
130
+ # Worktree Cleanup Report (DRY RUN)
131
+
132
+ ## Что будет выполнено:
133
+
134
+ ### Git Worktree Prune
135
+ - 🗑️ Будет удалено административных записей: N
136
+ - worktree-1: /путь/к/worktree-1 (директория не существует)
137
+ - worktree-2: /путь/к/worktree-2 (директория удалена)
138
+
139
+ ### Orphaned Directories [если --remove-dirs]
140
+ - 🗑️ Будет удалено директорий: N
141
+ - ../megacampus2-worktrees/old-feature (не зарегистрирован в git)
142
+ - ../megacampus2-worktrees/test (пустая директория)
143
+
144
+ ### Восстановимые Worktrees
145
+ - 🔧 Будет восстановлено: N
146
+ - ../megacampus2-worktrees/recoverable-feature (можно восстановить через repair)
147
+
148
+ ---
149
+
150
+ 💡 **Для выполнения cleanup:**
151
+ ```bash
152
+ /worktree-cleanup # выполнить prune
153
+ /worktree-cleanup --remove-dirs # выполнить prune + удалить директории
154
+ ```
155
+ ```
156
+
157
+ **Обычный режим:**
158
+ ```markdown
159
+ # Worktree Cleanup Report
160
+
161
+ ## ✅ Выполнено
162
+
163
+ ### Git Worktree Prune
164
+ - ✅ Удалено административных записей: N
165
+ - worktree-1: /путь/к/worktree-1
166
+ - worktree-2: /путь/к/worktree-2
167
+
168
+ ### Orphaned Directories [если --remove-dirs]
169
+ - ✅ Удалено директорий: N
170
+ - ../megacampus2-worktrees/old-feature (N MB освобождено)
171
+ - ../megacampus2-worktrees/test
172
+
173
+ ### Восстановленные Worktrees
174
+ - ✅ Восстановлено: N
175
+ - ../megacampus2-worktrees/recoverable-feature
176
+
177
+ ---
178
+
179
+ ## 📊 Текущее состояние
180
+
181
+ **Активные worktrees:** N
182
+ ```
183
+ [вывод git worktree list]
184
+ ```
185
+
186
+ **Директории в megacampus2-worktrees/:** N
187
+ ```
188
+ [список директорий]
189
+ ```
190
+
191
+ **Все соответствует зарегистрированным worktrees:** ✅
192
+
193
+ ---
194
+
195
+ ## 💾 Освобождено места
196
+
197
+ - Административные файлы: ~X KB
198
+ - Директории: ~X MB [если --remove-dirs]
199
+ - Всего: ~X MB
200
+
201
+ ---
202
+
203
+ ## 💡 Рекомендации
204
+
205
+ [Если нашлись проблемы, которые не были исправлены автоматически]
206
+
207
+ **Missing directories:**
208
+ - worktree-name: /путь/к/worktree
209
+
210
+ Удалить:
211
+ ```bash
212
+ git worktree remove worktree-name
213
+ ```
214
+
215
+ **Подозрительные директории:** [если не был --remove-dirs]
216
+ - ../megacampus2-worktrees/suspicious-dir
217
+
218
+ Проверить и удалить вручную:
219
+ ```bash
220
+ cd ../megacampus2-worktrees/suspicious-dir
221
+ git status # проверить содержимое
222
+ cd ../../megacampus2
223
+ /worktree-remove suspicious-dir # если не нужен
224
+ ```
225
+ ```
226
+
227
+ **Если ничего не найдено:**
228
+ ```markdown
229
+ # Worktree Cleanup Report
230
+
231
+ ✨ **Все чисто!**
232
+
233
+ Не найдено проблем с worktrees:
234
+ - ✅ Нет устаревших административных файлов
235
+ - ✅ Нет orphaned директорий
236
+ - ✅ Все worktrees валидны
237
+ - ✅ Все директории соответствуют зарегистрированным worktrees
238
+
239
+ ---
240
+
241
+ ## 📊 Текущее состояние
242
+
243
+ **Активные worktrees:** N
244
+ ```
245
+ [вывод git worktree list]
246
+ ```
247
+
248
+ **Директории в megacampus2-worktrees/:** N (все валидны)
249
+
250
+ ---
251
+
252
+ 💡 **Полезные команды:**
253
+ - `/worktree-list` - список всех worktrees
254
+ - `/worktree-create <name>` - создать новый worktree
255
+ - `/worktree-remove <name>` - удалить worktree
256
+ ```
257
+
258
+ ---
259
+
260
+ ## Обработка ошибок
261
+
262
+ **Если директория megacampus2-worktrees не существует:**
263
+ ```markdown
264
+ ℹ️ Директория worktrees не существует
265
+
266
+ Путь: `/home/me/code/megacampus2-worktrees/`
267
+
268
+ Это нормально, если вы еще не создавали worktrees.
269
+
270
+ **Создать первый worktree:**
271
+ ```bash
272
+ /worktree-create <feature-name>
273
+ ```
274
+ ```
275
+
276
+ **Если нет прав доступа:**
277
+ ```markdown
278
+ ❌ Нет прав доступа к директории
279
+
280
+ Путь: `/home/me/code/megacampus2-worktrees/`
281
+
282
+ Проверьте права:
283
+ ```bash
284
+ ls -la ../megacampus2-worktrees/
285
+ chmod -R u+rwx ../megacampus2-worktrees/
286
+ ```
287
+ ```
288
+
289
+ **Если git worktree repair не сработал:**
290
+ ```markdown
291
+ ⚠️ Не удалось восстановить worktree автоматически
292
+
293
+ Worktree: `../megacampus2-worktrees/DIRNAME`
294
+
295
+ **Варианты:**
296
+
297
+ 1. **Удалить и пересоздать:**
298
+ ```bash
299
+ rm -rf ../megacampus2-worktrees/DIRNAME
300
+ /worktree-create DIRNAME
301
+ ```
302
+
303
+ 2. **Вручную удалить запись:**
304
+ ```bash
305
+ git worktree remove --force DIRNAME
306
+ ```
307
+
308
+ 3. **Проверить содержимое:**
309
+ ```bash
310
+ cd ../megacampus2-worktrees/DIRNAME
311
+ git status
312
+ # Сохранить важные изменения, затем удалить
313
+ ```
314
+ ```
315
+
316
+ ---
317
+
318
+ ## Детальная информация
319
+
320
+ ### Что делает git worktree prune?
321
+
322
+ Git worktree prune удаляет административные файлы в `.git/worktrees/` для worktrees, директории которых больше не существуют.
323
+
324
+ **Когда это происходит:**
325
+ - Директория worktree была удалена вручную (rm -rf)
326
+ - Директория была перемещена
327
+ - Файловая система была очищена
328
+
329
+ **Безопасность:**
330
+ - ✅ Безопасно - удаляет только метаданные
331
+ - ✅ Не трогает существующие worktrees
332
+ - ✅ Не удаляет коммиты или ветки
333
+
334
+ ### Что такое orphaned directories?
335
+
336
+ Orphaned directories - это директории в `megacampus2-worktrees/`, которые:
337
+ - Не зарегистрированы в `git worktree list`
338
+ - Могут содержать старый код
339
+ - Занимают место на диске
340
+
341
+ **Причины появления:**
342
+ - Ручное удаление worktree без `git worktree remove`
343
+ - Прерванное создание worktree
344
+ - Копирование директорий вручную
345
+
346
+ **Как cleanup обрабатывает:**
347
+ 1. Проверяет валидность (есть ли .git)
348
+ 2. Пытается восстановить через `git worktree repair`
349
+ 3. Если не удалось и указан `--remove-dirs` → удаляет
350
+
351
+ ---
352
+
353
+ ## Автоматизация
354
+
355
+ Рекомендуется запускать cleanup периодически:
356
+
357
+ ```bash
358
+ # Проверить состояние
359
+ /worktree-cleanup --dry-run
360
+
361
+ # Выполнить cleanup
362
+ /worktree-cleanup
363
+
364
+ # Полная очистка (включая директории)
365
+ /worktree-cleanup --remove-dirs
366
+ ```
367
+
368
+ **Когда запускать:**
369
+ - После удаления worktrees вручную
370
+ - При проблемах с git worktree commands
371
+ - Периодически (раз в неделю/месяц)
372
+ - Перед созданием новых worktrees
373
+
374
+ ---
375
+
376
+ ## Примечания
377
+
378
+ - Команда безопасна и не удаляет коммиты или важные данные
379
+ - --dry-run позволяет проверить что будет удалено
380
+ - --remove-dirs удаляет только невалидные/пустые директории
381
+ - Всегда делает backup проверку перед удалением
382
+ - Автоматически пытается восстановить worktrees когда возможно