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,80 @@
1
+ ---
2
+ name: hf-model-evaluation
3
+ description: Automated evaluation, benchmarking, dataset curation, and leaderboard metric verification using the Hugging Face ecosystem (Evaluate, Datasets, Transformers).
4
+ metadata:
5
+ author: "Hugging Face / agents-united"
6
+ version: "2.0.0"
7
+ license: "MIT"
8
+ ---
9
+
10
+ # Hugging Face Model Evaluation Playbook
11
+
12
+ ## Overview & Purpose
13
+ `hf-model-evaluation` provides standardized benchmarking workflows for assessing LLM and embedding model performance on standardized evaluation benchmarks using Hugging Face datasets and evaluation harnesses.
14
+
15
+ ## When to Trigger
16
+ Trigger this skill whenever:
17
+ - Running deterministic evaluation benchmarks (MMLU, GSM8k, HumanEval, ARC, Hellaswag).
18
+ - Measuring LLM answer faithfulness, context recall, and toxicity scoring with automated harnesses.
19
+ - Curating golden evaluation splits and synthetic test datasets with Hugging Face Datasets.
20
+ - Generating comprehensive model cards and leaderboard performance summaries.
21
+
22
+ ## Input & Output Requirements
23
+ - **Inputs**: Target model weights/repo ID, evaluation dataset split names, benchmark task configuration YAML, and random seeds.
24
+ - **Outputs**: Automated metric reports (accuracy, exact match, F1, ROUGE, BERTScore), latency benchmarks, and Hugging Face model cards.
25
+
26
+ ## Step-by-Step Execution Runbook
27
+
28
+ ### Phase 1 — Benchmark Task & Dataset Configuration
29
+ - Load standardized benchmark datasets via `datasets.load_dataset()`.
30
+ - Define few-shot prompt formatting templates and deterministic parameters (temperature=0, top_p=1.0).
31
+
32
+ ### Phase 2 — Evaluation Harness Execution
33
+ - Run batch evaluation using `lm-evaluation-harness` or `ragas` library.
34
+ - Log token generation latency, GPU memory footprint, and exact match outputs.
35
+
36
+ ### Phase 3 — Metric Aggregation & Error Analysis
37
+ - Aggregate scores across dataset domains and identify failure clusters.
38
+ - Compute confidence intervals and statistical significance deltas against baseline models.
39
+
40
+ ### Phase 4 — Model Card Publishing
41
+ - Document evaluation methodology, carbon footprint, model limitations, and benchmark results in a README model card.
42
+
43
+ ## Edge Cases & Boundary Conditions
44
+ - **Data Contamination**: Audit evaluation test splits against training datasets to ensure no memorization or test set leakage.
45
+ - **Non-Deterministic Outputs**: Fix random seeds in PyTorch, CUDA, and Hugging Face pipelines (`transformers.set_seed(42)`).
46
+ - **Prompt Sensitivity Variations**: Evaluate across 3 distinct prompt variations to measure prompt robustness.
47
+
48
+ ## Error Recovery & Fallbacks
49
+ - If GPU VRAM is exceeded during evaluation, reduce batch size or enable 8-bit model loading (`load_in_8bit=True`).
50
+ - If dataset download fails from Hugging Face Hub, use cached local disk splits.
51
+
52
+ ## Code Exemplars & Patterns
53
+
54
+ ```python
55
+ import evaluate
56
+ from datasets import load_dataset
57
+ from transformers import pipeline, set_seed
58
+
59
+ set_seed(42)
60
+
61
+ # 1. Load evaluation metric and dataset
62
+ exact_match_metric = evaluate.load("exact_match")
63
+ eval_dataset = load_dataset("trivia_qa", "rc.nocontext", split="validation[:100]")
64
+
65
+ # 2. Initialize generation pipeline
66
+ generator = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct", device_map="auto")
67
+
68
+ predictions = []
69
+ references = []
70
+
71
+ for item in eval_dataset:
72
+ prompt = f"Answer concisely: {item['question']}\nAnswer:"
73
+ res = generator(prompt, max_new_tokens=32, temperature=0.0)
74
+ pred_text = res[0]['generated_text'].replace(prompt, '').strip()
75
+ predictions.append(pred_text)
76
+ references.append(item['answer']['value'])
77
+
78
+ results = exact_match_metric.compute(predictions=predictions, references=references)
79
+ print(f"Exact Match Accuracy: {results['exact_match']:.2%}")
80
+ ```
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: interaction-pattern-library
3
+ description: Production-grade Interaction Pattern Library playbook for design operations, UX systems, and growth strategy.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # Interaction Pattern Library
10
+
11
+ ## Overview & Purpose
12
+ The Interaction Pattern Library skill provides a deterministic framework for executing interaction pattern library 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 Interaction Pattern Library tasks.
19
+ - Auditing existing product assets or workflows.
20
+ - Standardizing interaction-pattern-library 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/interaction-pattern-library/spec.md` | Full specification and guidelines document |
42
+ | Component / Asset Files | `src/interaction-pattern-library/*` | Implemented design tokens, components, or campaign assets |
43
+ | Audit Report | `reports/interaction-pattern-library/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/interaction-pattern-library/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/interaction-pattern-library/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/interaction-pattern-library/ reports/interaction-pattern-library/
98
+ git commit -m "feat(interaction-pattern-library): implement Interaction Pattern Library playbook artifacts"
99
+ ```
100
+ 4. Publish documentation for team review.
101
+
102
+ ## Code & Configuration Exemplars
103
+
104
+ ### Exemplar 1: Interaction Pattern Library Configuration Specification
105
+ ```yaml
106
+ version: "2.0.0"
107
+ metadata:
108
+ skill: "interaction-pattern-library"
109
+ author: "agents-united"
110
+ rules:
111
+ strictValidation: true
112
+ reporting:
113
+ format: "json"
114
+ output: "reports/interaction-pattern-library/summary.json"
115
+ ```
116
+
117
+ ### Exemplar 2: Interaction Pattern Library Helper Module
118
+ ```typescript
119
+ export function runInteractionPatternLibrary(scope: string): boolean {
120
+ console.log('Running Interaction Pattern Library on:', scope);
121
+ return true;
122
+ }
123
+ ```
124
+
125
+ ## Edge Cases & Error Recovery Procedures
126
+
127
+ ### Scenario A: Validation Failure in Interaction Pattern Library
128
+ 1. **Diagnosis**: Specification or code asset fails validation rules in interaction-pattern-library.
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 Interaction Pattern Library
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,147 @@
1
+ ---
2
+ name: interactive-prototype-builder
3
+ description: Production-grade Interactive Prototype Builder playbook for design operations, UX systems, and growth strategy.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # Interactive Prototype Builder
10
+
11
+ ## Overview & Purpose
12
+ The Interactive Prototype Builder skill provides a deterministic framework for executing interactive prototype builder 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 Interactive Prototype Builder tasks.
19
+ - Auditing existing product assets or workflows.
20
+ - Standardizing interactive-prototype-builder 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/interactive-prototype-builder/spec.md` | Full specification and guidelines document |
42
+ | Component / Asset Files | `src/interactive-prototype-builder/*` | Implemented design tokens, components, or campaign assets |
43
+ | Audit Report | `reports/interactive-prototype-builder/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/interactive-prototype-builder/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/interactive-prototype-builder/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/interactive-prototype-builder/ reports/interactive-prototype-builder/
98
+ git commit -m "feat(interactive-prototype-builder): implement Interactive Prototype Builder playbook artifacts"
99
+ ```
100
+ 4. Publish documentation for team review.
101
+
102
+ ## Code & Configuration Exemplars
103
+
104
+ ### Exemplar 1: Interactive Prototype Builder Configuration Specification
105
+ ```yaml
106
+ version: "2.0.0"
107
+ metadata:
108
+ skill: "interactive-prototype-builder"
109
+ author: "agents-united"
110
+ rules:
111
+ strictValidation: true
112
+ reporting:
113
+ format: "json"
114
+ output: "reports/interactive-prototype-builder/summary.json"
115
+ ```
116
+
117
+ ### Exemplar 2: Interactive Prototype Builder Helper Module
118
+ ```typescript
119
+ export function runInteractivePrototypeBuilder(scope: string): boolean {
120
+ console.log('Running Interactive Prototype Builder on:', scope);
121
+ return true;
122
+ }
123
+ ```
124
+
125
+ ## Edge Cases & Error Recovery Procedures
126
+
127
+ ### Scenario A: Validation Failure in Interactive Prototype Builder
128
+ 1. **Diagnosis**: Specification or code asset fails validation rules in interactive-prototype-builder.
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 Interactive Prototype Builder
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,74 @@
1
+ ---
2
+ name: local-llm-inference
3
+ description: Local and on-premise LLM inference with Ollama, vLLM, GGUF quantizations, PagedAttention, and OpenAI-compatible API servers.
4
+ metadata:
5
+ author: "Ollama & vLLM Community / agents-united"
6
+ version: "2.0.0"
7
+ license: "MIT"
8
+ ---
9
+
10
+ # Local LLM Inference Playbook
11
+
12
+ ## Overview & Purpose
13
+ `local-llm-inference` provides configuration and optimization guidelines for running open-source LLMs locally (Ollama) or in high-concurrency production environments (vLLM).
14
+
15
+ ## When to Trigger
16
+ Trigger this skill whenever:
17
+ - Setting up local development workflows with privacy-preserving offline LLMs.
18
+ - Configuring Ollama CLI, custom Modelfile templates, and parameters.
19
+ - Deploying high-throughput vLLM inference servers with PagedAttention and continuous batching.
20
+ - Selecting model quantizations (GGUF, AWQ, GPTQ) for hardware memory limits.
21
+
22
+ ## Input & Output Requirements
23
+ - **Inputs**: Model name or GGUF file path, hardware specifications (CPU, Apple Silicon RAM, NVIDIA VRAM), and inference API port.
24
+ - **Outputs**: Running local inference daemon, OpenAI-compatible REST endpoints (`/v1/chat/completions`), and benchmark metrics.
25
+
26
+ ## Step-by-Step Execution Runbook
27
+
28
+ ### Phase 1 — Environment Reconnaissance & Model Selection
29
+ - Assess available RAM/VRAM to choose appropriate quantization (4-bit vs 8-bit).
30
+ - Pull model weights via Ollama CLI or download Hugging Face safetensors for vLLM.
31
+
32
+ ### Phase 2 — Server Launch & Optimization
33
+ - Launch Ollama server or start vLLM daemon with tuned `--gpu-memory-utilization` and `--max-model-len`.
34
+ - Verify GPU offloading layers and memory allocation.
35
+
36
+ ### Phase 3 — Verification & Client Connection
37
+ - Test local endpoint with curl or OpenAI SDK pointing to `http://localhost:11434/v1` or `http://localhost:8000/v1`.
38
+ - Measure Time-to-First-Token (TTFT) and sustained generation throughput.
39
+
40
+ ## Edge Cases & Boundary Conditions
41
+ - **System Memory Pressure**: If total model weights exceed VRAM, configure Ollama partial CPU offloading or reduce context length.
42
+ - **High Concurrency Latency Spikes**: Enable continuous batching and tensor parallelism across multiple GPUs in vLLM.
43
+ - **Prompt Format Mismatches**: Ensure chat templates match exact model tokenizers (e.g. ChatML, Llama-3 headers).
44
+
45
+ ## Error Recovery & Fallbacks
46
+ - If vLLM crashes with CUDA OOM, restart daemon with lower `--gpu-memory-utilization 0.80` and `--max-num-seqs 64`.
47
+ - If Ollama service fails to respond, restart daemon and verify model file integrity with `ollama list`.
48
+
49
+ ## Code Exemplars & Patterns
50
+
51
+ ```bash
52
+ # Start vLLM OpenAI-compatible server with PagedAttention and AWQ quantization
53
+ python3 -m vllm.entrypoints.openai.api_server \
54
+ --model casperhansen/llama-3-8b-instruct-awq \
55
+ --quantization awq \
56
+ --dtype float16 \
57
+ --gpu-memory-utilization 0.90 \
58
+ --max-model-len 8192 \
59
+ --port 8000
60
+ ```
61
+
62
+ ```python
63
+ from openai import OpenAI
64
+
65
+ # Connect standard OpenAI client to local vLLM / Ollama instance
66
+ client = OpenAI(base_url="http://localhost:8000/v1", api_key="local-token")
67
+
68
+ response = client.chat.completions.create(
69
+ model="casperhansen/llama-3-8b-instruct-awq",
70
+ messages=[{"role": "user", "content": "Explain vector indexing in 2 sentences."}],
71
+ temperature=0.7,
72
+ )
73
+ print(response.choices[0].message.content)
74
+ ```
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: maestro-mobile-testing
3
+ description: Declarative mobile UI testing with Maestro, automated mobile regression flows, deep linking, and cross-platform verification.
4
+ metadata:
5
+ author: "tovimx (tovimx/maestro-mobile-testing-skill)"
6
+ version: "1.0.0"
7
+ source: "https://skills.sh/tovimx/maestro-mobile-testing-skill/maestro-mobile-testing"
8
+ ---
9
+
10
+ # Maestro Mobile E2E Testing Playbook
11
+
12
+ ## Overview & Purpose
13
+ `maestro-mobile-testing` provides instructions and patterns for authoring declarative, readable mobile UI test flows for iOS and Android using Maestro.
14
+
15
+ ## Rules & Constraints
16
+ 1. **Use Text and Accessibility Identifiers** — Prefer `tapOn: "Button Text"` or `tapOn: { id: "button_id" }` over brittle coordinates.
17
+ 2. **Avoid Hardcoded Sleeps** — Rely on Maestro's built-in auto-waiting for elements to render.
18
+ 3. **Isolate Test Flows** — Use `launchApp: { clearState: true }` to guarantee independent test preconditions.
19
+ 4. **Assert Visible Text and State** — Verify expected screen content with `assertVisible: "Welcome Screen"`.
20
+
21
+ ## Step-by-Step Execution Runbook
22
+
23
+ ### Phase 1 — Test Flow Definition
24
+ - Create `.maestro/` directory containing YAML test flow files (e.g. `auth_flow.yaml`, `checkout_flow.yaml`).
25
+ - Define appId and target environment configurations.
26
+
27
+ ### Phase 2 — Flow Execution & Actions
28
+ - Author steps: `tapOn`, `inputText`, `scroll`, `back`, `assertVisible`.
29
+ - Add conditional checks (`runFlow: { when: { visible: "Modal" } }`).
30
+
31
+ ### Phase 3 — Verification
32
+ - Run tests on iOS Simulator and Android Emulator via `maestro test .maestro/`.
33
+
34
+ ## Verification Checklist
35
+ - [ ] Test flows execute deterministically on both iOS and Android.
36
+ - [ ] No brittle coordinate-based taps.
37
+ - [ ] Clear error logs and screenshots captured on assertion failure.
@@ -0,0 +1,182 @@
1
+ ---
2
+ name: marketing-creative-design
3
+ description: Production-grade Marketing Creative Design playbook for multi-channel ad creative layouts, visual hierarchy, aspect ratio adaptation, brand asset generation, and export optimization.
4
+ metadata:
5
+ author: "agents-united"
6
+ version: "2.0.0"
7
+ ---
8
+
9
+ # Marketing Creative Design & Multi-Channel Visual Asset Generation
10
+
11
+ ## Overview & Purpose
12
+ The Marketing Creative Design skill provides a deterministic framework for generating high-converting visual advertising creatives, banner layouts, social media visual assets, typography scales, color palettes, and responsive multi-aspect ratio asset packages (1:1 square, 9:16 vertical stories/reels, 16:9 widescreen landscape, 4:5 mobile feed portrait).
13
+
14
+ Following this skill ensures strict brand guideline adherence, visual hierarchy compliance, WCAG contrast accessibility, and automated multi-channel export optimization (WebP, AVIF, SVG, PNG).
15
+
16
+ ## Execution Triggers & Prerequisites
17
+ ### Execution Triggers
18
+ - Request to design multi-channel ad creative suites (Meta, Google Display, LinkedIn, Twitter/X, TikTok).
19
+ - Generating responsive banner ad variants and hero visual graphics.
20
+ - Creating standardized brand asset kits and typography/color design tokens for marketing campaigns.
21
+ - Exporting, compressing, and formatting creative visual assets for production ad deployment.
22
+
23
+ ### Prerequisites
24
+ - Brand identity guidelines (color tokens, font families, logo vector files).
25
+ - Campaign messaging, headline copy, value proposition hooks, and primary call-to-action (CTA).
26
+ - Asset processing tooling operational (Sharp, Squoosh, Canvas/SVG generators, Figma tokens).
27
+ - Clean git working directory.
28
+
29
+ ## Input & Output Requirements
30
+ ### Inputs
31
+ | Parameter | Type | Required | Description |
32
+ |---|---|---|---|
33
+ | `campaign_name` | String | Yes | Unique campaign or experiment identifier |
34
+ | `target_aspect_ratios` | Array<String> | Yes | Target ratios: `['1:1', '9:16', '16:9', '4:5']` |
35
+ | `headline_hook` | String | Yes | Primary hook headline text for creative display |
36
+ | `cta_text` | String | Yes | Button label (e.g. "Start Free Trial", "Book Demo") |
37
+ | `brand_tokens` | Object | Optional | Color hex codes, typography scale, logo paths |
38
+ | `output_format` | String | Optional | Desired export format (`webp`, `avif`, `png`, `svg`) |
39
+
40
+ ### Outputs
41
+ | Artifact | Path / Format | Description |
42
+ |---|---|---|
43
+ | Creative Brief Spec | `docs/marketing-creative-design/creative-brief.md` | Full design specification and layout rules |
44
+ | Generated Assets | `assets/creatives/<campaign>/*` | Multi-aspect ratio image and vector assets |
45
+ | Asset Manifest | `reports/marketing-creative-design/manifest.json` | Dimension, aspect ratio, and file size index |
46
+ | Visual Audit Report | `reports/marketing-creative-design/audit.json` | Contrast ratio, safe-zone, and file size checks |
47
+
48
+ ## Step-by-Step Execution Runbook
49
+
50
+ ### Phase 1: Creative Brief Analysis & Visual Architecture
51
+ 1. Ingest campaign goals, target buyer persona, and core value proposition.
52
+ 2. Select visual layout archetype (Hero Product Showcase, Split Comparison, Social Proof Badge, Bold Typography Hook).
53
+ 3. Establish color palette hierarchy: 60% dominant canvas, 30% structural contrast, 10% high-contrast accent for CTA.
54
+ 4. Verify typography hierarchy (Headline > Subheadline > Benefit Bullets > CTA Button > Microcopy/Legal).
55
+ 5. Inspect repository asset directories to locate existing brand vectors and font files.
56
+ ```bash
57
+ find assets/ -type f -name "*.svg" -o -name "*.png"
58
+ ```
59
+
60
+ ### Phase 2: Design Token & Aspect Ratio Grid Layout Setup
61
+ 1. Define aspect ratio canvas dimensions:
62
+ - 1:1 Feed Square: 1080 x 1080 px
63
+ - 9:16 Vertical Stories / Reels / TikTok: 1080 x 1920 px (Safe zone: top 250px, bottom 350px clear)
64
+ - 16:9 Widescreen Display / YouTube: 1920 x 1080 px (or 1200 x 628 px for Google Display)
65
+ - 4:5 Mobile Feed Portrait: 1080 x 1350 px
66
+ 2. Configure layout grid margins (minimum 64px padding on mobile, 96px on desktop displays).
67
+ 3. Set up responsive text scaling curves to ensure headline readability across mobile viewports.
68
+ 4. Establish focal point safe zones to prevent platform UI overlay clipping (profile icons, audio badges, CTA bars).
69
+
70
+ ### Phase 3: Visual Asset Composition & Multi-Variant Generation
71
+ 1. Compose base vector or canvas layout applying design system tokens.
72
+ 2. Render headline typography with strict line-height and kerning adjustments.
73
+ 3. Position primary brand mark/logo in top-left or top-center anchor with minimum clear space.
74
+ 4. Insert hero imagery or product mockups with calibrated drop shadows and elevation depth.
75
+ 5. Render high-contrast CTA pill button with accessible foreground/background color combinations.
76
+ 6. Generate multi-variant creative matrices testing 3 headline angles against 2 background styles (6 variants total).
77
+
78
+ ### Phase 4: Contrast Auditing, File Optimization & Export Encoding
79
+ 1. Execute automated WCAG AA/AAA contrast check between text elements and background layers (minimum 4.5:1 ratio).
80
+ 2. Run image compression pipeline targeting optimal delivery sizes:
81
+ - Display Ads: < 150 KB
82
+ - Social Feed Creatives: < 1.5 MB (lossless WebP/PNG)
83
+ 3. Convert master vector graphics into optimized WebP and high-density 2x PNG assets.
84
+ ```bash
85
+ node scripts/optimize-creatives.js --input assets/creatives/raw --output assets/creatives/dist
86
+ ```
87
+ 4. Verify image dimensions, color profiles (sRGB), and metadata strip compliance.
88
+
89
+ ### Phase 5: Manifest Compilation & Asset Review Handoff
90
+ 1. Compile generated creative manifest indexing filenames, dimensions, aspect ratios, file sizes, and checksums.
91
+ 2. Generate visual review sheet at `docs/marketing-creative-design/creative-brief.md`.
92
+ 3. Verify zero broken image references or missing aspect ratio variants.
93
+ 4. Commit validated creative assets to git repository.
94
+ ```bash
95
+ git add assets/creatives/ docs/marketing-creative-design/
96
+ git commit -m "feat(marketing-creative-design): generate multi-channel creative asset suite"
97
+ ```
98
+ 5. Hand off creative assets to paid acquisition and campaign execution teams.
99
+
100
+ ## Code & Configuration Exemplars
101
+
102
+ ### Exemplar 1: Multi-Aspect Ratio Creative Layout Specification
103
+ ```yaml
104
+ version: "2.0.0"
105
+ campaign: "q3-enterprise-saas-launch"
106
+ brand:
107
+ colors:
108
+ primary: "#0F172A"
109
+ accent: "#3B82F6"
110
+ cta: "#10B981"
111
+ background: "#F8FAFC"
112
+ typography:
113
+ headlineFont: "Inter, sans-serif"
114
+ weight: 800
115
+ variants:
116
+ - ratio: "1:1"
117
+ width: 1080
118
+ height: 1080
119
+ safeZone: { top: 64, bottom: 64, left: 64, right: 64 }
120
+ layout: "center-stacked"
121
+ - ratio: "9:16"
122
+ width: 1080
123
+ height: 1920
124
+ safeZone: { top: 250, bottom: 350, left: 80, right: 80 }
125
+ layout: "vertical-flow"
126
+ - ratio: "16:9"
127
+ width: 1920
128
+ height: 1080
129
+ safeZone: { top: 80, bottom: 80, left: 120, right: 120 }
130
+ layout: "split-horizontal"
131
+ ```
132
+
133
+ ### Exemplar 2: TypeScript Programmatic Creative Asset Generator
134
+ ```typescript
135
+ export interface CreativeAssetSpec {
136
+ campaign: string;
137
+ variantId: string;
138
+ aspectRatio: '1:1' | '9:16' | '16:9' | '4:5';
139
+ width: number;
140
+ height: number;
141
+ headline: string;
142
+ ctaText: string;
143
+ }
144
+
145
+ export function compileCreativeManifest(specs: CreativeAssetSpec[]): Record<string, any> {
146
+ return {
147
+ generatedAt: new Date().toISOString(),
148
+ totalVariants: specs.length,
149
+ assets: specs.map(spec => ({
150
+ id: `${spec.campaign}-${spec.variantId}-${spec.aspectRatio.replace(':', 'x')}`,
151
+ dimensions: `${spec.width}x${spec.height}`,
152
+ ratio: spec.aspectRatio,
153
+ exportPath: `assets/creatives/${spec.campaign}/${spec.variantId}-${spec.aspectRatio.replace(':', 'x')}.webp`,
154
+ })),
155
+ };
156
+ }
157
+ ```
158
+
159
+ ## Edge Cases & Error Recovery Procedures
160
+
161
+ ### Scenario A: Text Safe-Zone Violation on Vertical 9:16 Assets
162
+ 1. **Diagnosis**: Headline copy or CTA button overlaps with platform UI overlays (TikTok sound icon, Instagram profile footer).
163
+ 2. **Recovery Protocol**:
164
+ - Step 1: Detect bounding box coordinates of text and CTA layers against safe-zone boundaries (top 250px, bottom 350px).
165
+ - Step 2: Recalculate vertical flow offset and clamp text positioning inside the 1320px central vertical window.
166
+ - Step 3: Re-render vertical 9:16 asset variant and re-verify bounding box clearance.
167
+
168
+ ### Scenario B: Creative File Size Exceeds Ad Network Limit
169
+ 1. **Diagnosis**: Exported display creative exceeds network constraint (e.g. Google Display Ad limit of 150 KB).
170
+ 2. **Recovery Protocol**:
171
+ - Step 1: Analyze image compression parameters and color depth.
172
+ - Step 2: Apply adaptive lossy WebP compression with quality step degradation (85 -> 80 -> 75).
173
+ - Step 3: Strip extraneous EXIF metadata and re-encode to confirm file size <= 150 KB.
174
+
175
+ ## Verification & Validation Checklist
176
+ - [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
177
+ - [ ] All 7 mandatory sections present with explicit headers.
178
+ - [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
179
+ - [ ] Multi-aspect ratios (1:1, 9:16, 16:9, 4:5) defined with exact pixel grids and safe zones.
180
+ - [ ] Code exemplars provided with valid syntax fencing.
181
+ - [ ] Zero dummy placeholder strings or unpopulated template markers present.
182
+ - [ ] Project build, test suite, and doctor check pass 100% cleanly.