agents-united 0.5.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 (236) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +673 -0
  3. package/dist/cli.d.ts +5 -0
  4. package/dist/cli.js +4789 -0
  5. package/dist/cli.js.map +1 -0
  6. package/package.json +77 -0
  7. package/registry/agents/orchestrator-business.md +188 -0
  8. package/registry/agents/orchestrator-design.md +168 -0
  9. package/registry/agents/orchestrator-engineering.md +183 -0
  10. package/registry/agents/orchestrator-marketing.md +228 -0
  11. package/registry/agents/orchestrator-research.md +196 -0
  12. package/registry/agents/orchestrator-security.md +190 -0
  13. package/registry/agents/orchestrator-system-architecture.md +171 -0
  14. package/registry/agents/orchestrator-universal.md +168 -0
  15. package/registry/agents/subagent-accessibility-lead.md +47 -0
  16. package/registry/agents/subagent-ai-model-architect.md +97 -0
  17. package/registry/agents/subagent-android-architect.md +47 -0
  18. package/registry/agents/subagent-appsec-penetration-tester.md +189 -0
  19. package/registry/agents/subagent-backend-architect.md +360 -0
  20. package/registry/agents/subagent-business-panel-experts.md +126 -0
  21. package/registry/agents/subagent-cloud-infrastructure-architect.md +126 -0
  22. package/registry/agents/subagent-cloud-security-architect.md +221 -0
  23. package/registry/agents/subagent-code-reviewer.md +193 -0
  24. package/registry/agents/subagent-compliance-grc-specialist.md +147 -0
  25. package/registry/agents/subagent-cross-platform-specialist.md +47 -0
  26. package/registry/agents/subagent-data-engineer.md +46 -0
  27. package/registry/agents/subagent-database-administrator.md +141 -0
  28. package/registry/agents/subagent-deep-research.md +94 -0
  29. package/registry/agents/subagent-design-ops-lead.md +121 -0
  30. package/registry/agents/subagent-design-researcher.md +133 -0
  31. package/registry/agents/subagent-design-systems-architect.md +134 -0
  32. package/registry/agents/subagent-designer-toolkit-expert.md +363 -0
  33. package/registry/agents/subagent-devops-engineer.md +423 -0
  34. package/registry/agents/subagent-distributed-systems-architect.md +47 -0
  35. package/registry/agents/subagent-e2e-tester.md +60 -0
  36. package/registry/agents/subagent-financial-analyst.md +119 -0
  37. package/registry/agents/subagent-finops-cost-engineer.md +98 -0
  38. package/registry/agents/subagent-frontend-architect.md +368 -0
  39. package/registry/agents/subagent-interaction-designer.md +302 -0
  40. package/registry/agents/subagent-ios-architect.md +46 -0
  41. package/registry/agents/subagent-legal-contract-analyst.md +108 -0
  42. package/registry/agents/subagent-lifecycle-email-specialist.md +46 -0
  43. package/registry/agents/subagent-literature-patent-analyst.md +78 -0
  44. package/registry/agents/subagent-market-intelligence-analyst.md +110 -0
  45. package/registry/agents/subagent-marketing-campaign-specialist.md +80 -0
  46. package/registry/agents/subagent-marketing-content-strategist.md +184 -0
  47. package/registry/agents/subagent-marketing-conversion-specialist.md +79 -0
  48. package/registry/agents/subagent-marketing-creative-designer.md +93 -0
  49. package/registry/agents/subagent-marketing-growth-strategist.md +137 -0
  50. package/registry/agents/subagent-ml-platform-engineer.md +95 -0
  51. package/registry/agents/subagent-operations-strategist.md +85 -0
  52. package/registry/agents/subagent-paid-acquisition-specialist.md +47 -0
  53. package/registry/agents/subagent-plg-strategist.md +46 -0
  54. package/registry/agents/subagent-prototype-tester.md +140 -0
  55. package/registry/agents/subagent-qa-automation-lead.md +63 -0
  56. package/registry/agents/subagent-repo-index.md +180 -0
  57. package/registry/agents/subagent-security-engineer.md +134 -0
  58. package/registry/agents/subagent-seo-specialist.md +46 -0
  59. package/registry/agents/subagent-socratic-mentor.md +105 -0
  60. package/registry/agents/subagent-statistical-analyst.md +132 -0
  61. package/registry/agents/subagent-sysops-sre-lead.md +84 -0
  62. package/registry/agents/subagent-system-architect.md +122 -0
  63. package/registry/agents/subagent-ui-designer.md +149 -0
  64. package/registry/agents/subagent-ux-strategist.md +88 -0
  65. package/registry/bundles.json +1386 -0
  66. package/registry/rules/AGENTS.md +41 -0
  67. package/registry/rules/CLAUDE.md +12 -0
  68. package/registry/rules/CURSOR.md +12 -0
  69. package/registry/rules/GEMINI.md +41 -0
  70. package/registry/rules/clean-code-and-architecture.md +25 -0
  71. package/registry/rules/domain-modeling-and-adr.md +27 -0
  72. package/registry/rules/git-guardrails.md +19 -0
  73. package/registry/rules/multi-agent-coordination.md +33 -0
  74. package/registry/rules/quality-aesthetics-accessibility.md +29 -0
  75. package/registry/rules/skill-attribution.md +27 -0
  76. package/registry/rules/test-driven-development.md +41 -0
  77. package/registry/skills/ab-test-setup/SKILL.md +150 -0
  78. package/registry/skills/accessibility-audit/SKILL.md +150 -0
  79. package/registry/skills/ad-attribution-modeling/SKILL.md +206 -0
  80. package/registry/skills/ad-creative-design/SKILL.md +27 -0
  81. package/registry/skills/ai-prototype-refactoring/SKILL.md +29 -0
  82. package/registry/skills/architecture-design/SKILL.md +141 -0
  83. package/registry/skills/azure-infrastructure-bicep/SKILL.md +28 -0
  84. package/registry/skills/backend-api-design/SKILL.md +151 -0
  85. package/registry/skills/chaos-engineering/SKILL.md +41 -0
  86. package/registry/skills/churn-prevention-playbook/SKILL.md +181 -0
  87. package/registry/skills/ci-cd-pipeline-automation/SKILL.md +40 -0
  88. package/registry/skills/clickable-prototype-spec/SKILL.md +150 -0
  89. package/registry/skills/code-refactoring/SKILL.md +135 -0
  90. package/registry/skills/component-library-management/SKILL.md +150 -0
  91. package/registry/skills/component-playground-setup/SKILL.md +150 -0
  92. package/registry/skills/content-calendar-strategy/SKILL.md +150 -0
  93. package/registry/skills/conversion-funnel-optimization/SKILL.md +150 -0
  94. package/registry/skills/copywriting-frameworks/SKILL.md +150 -0
  95. package/registry/skills/database-design/SKILL.md +135 -0
  96. package/registry/skills/dependency-management/SKILL.md +142 -0
  97. package/registry/skills/design-handoff-spec/SKILL.md +150 -0
  98. package/registry/skills/design-ops-workflow/SKILL.md +150 -0
  99. package/registry/skills/design-system-governance/SKILL.md +150 -0
  100. package/registry/skills/design-system-tokens/SKILL.md +150 -0
  101. package/registry/skills/design-tokens-management/SKILL.md +150 -0
  102. package/registry/skills/design-version-control/SKILL.md +150 -0
  103. package/registry/skills/diagnosing-bugs/SKILL.md +45 -0
  104. package/registry/skills/docker-deployment/SKILL.md +144 -0
  105. package/registry/skills/domain-modeling/SKILL.md +52 -0
  106. package/registry/skills/email-drip-sequences/SKILL.md +181 -0
  107. package/registry/skills/email-marketing-automation/SKILL.md +150 -0
  108. package/registry/skills/finishing-a-development-branch/SKILL.md +132 -0
  109. package/registry/skills/frontend-component-design/SKILL.md +153 -0
  110. package/registry/skills/git-guardrails/SKILL.md +41 -0
  111. package/registry/skills/google-ads-optimization/SKILL.md +27 -0
  112. package/registry/skills/graphql-schema-design/SKILL.md +146 -0
  113. package/registry/skills/grill-me/SKILL.md +57 -0
  114. package/registry/skills/grill-with-docs/SKILL.md +84 -0
  115. package/registry/skills/growth-experiment-design/SKILL.md +150 -0
  116. package/registry/skills/handoff/SKILL.md +44 -0
  117. package/registry/skills/hf-model-evaluation/SKILL.md +84 -0
  118. package/registry/skills/interaction-pattern-library/SKILL.md +150 -0
  119. package/registry/skills/interactive-prototype-builder/SKILL.md +157 -0
  120. package/registry/skills/local-llm-inference/SKILL.md +77 -0
  121. package/registry/skills/maestro-mobile-testing/SKILL.md +40 -0
  122. package/registry/skills/marketing-creative-design/SKILL.md +186 -0
  123. package/registry/skills/mcp-setup/SKILL.md +370 -0
  124. package/registry/skills/meta-ad-creative-testing/SKILL.md +26 -0
  125. package/registry/skills/micro-interaction-design/SKILL.md +150 -0
  126. package/registry/skills/microservices-architecture/SKILL.md +141 -0
  127. package/registry/skills/mobile-android-design/SKILL.md +40 -0
  128. package/registry/skills/mobile-first-design/SKILL.md +150 -0
  129. package/registry/skills/mobile-ios-design/SKILL.md +40 -0
  130. package/registry/skills/mobile-platform-offline-validate/SKILL.md +41 -0
  131. package/registry/skills/modal-serverless-python/SKILL.md +81 -0
  132. package/registry/skills/onboarding-cro/SKILL.md +185 -0
  133. package/registry/skills/paid-acquisition-ppc/SKILL.md +171 -0
  134. package/registry/skills/performance-optimization/SKILL.md +141 -0
  135. package/registry/skills/playwright-best-practices/SKILL.md +39 -0
  136. package/registry/skills/product-launch-playbook/SKILL.md +150 -0
  137. package/registry/skills/programmatic-seo/SKILL.md +213 -0
  138. package/registry/skills/rag-vector-pipeline/SKILL.md +84 -0
  139. package/registry/skills/react-best-practices/SKILL.md +40 -0
  140. package/registry/skills/receiving-code-review/SKILL.md +130 -0
  141. package/registry/skills/replicate-model-inference/SKILL.md +76 -0
  142. package/registry/skills/requesting-code-review/SKILL.md +137 -0
  143. package/registry/skills/responsive-design-audit/SKILL.md +150 -0
  144. package/registry/skills/runpod-gpu-orchestration/SKILL.md +85 -0
  145. package/registry/skills/schema-markup-strategy/SKILL.md +194 -0
  146. package/registry/skills/security-audit/SKILL.md +139 -0
  147. package/registry/skills/seo-audit/SKILL.md +150 -0
  148. package/registry/skills/signup-flow-cro/SKILL.md +150 -0
  149. package/registry/skills/social-media-campaign/SKILL.md +150 -0
  150. package/registry/skills/state-driven-ui-animation/SKILL.md +150 -0
  151. package/registry/skills/subagent-driven-development/SKILL.md +135 -0
  152. package/registry/skills/supabase-backend-architecture/SKILL.md +28 -0
  153. package/registry/skills/systematic-debugging/SKILL.md +138 -0
  154. package/registry/skills/technical-documentation/SKILL.md +136 -0
  155. package/registry/skills/technical-seo-audit/SKILL.md +27 -0
  156. package/registry/skills/telemetry-monitoring/SKILL.md +40 -0
  157. package/registry/skills/test-driven-development/SKILL.md +135 -0
  158. package/registry/skills/to-spec/SKILL.md +48 -0
  159. package/registry/skills/to-tickets/SKILL.md +47 -0
  160. package/registry/skills/turso-distributed-sqlite/SKILL.md +27 -0
  161. package/registry/skills/ui-component-spec/SKILL.md +150 -0
  162. package/registry/skills/usability-testing-protocol/SKILL.md +150 -0
  163. package/registry/skills/user-flow-mapping/SKILL.md +150 -0
  164. package/registry/skills/user-journey-mapping/SKILL.md +150 -0
  165. package/registry/skills/vector-database-design/SKILL.md +84 -0
  166. package/registry/skills/vercel-deploy-best-practices/SKILL.md +28 -0
  167. package/registry/skills/viral-referral-loops/SKILL.md +209 -0
  168. package/registry/workflows/workflow-agency-ad-creative-sprint.md +50 -0
  169. package/registry/workflows/workflow-agency-brand-design-system.md +50 -0
  170. package/registry/workflows/workflow-agency-client-pitch-proposal.md +50 -0
  171. package/registry/workflows/workflow-agency-cro-funnel-teardown.md +50 -0
  172. package/registry/workflows/workflow-agency-full-campaign.md +58 -0
  173. package/registry/workflows/workflow-agency-seo-content-engine.md +50 -0
  174. package/registry/workflows/workflow-analyze.md +60 -0
  175. package/registry/workflows/workflow-api-contract-design.md +48 -0
  176. package/registry/workflows/workflow-app-store-release.md +48 -0
  177. package/registry/workflows/workflow-brainstorm.md +60 -0
  178. package/registry/workflows/workflow-build.md +60 -0
  179. package/registry/workflows/workflow-business-panel.md +60 -0
  180. package/registry/workflows/workflow-cleanup.md +60 -0
  181. package/registry/workflows/workflow-deploy-staging.md +49 -0
  182. package/registry/workflows/workflow-design-code.md +60 -0
  183. package/registry/workflows/workflow-design-ops--handoff.md +60 -0
  184. package/registry/workflows/workflow-design-ops--plan-sprint.md +60 -0
  185. package/registry/workflows/workflow-design-ops--setup-workflow.md +60 -0
  186. package/registry/workflows/workflow-design-orchestrate.md +60 -0
  187. package/registry/workflows/workflow-design-systems--audit-system.md +60 -0
  188. package/registry/workflows/workflow-design-systems--create-component.md +60 -0
  189. package/registry/workflows/workflow-design-systems--tokenize.md +60 -0
  190. package/registry/workflows/workflow-diagnose.md +45 -0
  191. package/registry/workflows/workflow-e2e-testing.md +49 -0
  192. package/registry/workflows/workflow-email-drip-sequence.md +65 -0
  193. package/registry/workflows/workflow-estimate.md +60 -0
  194. package/registry/workflows/workflow-explain.md +60 -0
  195. package/registry/workflows/workflow-frontend-audit.md +49 -0
  196. package/registry/workflows/workflow-git.md +60 -0
  197. package/registry/workflows/workflow-grill.md +51 -0
  198. package/registry/workflows/workflow-implement.md +61 -0
  199. package/registry/workflows/workflow-incident-triage.md +49 -0
  200. package/registry/workflows/workflow-interaction-design--design-interaction.md +60 -0
  201. package/registry/workflows/workflow-interaction-design--error-flow.md +60 -0
  202. package/registry/workflows/workflow-interaction-design--map-states.md +60 -0
  203. package/registry/workflows/workflow-marketing-audit.md +60 -0
  204. package/registry/workflows/workflow-marketing-campaign-builder.md +60 -0
  205. package/registry/workflows/workflow-marketing-content-pipeline.md +60 -0
  206. package/registry/workflows/workflow-marketing-growth-experiment.md +60 -0
  207. package/registry/workflows/workflow-marketing-launch.md +60 -0
  208. package/registry/workflows/workflow-marketing-panel.md +60 -0
  209. package/registry/workflows/workflow-ml-eval.md +51 -0
  210. package/registry/workflows/workflow-mobile-build.md +49 -0
  211. package/registry/workflows/workflow-onboarding-funnel-cro.md +65 -0
  212. package/registry/workflows/workflow-paid-acquisition-campaign.md +65 -0
  213. package/registry/workflows/workflow-paid-campaign-launch.md +47 -0
  214. package/registry/workflows/workflow-plan.md +60 -0
  215. package/registry/workflows/workflow-prototyping-testing--evaluate.md +60 -0
  216. package/registry/workflows/workflow-prototyping-testing--experiment.md +60 -0
  217. package/registry/workflows/workflow-prototyping-testing--prototype-plan.md +60 -0
  218. package/registry/workflows/workflow-prototyping-testing--test-plan.md +60 -0
  219. package/registry/workflows/workflow-rag-pipeline-deploy.md +53 -0
  220. package/registry/workflows/workflow-recommend.md +60 -0
  221. package/registry/workflows/workflow-research.md +60 -0
  222. package/registry/workflows/workflow-review.md +60 -0
  223. package/registry/workflows/workflow-seo-audit-pipeline.md +47 -0
  224. package/registry/workflows/workflow-seo-content-pipeline.md +65 -0
  225. package/registry/workflows/workflow-serverless-gpu-deploy.md +52 -0
  226. package/registry/workflows/workflow-spec-panel.md +60 -0
  227. package/registry/workflows/workflow-spec.md +44 -0
  228. package/registry/workflows/workflow-test.md +60 -0
  229. package/registry/workflows/workflow-troubleshoot.md +60 -0
  230. package/registry/workflows/workflow-ui-design--color-palette.md +60 -0
  231. package/registry/workflows/workflow-ui-design--design-screen.md +60 -0
  232. package/registry/workflows/workflow-ui-design--responsive-audit.md +60 -0
  233. package/registry/workflows/workflow-ui-design--type-system.md +60 -0
  234. package/registry/workflows/workflow-ux-strategy--benchmark.md +60 -0
  235. package/registry/workflows/workflow-ux-strategy--frame-problem.md +60 -0
  236. package/registry/workflows/workflow-ux-strategy--strategize.md +60 -0
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: docker-deployment
3
+ description: Production-grade Docker Deployment playbook for minimal footprint,
4
+ rootless execution, and multi-stage builds.
5
+ metadata:
6
+ author: agents-united
7
+ version: 2.0.0
8
+ icon: 🐳
9
+ disable-slash-command: true
10
+ ---
11
+
12
+ # Containerization, Dockerfile Hardening & Multi-Stage Deployment
13
+
14
+ ## Overview & Purpose
15
+ The Containerization, Dockerfile Hardening & Multi-Stage Deployment skill provides a deterministic, battle-tested framework for executing docker-deployment processes across the Agents United multi-agent ecosystem.
16
+
17
+ Following this skill ensures high quality, zero-regression execution, rigorous testing gates, and seamless cross-functional team alignment.
18
+
19
+ ## Execution Triggers & Prerequisites
20
+ ### Execution Triggers
21
+ - Direct request or workflow step invoking docker-deployment.
22
+ - Auditing, implementing, or standardizing docker-deployment procedures.
23
+ - Addressing technical debt, architectural reviews, or production readiness gates.
24
+ - Preparing pull requests or automated release validations.
25
+
26
+ ### Prerequisites
27
+ - Active project repository workspace with version control configured.
28
+ - Operational testing, typechecking, and build toolchains.
29
+ - Domain requirements, architectural constraints, or user stories defined.
30
+ - Clean git working tree before beginning execution.
31
+
32
+ ## Input & Output Requirements
33
+ ### Inputs
34
+ | Parameter | Type | Required | Description |
35
+ |---|---|---|---|
36
+ | `target_scope` | String | Yes | Target module, service, component, or file path |
37
+ | `config` | Object | Optional | Specific domain configurations, thresholds, and options |
38
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts and reports |
39
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation and high test coverage |
40
+
41
+ ### Outputs
42
+ | Artifact | Path / Format | Description |
43
+ |---|---|---|
44
+ | Specification Document | `docs/docker-deployment/spec.md` | Full technical specification and architectural plan |
45
+ | Implementation Files | `src/docker-deployment/*` | Production-ready source code, tests, and configurations |
46
+ | Execution Report | `reports/docker-deployment/summary.json` | Verification metrics, test results, and audit summary |
47
+
48
+ ## Step-by-Step Execution Runbook
49
+
50
+ ### Phase 1: Application Workload & Architecture Profiling
51
+ 1. Analyze application runtime requirements: Node.js version, native C++ bindings, static assets.
52
+ 2. Define required environment variables, secret mounts, and volume persistent storage paths.
53
+ 3. Establish container memory limits, CPU quotas, and networking port requirements.
54
+ 4. Select minimal base image: node:24-alpine or distroless/nodejs24-debian12.
55
+ 5. Draft containerization strategy document.
56
+
57
+ ### Phase 2: Multi-Stage Dockerfile Construction & Hardening
58
+ 1. Structure multi-stage build separating compile dependencies from final production runtime.
59
+ 2. Optimize Docker layer caching: copy package*.json and run npm ci before copying source code.
60
+ 3. Implement non-root user execution (USER appuser) to prevent container breakout exploits.
61
+ 4. Add .dockerignore file excluding .git, node_modules, .env, and test artifacts.
62
+ 5. Configure explicit HEALTHCHECK directive testing HTTP endpoint readiness.
63
+
64
+ ### Phase 3: Image Build, Linting & Vulnerability Scanning
65
+ 1. Lint Dockerfile using Hadolint to catch syntax and security anti-patterns.
66
+ 2. Build container image: docker build -t app:latest .
67
+ 3. Scan image for CVEs using Trivy / Docker Scout: trivy image app:latest.
68
+ 4. Assert zero critical or high vulnerabilities in base OS and application packages.
69
+ 5. Verify final image size is minimal (<150MB for Node.js workloads).
70
+
71
+ ### Phase 4: Local Container Testing & Compose Verification
72
+ 1. Launch container in isolated bridge network using docker run or docker compose up.
73
+ 2. Execute HTTP smoke tests against healthcheck and API endpoints.
74
+ 3. Verify graceful shutdown handling on SIGTERM and SIGINT signals.
75
+ 4. Inspect container stdout/stderr logs to ensure structured JSON output formatting.
76
+ 5. Confirm volume mount persistence across container restarts.
77
+
78
+ ### Phase 5: Registry Publishing & Orchestrator Deployment
79
+ 1. Tag image with semantic version and git commit SHA: app:v2.0.0-sha123.
80
+ 2. Push image to container registry (ECR, GCR, Docker Hub) over TLS.
81
+ 3. Update Kubernetes deployment manifests / ECS task definitions with immutable image digest.
82
+ 4. Execute rolling deployment with automated rollback on healthcheck failure.
83
+ 5. Verify production workload stability.
84
+
85
+ ## Code & Configuration Exemplars
86
+
87
+ ### Exemplar 1: Containerization, Dockerfile Hardening & Multi-Stage Deployment Configuration & Specification
88
+ ```yaml
89
+ # Multi-stage hardened Dockerfile
90
+ FROM node:24-alpine AS builder
91
+ WORKDIR /app
92
+ COPY package*.json ./
93
+ RUN npm ci
94
+ COPY . .
95
+ RUN npm run build
96
+
97
+ FROM node:24-alpine AS runner
98
+ WORKDIR /app
99
+ ENV NODE_ENV=production
100
+ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
101
+ COPY package*.json ./
102
+ RUN npm ci --only=production && npm cache clean --force
103
+ COPY --from=builder /app/dist ./dist
104
+ USER appuser
105
+ EXPOSE 3000
106
+ CMD ["node", "dist/index.js"]
107
+ ```
108
+
109
+ ### Exemplar 2: Containerization, Dockerfile Hardening & Multi-Stage Deployment TypeScript Type Contract
110
+ ```typescript
111
+ export interface ContainerSpec {
112
+ imageName: string;
113
+ tag: string;
114
+ baseImage: string;
115
+ multiStage: boolean;
116
+ nonRootUser: boolean;
117
+ exposedPorts: number[];
118
+ healthCheckEndpoint: string;
119
+ }
120
+ ```
121
+
122
+ ## Edge Cases & Error Recovery Procedures
123
+
124
+ ### Scenario A: Validation Failure in Containerization, Dockerfile Hardening & Multi-Stage Deployment
125
+ 1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
126
+ 2. **Recovery Protocol**:
127
+ - Step 1: Inspect detailed error log output in test/build terminal.
128
+ - Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
129
+ - Step 3: Implement surgical code fix and re-run verification suite.
130
+
131
+ ### Scenario B: Missing or Incompatible Dependency
132
+ 1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
133
+ 2. **Recovery Protocol**:
134
+ - Step 1: Verify `package.json` engine requirements and local environment versions.
135
+ - Step 2: Install required peer dependencies cleanly with lockfile sync.
136
+ - Step 3: Resume runbook from Phase 1.
137
+
138
+ ## Verification & Validation Checklist
139
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
140
+ - [ ] All 7 mandatory sections present with explicit headers.
141
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
142
+ - [ ] Code exemplars provided with valid syntax fencing.
143
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
144
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: domain-modeling
3
+ description: Build and sharpen project domain terminology, entity relationships,
4
+ and ubiquitous language documented in CONTEXT.md.
5
+ metadata:
6
+ author: Matt Pocock (mattpocock/skills)
7
+ version: 1.0.0
8
+ source: https://github.com/mattpocock/skills
9
+ icon: 🏛️
10
+ ---
11
+
12
+ # Domain Modeling & Ubiquitous Language
13
+
14
+ ## Overview & Purpose
15
+ `domain-modeling` builds a shared vocabulary between human developers and AI orchestrators. By recording domain entities, terminology, and key domain rules in `CONTEXT.md`, agents can communicate with precision, reducing context bloat and misunderstandings.
16
+
17
+ ## Execution Triggers & Prerequisites
18
+ ### Execution Triggers
19
+ - Introduction of new domain concepts, data models, or business logic.
20
+ - Agent output using verbose or inconsistent terminology.
21
+
22
+ ### Prerequisites
23
+ - Access to `CONTEXT.md` in repository root.
24
+
25
+ ## Input & Output Requirements
26
+ ### Inputs
27
+ | Parameter | Type | Required | Description |
28
+ |---|---|---|---|
29
+ | `terms` | Array | Yes | List of terms, entities, or rules to define or refine |
30
+
31
+ ### Outputs
32
+ | Artifact | Path / Format | Description |
33
+ |---|---|---|
34
+ | Domain Specification | `CONTEXT.md` | Single source of truth for domain vocabulary |
35
+
36
+ ## Step-by-Step Execution Runbook
37
+
38
+ ### Phase 1 — Term Extraction
39
+ 1. Extract candidate terms from user prompts, design docs, or existing code.
40
+ 2. Identify ambiguous words that have multiple meanings across sub-domains.
41
+
42
+ ### Phase 2 — Definition & Boundary Mapping
43
+ 1. Formulate clear 1-to-2 sentence definitions for each domain primitive.
44
+ 2. Note explicit terms to avoid (anti-patterns / deprecated jargon).
45
+
46
+ ### Phase 3 — CONTEXT.md Sync
47
+ 1. Append or update section in `CONTEXT.md`.
48
+ 2. Verify formatting matches repository conventions.
49
+
50
+ ## Verification & Validation Checklist
51
+ - [ ] Frontmatter contains author attribution to Matt Pocock.
52
+ - [ ] `CONTEXT.md` updated with concise term definitions.
@@ -0,0 +1,181 @@
1
+ ---
2
+ name: email-drip-sequences
3
+ description: Production-grade Email Drip Sequences playbook for automated
4
+ lifecycle nurturing, behavioral trigger branching, deliverability optimization
5
+ (DKIM/DMARC), and trial-to-paid conversion.
6
+ metadata:
7
+ author: agents-united
8
+ version: 2.0.0
9
+ icon: 💧
10
+ disable-slash-command: true
11
+ ---
12
+
13
+ # Automated Lifecycle Email Drip Sequences & Behavioral Nurturing
14
+
15
+ ## Overview & Purpose
16
+ The Email Drip Sequences skill provides an automated framework for designing, authoring, and deploying multi-stage lifecycle email campaigns.
17
+
18
+ Following this skill structures behavioral trigger sequences (Welcome Onboarding, Feature Adoption Boost, Trial-to-Paid Upgrade, Inactivity Nurture, Abandoned Checkout), dynamic personalization merge tokens, spam filter avoidance, and technical deliverability compliance (SPF, DKIM, DMARC, BIMI, one-click List-Unsubscribe headers).
19
+
20
+ ## Execution Triggers & Prerequisites
21
+ ### Execution Triggers
22
+ - Designing automated onboarding or product education email drip series for new signups.
23
+ - Nurturing free trial users through automated milestones to maximize paid conversion.
24
+ - Re-engaging dormant user accounts prior to churn.
25
+ - Auditing email deliverability to resolve inboxing issues and spam complaints.
26
+
27
+ ### Prerequisites
28
+ - Email Service Provider (ESP) API configured (Resend, SendGrid, Postmark, Customer.io).
29
+ - Verified sending domain with configured SPF, DKIM, and DMARC DNS records.
30
+ - Responsive HTML / React Email template components.
31
+ - Clean git working directory.
32
+
33
+ ## Input & Output Requirements
34
+ ### Inputs
35
+ | Parameter | Type | Required | Description |
36
+ |---|---|---|---|
37
+ | `sequence_type` | String | Yes | `welcome_onboarding`, `trial_conversion`, `feature_boost`, `winback` |
38
+ | `sending_domain` | String | Yes | Authenticated sending domain (e.g. `mail.example.com`) |
39
+ | `cadence_schedule` | Array<Object> | Yes | Step delay intervals (e.g. Day 0, Day 2, Day 5, Day 10) |
40
+ | `behavioral_triggers`| Array<Object> | Optional | Conditional branches based on user product activity |
41
+ | `template_engine` | String | Optional | `react-email`, `handlebars`, `mjml` |
42
+
43
+ ### Outputs
44
+ | Artifact | Path / Format | Description |
45
+ |---|---|---|
46
+ | Sequence Flowchart Spec | `docs/email-drip-sequences/sequence-spec.md` | Cadence timing, branching tree, and copy brief |
47
+ | Email Templates | `src/emails/templates/*.tsx` | Responsive React Email components |
48
+ | Deliverability Report | `reports/email-drip-sequences/deliverability.json` | DKIM, SPF, DMARC, and spam score audit results |
49
+
50
+ ## Step-by-Step Execution Runbook
51
+
52
+ ### Phase 1: Lifecycle Stage Mapping & Behavioral Trigger Logic Design
53
+ 1. Map customer lifecycle journey into discrete communication stages (Welcome, Activation, Upgrade, Retention).
54
+ 2. Define event triggers (e.g. `user_signed_up`, `first_project_created`, `trial_day_10_no_payment`).
55
+ 3. Formulate branching rules: if user activates in product on Day 1, bypass generic setup emails and send advanced power-user tips.
56
+ 4. Establish sequence exit conditions: instantly cancel onboarding drips upon subscription purchase or account deactivation.
57
+
58
+ ### Phase 2: Copywriting, Dynamic Tokenization & React Email Templating
59
+ 1. Author high-converting email copy for each cadence touchpoint:
60
+ - Email 1 (Day 0, Immediate): Welcome + single clear activation CTA.
61
+ - Email 2 (Day 2): Case study / customer spotlight demonstrating tangible ROI.
62
+ - Email 3 (Day 5): Overcoming common setup objections + invitation to live Q&A/office hours.
63
+ - Email 4 (Day 10): Urgent trial expiration notice + personalized upgrade discount.
64
+ 2. Build responsive templates using React Email / MJML ensuring 100% rendering parity across Apple Mail, Gmail, and Outlook.
65
+ 3. Inject dynamic personalization tokens (`{{firstName}}`, `{{workspaceName}}`, `{{daysRemaining}}`) with fallback defaults.
66
+
67
+ ### Phase 3: Delivery Delay & Smart Branching Workflow Automation
68
+ 1. Implement step delay scheduler handling timezone-aware delivery (send at 09:30 AM in recipient's local timezone).
69
+ 2. Configure webhook ingestion pipeline updating user state and triggering real-time branch decisions.
70
+ 3. Add frequency capping: ensure a user never receives more than 1 marketing email in a 24-hour window.
71
+ 4. Integrate unsubscribe event handler to guarantee immediate global suppression list synchronization.
72
+
73
+ ### Phase 4: Technical Deliverability Auditing (DKIM/DMARC/BIMI) & Spam Testing
74
+ 1. Verify DNS records: SPF (`v=spf1 include:... ~all`), DKIM (2048-bit key), and DMARC (`v=DMARC1; p=reject; rua=mailto:...`).
75
+ 2. Include RFC-8058 compliant `List-Unsubscribe: <https://example.com/unsub>, <mailto:unsub@example.com>` and `List-Unsubscribe-Post: List-Unsubscribe=One-Click` headers.
76
+ 3. Run spam filter scanner (Mail-Tester / Litmus) ensuring score >= 9.5/10 with zero spam trigger words.
77
+ 4. Verify all transactional and promotional emails include valid physical mailing address and copyright notice.
78
+
79
+ ### Phase 5: A/B Subject Line Testing & Cohort Engagement Metrics
80
+ 1. Configure automated A/B test on subject lines across initial 20% of cohort before sending winner to remaining 80%.
81
+ 2. Track deliverability metrics: Delivery Rate (>99%), Open Rate (>40%), Click-to-Open Rate (>15%), Unsubscribe Rate (<0.3%).
82
+ 3. Compile sequence performance audit at `reports/email-drip-sequences/deliverability.json`.
83
+ 4. Commit email drip sequence components to repository.
84
+ ```bash
85
+ git add src/emails/ docs/email-drip-sequences/
86
+ git commit -m "feat(email-drip-sequences): implement automated lifecycle email drip engine"
87
+ ```
88
+
89
+ ## Code & Configuration Exemplars
90
+
91
+ ### Exemplar 1: Automated Email Drip Sequence State Machine Specification
92
+ ```json
93
+ {
94
+ "version": "2.0.0",
95
+ "sequenceId": "trial-to-paid-nurture-v1",
96
+ "triggerEvent": "user.trial_started",
97
+ "exitEvents": ["subscription.created", "account.cancelled"],
98
+ "steps": [
99
+ {
100
+ "stepNumber": 1,
101
+ "delayHours": 0,
102
+ "templateId": "welcome-activation",
103
+ "subjectA": "Welcome to Agents United - Let's build your first team",
104
+ "subjectB": "Quick start: Deploy your AI team in 2 minutes"
105
+ },
106
+ {
107
+ "stepNumber": 2,
108
+ "delayHours": 48,
109
+ "templateId": "case-study-showcase",
110
+ "branchCondition": { "userHasCreatedProject": false },
111
+ "subjectA": "How Acme Corp scaled engineering velocity with Agents United"
112
+ },
113
+ {
114
+ "stepNumber": 3,
115
+ "delayHours": 240,
116
+ "templateId": "trial-ending-urgency",
117
+ "subjectA": "Your free trial ends in 48 hours - keep your workflows active"
118
+ }
119
+ ]
120
+ }
121
+ ```
122
+
123
+ ### Exemplar 2: TypeScript React Email Responsive Component
124
+ ```typescript
125
+ import React from 'react';
126
+
127
+ export interface TrialEmailProps {
128
+ firstName: string;
129
+ daysRemaining: number;
130
+ upgradeUrl: string;
131
+ }
132
+
133
+ export function TrialEndingEmail({ firstName, daysRemaining, upgradeUrl }: TrialEmailProps): React.JSX.Element {
134
+ return (
135
+ <div style={{ fontFamily: 'Inter, Arial, sans-serif', maxWidth: '600px', margin: '0 auto', color: '#1E293B' }}>
136
+ <h2 style={{ fontSize: '20px', fontWeight: 700 }}>Hey {firstName || 'there'}, your trial expires in {daysRemaining} days</h2>
137
+ <p style={{ fontSize: '15px', lineHeight: '1.6' }}>
138
+ We hope you’ve enjoyed orchestrating autonomous multi-agent teams. Upgrade today to preserve your active workflows and avoid disruption.
139
+ </p>
140
+ <div style={{ margin: '24px 0' }}>
141
+ <a
142
+ href={upgradeUrl}
143
+ style={{ backgroundColor: '#2563EB', color: '#FFFFFF', padding: '12px 24px', borderRadius: '6px', textDecoration: 'none', fontWeight: 600 }}
144
+ >
145
+ Upgrade Your Plan Now
146
+ </a>
147
+ </div>
148
+ <p style={{ fontSize: '12px', color: '#64748B' }}>
149
+ Agents United Inc. • 100 Innovation Way, Suite 400 • San Francisco, CA 94105<br />
150
+ <a href="https://example.com/unsubscribe" style={{ color: '#64748B' }}>Unsubscribe instantly</a>
151
+ </p>
152
+ </div>
153
+ );
154
+ }
155
+ ```
156
+
157
+ ## Edge Cases & Error Recovery Procedures
158
+
159
+ ### Scenario A: Drip Emails Landing in Gmail Spam / Promotions Folders
160
+ 1. **Diagnosis**: Domain reputation dip or spam filter trigger caused by high link density or unverified DMARC record.
161
+ 2. **Recovery Protocol**:
162
+ - Step 1: Run SPF/DKIM/DMARC diagnostic checker to verify 100% authentication alignment.
163
+ - Step 2: Reduce image-to-text ratio and remove URL redirect shorteners from email body.
164
+ - Step 3: Implement domain warm-up schedule throttling daily send volume (50 -> 100 -> 250 -> 500 -> 1000).
165
+
166
+ ### Scenario B: User Receives Conflicting Emails Due to Overlapping Trigger Events
167
+ 1. **Diagnosis**: User triggers both "Trial Ending" and "Feature Adoption" drips simultaneously, causing inbox spam.
168
+ 2. **Recovery Protocol**:
169
+ - Step 1: Implement global priority queue suppressing lower-priority educational drips when high-priority transactional/billing drips are active.
170
+ - Step 2: Enforce strict minimum 24-hour spacing window between automated marketing messages.
171
+ - Step 3: Re-evaluate sequence enrollment state before each dispatch worker execution.
172
+
173
+ ## Verification & Validation Checklist
174
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
175
+ - [ ] All 7 mandatory sections present with explicit headers.
176
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
177
+ - [ ] Deliverability standards (SPF, DKIM, DMARC, List-Unsubscribe) documented.
178
+ - [ ] React Email / responsive template component exemplar provided.
179
+ - [ ] Code exemplars provided with valid syntax fencing.
180
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
181
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: email-marketing-automation
3
+ description: Production-grade Email Marketing Automation playbook for design
4
+ operations, UX systems, and growth strategy.
5
+ metadata:
6
+ author: agents-united
7
+ version: 2.0.0
8
+ icon: 📧
9
+ disable-slash-command: true
10
+ ---
11
+
12
+ # Email Marketing Automation
13
+
14
+ ## Overview & Purpose
15
+ The Email Marketing Automation skill provides a deterministic framework for executing email marketing automation processes in modern software products.
16
+
17
+ Following this skill ensures high usability, visual consistency, rapid iteration, and complete cross-functional team alignment.
18
+
19
+ ## Execution Triggers & Prerequisites
20
+ ### Execution Triggers
21
+ - Direct request to execute Email Marketing Automation tasks.
22
+ - Auditing existing product assets or workflows.
23
+ - Standardizing email-marketing-automation procedures across team projects.
24
+ - Preparing design handoffs or growth campaign launches.
25
+
26
+ ### Prerequisites
27
+ - Project workspace configured with design system tokens or component libraries.
28
+ - Target UI design specification or growth experiment hypothesis.
29
+ - Testing and linting tools operational.
30
+ - Clean git working directory.
31
+
32
+ ## Input & Output Requirements
33
+ ### Inputs
34
+ | Parameter | Type | Required | Description |
35
+ |---|---|---|---|
36
+ | `target_scope` | String | Yes | Target UI component, page, or campaign scope |
37
+ | `config` | Object | Optional | Specific parameters and threshold configurations |
38
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts |
39
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation |
40
+
41
+ ### Outputs
42
+ | Artifact | Path / Format | Description |
43
+ |---|---|---|
44
+ | Specification Document | `docs/email-marketing-automation/spec.md` | Full specification and guidelines document |
45
+ | Component / Asset Files | `src/email-marketing-automation/*` | Implemented design tokens, components, or campaign assets |
46
+ | Audit Report | `reports/email-marketing-automation/summary.json` | Health check and audit metric results |
47
+
48
+ ## Step-by-Step Execution Runbook
49
+
50
+ ### Phase 1: Pre-Execution Discovery & Workspace Analysis
51
+ 1. Inspect workspace repository to locate relevant UI components, tokens, or campaign assets.
52
+ ```bash
53
+ find src/ docs/ -maxdepth 3 -type f
54
+ ```
55
+ 2. Analyze domain requirements and classify core UI elements, interaction flows, or growth metrics.
56
+ 3. Establish baseline quality metrics and target benchmarks.
57
+ 4. Verify working tree status to ensure clean git workspace.
58
+ ```bash
59
+ git status --short
60
+ ```
61
+ 5. Formulate initial execution plan.
62
+
63
+ ### Phase 2: Input Contract Validation & Strategy Selection
64
+ 1. Validate input parameters against technical feasibility and design system guidelines.
65
+ 2. Select implementation pattern matching component or campaign architecture.
66
+ 3. Establish verification rules and accessibility / conversion thresholds.
67
+ 4. Formulate atomic step-by-step execution sequence.
68
+ 5. Create temporary working directory if needed.
69
+
70
+ ### Phase 3: Core Step-by-Step Implementation Execution
71
+ 1. Author primary specification document at `docs/email-marketing-automation/spec.md`.
72
+ 2. Generate code, token, or layout implementation files.
73
+ ```bash
74
+ npm run typecheck
75
+ ```
76
+ 3. Apply automated formatting and linting tools.
77
+ 4. Execute unit or visual regression tests.
78
+ ```bash
79
+ npm test
80
+ ```
81
+ 5. Refactor asset structure for optimal performance and maintainability.
82
+
83
+ ### Phase 4: Verification, Testing & Quality Gate Checking
84
+ 1. Run full project verification suite.
85
+ ```bash
86
+ npm run typecheck && npm test && npm run build
87
+ ```
88
+ 2. Verify zero lint errors, type warnings, or broken references.
89
+ 3. Execute CLI health doctor check.
90
+ ```bash
91
+ node dist/cli.js doctor
92
+ ```
93
+ 4. Assert all acceptance criteria are satisfied.
94
+
95
+ ### Phase 5: Post-Execution Cleanup & Artifact Generation
96
+ 1. Generate execution summary report at `reports/email-marketing-automation/summary.md`.
97
+ 2. Clean up temporary build artifacts and scratch files.
98
+ 3. Commit generated files to git repository.
99
+ ```bash
100
+ git add docs/email-marketing-automation/ reports/email-marketing-automation/
101
+ git commit -m "feat(email-marketing-automation): implement Email Marketing Automation playbook artifacts"
102
+ ```
103
+ 4. Publish documentation for team review.
104
+
105
+ ## Code & Configuration Exemplars
106
+
107
+ ### Exemplar 1: Email Marketing Automation Configuration Specification
108
+ ```yaml
109
+ version: "2.0.0"
110
+ metadata:
111
+ skill: "email-marketing-automation"
112
+ author: "agents-united"
113
+ rules:
114
+ strictValidation: true
115
+ reporting:
116
+ format: "json"
117
+ output: "reports/email-marketing-automation/summary.json"
118
+ ```
119
+
120
+ ### Exemplar 2: Email Marketing Automation Helper Module
121
+ ```typescript
122
+ export function runEmailMarketingAutomation(scope: string): boolean {
123
+ console.log('Running Email Marketing Automation on:', scope);
124
+ return true;
125
+ }
126
+ ```
127
+
128
+ ## Edge Cases & Error Recovery Procedures
129
+
130
+ ### Scenario A: Validation Failure in Email Marketing Automation
131
+ 1. **Diagnosis**: Specification or code asset fails validation rules in email-marketing-automation.
132
+ 2. **Recovery Protocol**:
133
+ - Step 1: Inspect error log at reports directory.
134
+ - Step 2: Correct non-compliant syntax or structure.
135
+ - Step 3: Re-run verification pipeline.
136
+
137
+ ### Scenario B: Missing Resource for Email Marketing Automation
138
+ 1. **Diagnosis**: Target design token or configuration asset missing from workspace.
139
+ 2. **Recovery Protocol**:
140
+ - Step 1: Generate baseline resource file from standard template.
141
+ - Step 2: Update configuration references.
142
+ - Step 3: Resume runbook execution.
143
+
144
+ ## Verification & Validation Checklist
145
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
146
+ - [ ] All 7 mandatory sections present with explicit headers.
147
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
148
+ - [ ] Code exemplars provided with valid syntax fencing.
149
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
150
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: finishing-a-development-branch
3
+ description: Production-grade Branch Finalization playbook for clean git
4
+ history, squash hygiene, and automated release validation.
5
+ metadata:
6
+ author: agents-united
7
+ version: 2.0.0
8
+ icon: 🏁
9
+ disable-slash-command: true
10
+ ---
11
+
12
+ # Development Branch Finalization, Cleanup & PR Readiness
13
+
14
+ ## Overview & Purpose
15
+ The Development Branch Finalization, Cleanup & PR Readiness skill provides a deterministic, battle-tested framework for executing finishing-a-development-branch processes across the Agents United multi-agent ecosystem.
16
+
17
+ Following this skill ensures high quality, zero-regression execution, rigorous testing gates, and seamless cross-functional team alignment.
18
+
19
+ ## Execution Triggers & Prerequisites
20
+ ### Execution Triggers
21
+ - Direct request or workflow step invoking finishing-a-development-branch.
22
+ - Auditing, implementing, or standardizing finishing-a-development-branch procedures.
23
+ - Addressing technical debt, architectural reviews, or production readiness gates.
24
+ - Preparing pull requests or automated release validations.
25
+
26
+ ### Prerequisites
27
+ - Active project repository workspace with version control configured.
28
+ - Operational testing, typechecking, and build toolchains.
29
+ - Domain requirements, architectural constraints, or user stories defined.
30
+ - Clean git working tree before beginning execution.
31
+
32
+ ## Input & Output Requirements
33
+ ### Inputs
34
+ | Parameter | Type | Required | Description |
35
+ |---|---|---|---|
36
+ | `target_scope` | String | Yes | Target module, service, component, or file path |
37
+ | `config` | Object | Optional | Specific domain configurations, thresholds, and options |
38
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts and reports |
39
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation and high test coverage |
40
+
41
+ ### Outputs
42
+ | Artifact | Path / Format | Description |
43
+ |---|---|---|
44
+ | Specification Document | `docs/finishing-a-development-branch/spec.md` | Full technical specification and architectural plan |
45
+ | Implementation Files | `src/finishing-a-development-branch/*` | Production-ready source code, tests, and configurations |
46
+ | Execution Report | `reports/finishing-a-development-branch/summary.json` | Verification metrics, test results, and audit summary |
47
+
48
+ ## Step-by-Step Execution Runbook
49
+
50
+ ### Phase 1: Working Tree Audit & Temporary File Cleanup
51
+ 1. Check git working directory status: git status --short.
52
+ 2. Remove temporary debug files, scratch scripts, and editor artifacts.
53
+ 3. Search for stray console.log, debugger, and unresolved TODO statements.
54
+ 4. Verify no sensitive secrets, API keys, or .env files are tracked in git.
55
+ 5. Ensure all modified files are properly staged.
56
+
57
+ ### Phase 2: Synchronization & Rebase against Target Branch
58
+ 1. Fetch latest changes from upstream remote: git fetch origin main.
59
+ 2. Rebase development branch onto latest main: git rebase origin/main.
60
+ 3. Resolve any merge conflicts cleanly, validating code logic after each resolved chunk.
61
+ 4. Run interactive rebase (git rebase -i) to squash messy WIP and fixup commits.
62
+ 5. Ensure all commit messages adhere to Conventional Commits specification.
63
+
64
+ ### Phase 3: Verification & Quality Gate Execution
65
+ 1. Run complete TypeScript typecheck: npm run typecheck.
66
+ 2. Execute full test suite: npm test.
67
+ 3. Execute production build: npm run build.
68
+ 4. Execute workspace doctor check: node dist/cli.js doctor.
69
+ 5. Confirm 100% test pass rate with zero lint or build errors.
70
+
71
+ ### Phase 4: Pull Request Description & Documentation Assembly
72
+ 1. Generate structured PR description covering Summary, Motivation, Changes, and Testing.
73
+ 2. Attach visual evidence (before/after screenshots or terminal recordings) for UI/CLI changes.
74
+ 3. Link related issue tickets and architecture decision records.
75
+ 4. Update project README and documentation files if features or flags were modified.
76
+ 5. Verify CI workflow requirements and reviewer assignments.
77
+
78
+ ### Phase 5: Push & PR Submission
79
+ 1. Push clean rebased branch to remote repository: git push -u origin branch-name --force-with-lease.
80
+ 2. Open Pull Request on GitHub / GitLab.
81
+ 3. Verify all automated GitHub Actions CI checks pass green.
82
+ 4. Request code review from designated subagents or human maintainers.
83
+ 5. Prepare for automated merge upon approval.
84
+
85
+ ## Code & Configuration Exemplars
86
+
87
+ ### Exemplar 1: Development Branch Finalization, Cleanup & PR Readiness Configuration & Specification
88
+ ```yaml
89
+ # Interactive rebase against main branch
90
+ git fetch origin main
91
+ git rebase -i origin/main
92
+ # Ensure all commits follow Conventional Commits standard:
93
+ # feat(scope): add feature description
94
+ # fix(scope): resolve issue description
95
+ ```
96
+
97
+ ### Exemplar 2: Development Branch Finalization, Cleanup & PR Readiness TypeScript Type Contract
98
+ ```typescript
99
+ export interface BranchChecklist {
100
+ branchName: string;
101
+ isRebasedOnMain: boolean;
102
+ cleanWorkingTree: boolean;
103
+ testsPassing: boolean;
104
+ typecheckPassing: boolean;
105
+ buildPassing: boolean;
106
+ conventionalCommits: boolean;
107
+ }
108
+ ```
109
+
110
+ ## Edge Cases & Error Recovery Procedures
111
+
112
+ ### Scenario A: Validation Failure in Development Branch Finalization, Cleanup & PR Readiness
113
+ 1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
114
+ 2. **Recovery Protocol**:
115
+ - Step 1: Inspect detailed error log output in test/build terminal.
116
+ - Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
117
+ - Step 3: Implement surgical code fix and re-run verification suite.
118
+
119
+ ### Scenario B: Missing or Incompatible Dependency
120
+ 1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
121
+ 2. **Recovery Protocol**:
122
+ - Step 1: Verify `package.json` engine requirements and local environment versions.
123
+ - Step 2: Install required peer dependencies cleanly with lockfile sync.
124
+ - Step 3: Resume runbook from Phase 1.
125
+
126
+ ## Verification & Validation Checklist
127
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
128
+ - [ ] All 7 mandatory sections present with explicit headers.
129
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
130
+ - [ ] Code exemplars provided with valid syntax fencing.
131
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
132
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.