agents-united 1.0.0 → 1.2.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 (250) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +627 -2
  3. package/dist/cli.d.ts +4 -1
  4. package/dist/cli.js +3826 -260
  5. package/dist/cli.js.map +1 -1
  6. package/package.json +9 -3
  7. package/registry/agents/orchestrator-business.md +151 -11
  8. package/registry/agents/orchestrator-design.md +127 -12
  9. package/registry/agents/orchestrator-engineering.md +129 -13
  10. package/registry/agents/orchestrator-marketing.md +134 -11
  11. package/registry/agents/orchestrator-research.md +159 -11
  12. package/registry/agents/orchestrator-security.md +150 -12
  13. package/registry/agents/orchestrator-system-architecture.md +131 -12
  14. package/registry/agents/subagent-accessibility-lead.md +40 -0
  15. package/registry/agents/subagent-ai-model-architect.md +76 -0
  16. package/registry/agents/subagent-android-architect.md +40 -0
  17. package/registry/agents/subagent-backend-architect.md +342 -9
  18. package/registry/agents/subagent-business-panel-experts.md +114 -8
  19. package/registry/agents/subagent-code-reviewer.md +181 -8
  20. package/registry/agents/subagent-cross-platform-specialist.md +40 -0
  21. package/registry/agents/subagent-data-engineer.md +40 -0
  22. package/registry/agents/subagent-deep-research.md +65 -8
  23. package/registry/agents/subagent-design-ops-lead.md +109 -8
  24. package/registry/agents/subagent-design-researcher.md +121 -8
  25. package/registry/agents/subagent-design-systems-architect.md +120 -8
  26. package/registry/agents/subagent-designer-toolkit-expert.md +335 -8
  27. package/registry/agents/subagent-devops-engineer.md +403 -0
  28. package/registry/agents/subagent-distributed-systems-architect.md +40 -0
  29. package/registry/agents/subagent-e2e-tester.md +40 -0
  30. package/registry/agents/subagent-frontend-architect.md +337 -8
  31. package/registry/agents/subagent-interaction-designer.md +288 -8
  32. package/registry/agents/subagent-ios-architect.md +40 -0
  33. package/registry/agents/subagent-lifecycle-email-specialist.md +40 -0
  34. package/registry/agents/subagent-marketing-campaign-specialist.md +66 -8
  35. package/registry/agents/subagent-marketing-content-strategist.md +171 -8
  36. package/registry/agents/subagent-marketing-conversion-specialist.md +66 -8
  37. package/registry/agents/subagent-marketing-creative-designer.md +85 -0
  38. package/registry/agents/subagent-marketing-growth-strategist.md +125 -8
  39. package/registry/agents/subagent-ml-platform-engineer.md +74 -0
  40. package/registry/agents/subagent-paid-acquisition-specialist.md +40 -0
  41. package/registry/agents/subagent-plg-strategist.md +40 -0
  42. package/registry/agents/subagent-prototype-tester.md +114 -8
  43. package/registry/agents/subagent-qa-automation-lead.md +40 -0
  44. package/registry/agents/subagent-repo-index.md +169 -8
  45. package/registry/agents/subagent-security-engineer.md +117 -8
  46. package/registry/agents/subagent-seo-specialist.md +40 -0
  47. package/registry/agents/subagent-socratic-mentor.md +91 -8
  48. package/registry/agents/subagent-sysops-sre-lead.md +62 -0
  49. package/registry/agents/subagent-system-architect.md +106 -8
  50. package/registry/agents/subagent-ui-designer.md +135 -8
  51. package/registry/agents/subagent-ux-strategist.md +75 -8
  52. package/registry/bundles.json +818 -154
  53. package/registry/rules/AGENTS.md +41 -0
  54. package/registry/rules/CLAUDE.md +12 -0
  55. package/registry/rules/CURSOR.md +12 -0
  56. package/registry/rules/GEMINI.md +40 -5
  57. package/registry/rules/clean-code-and-architecture.md +25 -0
  58. package/registry/rules/domain-modeling-and-adr.md +27 -0
  59. package/registry/rules/git-guardrails.md +19 -0
  60. package/registry/rules/multi-agent-coordination.md +33 -0
  61. package/registry/rules/quality-aesthetics-accessibility.md +29 -0
  62. package/registry/rules/skill-attribution.md +27 -0
  63. package/registry/rules/test-driven-development.md +41 -0
  64. package/registry/skills/ab-test-setup/SKILL.md +140 -6
  65. package/registry/skills/accessibility-audit/SKILL.md +147 -0
  66. package/registry/skills/ad-attribution-modeling/SKILL.md +202 -0
  67. package/registry/skills/ad-creative-design/SKILL.md +24 -0
  68. package/registry/skills/ai-prototype-refactoring/SKILL.md +25 -0
  69. package/registry/skills/architecture-design/SKILL.md +133 -7
  70. package/registry/skills/azure-infrastructure-bicep/SKILL.md +24 -0
  71. package/registry/skills/backend-api-design/SKILL.md +148 -0
  72. package/registry/skills/chaos-engineering/SKILL.md +38 -0
  73. package/registry/skills/churn-prevention-playbook/SKILL.md +177 -0
  74. package/registry/skills/ci-cd-pipeline-automation/SKILL.md +37 -0
  75. package/registry/skills/clickable-prototype-spec/SKILL.md +147 -0
  76. package/registry/skills/code-refactoring/SKILL.md +132 -0
  77. package/registry/skills/component-library-management/SKILL.md +147 -0
  78. package/registry/skills/component-playground-setup/SKILL.md +147 -0
  79. package/registry/skills/content-calendar-strategy/SKILL.md +147 -0
  80. package/registry/skills/conversion-funnel-optimization/SKILL.md +147 -0
  81. package/registry/skills/copywriting-frameworks/SKILL.md +147 -0
  82. package/registry/skills/database-design/SKILL.md +132 -0
  83. package/registry/skills/dependency-management/SKILL.md +133 -7
  84. package/registry/skills/design-handoff-spec/SKILL.md +147 -0
  85. package/registry/skills/design-ops-workflow/SKILL.md +147 -0
  86. package/registry/skills/design-system-governance/SKILL.md +147 -0
  87. package/registry/skills/design-system-tokens/SKILL.md +147 -0
  88. package/registry/skills/design-tokens-management/SKILL.md +147 -0
  89. package/registry/skills/design-version-control/SKILL.md +147 -0
  90. package/registry/skills/diagnosing-bugs/SKILL.md +43 -0
  91. package/registry/skills/docker-deployment/SKILL.md +141 -0
  92. package/registry/skills/domain-modeling/SKILL.md +50 -0
  93. package/registry/skills/email-drip-sequences/SKILL.md +177 -0
  94. package/registry/skills/email-marketing-automation/SKILL.md +147 -0
  95. package/registry/skills/finishing-a-development-branch/SKILL.md +123 -7
  96. package/registry/skills/frontend-component-design/SKILL.md +150 -0
  97. package/registry/skills/git-guardrails/SKILL.md +38 -0
  98. package/registry/skills/google-ads-optimization/SKILL.md +24 -0
  99. package/registry/skills/graphql-schema-design/SKILL.md +143 -0
  100. package/registry/skills/grill-me/SKILL.md +51 -0
  101. package/registry/skills/grill-with-docs/SKILL.md +78 -0
  102. package/registry/skills/growth-experiment-design/SKILL.md +147 -0
  103. package/registry/skills/handoff/SKILL.md +41 -0
  104. package/registry/skills/hf-model-evaluation/SKILL.md +80 -0
  105. package/registry/skills/interaction-pattern-library/SKILL.md +147 -0
  106. package/registry/skills/interactive-prototype-builder/SKILL.md +147 -0
  107. package/registry/skills/local-llm-inference/SKILL.md +74 -0
  108. package/registry/skills/maestro-mobile-testing/SKILL.md +37 -0
  109. package/registry/skills/marketing-creative-design/SKILL.md +182 -0
  110. package/registry/skills/meta-ad-creative-testing/SKILL.md +23 -0
  111. package/registry/skills/micro-interaction-design/SKILL.md +147 -0
  112. package/registry/skills/microservices-architecture/SKILL.md +138 -0
  113. package/registry/skills/mobile-android-design/SKILL.md +37 -0
  114. package/registry/skills/mobile-first-design/SKILL.md +147 -0
  115. package/registry/skills/mobile-ios-design/SKILL.md +37 -0
  116. package/registry/skills/mobile-platform-offline-validate/SKILL.md +37 -0
  117. package/registry/skills/modal-serverless-python/SKILL.md +78 -0
  118. package/registry/skills/onboarding-cro/SKILL.md +175 -7
  119. package/registry/skills/paid-acquisition-ppc/SKILL.md +167 -0
  120. package/registry/skills/performance-optimization/SKILL.md +132 -7
  121. package/registry/skills/playwright-best-practices/SKILL.md +36 -0
  122. package/registry/skills/product-launch-playbook/SKILL.md +147 -0
  123. package/registry/skills/programmatic-seo/SKILL.md +203 -7
  124. package/registry/skills/rag-vector-pipeline/SKILL.md +80 -0
  125. package/registry/skills/react-best-practices/SKILL.md +37 -0
  126. package/registry/skills/receiving-code-review/SKILL.md +121 -7
  127. package/registry/skills/replicate-model-inference/SKILL.md +73 -0
  128. package/registry/skills/requesting-code-review/SKILL.md +128 -7
  129. package/registry/skills/responsive-design-audit/SKILL.md +147 -0
  130. package/registry/skills/runpod-gpu-orchestration/SKILL.md +81 -0
  131. package/registry/skills/schema-markup-strategy/SKILL.md +190 -0
  132. package/registry/skills/security-audit/SKILL.md +136 -0
  133. package/registry/skills/seo-audit/SKILL.md +140 -6
  134. package/registry/skills/signup-flow-cro/SKILL.md +140 -6
  135. package/registry/skills/social-media-campaign/SKILL.md +147 -0
  136. package/registry/skills/state-driven-ui-animation/SKILL.md +147 -0
  137. package/registry/skills/subagent-driven-development/SKILL.md +126 -7
  138. package/registry/skills/supabase-backend-architecture/SKILL.md +25 -0
  139. package/registry/skills/systematic-debugging/SKILL.md +129 -7
  140. package/registry/skills/technical-documentation/SKILL.md +133 -0
  141. package/registry/skills/technical-seo-audit/SKILL.md +24 -0
  142. package/registry/skills/telemetry-monitoring/SKILL.md +37 -0
  143. package/registry/skills/test-driven-development/SKILL.md +127 -7
  144. package/registry/skills/to-spec/SKILL.md +43 -0
  145. package/registry/skills/to-tickets/SKILL.md +45 -0
  146. package/registry/skills/turso-distributed-sqlite/SKILL.md +23 -0
  147. package/registry/skills/ui-component-spec/SKILL.md +147 -0
  148. package/registry/skills/usability-testing-protocol/SKILL.md +147 -0
  149. package/registry/skills/user-flow-mapping/SKILL.md +147 -0
  150. package/registry/skills/user-journey-mapping/SKILL.md +147 -0
  151. package/registry/skills/vector-database-design/SKILL.md +80 -0
  152. package/registry/skills/vercel-deploy-best-practices/SKILL.md +24 -0
  153. package/registry/skills/viral-referral-loops/SKILL.md +205 -0
  154. package/registry/workflows/workflow-analyze.md +53 -8
  155. package/registry/workflows/workflow-api-contract-design.md +48 -0
  156. package/registry/workflows/workflow-app-store-release.md +48 -0
  157. package/registry/workflows/workflow-brainstorm.md +53 -8
  158. package/registry/workflows/workflow-build.md +53 -8
  159. package/registry/workflows/workflow-business-panel.md +53 -8
  160. package/registry/workflows/workflow-cleanup.md +53 -8
  161. package/registry/workflows/workflow-deploy-staging.md +49 -0
  162. package/registry/workflows/workflow-design-code.md +53 -8
  163. package/registry/workflows/workflow-design-ops--handoff.md +53 -8
  164. package/registry/workflows/workflow-design-ops--plan-sprint.md +53 -8
  165. package/registry/workflows/workflow-design-ops--setup-workflow.md +53 -8
  166. package/registry/workflows/workflow-design-orchestrate.md +53 -8
  167. package/registry/workflows/workflow-design-systems--audit-system.md +53 -8
  168. package/registry/workflows/workflow-design-systems--create-component.md +53 -8
  169. package/registry/workflows/workflow-design-systems--tokenize.md +53 -8
  170. package/registry/workflows/workflow-diagnose.md +45 -0
  171. package/registry/workflows/workflow-e2e-testing.md +49 -0
  172. package/registry/workflows/workflow-email-drip-sequence.md +65 -0
  173. package/registry/workflows/workflow-estimate.md +53 -8
  174. package/registry/workflows/workflow-explain.md +53 -8
  175. package/registry/workflows/workflow-frontend-audit.md +49 -0
  176. package/registry/workflows/workflow-git.md +53 -8
  177. package/registry/workflows/workflow-grill.md +51 -0
  178. package/registry/workflows/workflow-implement.md +54 -8
  179. package/registry/workflows/workflow-incident-triage.md +49 -0
  180. package/registry/workflows/workflow-interaction-design--design-interaction.md +53 -8
  181. package/registry/workflows/workflow-interaction-design--error-flow.md +53 -8
  182. package/registry/workflows/workflow-interaction-design--map-states.md +53 -8
  183. package/registry/workflows/workflow-marketing-audit.md +53 -8
  184. package/registry/workflows/workflow-marketing-campaign-builder.md +53 -8
  185. package/registry/workflows/workflow-marketing-content-pipeline.md +53 -8
  186. package/registry/workflows/workflow-marketing-growth-experiment.md +53 -8
  187. package/registry/workflows/workflow-marketing-launch.md +53 -8
  188. package/registry/workflows/workflow-marketing-panel.md +53 -8
  189. package/registry/workflows/workflow-ml-eval.md +51 -0
  190. package/registry/workflows/workflow-mobile-build.md +49 -0
  191. package/registry/workflows/workflow-onboarding-funnel-cro.md +65 -0
  192. package/registry/workflows/workflow-paid-acquisition-campaign.md +65 -0
  193. package/registry/workflows/workflow-paid-campaign-launch.md +47 -0
  194. package/registry/workflows/workflow-plan.md +53 -8
  195. package/registry/workflows/workflow-prototyping-testing--evaluate.md +53 -8
  196. package/registry/workflows/workflow-prototyping-testing--experiment.md +53 -8
  197. package/registry/workflows/workflow-prototyping-testing--prototype-plan.md +53 -8
  198. package/registry/workflows/workflow-prototyping-testing--test-plan.md +53 -8
  199. package/registry/workflows/workflow-rag-pipeline-deploy.md +53 -0
  200. package/registry/workflows/workflow-recommend.md +53 -8
  201. package/registry/workflows/workflow-research.md +53 -8
  202. package/registry/workflows/workflow-review.md +53 -8
  203. package/registry/workflows/workflow-seo-audit-pipeline.md +47 -0
  204. package/registry/workflows/workflow-seo-content-pipeline.md +65 -0
  205. package/registry/workflows/workflow-serverless-gpu-deploy.md +52 -0
  206. package/registry/workflows/workflow-spec-panel.md +53 -8
  207. package/registry/workflows/workflow-spec.md +44 -0
  208. package/registry/workflows/workflow-test.md +53 -8
  209. package/registry/workflows/workflow-troubleshoot.md +53 -8
  210. package/registry/workflows/workflow-ui-design--color-palette.md +53 -8
  211. package/registry/workflows/workflow-ui-design--design-screen.md +53 -8
  212. package/registry/workflows/workflow-ui-design--responsive-audit.md +53 -8
  213. package/registry/workflows/workflow-ui-design--type-system.md +53 -8
  214. package/registry/workflows/workflow-ux-strategy--benchmark.md +53 -8
  215. package/registry/workflows/workflow-ux-strategy--frame-problem.md +53 -8
  216. package/registry/workflows/workflow-ux-strategy--strategize.md +53 -8
  217. package/registry/skills/analytics-tracking/SKILL.md +0 -13
  218. package/registry/skills/brainstorming/SKILL.md +0 -13
  219. package/registry/skills/browser-agent/SKILL.md +0 -13
  220. package/registry/skills/campaign-strategy/SKILL.md +0 -13
  221. package/registry/skills/competitor-alternatives/SKILL.md +0 -13
  222. package/registry/skills/confidence-check/SKILL.md +0 -13
  223. package/registry/skills/copy-editing/SKILL.md +0 -13
  224. package/registry/skills/copywriting/SKILL.md +0 -13
  225. package/registry/skills/deep-research/SKILL.md +0 -13
  226. package/registry/skills/design-ops/SKILL.md +0 -13
  227. package/registry/skills/design-research/SKILL.md +0 -13
  228. package/registry/skills/design-systems/SKILL.md +0 -13
  229. package/registry/skills/designer-toolkit/SKILL.md +0 -13
  230. package/registry/skills/email-sequence/SKILL.md +0 -13
  231. package/registry/skills/executing-plans/SKILL.md +0 -13
  232. package/registry/skills/form-cro/SKILL.md +0 -13
  233. package/registry/skills/free-tool-strategy/SKILL.md +0 -13
  234. package/registry/skills/interaction-design/SKILL.md +0 -13
  235. package/registry/skills/launch-strategy/SKILL.md +0 -13
  236. package/registry/skills/marketing-ideas/SKILL.md +0 -13
  237. package/registry/skills/marketing-psychology/SKILL.md +0 -13
  238. package/registry/skills/page-cro/SKILL.md +0 -13
  239. package/registry/skills/paid-ads/SKILL.md +0 -13
  240. package/registry/skills/paywall-upgrade-cro/SKILL.md +0 -13
  241. package/registry/skills/popup-cro/SKILL.md +0 -13
  242. package/registry/skills/pricing-strategy/SKILL.md +0 -13
  243. package/registry/skills/prototyping-testing/SKILL.md +0 -13
  244. package/registry/skills/referral-program/SKILL.md +0 -13
  245. package/registry/skills/schema-markup/SKILL.md +0 -13
  246. package/registry/skills/security-review/SKILL.md +0 -13
  247. package/registry/skills/social-content/SKILL.md +0 -13
  248. package/registry/skills/ui-design/SKILL.md +0 -13
  249. package/registry/skills/ux-strategy/SKILL.md +0 -13
  250. package/registry/skills/writing-plans/SKILL.md +0 -13
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: frontend-component-design
3
+ description: Production-grade Frontend Component Design playbook for reusable, accessible UI primitives in React, Vue, and Web Components.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # Frontend Component Architecture, Accessibility & Storybook Playgrounds
10
+
11
+ ## Overview & Purpose
12
+ The Frontend Component Architecture, Accessibility & Storybook Playgrounds skill provides a deterministic, battle-tested framework for executing frontend-component-design processes across the Agents United multi-agent ecosystem.
13
+
14
+ Following this skill ensures high quality, zero-regression execution, rigorous testing gates, and seamless cross-functional team alignment.
15
+
16
+ ## Execution Triggers & Prerequisites
17
+ ### Execution Triggers
18
+ - Direct request or workflow step invoking frontend-component-design.
19
+ - Auditing, implementing, or standardizing frontend-component-design procedures.
20
+ - Addressing technical debt, architectural reviews, or production readiness gates.
21
+ - Preparing pull requests or automated release validations.
22
+
23
+ ### Prerequisites
24
+ - Active project repository workspace with version control configured.
25
+ - Operational testing, typechecking, and build toolchains.
26
+ - Domain requirements, architectural constraints, or user stories defined.
27
+ - Clean git working tree before beginning execution.
28
+
29
+ ## Input & Output Requirements
30
+ ### Inputs
31
+ | Parameter | Type | Required | Description |
32
+ |---|---|---|---|
33
+ | `target_scope` | String | Yes | Target module, service, component, or file path |
34
+ | `config` | Object | Optional | Specific domain configurations, thresholds, and options |
35
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts and reports |
36
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation and high test coverage |
37
+
38
+ ### Outputs
39
+ | Artifact | Path / Format | Description |
40
+ |---|---|---|
41
+ | Specification Document | `docs/frontend-component-design/spec.md` | Full technical specification and architectural plan |
42
+ | Implementation Files | `src/frontend-component-design/*` | Production-ready source code, tests, and configurations |
43
+ | Execution Report | `reports/frontend-component-design/summary.json` | Verification metrics, test results, and audit summary |
44
+
45
+ ## Step-by-Step Execution Runbook
46
+
47
+ ### Phase 1: Component API Design & Props Interface
48
+ 1. Define component prop types in TypeScript with strict discrimination unions.
49
+ 2. Establish single responsibility: separate layout containers from atomic UI primitives.
50
+ 3. Support composability via asChild / slot patterns or polymorphic as props.
51
+ 4. Ensure standard HTML attribute passthrough and forwardRef propagation.
52
+ 5. Avoid boolean prop explosion by using typed union variants (variant="primary").
53
+
54
+ ### Phase 2: Accessibility & Keyboard Navigation Specification
55
+ 1. Assign appropriate WAI-ARIA roles, states, and properties (aria-expanded, aria-controls).
56
+ 2. Implement complete keyboard interaction models according to W3C APG guidelines.
57
+ 3. Ensure explicit, high-contrast :focus-visible styling on all interactive elements.
58
+ 4. Manage focus trapping and restoration for modal dialogs and flyout menus.
59
+ 5. Verify screen reader announcements for dynamic state transitions.
60
+
61
+ ### Phase 3: Styling & Design Token Integration
62
+ 1. Bind component styles strictly to semantic design tokens (var(--color-brand-primary)).
63
+ 2. Ensure zero hardcoded magic numbers or hex colors in stylesheet.
64
+ 3. Implement fluid responsiveness using CSS container queries and clamp().
65
+ 4. Provide seamless dark/light theme adaptation via CSS custom property overrides.
66
+ 5. Enforce prefers-reduced-motion fallbacks for all transitions and micro-animations.
67
+
68
+ ### Phase 4: Storybook Documentation & Interactive Playground
69
+ 1. Create Storybook CSF3 story file with interactive Controls (argTypes).
70
+ 2. Author stories covering all variants, sizes, edge-case text lengths, and error states.
71
+ 3. Write accessibility regression tests using @storybook/addon-a11y.
72
+ 4. Include MDX documentation with copy-paste code snippets and UX usage guidelines.
73
+ 5. Validate visual regression snapshots.
74
+
75
+ ### Phase 5: Automated Testing & Packaging
76
+ 1. Author unit tests with Testing Library verifying rendering, user events, and accessibility.
77
+ 2. Verify zero console errors or hydration mismatch warnings.
78
+ 3. Export component from package entrypoint index.
79
+ 4. Run typecheck and build validation.
80
+ 5. Publish component to shared internal UI library.
81
+
82
+ ## Code & Configuration Exemplars
83
+
84
+ ### Exemplar 1: Frontend Component Architecture, Accessibility & Storybook Playgrounds Configuration & Specification
85
+ ```yaml
86
+ import React, { forwardRef } from 'react';
87
+ import clsx from 'clsx';
88
+
89
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
90
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
91
+ size?: 'sm' | 'md' | 'lg';
92
+ isLoading?: boolean;
93
+ }
94
+
95
+ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
96
+ variant = 'primary',
97
+ size = 'md',
98
+ isLoading = false,
99
+ className,
100
+ disabled,
101
+ children,
102
+ ...props
103
+ }, ref) => (
104
+ <button
105
+ ref={ref}
106
+ disabled={disabled || isLoading}
107
+ className={clsx('ui-button', `ui-button--${variant}`, `ui-button--${size}`, className)}
108
+ aria-busy={isLoading}
109
+ {...props}
110
+ >
111
+ {isLoading ? <span className="ui-spinner" aria-hidden="true" /> : children}
112
+ </button>
113
+ ));
114
+ ```
115
+
116
+ ### Exemplar 2: Frontend Component Architecture, Accessibility & Storybook Playgrounds TypeScript Type Contract
117
+ ```typescript
118
+ export interface ComponentSpecification {
119
+ name: string;
120
+ variants: string[];
121
+ sizes: string[];
122
+ interactiveStates: ['default', 'hover', 'focus-visible', 'active', 'disabled', 'loading'];
123
+ ariaRoles: string[];
124
+ keyboardInteractions: Record<string, string>;
125
+ }
126
+ ```
127
+
128
+ ## Edge Cases & Error Recovery Procedures
129
+
130
+ ### Scenario A: Validation Failure in Frontend Component Architecture, Accessibility & Storybook Playgrounds
131
+ 1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
132
+ 2. **Recovery Protocol**:
133
+ - Step 1: Inspect detailed error log output in test/build terminal.
134
+ - Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
135
+ - Step 3: Implement surgical code fix and re-run verification suite.
136
+
137
+ ### Scenario B: Missing or Incompatible Dependency
138
+ 1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
139
+ 2. **Recovery Protocol**:
140
+ - Step 1: Verify `package.json` engine requirements and local environment versions.
141
+ - Step 2: Install required peer dependencies cleanly with lockfile sync.
142
+ - Step 3: Resume runbook from Phase 1.
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,38 @@
1
+ ---
2
+ name: git-guardrails
3
+ description: Operational safety policies and git guardrails to prevent destructive force-pushes, unintended commits to main branches, and secret leaks.
4
+ metadata:
5
+ author: "Matt Pocock (mattpocock/skills)"
6
+ version: "1.0.0"
7
+ source: "https://github.com/mattpocock/skills"
8
+ ---
9
+
10
+ # Git Safety & Guardrails Playbook
11
+
12
+ ## Overview & Purpose
13
+ `git-guardrails` enforces strict version control safety rules for AI agents and orchestrators, ensuring working tree stability, branch hygiene, and protection of main branches and credentials.
14
+
15
+ ## Rules & Constraints
16
+ 1. **Never commit directly to protected branches** (`main`, `master`, `production`, `release/*`). Always verify current branch with `git branch --show-current`.
17
+ 2. **Never execute force pushes** (`git push --force` or `-f`).
18
+ 3. **Never expose secrets or API keys**. Check staged diffs with `git diff --cached` before committing.
19
+ 4. **Never leave detached HEAD state unaddressed**.
20
+ 5. **Always write clear, imperative commit messages**.
21
+
22
+ ## Step-by-Step Execution Runbook
23
+
24
+ ### Phase 1 — Pre-Operation Inspection
25
+ 1. Run `git status` to verify working tree status.
26
+ 2. Verify active branch name. If on `main`, create a feature branch (`git checkout -b feature/<name>`).
27
+
28
+ ### Phase 2 — Staging & Secret Check
29
+ 1. Inspect staged changes with `git diff --cached`.
30
+ 2. Ensure no `.env`, token, credential, or secret strings are staged.
31
+
32
+ ### Phase 3 — Verification Gate & Commit
33
+ 1. Run linting and test verification suite before finalizing commit.
34
+ 2. Commit with standard Conventional Commits format (`feat:`, `fix:`, `docs:`, `refactor:`).
35
+
36
+ ## Verification & Validation Checklist
37
+ - [ ] Frontmatter contains author attribution to Matt Pocock.
38
+ - [ ] Safe git execution rules clearly stated.
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: google-ads-optimization
3
+ description: Google Search & Performance Max campaign optimization, keyword match types, negative keyword sculpting, and Quality Score improvement.
4
+ metadata:
5
+ author: "Agents United Performance Group"
6
+ version: "1.0.0"
7
+ license: "MIT"
8
+ ---
9
+
10
+ # Google Ads Optimization Playbook
11
+
12
+ ## Overview & Purpose
13
+ `google-ads-optimization` provides systematic frameworks for launching, managing, and scaling high-ROAS Google Search and Performance Max ad campaigns.
14
+
15
+ ## Core Directives & Standards
16
+ 1. **Keyword Match Architecture** — Group exact match keywords into focused Single Keyword Ad Groups (SKAGs) or tightly themed ad groups.
17
+ 2. **Negative Keyword Guardrails** — Pre-populate universal negative keyword lists (e.g. "free", "login", "careers", "cracked", "torrent").
18
+ 3. **Responsive Search Ad (RSA) Assembly** — Provide 15 headlines and 4 descriptions per ad group with diverse value propositions.
19
+ 4. **Quality Score Optimization** — Align landing page headline copy directly with ad keyword search queries to maximize expected CTR and landing page experience score.
20
+
21
+ ## Verification Checklist
22
+ - [ ] Conversion tracking pixels and enhanced conversion tags verified.
23
+ - [ ] Negative keyword lists assigned at campaign or account level.
24
+ - [ ] Bid strategies (Target CPA / Target ROAS) configured with realistic baseline data.
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: graphql-schema-design
3
+ description: Production-grade GraphQL Schema Design playbook for scalable type systems, DataLoader batching, and Apollo Federation.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # GraphQL Schema Architecture, Resolvers & Federation
10
+
11
+ ## Overview & Purpose
12
+ The GraphQL Schema Architecture, Resolvers & Federation skill provides a deterministic, battle-tested framework for executing graphql-schema-design processes across the Agents United multi-agent ecosystem.
13
+
14
+ Following this skill ensures high quality, zero-regression execution, rigorous testing gates, and seamless cross-functional team alignment.
15
+
16
+ ## Execution Triggers & Prerequisites
17
+ ### Execution Triggers
18
+ - Direct request or workflow step invoking graphql-schema-design.
19
+ - Auditing, implementing, or standardizing graphql-schema-design procedures.
20
+ - Addressing technical debt, architectural reviews, or production readiness gates.
21
+ - Preparing pull requests or automated release validations.
22
+
23
+ ### Prerequisites
24
+ - Active project repository workspace with version control configured.
25
+ - Operational testing, typechecking, and build toolchains.
26
+ - Domain requirements, architectural constraints, or user stories defined.
27
+ - Clean git working tree before beginning execution.
28
+
29
+ ## Input & Output Requirements
30
+ ### Inputs
31
+ | Parameter | Type | Required | Description |
32
+ |---|---|---|---|
33
+ | `target_scope` | String | Yes | Target module, service, component, or file path |
34
+ | `config` | Object | Optional | Specific domain configurations, thresholds, and options |
35
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts and reports |
36
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation and high test coverage |
37
+
38
+ ### Outputs
39
+ | Artifact | Path / Format | Description |
40
+ |---|---|---|
41
+ | Specification Document | `docs/graphql-schema-design/spec.md` | Full technical specification and architectural plan |
42
+ | Implementation Files | `src/graphql-schema-design/*` | Production-ready source code, tests, and configurations |
43
+ | Execution Report | `reports/graphql-schema-design/summary.json` | Verification metrics, test results, and audit summary |
44
+
45
+ ## Step-by-Step Execution Runbook
46
+
47
+ ### Phase 1: Schema Domain Modeling & Type Architecture
48
+ 1. Model business domain as strongly-typed GraphQL schema using Schema Definition Language (SDL).
49
+ 2. Enforce non-nullable fields (!) strictly on guaranteed domain properties.
50
+ 3. Implement Relay Cursor Connections specification for all paginated list queries.
51
+ 4. Structure mutations with dedicated Input and Payload types (CreateOrderInput / CreateOrderPayload).
52
+ 5. Design domain error reporting via union types (union CreateOrderResult = Order | OrderError).
53
+
54
+ ### Phase 2: Apollo Federation & Subgraph Boundary Design
55
+ 1. Define federation @key directives for entity identification across subgraphs.
56
+ 2. Mark shared entity references with @external and @requires directives.
57
+ 3. Design clean subgraph boundaries matching domain bounded contexts.
58
+ 4. Compose supergraph schema using Rover CLI to verify federation compatibility.
59
+ 5. Validate schema against breaking change rules with Apollo Studio / GraphQL Inspector.
60
+
61
+ ### Phase 3: Resolver Implementation & DataLoader Batching
62
+ 1. Implement type resolvers with clean separation between transport and business services.
63
+ 2. Implement DataLoader instances to batch and cache database lookups, solving N+1 query problem.
64
+ 3. Enforce authentication and tenant authorization checks inside resolver context.
65
+ 4. Set query complexity calculation and depth limits to prevent malicious nested queries.
66
+ 5. Implement field-level telemetry and tracing headers.
67
+
68
+ ### Phase 4: Schema Validation & Contract Testing
69
+ 1. Run automated schema linting with graphql-eslint to enforce naming conventions.
70
+ 2. Execute integration tests executing GraphQL queries against in-memory test database.
71
+ 3. Verify error handling returns structured error extensions with error codes.
72
+ 4. Benchmark query execution latency under simulated concurrent requests.
73
+ 5. Confirm backwards-compatibility of newly introduced fields.
74
+
75
+ ### Phase 5: Client Code Generation & Gateway Deployment
76
+ 1. Generate TypeScript types and React Apollo hooks using @graphql-codegen/cli.
77
+ 2. Publish updated subgraph schemas to supergraph gateway.
78
+ 3. Deploy updated GraphQL service to production cluster.
79
+ 4. Monitor query performance and error rates in gateway analytics dashboard.
80
+ 5. Update public GraphQL documentation.
81
+
82
+ ## Code & Configuration Exemplars
83
+
84
+ ### Exemplar 1: GraphQL Schema Architecture, Resolvers & Federation Configuration & Specification
85
+ ```yaml
86
+ type Order @key(fields: "id") {
87
+ id: ID!
88
+ customer: Customer!
89
+ items: [OrderItem!]!
90
+ totalCents: Int!
91
+ status: OrderStatus!
92
+ createdAt: String!
93
+ }
94
+
95
+ enum OrderStatus {
96
+ PENDING
97
+ PROCESSING
98
+ SHIPPED
99
+ DELIVERED
100
+ CANCELLED
101
+ }
102
+
103
+ type Query {
104
+ order(id: ID!): Order
105
+ orders(first: Int = 20, after: String): OrderConnection!
106
+ }
107
+ ```
108
+
109
+ ### Exemplar 2: GraphQL Schema Architecture, Resolvers & Federation TypeScript Type Contract
110
+ ```typescript
111
+ export interface GraphQLResolverContext {
112
+ userId?: string;
113
+ tenantId: string;
114
+ dataLoaders: {
115
+ userLoader: unknown;
116
+ orderLoader: unknown;
117
+ };
118
+ }
119
+ ```
120
+
121
+ ## Edge Cases & Error Recovery Procedures
122
+
123
+ ### Scenario A: Validation Failure in GraphQL Schema Architecture, Resolvers & Federation
124
+ 1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
125
+ 2. **Recovery Protocol**:
126
+ - Step 1: Inspect detailed error log output in test/build terminal.
127
+ - Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
128
+ - Step 3: Implement surgical code fix and re-run verification suite.
129
+
130
+ ### Scenario B: Missing or Incompatible Dependency
131
+ 1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
132
+ 2. **Recovery Protocol**:
133
+ - Step 1: Verify `package.json` engine requirements and local environment versions.
134
+ - Step 2: Install required peer dependencies cleanly with lockfile sync.
135
+ - Step 3: Resume runbook from Phase 1.
136
+
137
+ ## Verification & Validation Checklist
138
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
139
+ - [ ] All 7 mandatory sections present with explicit headers.
140
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
141
+ - [ ] Code exemplars provided with valid syntax fencing.
142
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
143
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: grill-me
3
+ description: Pure Socratic alignment questioning to interrogate requirements, uncover blind spots, and eliminate ambiguity before taking action.
4
+ metadata:
5
+ author: "Matt Pocock (mattpocock/skills)"
6
+ version: "1.0.0"
7
+ source: "https://github.com/mattpocock/skills"
8
+ ---
9
+
10
+ # Grill Me: Socratic Alignment Interview
11
+
12
+ ## Overview & Purpose
13
+ `grill-me` engages the developer in a focused, iterative Q&A session. It prevents premature implementation ("vibe coding") by asking hard, clarifying questions about scope, assumptions, edge cases, and success criteria.
14
+
15
+ ## Execution Triggers & Prerequisites
16
+ ### Execution Triggers
17
+ - Invoked via `/grill-me`.
18
+ - User request is high-level, ambiguous, or lacks clear boundaries.
19
+
20
+ ### Prerequisites
21
+ - Clear user goal or initial idea prompt.
22
+
23
+ ## Input & Output Requirements
24
+ ### Inputs
25
+ | Parameter | Type | Required | Description |
26
+ |---|---|---|---|
27
+ | `goal` | String | Yes | High-level goal or requirement prompt |
28
+
29
+ ### Outputs
30
+ | Artifact | Path / Format | Description |
31
+ |---|---|---|
32
+ | Clarified Requirements | Console / Inline | Refined specification and agreed approach |
33
+
34
+ ## Step-by-Step Execution Runbook
35
+
36
+ ### Phase 1 — Problem Framing
37
+ 1. Read the user's initial prompt and identify open questions or implicit assumptions.
38
+ 2. Ask 2–4 concise, direct questions focusing on user outcomes and technical constraints.
39
+
40
+ ### Phase 2 — Iterative Grilling
41
+ 1. Process user responses.
42
+ 2. If new ambiguities emerge, ask follow-up questions one round at a time.
43
+ 3. Stop grilling as soon as scope, edge cases, and non-goals are explicit.
44
+
45
+ ### Phase 3 — Summary & Hand-off
46
+ 1. Present a concise bulleted summary of agreed scope.
47
+ 2. Offer next steps (e.g. proceed to `/to-spec` or implementation).
48
+
49
+ ## Verification & Validation Checklist
50
+ - [ ] Frontmatter contains author attribution to Matt Pocock.
51
+ - [ ] Grilling questions are targeted and non-redundant.
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: grill-with-docs
3
+ description: Interactive alignment grilling session that asks deep probing questions before coding, establishes ubiquitous domain vocabulary (CONTEXT.md), and records architectural decisions (ADRs).
4
+ metadata:
5
+ author: "Matt Pocock (mattpocock/skills)"
6
+ version: "1.0.0"
7
+ source: "https://github.com/mattpocock/skills"
8
+ ---
9
+
10
+ # Grill With Docs: Socratic Alignment & Domain Documentation
11
+
12
+ ## Overview & Purpose
13
+ `grill-with-docs` bridges the alignment gap between developers and AI orchestrators before implementation begins. It uses structured Socratic questioning to uncover hidden assumptions, update the shared domain language in `CONTEXT.md`, and record architectural decisions as formal ADRs (`docs/adr/*.md`).
14
+
15
+ ## Execution Triggers & Prerequisites
16
+ ### Execution Triggers
17
+ - Starting a new feature, module, or complex refactor.
18
+ - Ambiguous requirements or conflicting design preferences.
19
+ - Directly running `/grill-with-docs` or initiating interactive orchestration.
20
+
21
+ ### Prerequisites
22
+ - Accessible project root with `CONTEXT.md` (or permissions to create one).
23
+ - Working directory initialized with version control.
24
+
25
+ ## Input & Output Requirements
26
+ ### Inputs
27
+ | Parameter | Type | Required | Description |
28
+ |---|---|---|---|
29
+ | `topic` | String | Yes | Feature, task, or architectural change to align on |
30
+ | `issue_tracker` | String | Optional | Target tracker (`github`, `linear`, or `local`) |
31
+ | `doc_path` | String | Optional | Path for documentation output (default: `docs/adr/`) |
32
+
33
+ ### Outputs
34
+ | Artifact | Path / Format | Description |
35
+ |---|---|---|
36
+ | Domain Dictionary | `CONTEXT.md` | Ubiquitous vocabulary and domain model mapping |
37
+ | Architectural Decision Record | `docs/adr/ADR-XXXX-<title>.md` | Formal decision log documenting problem, context, and choice |
38
+
39
+ ## Step-by-Step Execution Runbook
40
+
41
+ ### Phase 1 — Socratic Alignment Interview
42
+ 1. Ask 3–5 probing, targeted questions about the requested feature (e.g., boundaries, data flow, edge cases, failure modes).
43
+ 2. Wait for developer responses before proceeding.
44
+ 3. Challenge ambiguous assumptions or underspecified constraints.
45
+
46
+ ### Phase 2 — Ubiquitous Language & Domain Modeling
47
+ 1. Identify new domain concepts, entity names, or system jargon surfaced during grilling.
48
+ 2. Update or create `CONTEXT.md` at the project root with clear, concise term definitions.
49
+ 3. Ensure orchestrators and developer use consistent terminology across code and documentation.
50
+
51
+ ### Phase 3 — Architectural Decision Record (ADR) Generation
52
+ 1. Format agreed architectural choices into an ADR stored under `docs/adr/`.
53
+ 2. Include Title, Status (Proposed/Accepted), Context, Decision, and Consequences.
54
+ 3. Summarize key takeaways and hand off to implementation workflows.
55
+
56
+ ## Code & Configuration Exemplars
57
+
58
+ ### Exemplar 1: ADR Structure
59
+ ```markdown
60
+ # ADR-0001: Adopt Scoped Safety Policies for Sub-Agent Execution
61
+
62
+ ## Status
63
+ Accepted
64
+
65
+ ## Context
66
+ Sub-agents require predictable execution boundaries without prompting the user for every shell tool call.
67
+
68
+ ## Decision
69
+ Implement `permissionMode: acceptEdits` and `commandExecutionPolicy` headers in sub-agent frontmatter.
70
+
71
+ ## Consequences
72
+ Reduces human-in-the-loop overhead while keeping security constraints explicit.
73
+ ```
74
+
75
+ ## Verification & Validation Checklist
76
+ - [ ] Frontmatter includes `author: "Matt Pocock (mattpocock/skills)"`.
77
+ - [ ] `CONTEXT.md` updated with any newly introduced domain terms.
78
+ - [ ] ADR document saved with proper sequence number under `docs/adr/`.
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: growth-experiment-design
3
+ description: Production-grade Growth Experiment Design playbook for design operations, UX systems, and growth strategy.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # Growth Experiment Design
10
+
11
+ ## Overview & Purpose
12
+ The Growth Experiment Design skill provides a deterministic framework for executing growth experiment design processes in modern software products.
13
+
14
+ Following this skill ensures high usability, visual consistency, rapid iteration, and complete cross-functional team alignment.
15
+
16
+ ## Execution Triggers & Prerequisites
17
+ ### Execution Triggers
18
+ - Direct request to execute Growth Experiment Design tasks.
19
+ - Auditing existing product assets or workflows.
20
+ - Standardizing growth-experiment-design procedures across team projects.
21
+ - Preparing design handoffs or growth campaign launches.
22
+
23
+ ### Prerequisites
24
+ - Project workspace configured with design system tokens or component libraries.
25
+ - Target UI design specification or growth experiment hypothesis.
26
+ - Testing and linting tools operational.
27
+ - Clean git working directory.
28
+
29
+ ## Input & Output Requirements
30
+ ### Inputs
31
+ | Parameter | Type | Required | Description |
32
+ |---|---|---|---|
33
+ | `target_scope` | String | Yes | Target UI component, page, or campaign scope |
34
+ | `config` | Object | Optional | Specific parameters and threshold configurations |
35
+ | `output_dir` | Directory Path | Optional | Destination directory for generated artifacts |
36
+ | `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation |
37
+
38
+ ### Outputs
39
+ | Artifact | Path / Format | Description |
40
+ |---|---|---|
41
+ | Specification Document | `docs/growth-experiment-design/spec.md` | Full specification and guidelines document |
42
+ | Component / Asset Files | `src/growth-experiment-design/*` | Implemented design tokens, components, or campaign assets |
43
+ | Audit Report | `reports/growth-experiment-design/summary.json` | Health check and audit metric results |
44
+
45
+ ## Step-by-Step Execution Runbook
46
+
47
+ ### Phase 1: Pre-Execution Discovery & Workspace Analysis
48
+ 1. Inspect workspace repository to locate relevant UI components, tokens, or campaign assets.
49
+ ```bash
50
+ find src/ docs/ -maxdepth 3 -type f
51
+ ```
52
+ 2. Analyze domain requirements and classify core UI elements, interaction flows, or growth metrics.
53
+ 3. Establish baseline quality metrics and target benchmarks.
54
+ 4. Verify working tree status to ensure clean git workspace.
55
+ ```bash
56
+ git status --short
57
+ ```
58
+ 5. Formulate initial execution plan.
59
+
60
+ ### Phase 2: Input Contract Validation & Strategy Selection
61
+ 1. Validate input parameters against technical feasibility and design system guidelines.
62
+ 2. Select implementation pattern matching component or campaign architecture.
63
+ 3. Establish verification rules and accessibility / conversion thresholds.
64
+ 4. Formulate atomic step-by-step execution sequence.
65
+ 5. Create temporary working directory if needed.
66
+
67
+ ### Phase 3: Core Step-by-Step Implementation Execution
68
+ 1. Author primary specification document at `docs/growth-experiment-design/spec.md`.
69
+ 2. Generate code, token, or layout implementation files.
70
+ ```bash
71
+ npm run typecheck
72
+ ```
73
+ 3. Apply automated formatting and linting tools.
74
+ 4. Execute unit or visual regression tests.
75
+ ```bash
76
+ npm test
77
+ ```
78
+ 5. Refactor asset structure for optimal performance and maintainability.
79
+
80
+ ### Phase 4: Verification, Testing & Quality Gate Checking
81
+ 1. Run full project verification suite.
82
+ ```bash
83
+ npm run typecheck && npm test && npm run build
84
+ ```
85
+ 2. Verify zero lint errors, type warnings, or broken references.
86
+ 3. Execute CLI health doctor check.
87
+ ```bash
88
+ node dist/cli.js doctor
89
+ ```
90
+ 4. Assert all acceptance criteria are satisfied.
91
+
92
+ ### Phase 5: Post-Execution Cleanup & Artifact Generation
93
+ 1. Generate execution summary report at `reports/growth-experiment-design/summary.md`.
94
+ 2. Clean up temporary build artifacts and scratch files.
95
+ 3. Commit generated files to git repository.
96
+ ```bash
97
+ git add docs/growth-experiment-design/ reports/growth-experiment-design/
98
+ git commit -m "feat(growth-experiment-design): implement Growth Experiment Design playbook artifacts"
99
+ ```
100
+ 4. Publish documentation for team review.
101
+
102
+ ## Code & Configuration Exemplars
103
+
104
+ ### Exemplar 1: Growth Experiment Design Configuration Specification
105
+ ```yaml
106
+ version: "2.0.0"
107
+ metadata:
108
+ skill: "growth-experiment-design"
109
+ author: "agents-united"
110
+ rules:
111
+ strictValidation: true
112
+ reporting:
113
+ format: "json"
114
+ output: "reports/growth-experiment-design/summary.json"
115
+ ```
116
+
117
+ ### Exemplar 2: Growth Experiment Design Helper Module
118
+ ```typescript
119
+ export function runGrowthExperimentDesign(scope: string): boolean {
120
+ console.log('Running Growth Experiment Design on:', scope);
121
+ return true;
122
+ }
123
+ ```
124
+
125
+ ## Edge Cases & Error Recovery Procedures
126
+
127
+ ### Scenario A: Validation Failure in Growth Experiment Design
128
+ 1. **Diagnosis**: Specification or code asset fails validation rules in growth-experiment-design.
129
+ 2. **Recovery Protocol**:
130
+ - Step 1: Inspect error log at reports directory.
131
+ - Step 2: Correct non-compliant syntax or structure.
132
+ - Step 3: Re-run verification pipeline.
133
+
134
+ ### Scenario B: Missing Resource for Growth Experiment Design
135
+ 1. **Diagnosis**: Target design token or configuration asset missing from workspace.
136
+ 2. **Recovery Protocol**:
137
+ - Step 1: Generate baseline resource file from standard template.
138
+ - Step 2: Update configuration references.
139
+ - Step 3: Resume runbook execution.
140
+
141
+ ## Verification & Validation Checklist
142
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
143
+ - [ ] All 7 mandatory sections present with explicit headers.
144
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
145
+ - [ ] Code exemplars provided with valid syntax fencing.
146
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
147
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: handoff
3
+ description: Capture session progress, active context, decision logs, and remaining tasks to pass context seamlessly between subagents or future sessions.
4
+ metadata:
5
+ author: "Matt Pocock (mattpocock/skills)"
6
+ version: "1.0.0"
7
+ source: "https://github.com/mattpocock/skills"
8
+ ---
9
+
10
+ # Session Handoff & Context Persistence
11
+
12
+ ## Overview & Purpose
13
+ `handoff` creates structured context handoff notes at the end of an agent session or before delegating tasks to subagents. This preserves context momentum and prevents redundant discovery work.
14
+
15
+ ## Input & Output Requirements
16
+ ### Inputs
17
+ | Parameter | Type | Required | Description |
18
+ |---|---|---|---|
19
+ | `summary` | String | Yes | Brief description of completed work and current state |
20
+
21
+ ### Outputs
22
+ | Artifact | Path / Format | Description |
23
+ |---|---|---|
24
+ | Handoff Document | `docs/handoff/HANDOFF-<date>.md` | Persistent session summary and open task list |
25
+
26
+ ## Step-by-Step Execution Runbook
27
+
28
+ ### Phase 1 — State Capture
29
+ 1. Summarize key achievements and completed PRs/commits in this session.
30
+ 2. List modified files and current git branch.
31
+
32
+ ### Phase 2 — Remaining Work & Blockers
33
+ 1. Highlight open tasks, failing tests, or unmerged branches.
34
+ 2. Document explicit next steps for the incoming agent.
35
+
36
+ ### Phase 3 — Persistence
37
+ 1. Save handoff notes to `docs/handoff/` or output directly in session response.
38
+
39
+ ## Verification & Validation Checklist
40
+ - [ ] Frontmatter contains author attribution to Matt Pocock.
41
+ - [ ] Handoff summary includes completed items, open items, and next steps.