moflo 4.9.19 → 4.9.21

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 (82) hide show
  1. package/.claude/commands/{simplify.md → flo-simplify.md} +4 -4
  2. package/.claude/guidance/shipped/moflo-agent-rules.md +172 -0
  3. package/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +73 -265
  4. package/.claude/guidance/shipped/moflo-cli-reference.md +6 -6
  5. package/.claude/guidance/shipped/moflo-core-guidance.md +66 -184
  6. package/.claude/guidance/shipped/moflo-cross-platform.md +1 -1
  7. package/.claude/guidance/shipped/moflo-error-handling.md +3 -3
  8. package/.claude/guidance/shipped/moflo-guidance-rules.md +17 -7
  9. package/.claude/guidance/shipped/moflo-memory-strategy.md +76 -182
  10. package/.claude/guidance/shipped/moflo-memorydb-maintenance.md +6 -8
  11. package/.claude/guidance/shipped/moflo-settings-injection.md +7 -9
  12. package/.claude/guidance/shipped/moflo-source-hygiene.md +5 -5
  13. package/.claude/guidance/shipped/moflo-spell-connectors.md +3 -4
  14. package/.claude/guidance/shipped/moflo-spell-custom-steps.md +3 -4
  15. package/.claude/guidance/shipped/moflo-spell-engine.md +40 -162
  16. package/.claude/guidance/shipped/moflo-spell-runner.md +134 -0
  17. package/.claude/guidance/shipped/moflo-spell-sandboxing.md +10 -57
  18. package/.claude/guidance/shipped/moflo-spell-troubleshooting.md +149 -0
  19. package/.claude/guidance/shipped/moflo-subagents.md +43 -114
  20. package/.claude/guidance/shipped/moflo-task-icons.md +4 -4
  21. package/.claude/guidance/shipped/moflo-user-facing-language.md +3 -3
  22. package/.claude/guidance/shipped/moflo-verbose-command-filtering.md +3 -3
  23. package/.claude/guidance/shipped/moflo-yaml-reference.md +4 -5
  24. package/.claude/helpers/gate.cjs +124 -14
  25. package/.claude/helpers/prompt-hook.mjs +4 -38
  26. package/.claude/helpers/simplify-classify.cjs +32 -11
  27. package/.claude/helpers/subagent-bootstrap.json +1 -1
  28. package/.claude/helpers/subagent-start.cjs +1 -1
  29. package/.claude/skills/connector-builder/SKILL.md +42 -429
  30. package/.claude/skills/connector-builder/templates/connector.md +189 -0
  31. package/.claude/skills/connector-builder/templates/step-command.md +176 -0
  32. package/.claude/skills/eldar/SKILL.md +7 -7
  33. package/.claude/skills/fl/SKILL.md +3 -3
  34. package/.claude/skills/fl/execution-modes.md +3 -3
  35. package/.claude/skills/fl/phases.md +3 -3
  36. package/.claude/skills/{simplify → flo-simplify}/SKILL.md +11 -11
  37. package/.claude/skills/guidance/SKILL.md +17 -9
  38. package/.claude/skills/memory-patterns/SKILL.md +1 -1
  39. package/.claude/skills/publish/SKILL.md +121 -36
  40. package/.claude/skills/reset-epic/SKILL.md +2 -2
  41. package/.claude/skills/spell-builder/SKILL.md +39 -226
  42. package/.claude/skills/spell-builder/architecture.md +1 -1
  43. package/.claude/skills/spell-builder/permissions.md +107 -0
  44. package/.claude/skills/spell-builder/preflight.md +101 -0
  45. package/.claude/skills/spell-schedule/SKILL.md +2 -3
  46. package/bin/gate.cjs +124 -14
  47. package/bin/prompt-hook.mjs +4 -38
  48. package/bin/session-start-launcher.mjs +66 -1
  49. package/bin/setup-project.mjs +63 -69
  50. package/bin/simplify-classify.cjs +32 -11
  51. package/dist/src/cli/commands/doctor-checks-deep.js +4 -0
  52. package/dist/src/cli/init/claudemd-generator.js +30 -33
  53. package/dist/src/cli/init/executor.js +28 -16
  54. package/dist/src/cli/init/helpers-generator.js +101 -51
  55. package/dist/src/cli/init/moflo-init.js +41 -114
  56. package/dist/src/cli/init/settings-generator.js +32 -14
  57. package/dist/src/cli/services/hook-block-hash.js +7 -2
  58. package/dist/src/cli/services/hook-wiring.js +86 -3
  59. package/dist/src/cli/services/subagent-bootstrap.js +1 -1
  60. package/dist/src/cli/version.js +1 -1
  61. package/package.json +2 -2
  62. package/scripts/post-install-bootstrap.mjs +19 -0
  63. package/.claude/guidance/shipped/moflo-session-start.md +0 -154
  64. package/.claude/guidance/shipped/moflo-spell-engine-architecture.md +0 -145
  65. package/.claude/skills/browser/SKILL.md +0 -204
  66. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  67. package/.claude/skills/github-multi-repo/SKILL.md +0 -866
  68. package/.claude/skills/github-project-management/SKILL.md +0 -1272
  69. package/.claude/skills/github-release-management/SKILL.md +0 -1074
  70. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1060
  71. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  72. package/.claude/skills/hooks-automation/SKILL.md +0 -1193
  73. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  74. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  75. package/.claude/skills/skill-builder/SKILL.md +0 -910
  76. package/.claude/skills/sparc-methodology/SKILL.md +0 -904
  77. package/.claude/skills/stream-chain/SKILL.md +0 -563
  78. package/.claude/skills/swarm-advanced/SKILL.md +0 -811
  79. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  80. package/.claude/skills/verification-quality/SKILL.md +0 -649
  81. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  82. package/.claude/skills/worker-integration/skill.md +0 -154
@@ -1,1074 +0,0 @@
1
- ---
2
- name: github-release-management
3
- version: 2.0.0
4
- description: Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management
5
- category: github
6
- tags: [release, deployment, versioning, automation, ci-cd, swarm, orchestration]
7
- author: Claude Flow Team
8
- requires:
9
- - gh (GitHub CLI)
10
- - claude-flow
11
- - ruv-swarm (optional for enhanced coordination)
12
- - mcp-github (optional for MCP integration)
13
- dependencies:
14
- - git
15
- - npm or yarn
16
- - node >= 20.0.0
17
- related_skills:
18
- - github-pr-management
19
- - github-issue-tracking
20
- - github-workflow-automation
21
- - multi-repo-coordination
22
- ---
23
-
24
- # GitHub Release Management Skill
25
-
26
- Intelligent release automation and orchestration using AI swarms for comprehensive software releases - from changelog generation to multi-platform deployment with rollback capabilities.
27
-
28
- ## Quick Start
29
-
30
- ### Simple Release Flow
31
- ```bash
32
- # Plan and create a release
33
- gh release create v2.0.0 \
34
- --draft \
35
- --generate-notes \
36
- --title "Release v2.0.0"
37
-
38
- # Orchestrate with swarm
39
- npx claude-flow github release-create \
40
- --version "2.0.0" \
41
- --build-artifacts \
42
- --deploy-targets "npm,docker,github"
43
- ```
44
-
45
- ### Full Automated Release
46
- ```bash
47
- # Initialize release swarm
48
- npx claude-flow swarm init --topology hierarchical
49
-
50
- # Execute complete release pipeline
51
- npx claude-flow sparc pipeline "Release v2.0.0 with full validation"
52
- ```
53
-
54
- ---
55
-
56
- ## Core Capabilities
57
-
58
- ### 1. Release Planning & Version Management
59
- - Semantic version analysis and suggestion
60
- - Breaking change detection from commits
61
- - Release timeline generation
62
- - Multi-package version coordination
63
-
64
- ### 2. Automated Testing & Validation
65
- - Multi-stage test orchestration
66
- - Cross-platform compatibility testing
67
- - Performance regression detection
68
- - Security vulnerability scanning
69
-
70
- ### 3. Build & Deployment Orchestration
71
- - Multi-platform build coordination
72
- - Parallel artifact generation
73
- - Progressive deployment strategies
74
- - Automated rollback mechanisms
75
-
76
- ### 4. Documentation & Communication
77
- - Automated changelog generation
78
- - Release notes with categorization
79
- - Migration guide creation
80
- - Stakeholder notification
81
-
82
- ---
83
-
84
- ## Progressive Disclosure: Level 1 - Basic Usage
85
-
86
- ### Essential Release Commands
87
-
88
- #### Create Release Draft
89
- ```bash
90
- # Get last release tag
91
- LAST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
92
-
93
- # Generate changelog from commits
94
- CHANGELOG=$(gh api repos/:owner/:repo/compare/${LAST_TAG}...HEAD \
95
- --jq '.commits[].commit.message')
96
-
97
- # Create draft release
98
- gh release create v2.0.0 \
99
- --draft \
100
- --title "Release v2.0.0" \
101
- --notes "$CHANGELOG" \
102
- --target main
103
- ```
104
-
105
- #### Basic Version Bump
106
- ```bash
107
- # Update package.json version
108
- npm version patch # or minor, major
109
-
110
- # Push version tag
111
- git push --follow-tags
112
- ```
113
-
114
- #### Simple Deployment
115
- ```bash
116
- # Build and publish npm package
117
- npm run build
118
- npm publish
119
-
120
- # Create GitHub release
121
- gh release create $(npm pkg get version) \
122
- --generate-notes
123
- ```
124
-
125
- ### Quick Integration Example
126
- ```javascript
127
- // Simple release preparation in Claude Code
128
- [Single Message]:
129
- // Update version files
130
- Edit("package.json", { old: '"version": "1.0.0"', new: '"version": "2.0.0"' })
131
-
132
- // Generate changelog
133
- Bash("gh api repos/:owner/:repo/compare/v1.0.0...HEAD --jq '.commits[].commit.message' > CHANGELOG.md")
134
-
135
- // Create release branch
136
- Bash("git checkout -b release/v2.0.0")
137
- Bash("git add -A && git commit -m 'release: Prepare v2.0.0'")
138
-
139
- // Create PR
140
- Bash("gh pr create --title 'Release v2.0.0' --body 'Automated release preparation'")
141
- ```
142
-
143
- ---
144
-
145
- ## Progressive Disclosure: Level 2 - Swarm Coordination
146
-
147
- ### AI Swarm Release Orchestration
148
-
149
- #### Initialize Release Swarm
150
- ```javascript
151
- // Set up coordinated release team
152
- [Single Message - Swarm Initialization]:
153
- mcp__moflo__swarm_init {
154
- topology: "hierarchical",
155
- maxAgents: 6,
156
- strategy: "balanced"
157
- }
158
-
159
- // Spawn specialized agents
160
- mcp__moflo__agent_spawn { type: "coordinator", name: "github-release-management" }
161
- mcp__moflo__agent_spawn { type: "coder", name: "Version Manager" }
162
- mcp__moflo__agent_spawn { type: "tester", name: "QA Engineer" }
163
- mcp__moflo__agent_spawn { type: "reviewer", name: "Release Reviewer" }
164
- mcp__moflo__agent_spawn { type: "analyst", name: "Deployment Analyst" }
165
- mcp__moflo__agent_spawn { type: "researcher", name: "Compatibility Checker" }
166
- ```
167
-
168
- #### Coordinated Release Workflow
169
- ```javascript
170
- [Single Message - Full Release Coordination]:
171
- // Create release branch
172
- Bash("gh api repos/:owner/:repo/git/refs --method POST -f ref='refs/heads/release/v2.0.0' -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')")
173
-
174
- // Orchestrate release preparation
175
-
176
- // Update all release files
177
- Write("package.json", "[updated version]")
178
- Write("CHANGELOG.md", "[release changelog]")
179
- Write("RELEASE_NOTES.md", "[detailed notes]")
180
-
181
- // Run comprehensive validation
182
- Bash("npm install && npm test && npm run lint && npm run build")
183
-
184
- // Create release PR
185
- Bash(`gh pr create \
186
- --title "Release v2.0.0: Feature Set and Improvements" \
187
- --head "release/v2.0.0" \
188
- --base "main" \
189
- --body "$(cat RELEASE_NOTES.md)"`)
190
-
191
- // Track progress
192
- TodoWrite { todos: [
193
- { content: "Prepare release branch", status: "completed", priority: "critical" },
194
- { content: "Run validation suite", status: "completed", priority: "high" },
195
- { content: "Create release PR", status: "completed", priority: "high" },
196
- { content: "Code review approval", status: "pending", priority: "high" },
197
- { content: "Merge and deploy", status: "pending", priority: "critical" }
198
- ]}
199
-
200
- // Store release state
201
- mcp__moflo__memory_store {
202
- key: "release/v2.0.0/status",
203
- value: JSON.stringify({
204
- version: "2.0.0",
205
- stage: "validation_complete",
206
- timestamp: Date.now(),
207
- ready_for_review: true
208
- })
209
- }
210
- ```
211
-
212
- ### Release Agent Specializations
213
-
214
- #### Changelog Agent
215
- ```bash
216
- # Get merged PRs between versions
217
- PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt \
218
- --jq ".[] | select(.mergedAt > \"$(gh release view v1.0.0 --json publishedAt -q .publishedAt)\")")
219
-
220
- # Get commit history
221
- COMMITS=$(gh api repos/:owner/:repo/compare/v1.0.0...HEAD \
222
- --jq '.commits[].commit.message')
223
-
224
- # Generate categorized changelog
225
- npx claude-flow github changelog \
226
- --prs "$PRS" \
227
- --commits "$COMMITS" \
228
- --from v1.0.0 \
229
- --to HEAD \
230
- --categorize \
231
- --add-migration-guide
232
- ```
233
-
234
- **Capabilities:**
235
- - Semantic commit analysis
236
- - Breaking change detection
237
- - Contributor attribution
238
- - Migration guide generation
239
- - Multi-language support
240
-
241
- #### Version Agent
242
- ```bash
243
- # Intelligent version suggestion
244
- npx claude-flow github version-suggest \
245
- --current v1.2.3 \
246
- --analyze-commits \
247
- --check-compatibility \
248
- --suggest-pre-release
249
- ```
250
-
251
- **Logic:**
252
- - Analyzes commit messages and PR labels
253
- - Detects breaking changes via keywords
254
- - Suggests appropriate version bump
255
- - Handles pre-release versioning
256
- - Validates version constraints
257
-
258
- #### Build Agent
259
- ```bash
260
- # Multi-platform build coordination
261
- npx claude-flow github release-build \
262
- --platforms "linux,macos,windows" \
263
- --architectures "x64,arm64" \
264
- --parallel \
265
- --optimize-size
266
- ```
267
-
268
- **Features:**
269
- - Cross-platform compilation
270
- - Parallel build execution
271
- - Artifact optimization and compression
272
- - Dependency bundling
273
- - Build caching and reuse
274
-
275
- #### Test Agent
276
- ```bash
277
- # Comprehensive pre-release testing
278
- npx claude-flow github release-test \
279
- --suites "unit,integration,e2e,performance" \
280
- --environments "node:16,node:18,node:20" \
281
- --fail-fast false \
282
- --generate-report
283
- ```
284
-
285
- #### Deploy Agent
286
- ```bash
287
- # Multi-target deployment orchestration
288
- npx claude-flow github release-deploy \
289
- --targets "npm,docker,github,s3" \
290
- --staged-rollout \
291
- --monitor-metrics \
292
- --auto-rollback
293
- ```
294
-
295
- ---
296
-
297
- ## Progressive Disclosure: Level 3 - Advanced Workflows
298
-
299
- ### Multi-Package Release Coordination
300
-
301
- #### Monorepo Release Strategy
302
- ```javascript
303
- [Single Message - Multi-Package Release]:
304
- // Initialize mesh topology for cross-package coordination
305
- mcp__moflo__swarm_init { topology: "mesh", maxAgents: 8 }
306
-
307
- // Spawn package-specific agents
308
- Task("Package A Manager", "Coordinate claude-flow package release v1.0.72", "coder")
309
- Task("Package B Manager", "Coordinate ruv-swarm package release v1.0.12", "coder")
310
- Task("Integration Tester", "Validate cross-package compatibility", "tester")
311
- Task("Version Coordinator", "Align dependencies and versions", "coordinator")
312
-
313
- // Update all packages simultaneously
314
- Write("packages/claude-flow/package.json", "[v1.0.72 content]")
315
- Write("packages/ruv-swarm/package.json", "[v1.0.12 content]")
316
- Write("CHANGELOG.md", "[consolidated changelog]")
317
-
318
- // Run cross-package validation
319
- Bash("cd packages/claude-flow && npm install && npm test")
320
- Bash("cd packages/ruv-swarm && npm install && npm test")
321
- Bash("npm run test:integration")
322
-
323
- // Create unified release PR
324
- Bash(`gh pr create \
325
- --title "Release: claude-flow v1.0.72, ruv-swarm v1.0.12" \
326
- --body "Multi-package coordinated release with cross-compatibility validation"`)
327
- ```
328
-
329
- ### Progressive Deployment Strategy
330
-
331
- #### Staged Rollout Configuration
332
- ```yaml
333
- # .github/release-deployment.yml
334
- deployment:
335
- strategy: progressive
336
- stages:
337
- - name: canary
338
- percentage: 5
339
- duration: 1h
340
- metrics:
341
- - error-rate < 0.1%
342
- - latency-p99 < 200ms
343
- auto-advance: true
344
-
345
- - name: partial
346
- percentage: 25
347
- duration: 4h
348
- validation: automated-tests
349
- approval: qa-team
350
-
351
- - name: rollout
352
- percentage: 50
353
- duration: 8h
354
- monitor: true
355
-
356
- - name: full
357
- percentage: 100
358
- approval: release-manager
359
- rollback-enabled: true
360
- ```
361
-
362
- #### Execute Staged Deployment
363
- ```bash
364
- # Deploy with progressive rollout
365
- npx claude-flow github release-deploy \
366
- --version v2.0.0 \
367
- --strategy progressive \
368
- --config .github/release-deployment.yml \
369
- --monitor-metrics \
370
- --auto-rollback-on-error
371
- ```
372
-
373
- ### Multi-Repository Coordination
374
-
375
- #### Coordinated Multi-Repo Release
376
- ```bash
377
- # Synchronize releases across repositories
378
- npx claude-flow github multi-release \
379
- --repos "frontend:v2.0.0,backend:v2.1.0,cli:v1.5.0" \
380
- --ensure-compatibility \
381
- --atomic-release \
382
- --synchronized \
383
- --rollback-all-on-failure
384
- ```
385
-
386
- #### Cross-Repo Dependency Management
387
- ```javascript
388
- [Single Message - Cross-Repo Release]:
389
- // Initialize star topology for centralized coordination
390
- mcp__moflo__swarm_init { topology: "star", maxAgents: 6 }
391
-
392
- // Spawn repo-specific coordinators
393
- Task("Frontend Release", "Release frontend v2.0.0 with API compatibility", "coordinator")
394
- Task("Backend Release", "Release backend v2.1.0 with breaking changes", "coordinator")
395
- Task("CLI Release", "Release CLI v1.5.0 with new commands", "coordinator")
396
- Task("Compatibility Checker", "Validate cross-repo compatibility", "researcher")
397
-
398
- // Coordinate version updates across repos
399
- Bash("gh api repos/org/frontend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.0.0")
400
- Bash("gh api repos/org/backend/dispatches --method POST -f event_type='release' -F client_payload[version]=v2.1.0")
401
- Bash("gh api repos/org/cli/dispatches --method POST -f event_type='release' -F client_payload[version]=v1.5.0")
402
-
403
- // Monitor all releases
404
- mcp__moflo__swarm_status { interval: 5, duration: 300 }
405
- ```
406
-
407
- ### Hotfix Emergency Procedures
408
-
409
- #### Emergency Hotfix Workflow
410
- ```bash
411
- # Fast-track critical bug fix
412
- npx claude-flow github emergency-release \
413
- --issue 789 \
414
- --severity critical \
415
- --target-version v1.2.4 \
416
- --cherry-pick-commits \
417
- --bypass-checks security-only \
418
- --fast-track \
419
- --notify-all
420
- ```
421
-
422
- #### Automated Hotfix Process
423
- ```javascript
424
- [Single Message - Emergency Hotfix]:
425
- // Create hotfix branch from last stable release
426
- Bash("git checkout -b hotfix/v1.2.4 v1.2.3")
427
-
428
- // Cherry-pick critical fixes
429
- Bash("git cherry-pick abc123def")
430
-
431
- // Fast validation
432
- Bash("npm run test:critical && npm run build")
433
-
434
- // Create emergency release
435
- Bash(`gh release create v1.2.4 \
436
- --title "HOTFIX v1.2.4: Critical Security Patch" \
437
- --notes "Emergency release addressing CVE-2024-XXXX" \
438
- --prerelease=false`)
439
-
440
- // Immediate deployment
441
- Bash("npm publish --tag hotfix")
442
-
443
- // Notify stakeholders
444
- Bash(`gh issue create \
445
- --title "🚨 HOTFIX v1.2.4 Deployed" \
446
- --body "Critical security patch deployed. Please update immediately." \
447
- --label "critical,security,hotfix"`)
448
- ```
449
-
450
- ---
451
-
452
- ## Progressive Disclosure: Level 4 - Enterprise Features
453
-
454
- ### Release Configuration Management
455
-
456
- #### Comprehensive Release Config
457
- ```yaml
458
- # .github/release-swarm.yml
459
- version: 2.0.0
460
-
461
- release:
462
- versioning:
463
- strategy: semantic
464
- breaking-keywords: ["BREAKING", "BREAKING CHANGE", "!"]
465
- feature-keywords: ["feat", "feature"]
466
- fix-keywords: ["fix", "bugfix"]
467
-
468
- changelog:
469
- sections:
470
- - title: "🚀 Features"
471
- labels: ["feature", "enhancement"]
472
- emoji: true
473
- - title: "🐛 Bug Fixes"
474
- labels: ["bug", "fix"]
475
- - title: "💥 Breaking Changes"
476
- labels: ["breaking"]
477
- highlight: true
478
- - title: "📚 Documentation"
479
- labels: ["docs", "documentation"]
480
- - title: "⚡ Performance"
481
- labels: ["performance", "optimization"]
482
- - title: "🔒 Security"
483
- labels: ["security"]
484
- priority: critical
485
-
486
- artifacts:
487
- - name: npm-package
488
- build: npm run build
489
- test: npm run test:all
490
- publish: npm publish
491
- registry: https://registry.npmjs.org
492
-
493
- - name: docker-image
494
- build: docker build -t app:$VERSION .
495
- test: docker run app:$VERSION npm test
496
- publish: docker push app:$VERSION
497
- platforms: [linux/amd64, linux/arm64]
498
-
499
- - name: binaries
500
- build: ./scripts/build-binaries.sh
501
- platforms: [linux, macos, windows]
502
- architectures: [x64, arm64]
503
- upload: github-release
504
- sign: true
505
-
506
- validation:
507
- pre-release:
508
- - lint: npm run lint
509
- - typecheck: npm run typecheck
510
- - unit-tests: npm run test:unit
511
- - integration-tests: npm run test:integration
512
- - security-scan: npm audit
513
- - license-check: npm run license-check
514
-
515
- post-release:
516
- - smoke-tests: npm run test:smoke
517
- - deployment-validation: ./scripts/validate-deployment.sh
518
- - performance-baseline: npm run benchmark
519
-
520
- deployment:
521
- environments:
522
- - name: staging
523
- auto-deploy: true
524
- validation: npm run test:e2e
525
- approval: false
526
-
527
- - name: production
528
- auto-deploy: false
529
- approval-required: true
530
- approvers: ["release-manager", "tech-lead"]
531
- rollback-enabled: true
532
- health-checks:
533
- - endpoint: /health
534
- expected: 200
535
- timeout: 30s
536
-
537
- monitoring:
538
- metrics:
539
- - error-rate: <1%
540
- - latency-p95: <500ms
541
- - availability: >99.9%
542
- - memory-usage: <80%
543
-
544
- alerts:
545
- - type: slack
546
- channel: releases
547
- on: [deploy, rollback, error]
548
- - type: email
549
- recipients: ["team@company.com"]
550
- on: [critical-error, rollback]
551
- - type: pagerduty
552
- service: production-releases
553
- on: [critical-error]
554
-
555
- rollback:
556
- auto-rollback:
557
- triggers:
558
- - error-rate > 5%
559
- - latency-p99 > 2000ms
560
- - availability < 99%
561
- grace-period: 5m
562
-
563
- manual-rollback:
564
- preserve-data: true
565
- notify-users: true
566
- create-incident: true
567
- ```
568
-
569
- ### Advanced Testing Strategies
570
-
571
- #### Comprehensive Validation Suite
572
- ```bash
573
- # Pre-release validation with all checks
574
- npx claude-flow github release-validate \
575
- --checks "
576
- version-conflicts,
577
- dependency-compatibility,
578
- api-breaking-changes,
579
- security-vulnerabilities,
580
- performance-regression,
581
- documentation-completeness,
582
- license-compliance,
583
- backwards-compatibility
584
- " \
585
- --block-on-failure \
586
- --generate-report \
587
- --upload-results
588
- ```
589
-
590
- #### Backward Compatibility Testing
591
- ```bash
592
- # Test against previous versions
593
- npx claude-flow github compat-test \
594
- --previous-versions "v1.0,v1.1,v1.2" \
595
- --api-contracts \
596
- --data-migrations \
597
- --integration-tests \
598
- --generate-report
599
- ```
600
-
601
- #### Performance Regression Detection
602
- ```bash
603
- # Benchmark against baseline
604
- npx claude-flow github performance-test \
605
- --baseline v1.9.0 \
606
- --candidate v2.0.0 \
607
- --metrics "throughput,latency,memory,cpu" \
608
- --threshold 5% \
609
- --fail-on-regression
610
- ```
611
-
612
- ### Release Monitoring & Analytics
613
-
614
- #### Real-Time Release Monitoring
615
- ```bash
616
- # Monitor release health post-deployment
617
- npx claude-flow github release-monitor \
618
- --version v2.0.0 \
619
- --metrics "error-rate,latency,throughput,adoption" \
620
- --alert-thresholds \
621
- --duration 24h \
622
- --export-dashboard
623
- ```
624
-
625
- #### Release Analytics & Insights
626
- ```bash
627
- # Analyze release performance and adoption
628
- npx claude-flow github release-analytics \
629
- --version v2.0.0 \
630
- --compare-with v1.9.0 \
631
- --metrics "adoption,performance,stability,feedback" \
632
- --generate-insights \
633
- --export-report
634
- ```
635
-
636
- #### Automated Rollback Configuration
637
- ```bash
638
- # Configure intelligent auto-rollback
639
- npx claude-flow github rollback-config \
640
- --triggers '{
641
- "error-rate": ">5%",
642
- "latency-p99": ">1000ms",
643
- "availability": "<99.9%",
644
- "failed-health-checks": ">3"
645
- }' \
646
- --grace-period 5m \
647
- --notify-on-rollback \
648
- --preserve-metrics
649
- ```
650
-
651
- ### Security & Compliance
652
-
653
- #### Security Scanning
654
- ```bash
655
- # Comprehensive security validation
656
- npx claude-flow github release-security \
657
- --scan-dependencies \
658
- --check-secrets \
659
- --audit-permissions \
660
- --sign-artifacts \
661
- --sbom-generation \
662
- --vulnerability-report
663
- ```
664
-
665
- #### Compliance Validation
666
- ```bash
667
- # Ensure regulatory compliance
668
- npx claude-flow github release-compliance \
669
- --standards "SOC2,GDPR,HIPAA" \
670
- --license-audit \
671
- --data-governance \
672
- --audit-trail \
673
- --generate-attestation
674
- ```
675
-
676
- ---
677
-
678
- ## GitHub Actions Integration
679
-
680
- ### Complete Release Workflow
681
- ```yaml
682
- # .github/workflows/release.yml
683
- name: Intelligent Release Workflow
684
- on:
685
- push:
686
- tags: ['v*']
687
-
688
- jobs:
689
- release-orchestration:
690
- runs-on: ubuntu-latest
691
- permissions:
692
- contents: write
693
- packages: write
694
- issues: write
695
-
696
- steps:
697
- - name: Checkout Repository
698
- uses: actions/checkout@v3
699
- with:
700
- fetch-depth: 0
701
-
702
- - name: Setup Node.js
703
- uses: actions/setup-node@v3
704
- with:
705
- node-version: '20'
706
- cache: 'npm'
707
-
708
- - name: Authenticate GitHub CLI
709
- run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
710
-
711
- - name: Initialize Release Swarm
712
- run: |
713
- # Extract version from tag
714
- RELEASE_TAG=${{ github.ref_name }}
715
- PREV_TAG=$(gh release list --limit 2 --json tagName -q '.[1].tagName')
716
-
717
- # Get merged PRs for changelog
718
- PRS=$(gh pr list --state merged --base main --json number,title,labels,author,mergedAt \
719
- --jq ".[] | select(.mergedAt > \"$(gh release view $PREV_TAG --json publishedAt -q .publishedAt)\")")
720
-
721
- # Get commit history
722
- COMMITS=$(gh api repos/${{ github.repository }}/compare/${PREV_TAG}...HEAD \
723
- --jq '.commits[].commit.message')
724
-
725
- # Initialize swarm coordination
726
- npx claude-flow@alpha swarm init --topology hierarchical
727
-
728
- # Store release context
729
- echo "$PRS" > /tmp/release-prs.json
730
- echo "$COMMITS" > /tmp/release-commits.txt
731
-
732
- - name: Generate Release Changelog
733
- run: |
734
- # Generate intelligent changelog
735
- CHANGELOG=$(npx claude-flow@alpha github changelog \
736
- --prs "$(cat /tmp/release-prs.json)" \
737
- --commits "$(cat /tmp/release-commits.txt)" \
738
- --from $PREV_TAG \
739
- --to $RELEASE_TAG \
740
- --categorize \
741
- --add-migration-guide \
742
- --format markdown)
743
-
744
- echo "$CHANGELOG" > RELEASE_CHANGELOG.md
745
-
746
- - name: Build Release Artifacts
747
- run: |
748
- # Install dependencies
749
- npm ci
750
-
751
- # Run comprehensive validation
752
- npm run lint
753
- npm run typecheck
754
- npm run test:all
755
- npm run build
756
-
757
- # Build platform-specific binaries
758
- npx claude-flow@alpha github release-build \
759
- --platforms "linux,macos,windows" \
760
- --architectures "x64,arm64" \
761
- --parallel
762
-
763
- - name: Security Scan
764
- run: |
765
- # Run security validation
766
- npm audit --audit-level=moderate
767
-
768
- npx claude-flow@alpha github release-security \
769
- --scan-dependencies \
770
- --check-secrets \
771
- --sign-artifacts
772
-
773
- - name: Create GitHub Release
774
- run: |
775
- # Update release with generated changelog
776
- gh release edit ${{ github.ref_name }} \
777
- --notes "$(cat RELEASE_CHANGELOG.md)" \
778
- --draft=false
779
-
780
- # Upload all artifacts
781
- for file in dist/*; do
782
- gh release upload ${{ github.ref_name }} "$file"
783
- done
784
-
785
- - name: Deploy to Package Registries
786
- run: |
787
- # Publish to npm
788
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
789
- npm publish
790
-
791
- # Build and push Docker images
792
- docker build -t ${{ github.repository }}:${{ github.ref_name }} .
793
- docker push ${{ github.repository }}:${{ github.ref_name }}
794
-
795
- - name: Post-Release Validation
796
- run: |
797
- # Run smoke tests
798
- npm run test:smoke
799
-
800
- # Validate deployment
801
- npx claude-flow@alpha github release-validate \
802
- --version ${{ github.ref_name }} \
803
- --smoke-tests \
804
- --health-checks
805
-
806
- - name: Create Release Announcement
807
- run: |
808
- # Create announcement issue
809
- gh issue create \
810
- --title "🎉 Released ${{ github.ref_name }}" \
811
- --body "$(cat RELEASE_CHANGELOG.md)" \
812
- --label "announcement,release"
813
-
814
- # Notify via discussion
815
- gh api repos/${{ github.repository }}/discussions \
816
- --method POST \
817
- -f title="Release ${{ github.ref_name }} Now Available" \
818
- -f body="$(cat RELEASE_CHANGELOG.md)" \
819
- -f category_id="$(gh api repos/${{ github.repository }}/discussions/categories --jq '.[] | select(.slug=="announcements") | .id')"
820
-
821
- - name: Monitor Release
822
- run: |
823
- # Start release monitoring
824
- npx claude-flow@alpha github release-monitor \
825
- --version ${{ github.ref_name }} \
826
- --duration 1h \
827
- --alert-on-errors &
828
- ```
829
-
830
- ### Hotfix Workflow
831
- ```yaml
832
- # .github/workflows/hotfix.yml
833
- name: Emergency Hotfix Workflow
834
- on:
835
- issues:
836
- types: [labeled]
837
-
838
- jobs:
839
- emergency-hotfix:
840
- if: contains(github.event.issue.labels.*.name, 'critical-hotfix')
841
- runs-on: ubuntu-latest
842
-
843
- steps:
844
- - name: Create Hotfix Branch
845
- run: |
846
- LAST_STABLE=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
847
- HOTFIX_VERSION=$(echo $LAST_STABLE | awk -F. '{print $1"."$2"."$3+1}')
848
-
849
- git checkout -b hotfix/$HOTFIX_VERSION $LAST_STABLE
850
-
851
- - name: Fast-Track Testing
852
- run: |
853
- npm ci
854
- npm run test:critical
855
- npm run build
856
-
857
- - name: Emergency Release
858
- run: |
859
- npx claude-flow@alpha github emergency-release \
860
- --issue ${{ github.event.issue.number }} \
861
- --severity critical \
862
- --fast-track \
863
- --notify-all
864
- ```
865
-
866
- ---
867
-
868
- ## Best Practices & Patterns
869
-
870
- ### Release Planning Guidelines
871
-
872
- #### 1. Regular Release Cadence
873
- - **Weekly**: Patch releases with bug fixes
874
- - **Bi-weekly**: Minor releases with features
875
- - **Quarterly**: Major releases with breaking changes
876
- - **On-demand**: Hotfixes for critical issues
877
-
878
- #### 2. Feature Freeze Strategy
879
- - Code freeze 3 days before release
880
- - Only critical bug fixes allowed
881
- - Beta testing period for major releases
882
- - Stakeholder communication plan
883
-
884
- #### 3. Version Management Rules
885
- - Strict semantic versioning compliance
886
- - Breaking changes only in major versions
887
- - Deprecation warnings one minor version ahead
888
- - Cross-package version synchronization
889
-
890
- ### Automation Recommendations
891
-
892
- #### 1. Comprehensive CI/CD Pipeline
893
- - Automated testing at every stage
894
- - Security scanning before release
895
- - Performance benchmarking
896
- - Documentation generation
897
-
898
- #### 2. Progressive Deployment
899
- - Canary releases for early detection
900
- - Staged rollouts with monitoring
901
- - Automated health checks
902
- - Quick rollback mechanisms
903
-
904
- #### 3. Monitoring & Observability
905
- - Real-time error tracking
906
- - Performance metrics collection
907
- - User adoption analytics
908
- - Feedback collection automation
909
-
910
- ### Documentation Standards
911
-
912
- #### 1. Changelog Requirements
913
- - Categorized changes by type
914
- - Breaking changes highlighted
915
- - Migration guides for major versions
916
- - Contributor attribution
917
-
918
- #### 2. Release Notes Content
919
- - High-level feature summaries
920
- - Detailed technical changes
921
- - Upgrade instructions
922
- - Known issues and limitations
923
-
924
- #### 3. API Documentation
925
- - Automated API doc generation
926
- - Example code updates
927
- - Deprecation notices
928
- - Version compatibility matrix
929
-
930
- ---
931
-
932
- ## Troubleshooting & Common Issues
933
-
934
- ### Issue: Failed Release Build
935
- ```bash
936
- # Debug build failures
937
- npx claude-flow@alpha diagnostic-run \
938
- --component build \
939
- --verbose
940
-
941
- # Retry with isolated environment
942
- docker run --rm -v $(pwd):/app node:20 \
943
- bash -c "cd /app && npm ci && npm run build"
944
- ```
945
-
946
- ### Issue: Test Failures in CI
947
- ```bash
948
- # Run tests with detailed output
949
- npm run test -- --verbose --coverage
950
-
951
- # Check for environment-specific issues
952
- npm run test:ci
953
-
954
- # Compare local vs CI environment
955
- npx claude-flow@alpha github compat-test \
956
- --environments "local,ci" \
957
- --compare
958
- ```
959
-
960
- ### Issue: Deployment Rollback Needed
961
- ```bash
962
- # Immediate rollback to previous version
963
- npx claude-flow@alpha github rollback \
964
- --to-version v1.9.9 \
965
- --reason "Critical bug in v2.0.0" \
966
- --preserve-data \
967
- --notify-users
968
-
969
- # Investigate rollback cause
970
- npx claude-flow@alpha github release-analytics \
971
- --version v2.0.0 \
972
- --identify-issues
973
- ```
974
-
975
- ### Issue: Version Conflicts
976
- ```bash
977
- # Check and resolve version conflicts
978
- npx claude-flow@alpha github release-validate \
979
- --checks version-conflicts \
980
- --auto-resolve
981
-
982
- # Align multi-package versions
983
- npx claude-flow@alpha github version-sync \
984
- --packages "package-a,package-b" \
985
- --strategy semantic
986
- ```
987
-
988
- ---
989
-
990
- ## Performance Metrics & Benchmarks
991
-
992
- ### Expected Performance
993
- - **Release Planning**: < 2 minutes
994
- - **Build Process**: 3-8 minutes (varies by project)
995
- - **Test Execution**: 5-15 minutes
996
- - **Deployment**: 2-5 minutes per target
997
- - **Complete Pipeline**: 15-30 minutes
998
-
999
- ### Optimization Tips
1000
- 1. **Parallel Execution**: Use swarm coordination for concurrent tasks
1001
- 2. **Caching**: Enable build and dependency caching
1002
- 3. **Incremental Builds**: Only rebuild changed components
1003
- 4. **Test Optimization**: Run critical tests first, full suite in parallel
1004
-
1005
- ### Success Metrics
1006
- - **Release Frequency**: Target weekly minor releases
1007
- - **Lead Time**: < 2 hours from commit to production
1008
- - **Failure Rate**: < 2% of releases require rollback
1009
- - **MTTR**: < 30 minutes for critical hotfixes
1010
-
1011
- ---
1012
-
1013
- ## Related Resources
1014
-
1015
- ### Documentation
1016
- - [GitHub CLI Documentation](https://cli.github.com/manual/)
1017
- - [Semantic Versioning Spec](https://semver.org/)
1018
- - [Claude Flow SPARC Guide](../../docs/sparc-methodology.md)
1019
- - [Swarm Coordination Patterns](../../docs/swarm-patterns.md)
1020
-
1021
- ### Related Skills
1022
- - **github-pr-management**: PR review and merge automation
1023
- - **github-workflow-automation**: CI/CD workflow orchestration
1024
- - **multi-repo-coordination**: Cross-repository synchronization
1025
- - **deployment-orchestration**: Advanced deployment strategies
1026
-
1027
- ### Support & Community
1028
- - Issues: https://github.com/eric-cielo/moflo/issues
1029
- - Discussions: https://github.com/eric-cielo/moflo/discussions
1030
- - Documentation: https://claude-flow.dev/docs
1031
-
1032
- ---
1033
-
1034
- ## Appendix: Release Checklist Template
1035
-
1036
- ### Pre-Release Checklist
1037
- - [ ] Version numbers updated across all packages
1038
- - [ ] Changelog generated and reviewed
1039
- - [ ] Breaking changes documented with migration guide
1040
- - [ ] All tests passing (unit, integration, e2e)
1041
- - [ ] Security scan completed with no critical issues
1042
- - [ ] Performance benchmarks within acceptable range
1043
- - [ ] Documentation updated (API docs, README, examples)
1044
- - [ ] Release notes drafted and reviewed
1045
- - [ ] Stakeholders notified of upcoming release
1046
- - [ ] Deployment plan reviewed and approved
1047
-
1048
- ### Release Checklist
1049
- - [ ] Release branch created and validated
1050
- - [ ] CI/CD pipeline completed successfully
1051
- - [ ] Artifacts built and verified
1052
- - [ ] GitHub release created with proper notes
1053
- - [ ] Packages published to registries
1054
- - [ ] Docker images pushed to container registry
1055
- - [ ] Deployment to staging successful
1056
- - [ ] Smoke tests passing in staging
1057
- - [ ] Production deployment completed
1058
- - [ ] Health checks passing
1059
-
1060
- ### Post-Release Checklist
1061
- - [ ] Release announcement published
1062
- - [ ] Monitoring dashboards reviewed
1063
- - [ ] Error rates within normal range
1064
- - [ ] Performance metrics stable
1065
- - [ ] User feedback collected
1066
- - [ ] Documentation links verified
1067
- - [ ] Release retrospective scheduled
1068
- - [ ] Next release planning initiated
1069
-
1070
- ---
1071
-
1072
- **Version**: 2.0.0
1073
- **Last Updated**: 2025-10-19
1074
- **Maintained By**: Claude Flow Team