agents-united 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +673 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +4789 -0
- package/dist/cli.js.map +1 -0
- package/package.json +77 -0
- package/registry/agents/orchestrator-business.md +188 -0
- package/registry/agents/orchestrator-design.md +168 -0
- package/registry/agents/orchestrator-engineering.md +183 -0
- package/registry/agents/orchestrator-marketing.md +228 -0
- package/registry/agents/orchestrator-research.md +196 -0
- package/registry/agents/orchestrator-security.md +190 -0
- package/registry/agents/orchestrator-system-architecture.md +171 -0
- package/registry/agents/orchestrator-universal.md +168 -0
- package/registry/agents/subagent-accessibility-lead.md +47 -0
- package/registry/agents/subagent-ai-model-architect.md +97 -0
- package/registry/agents/subagent-android-architect.md +47 -0
- package/registry/agents/subagent-appsec-penetration-tester.md +189 -0
- package/registry/agents/subagent-backend-architect.md +360 -0
- package/registry/agents/subagent-business-panel-experts.md +126 -0
- package/registry/agents/subagent-cloud-infrastructure-architect.md +126 -0
- package/registry/agents/subagent-cloud-security-architect.md +221 -0
- package/registry/agents/subagent-code-reviewer.md +193 -0
- package/registry/agents/subagent-compliance-grc-specialist.md +147 -0
- package/registry/agents/subagent-cross-platform-specialist.md +47 -0
- package/registry/agents/subagent-data-engineer.md +46 -0
- package/registry/agents/subagent-database-administrator.md +141 -0
- package/registry/agents/subagent-deep-research.md +94 -0
- package/registry/agents/subagent-design-ops-lead.md +121 -0
- package/registry/agents/subagent-design-researcher.md +133 -0
- package/registry/agents/subagent-design-systems-architect.md +134 -0
- package/registry/agents/subagent-designer-toolkit-expert.md +363 -0
- package/registry/agents/subagent-devops-engineer.md +423 -0
- package/registry/agents/subagent-distributed-systems-architect.md +47 -0
- package/registry/agents/subagent-e2e-tester.md +60 -0
- package/registry/agents/subagent-financial-analyst.md +119 -0
- package/registry/agents/subagent-finops-cost-engineer.md +98 -0
- package/registry/agents/subagent-frontend-architect.md +368 -0
- package/registry/agents/subagent-interaction-designer.md +302 -0
- package/registry/agents/subagent-ios-architect.md +46 -0
- package/registry/agents/subagent-legal-contract-analyst.md +108 -0
- package/registry/agents/subagent-lifecycle-email-specialist.md +46 -0
- package/registry/agents/subagent-literature-patent-analyst.md +78 -0
- package/registry/agents/subagent-market-intelligence-analyst.md +110 -0
- package/registry/agents/subagent-marketing-campaign-specialist.md +80 -0
- package/registry/agents/subagent-marketing-content-strategist.md +184 -0
- package/registry/agents/subagent-marketing-conversion-specialist.md +79 -0
- package/registry/agents/subagent-marketing-creative-designer.md +93 -0
- package/registry/agents/subagent-marketing-growth-strategist.md +137 -0
- package/registry/agents/subagent-ml-platform-engineer.md +95 -0
- package/registry/agents/subagent-operations-strategist.md +85 -0
- package/registry/agents/subagent-paid-acquisition-specialist.md +47 -0
- package/registry/agents/subagent-plg-strategist.md +46 -0
- package/registry/agents/subagent-prototype-tester.md +140 -0
- package/registry/agents/subagent-qa-automation-lead.md +63 -0
- package/registry/agents/subagent-repo-index.md +180 -0
- package/registry/agents/subagent-security-engineer.md +134 -0
- package/registry/agents/subagent-seo-specialist.md +46 -0
- package/registry/agents/subagent-socratic-mentor.md +105 -0
- package/registry/agents/subagent-statistical-analyst.md +132 -0
- package/registry/agents/subagent-sysops-sre-lead.md +84 -0
- package/registry/agents/subagent-system-architect.md +122 -0
- package/registry/agents/subagent-ui-designer.md +149 -0
- package/registry/agents/subagent-ux-strategist.md +88 -0
- package/registry/bundles.json +1386 -0
- package/registry/rules/AGENTS.md +41 -0
- package/registry/rules/CLAUDE.md +12 -0
- package/registry/rules/CURSOR.md +12 -0
- package/registry/rules/GEMINI.md +41 -0
- package/registry/rules/clean-code-and-architecture.md +25 -0
- package/registry/rules/domain-modeling-and-adr.md +27 -0
- package/registry/rules/git-guardrails.md +19 -0
- package/registry/rules/multi-agent-coordination.md +33 -0
- package/registry/rules/quality-aesthetics-accessibility.md +29 -0
- package/registry/rules/skill-attribution.md +27 -0
- package/registry/rules/test-driven-development.md +41 -0
- package/registry/skills/ab-test-setup/SKILL.md +150 -0
- package/registry/skills/accessibility-audit/SKILL.md +150 -0
- package/registry/skills/ad-attribution-modeling/SKILL.md +206 -0
- package/registry/skills/ad-creative-design/SKILL.md +27 -0
- package/registry/skills/ai-prototype-refactoring/SKILL.md +29 -0
- package/registry/skills/architecture-design/SKILL.md +141 -0
- package/registry/skills/azure-infrastructure-bicep/SKILL.md +28 -0
- package/registry/skills/backend-api-design/SKILL.md +151 -0
- package/registry/skills/chaos-engineering/SKILL.md +41 -0
- package/registry/skills/churn-prevention-playbook/SKILL.md +181 -0
- package/registry/skills/ci-cd-pipeline-automation/SKILL.md +40 -0
- package/registry/skills/clickable-prototype-spec/SKILL.md +150 -0
- package/registry/skills/code-refactoring/SKILL.md +135 -0
- package/registry/skills/component-library-management/SKILL.md +150 -0
- package/registry/skills/component-playground-setup/SKILL.md +150 -0
- package/registry/skills/content-calendar-strategy/SKILL.md +150 -0
- package/registry/skills/conversion-funnel-optimization/SKILL.md +150 -0
- package/registry/skills/copywriting-frameworks/SKILL.md +150 -0
- package/registry/skills/database-design/SKILL.md +135 -0
- package/registry/skills/dependency-management/SKILL.md +142 -0
- package/registry/skills/design-handoff-spec/SKILL.md +150 -0
- package/registry/skills/design-ops-workflow/SKILL.md +150 -0
- package/registry/skills/design-system-governance/SKILL.md +150 -0
- package/registry/skills/design-system-tokens/SKILL.md +150 -0
- package/registry/skills/design-tokens-management/SKILL.md +150 -0
- package/registry/skills/design-version-control/SKILL.md +150 -0
- package/registry/skills/diagnosing-bugs/SKILL.md +45 -0
- package/registry/skills/docker-deployment/SKILL.md +144 -0
- package/registry/skills/domain-modeling/SKILL.md +52 -0
- package/registry/skills/email-drip-sequences/SKILL.md +181 -0
- package/registry/skills/email-marketing-automation/SKILL.md +150 -0
- package/registry/skills/finishing-a-development-branch/SKILL.md +132 -0
- package/registry/skills/frontend-component-design/SKILL.md +153 -0
- package/registry/skills/git-guardrails/SKILL.md +41 -0
- package/registry/skills/google-ads-optimization/SKILL.md +27 -0
- package/registry/skills/graphql-schema-design/SKILL.md +146 -0
- package/registry/skills/grill-me/SKILL.md +57 -0
- package/registry/skills/grill-with-docs/SKILL.md +84 -0
- package/registry/skills/growth-experiment-design/SKILL.md +150 -0
- package/registry/skills/handoff/SKILL.md +44 -0
- package/registry/skills/hf-model-evaluation/SKILL.md +84 -0
- package/registry/skills/interaction-pattern-library/SKILL.md +150 -0
- package/registry/skills/interactive-prototype-builder/SKILL.md +157 -0
- package/registry/skills/local-llm-inference/SKILL.md +77 -0
- package/registry/skills/maestro-mobile-testing/SKILL.md +40 -0
- package/registry/skills/marketing-creative-design/SKILL.md +186 -0
- package/registry/skills/mcp-setup/SKILL.md +370 -0
- package/registry/skills/meta-ad-creative-testing/SKILL.md +26 -0
- package/registry/skills/micro-interaction-design/SKILL.md +150 -0
- package/registry/skills/microservices-architecture/SKILL.md +141 -0
- package/registry/skills/mobile-android-design/SKILL.md +40 -0
- package/registry/skills/mobile-first-design/SKILL.md +150 -0
- package/registry/skills/mobile-ios-design/SKILL.md +40 -0
- package/registry/skills/mobile-platform-offline-validate/SKILL.md +41 -0
- package/registry/skills/modal-serverless-python/SKILL.md +81 -0
- package/registry/skills/onboarding-cro/SKILL.md +185 -0
- package/registry/skills/paid-acquisition-ppc/SKILL.md +171 -0
- package/registry/skills/performance-optimization/SKILL.md +141 -0
- package/registry/skills/playwright-best-practices/SKILL.md +39 -0
- package/registry/skills/product-launch-playbook/SKILL.md +150 -0
- package/registry/skills/programmatic-seo/SKILL.md +213 -0
- package/registry/skills/rag-vector-pipeline/SKILL.md +84 -0
- package/registry/skills/react-best-practices/SKILL.md +40 -0
- package/registry/skills/receiving-code-review/SKILL.md +130 -0
- package/registry/skills/replicate-model-inference/SKILL.md +76 -0
- package/registry/skills/requesting-code-review/SKILL.md +137 -0
- package/registry/skills/responsive-design-audit/SKILL.md +150 -0
- package/registry/skills/runpod-gpu-orchestration/SKILL.md +85 -0
- package/registry/skills/schema-markup-strategy/SKILL.md +194 -0
- package/registry/skills/security-audit/SKILL.md +139 -0
- package/registry/skills/seo-audit/SKILL.md +150 -0
- package/registry/skills/signup-flow-cro/SKILL.md +150 -0
- package/registry/skills/social-media-campaign/SKILL.md +150 -0
- package/registry/skills/state-driven-ui-animation/SKILL.md +150 -0
- package/registry/skills/subagent-driven-development/SKILL.md +135 -0
- package/registry/skills/supabase-backend-architecture/SKILL.md +28 -0
- package/registry/skills/systematic-debugging/SKILL.md +138 -0
- package/registry/skills/technical-documentation/SKILL.md +136 -0
- package/registry/skills/technical-seo-audit/SKILL.md +27 -0
- package/registry/skills/telemetry-monitoring/SKILL.md +40 -0
- package/registry/skills/test-driven-development/SKILL.md +135 -0
- package/registry/skills/to-spec/SKILL.md +48 -0
- package/registry/skills/to-tickets/SKILL.md +47 -0
- package/registry/skills/turso-distributed-sqlite/SKILL.md +27 -0
- package/registry/skills/ui-component-spec/SKILL.md +150 -0
- package/registry/skills/usability-testing-protocol/SKILL.md +150 -0
- package/registry/skills/user-flow-mapping/SKILL.md +150 -0
- package/registry/skills/user-journey-mapping/SKILL.md +150 -0
- package/registry/skills/vector-database-design/SKILL.md +84 -0
- package/registry/skills/vercel-deploy-best-practices/SKILL.md +28 -0
- package/registry/skills/viral-referral-loops/SKILL.md +209 -0
- package/registry/workflows/workflow-agency-ad-creative-sprint.md +50 -0
- package/registry/workflows/workflow-agency-brand-design-system.md +50 -0
- package/registry/workflows/workflow-agency-client-pitch-proposal.md +50 -0
- package/registry/workflows/workflow-agency-cro-funnel-teardown.md +50 -0
- package/registry/workflows/workflow-agency-full-campaign.md +58 -0
- package/registry/workflows/workflow-agency-seo-content-engine.md +50 -0
- package/registry/workflows/workflow-analyze.md +60 -0
- package/registry/workflows/workflow-api-contract-design.md +48 -0
- package/registry/workflows/workflow-app-store-release.md +48 -0
- package/registry/workflows/workflow-brainstorm.md +60 -0
- package/registry/workflows/workflow-build.md +60 -0
- package/registry/workflows/workflow-business-panel.md +60 -0
- package/registry/workflows/workflow-cleanup.md +60 -0
- package/registry/workflows/workflow-deploy-staging.md +49 -0
- package/registry/workflows/workflow-design-code.md +60 -0
- package/registry/workflows/workflow-design-ops--handoff.md +60 -0
- package/registry/workflows/workflow-design-ops--plan-sprint.md +60 -0
- package/registry/workflows/workflow-design-ops--setup-workflow.md +60 -0
- package/registry/workflows/workflow-design-orchestrate.md +60 -0
- package/registry/workflows/workflow-design-systems--audit-system.md +60 -0
- package/registry/workflows/workflow-design-systems--create-component.md +60 -0
- package/registry/workflows/workflow-design-systems--tokenize.md +60 -0
- package/registry/workflows/workflow-diagnose.md +45 -0
- package/registry/workflows/workflow-e2e-testing.md +49 -0
- package/registry/workflows/workflow-email-drip-sequence.md +65 -0
- package/registry/workflows/workflow-estimate.md +60 -0
- package/registry/workflows/workflow-explain.md +60 -0
- package/registry/workflows/workflow-frontend-audit.md +49 -0
- package/registry/workflows/workflow-git.md +60 -0
- package/registry/workflows/workflow-grill.md +51 -0
- package/registry/workflows/workflow-implement.md +61 -0
- package/registry/workflows/workflow-incident-triage.md +49 -0
- package/registry/workflows/workflow-interaction-design--design-interaction.md +60 -0
- package/registry/workflows/workflow-interaction-design--error-flow.md +60 -0
- package/registry/workflows/workflow-interaction-design--map-states.md +60 -0
- package/registry/workflows/workflow-marketing-audit.md +60 -0
- package/registry/workflows/workflow-marketing-campaign-builder.md +60 -0
- package/registry/workflows/workflow-marketing-content-pipeline.md +60 -0
- package/registry/workflows/workflow-marketing-growth-experiment.md +60 -0
- package/registry/workflows/workflow-marketing-launch.md +60 -0
- package/registry/workflows/workflow-marketing-panel.md +60 -0
- package/registry/workflows/workflow-ml-eval.md +51 -0
- package/registry/workflows/workflow-mobile-build.md +49 -0
- package/registry/workflows/workflow-onboarding-funnel-cro.md +65 -0
- package/registry/workflows/workflow-paid-acquisition-campaign.md +65 -0
- package/registry/workflows/workflow-paid-campaign-launch.md +47 -0
- package/registry/workflows/workflow-plan.md +60 -0
- package/registry/workflows/workflow-prototyping-testing--evaluate.md +60 -0
- package/registry/workflows/workflow-prototyping-testing--experiment.md +60 -0
- package/registry/workflows/workflow-prototyping-testing--prototype-plan.md +60 -0
- package/registry/workflows/workflow-prototyping-testing--test-plan.md +60 -0
- package/registry/workflows/workflow-rag-pipeline-deploy.md +53 -0
- package/registry/workflows/workflow-recommend.md +60 -0
- package/registry/workflows/workflow-research.md +60 -0
- package/registry/workflows/workflow-review.md +60 -0
- package/registry/workflows/workflow-seo-audit-pipeline.md +47 -0
- package/registry/workflows/workflow-seo-content-pipeline.md +65 -0
- package/registry/workflows/workflow-serverless-gpu-deploy.md +52 -0
- package/registry/workflows/workflow-spec-panel.md +60 -0
- package/registry/workflows/workflow-spec.md +44 -0
- package/registry/workflows/workflow-test.md +60 -0
- package/registry/workflows/workflow-troubleshoot.md +60 -0
- package/registry/workflows/workflow-ui-design--color-palette.md +60 -0
- package/registry/workflows/workflow-ui-design--design-screen.md +60 -0
- package/registry/workflows/workflow-ui-design--responsive-audit.md +60 -0
- package/registry/workflows/workflow-ui-design--type-system.md +60 -0
- package/registry/workflows/workflow-ux-strategy--benchmark.md +60 -0
- package/registry/workflows/workflow-ux-strategy--frame-problem.md +60 -0
- package/registry/workflows/workflow-ux-strategy--strategize.md +60 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: Capture session progress, active context, decision logs, and
|
|
4
|
+
remaining tasks to pass context seamlessly between subagents or future
|
|
5
|
+
sessions.
|
|
6
|
+
metadata:
|
|
7
|
+
author: Matt Pocock (mattpocock/skills)
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
source: https://github.com/mattpocock/skills
|
|
10
|
+
icon: ๐ค
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Session Handoff & Context Persistence
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`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.
|
|
17
|
+
|
|
18
|
+
## Input & Output Requirements
|
|
19
|
+
### Inputs
|
|
20
|
+
| Parameter | Type | Required | Description |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| `summary` | String | Yes | Brief description of completed work and current state |
|
|
23
|
+
|
|
24
|
+
### Outputs
|
|
25
|
+
| Artifact | Path / Format | Description |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| Handoff Document | `docs/handoff/HANDOFF-<date>.md` | Persistent session summary and open task list |
|
|
28
|
+
|
|
29
|
+
## Step-by-Step Execution Runbook
|
|
30
|
+
|
|
31
|
+
### Phase 1 โ State Capture
|
|
32
|
+
1. Summarize key achievements and completed PRs/commits in this session.
|
|
33
|
+
2. List modified files and current git branch.
|
|
34
|
+
|
|
35
|
+
### Phase 2 โ Remaining Work & Blockers
|
|
36
|
+
1. Highlight open tasks, failing tests, or unmerged branches.
|
|
37
|
+
2. Document explicit next steps for the incoming agent.
|
|
38
|
+
|
|
39
|
+
### Phase 3 โ Persistence
|
|
40
|
+
1. Save handoff notes to `docs/handoff/` or output directly in session response.
|
|
41
|
+
|
|
42
|
+
## Verification & Validation Checklist
|
|
43
|
+
- [ ] Frontmatter contains author attribution to Matt Pocock.
|
|
44
|
+
- [ ] Handoff summary includes completed items, open items, and next steps.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hf-model-evaluation
|
|
3
|
+
description: Automated evaluation, benchmarking, dataset curation, and
|
|
4
|
+
leaderboard metric verification using the Hugging Face ecosystem (Evaluate,
|
|
5
|
+
Datasets, Transformers).
|
|
6
|
+
metadata:
|
|
7
|
+
author: Hugging Face / agents-united
|
|
8
|
+
version: 2.0.0
|
|
9
|
+
license: MIT
|
|
10
|
+
icon: ๐ค
|
|
11
|
+
disable-slash-command: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Hugging Face Model Evaluation Playbook
|
|
15
|
+
|
|
16
|
+
## Overview & Purpose
|
|
17
|
+
`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.
|
|
18
|
+
|
|
19
|
+
## When to Trigger
|
|
20
|
+
Trigger this skill whenever:
|
|
21
|
+
- Running deterministic evaluation benchmarks (MMLU, GSM8k, HumanEval, ARC, Hellaswag).
|
|
22
|
+
- Measuring LLM answer faithfulness, context recall, and toxicity scoring with automated harnesses.
|
|
23
|
+
- Curating golden evaluation splits and synthetic test datasets with Hugging Face Datasets.
|
|
24
|
+
- Generating comprehensive model cards and leaderboard performance summaries.
|
|
25
|
+
|
|
26
|
+
## Input & Output Requirements
|
|
27
|
+
- **Inputs**: Target model weights/repo ID, evaluation dataset split names, benchmark task configuration YAML, and random seeds.
|
|
28
|
+
- **Outputs**: Automated metric reports (accuracy, exact match, F1, ROUGE, BERTScore), latency benchmarks, and Hugging Face model cards.
|
|
29
|
+
|
|
30
|
+
## Step-by-Step Execution Runbook
|
|
31
|
+
|
|
32
|
+
### Phase 1 โ Benchmark Task & Dataset Configuration
|
|
33
|
+
- Load standardized benchmark datasets via `datasets.load_dataset()`.
|
|
34
|
+
- Define few-shot prompt formatting templates and deterministic parameters (temperature=0, top_p=1.0).
|
|
35
|
+
|
|
36
|
+
### Phase 2 โ Evaluation Harness Execution
|
|
37
|
+
- Run batch evaluation using `lm-evaluation-harness` or `ragas` library.
|
|
38
|
+
- Log token generation latency, GPU memory footprint, and exact match outputs.
|
|
39
|
+
|
|
40
|
+
### Phase 3 โ Metric Aggregation & Error Analysis
|
|
41
|
+
- Aggregate scores across dataset domains and identify failure clusters.
|
|
42
|
+
- Compute confidence intervals and statistical significance deltas against baseline models.
|
|
43
|
+
|
|
44
|
+
### Phase 4 โ Model Card Publishing
|
|
45
|
+
- Document evaluation methodology, carbon footprint, model limitations, and benchmark results in a README model card.
|
|
46
|
+
|
|
47
|
+
## Edge Cases & Boundary Conditions
|
|
48
|
+
- **Data Contamination**: Audit evaluation test splits against training datasets to ensure no memorization or test set leakage.
|
|
49
|
+
- **Non-Deterministic Outputs**: Fix random seeds in PyTorch, CUDA, and Hugging Face pipelines (`transformers.set_seed(42)`).
|
|
50
|
+
- **Prompt Sensitivity Variations**: Evaluate across 3 distinct prompt variations to measure prompt robustness.
|
|
51
|
+
|
|
52
|
+
## Error Recovery & Fallbacks
|
|
53
|
+
- If GPU VRAM is exceeded during evaluation, reduce batch size or enable 8-bit model loading (`load_in_8bit=True`).
|
|
54
|
+
- If dataset download fails from Hugging Face Hub, use cached local disk splits.
|
|
55
|
+
|
|
56
|
+
## Code Exemplars & Patterns
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
import evaluate
|
|
60
|
+
from datasets import load_dataset
|
|
61
|
+
from transformers import pipeline, set_seed
|
|
62
|
+
|
|
63
|
+
set_seed(42)
|
|
64
|
+
|
|
65
|
+
# 1. Load evaluation metric and dataset
|
|
66
|
+
exact_match_metric = evaluate.load("exact_match")
|
|
67
|
+
eval_dataset = load_dataset("trivia_qa", "rc.nocontext", split="validation[:100]")
|
|
68
|
+
|
|
69
|
+
# 2. Initialize generation pipeline
|
|
70
|
+
generator = pipeline("text-generation", model="meta-llama/Llama-3.1-8B-Instruct", device_map="auto")
|
|
71
|
+
|
|
72
|
+
predictions = []
|
|
73
|
+
references = []
|
|
74
|
+
|
|
75
|
+
for item in eval_dataset:
|
|
76
|
+
prompt = f"Answer concisely: {item['question']}\nAnswer:"
|
|
77
|
+
res = generator(prompt, max_new_tokens=32, temperature=0.0)
|
|
78
|
+
pred_text = res[0]['generated_text'].replace(prompt, '').strip()
|
|
79
|
+
predictions.append(pred_text)
|
|
80
|
+
references.append(item['answer']['value'])
|
|
81
|
+
|
|
82
|
+
results = exact_match_metric.compute(predictions=predictions, references=references)
|
|
83
|
+
print(f"Exact Match Accuracy: {results['exact_match']:.2%}")
|
|
84
|
+
```
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: interaction-pattern-library
|
|
3
|
+
description: Production-grade Interaction Pattern Library playbook for design
|
|
4
|
+
operations, UX systems, and growth strategy.
|
|
5
|
+
metadata:
|
|
6
|
+
author: agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
icon: โจ
|
|
9
|
+
disable-slash-command: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Interaction Pattern Library
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Interaction Pattern Library skill provides a deterministic framework for executing interaction pattern library processes in modern software products.
|
|
16
|
+
|
|
17
|
+
Following this skill ensures high usability, visual consistency, rapid iteration, and complete cross-functional team alignment.
|
|
18
|
+
|
|
19
|
+
## Execution Triggers & Prerequisites
|
|
20
|
+
### Execution Triggers
|
|
21
|
+
- Direct request to execute Interaction Pattern Library tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing interaction-pattern-library procedures across team projects.
|
|
24
|
+
- Preparing design handoffs or growth campaign launches.
|
|
25
|
+
|
|
26
|
+
### Prerequisites
|
|
27
|
+
- Project workspace configured with design system tokens or component libraries.
|
|
28
|
+
- Target UI design specification or growth experiment hypothesis.
|
|
29
|
+
- Testing and linting tools operational.
|
|
30
|
+
- Clean git working directory.
|
|
31
|
+
|
|
32
|
+
## Input & Output Requirements
|
|
33
|
+
### Inputs
|
|
34
|
+
| Parameter | Type | Required | Description |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| `target_scope` | String | Yes | Target UI component, page, or campaign scope |
|
|
37
|
+
| `config` | Object | Optional | Specific parameters and threshold configurations |
|
|
38
|
+
| `output_dir` | Directory Path | Optional | Destination directory for generated artifacts |
|
|
39
|
+
| `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation |
|
|
40
|
+
|
|
41
|
+
### Outputs
|
|
42
|
+
| Artifact | Path / Format | Description |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| Specification Document | `docs/interaction-pattern-library/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/interaction-pattern-library/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/interaction-pattern-library/summary.json` | Health check and audit metric results |
|
|
47
|
+
|
|
48
|
+
## Step-by-Step Execution Runbook
|
|
49
|
+
|
|
50
|
+
### Phase 1: Pre-Execution Discovery & Workspace Analysis
|
|
51
|
+
1. Inspect workspace repository to locate relevant UI components, tokens, or campaign assets.
|
|
52
|
+
```bash
|
|
53
|
+
find src/ docs/ -maxdepth 3 -type f
|
|
54
|
+
```
|
|
55
|
+
2. Analyze domain requirements and classify core UI elements, interaction flows, or growth metrics.
|
|
56
|
+
3. Establish baseline quality metrics and target benchmarks.
|
|
57
|
+
4. Verify working tree status to ensure clean git workspace.
|
|
58
|
+
```bash
|
|
59
|
+
git status --short
|
|
60
|
+
```
|
|
61
|
+
5. Formulate initial execution plan.
|
|
62
|
+
|
|
63
|
+
### Phase 2: Input Contract Validation & Strategy Selection
|
|
64
|
+
1. Validate input parameters against technical feasibility and design system guidelines.
|
|
65
|
+
2. Select implementation pattern matching component or campaign architecture.
|
|
66
|
+
3. Establish verification rules and accessibility / conversion thresholds.
|
|
67
|
+
4. Formulate atomic step-by-step execution sequence.
|
|
68
|
+
5. Create temporary working directory if needed.
|
|
69
|
+
|
|
70
|
+
### Phase 3: Core Step-by-Step Implementation Execution
|
|
71
|
+
1. Author primary specification document at `docs/interaction-pattern-library/spec.md`.
|
|
72
|
+
2. Generate code, token, or layout implementation files.
|
|
73
|
+
```bash
|
|
74
|
+
npm run typecheck
|
|
75
|
+
```
|
|
76
|
+
3. Apply automated formatting and linting tools.
|
|
77
|
+
4. Execute unit or visual regression tests.
|
|
78
|
+
```bash
|
|
79
|
+
npm test
|
|
80
|
+
```
|
|
81
|
+
5. Refactor asset structure for optimal performance and maintainability.
|
|
82
|
+
|
|
83
|
+
### Phase 4: Verification, Testing & Quality Gate Checking
|
|
84
|
+
1. Run full project verification suite.
|
|
85
|
+
```bash
|
|
86
|
+
npm run typecheck && npm test && npm run build
|
|
87
|
+
```
|
|
88
|
+
2. Verify zero lint errors, type warnings, or broken references.
|
|
89
|
+
3. Execute CLI health doctor check.
|
|
90
|
+
```bash
|
|
91
|
+
node dist/cli.js doctor
|
|
92
|
+
```
|
|
93
|
+
4. Assert all acceptance criteria are satisfied.
|
|
94
|
+
|
|
95
|
+
### Phase 5: Post-Execution Cleanup & Artifact Generation
|
|
96
|
+
1. Generate execution summary report at `reports/interaction-pattern-library/summary.md`.
|
|
97
|
+
2. Clean up temporary build artifacts and scratch files.
|
|
98
|
+
3. Commit generated files to git repository.
|
|
99
|
+
```bash
|
|
100
|
+
git add docs/interaction-pattern-library/ reports/interaction-pattern-library/
|
|
101
|
+
git commit -m "feat(interaction-pattern-library): implement Interaction Pattern Library playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Interaction Pattern Library Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "interaction-pattern-library"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/interaction-pattern-library/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Interaction Pattern Library Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runInteractionPatternLibrary(scope: string): boolean {
|
|
123
|
+
console.log('Running Interaction Pattern Library on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Interaction Pattern Library
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in interaction-pattern-library.
|
|
132
|
+
2. **Recovery Protocol**:
|
|
133
|
+
- Step 1: Inspect error log at reports directory.
|
|
134
|
+
- Step 2: Correct non-compliant syntax or structure.
|
|
135
|
+
- Step 3: Re-run verification pipeline.
|
|
136
|
+
|
|
137
|
+
### Scenario B: Missing Resource for Interaction Pattern Library
|
|
138
|
+
1. **Diagnosis**: Target design token or configuration asset missing from workspace.
|
|
139
|
+
2. **Recovery Protocol**:
|
|
140
|
+
- Step 1: Generate baseline resource file from standard template.
|
|
141
|
+
- Step 2: Update configuration references.
|
|
142
|
+
- Step 3: Resume runbook execution.
|
|
143
|
+
|
|
144
|
+
## Verification & Validation Checklist
|
|
145
|
+
- [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
|
|
146
|
+
- [ ] All 7 mandatory sections present with explicit headers.
|
|
147
|
+
- [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
|
|
148
|
+
- [ ] Code exemplars provided with valid syntax fencing.
|
|
149
|
+
- [ ] Zero dummy placeholder strings or unpopulated template markers present.
|
|
150
|
+
- [ ] Project build, test suite, and doctor check pass 100% cleanly.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: interactive-prototype-builder
|
|
3
|
+
description: Production-grade Interactive Prototype Builder playbook with live
|
|
4
|
+
URL preview cards, Storybook/Vite sandboxes, and visual side-by-side diffing.
|
|
5
|
+
metadata:
|
|
6
|
+
author: agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
icon: ๐ ๏ธ
|
|
9
|
+
disable-slash-command: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Interactive Prototype Builder
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Interactive Prototype Builder skill provides a deterministic framework for constructing, previewing, and verifying high-fidelity interactive UI prototypes with live browser preview cards, state-driven interaction models, and visual side-by-side diffing.
|
|
16
|
+
|
|
17
|
+
Following this skill ensures high usability, visual consistency, rapid iteration, and complete cross-functional team alignment.
|
|
18
|
+
|
|
19
|
+
## Execution Triggers & Prerequisites
|
|
20
|
+
### Execution Triggers
|
|
21
|
+
- Direct request to build or refine interactive UI prototypes.
|
|
22
|
+
- Creating clickable mockups or Storybook sandboxes for stakeholder review.
|
|
23
|
+
- Standardizing interactive prototype workflows across design and engineering teams.
|
|
24
|
+
- Preparing design handoffs with live in-app preview cards.
|
|
25
|
+
|
|
26
|
+
### Prerequisites
|
|
27
|
+
- Project workspace configured with design system tokens or component libraries.
|
|
28
|
+
- Target UI design specification or wireframe spec.
|
|
29
|
+
- Testing, linting, and bundler/dev server tools operational.
|
|
30
|
+
- Clean git working directory.
|
|
31
|
+
|
|
32
|
+
## Input & Output Requirements
|
|
33
|
+
### Inputs
|
|
34
|
+
| Parameter | Type | Required | Description |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| `target_scope` | String | Yes | Target UI component, page, or interaction scope |
|
|
37
|
+
| `config` | Object | Optional | Specific parameters and threshold configurations |
|
|
38
|
+
| `output_dir` | Directory Path | Optional | Destination directory for generated artifacts |
|
|
39
|
+
| `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation |
|
|
40
|
+
|
|
41
|
+
### Outputs
|
|
42
|
+
| Artifact | Path / Format | Description |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| Specification Document | `docs/interactive-prototype-builder/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/components/*` | Implemented design tokens, components, or interactive assets |
|
|
46
|
+
| Live Preview URL Card | Markdown Block | In-app live preview link (`http://localhost:6006` or `http://localhost:5173`) |
|
|
47
|
+
| Visual Diff Report | `reports/interactive-prototype-builder/visual-diff.md` | Side-by-side visual diffs and region selection analysis |
|
|
48
|
+
|
|
49
|
+
## Step-by-Step Execution Runbook
|
|
50
|
+
|
|
51
|
+
### Phase 1: Pre-Execution Discovery & Workspace Analysis
|
|
52
|
+
1. Inspect workspace repository to locate relevant UI components, tokens, or campaign assets.
|
|
53
|
+
```bash
|
|
54
|
+
find src/ docs/ -maxdepth 3 -type f
|
|
55
|
+
```
|
|
56
|
+
2. Analyze domain requirements and classify core UI elements, interaction flows, and reactive state transitions.
|
|
57
|
+
3. Establish baseline quality metrics, accessibility standards (WCAG 2.2 AA), and responsiveness targets.
|
|
58
|
+
4. Verify working tree status to ensure clean git workspace.
|
|
59
|
+
```bash
|
|
60
|
+
git status --short
|
|
61
|
+
```
|
|
62
|
+
5. Formulate initial execution plan.
|
|
63
|
+
|
|
64
|
+
### Phase 2: Input Contract Validation & Strategy Selection
|
|
65
|
+
1. Validate input parameters against technical feasibility and design system guidelines.
|
|
66
|
+
2. Select implementation pattern matching component architecture (e.g. Radix UI primitives, Tailwind styling, Framer Motion transitions).
|
|
67
|
+
3. Establish verification rules and accessibility / conversion thresholds.
|
|
68
|
+
4. Formulate atomic step-by-step execution sequence.
|
|
69
|
+
5. Create temporary working directory if needed.
|
|
70
|
+
|
|
71
|
+
### Phase 3: Core Implementation & Live Preview Execution
|
|
72
|
+
1. Author primary specification document at `docs/interactive-prototype-builder/spec.md`.
|
|
73
|
+
2. Generate code, token, SVG, or interactive React/HTML component files.
|
|
74
|
+
3. Launch local development or Storybook server in background task (`manage_task`):
|
|
75
|
+
```bash
|
|
76
|
+
npm run storybook -- --ci --port 6006
|
|
77
|
+
```
|
|
78
|
+
4. Emit Live Preview URL Card for Desktop preview pane:
|
|
79
|
+
```markdown
|
|
80
|
+
> [!TIP]
|
|
81
|
+
> **Interactive Component Preview**: [Open Storybook Live Canvas](http://localhost:6006)
|
|
82
|
+
```
|
|
83
|
+
5. Apply automated formatting and linting tools.
|
|
84
|
+
6. Execute visual regression tests and capture side-by-side SVG/image diffs.
|
|
85
|
+
|
|
86
|
+
### Phase 4: Verification, Visual Diffing & Quality Gate Checking
|
|
87
|
+
1. Perform side-by-side visual diff comparisons between baseline and generated component states.
|
|
88
|
+
2. Ingest region-selection feedback (bounding box coordinates and cropped image previews) to iteratively refine UI layout.
|
|
89
|
+
3. Run full project verification suite:
|
|
90
|
+
```bash
|
|
91
|
+
npm run typecheck && npm test && npm run build
|
|
92
|
+
```
|
|
93
|
+
4. Verify zero accessibility violations (WCAG 2.2 AA) and zero broken layout references.
|
|
94
|
+
5. Execute CLI health doctor check.
|
|
95
|
+
```bash
|
|
96
|
+
node dist/cli.js doctor
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Phase 5: Post-Execution Cleanup & Artifact Generation
|
|
100
|
+
1. Generate execution summary report at `reports/interactive-prototype-builder/summary.md`.
|
|
101
|
+
2. Clean up temporary build artifacts and scratch files.
|
|
102
|
+
3. Commit generated files to git repository.
|
|
103
|
+
```bash
|
|
104
|
+
git add docs/interactive-prototype-builder/ reports/interactive-prototype-builder/
|
|
105
|
+
git commit -m "feat(interactive-prototype-builder): implement Interactive Prototype Builder playbook artifacts"
|
|
106
|
+
```
|
|
107
|
+
4. Publish documentation for team review.
|
|
108
|
+
|
|
109
|
+
## Code & Configuration Exemplars
|
|
110
|
+
|
|
111
|
+
### Exemplar 1: Interactive Prototype Builder Configuration Specification
|
|
112
|
+
```yaml
|
|
113
|
+
version: "2.0.0"
|
|
114
|
+
metadata:
|
|
115
|
+
skill: "interactive-prototype-builder"
|
|
116
|
+
author: "agents-united"
|
|
117
|
+
rules:
|
|
118
|
+
strictValidation: true
|
|
119
|
+
livePreview:
|
|
120
|
+
port: 6006
|
|
121
|
+
urlPattern: "http://localhost:6006"
|
|
122
|
+
reporting:
|
|
123
|
+
format: "json"
|
|
124
|
+
output: "reports/interactive-prototype-builder/summary.json"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Exemplar 2: Interactive Prototype Builder Helper Module
|
|
128
|
+
```typescript
|
|
129
|
+
export function runInteractivePrototypeBuilder(scope: string): boolean {
|
|
130
|
+
console.log('Running Interactive Prototype Builder on:', scope);
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Edge Cases & Error Recovery Procedures
|
|
136
|
+
|
|
137
|
+
### Scenario A: Port Collision on Live Preview Server
|
|
138
|
+
1. **Diagnosis**: Storybook/Vite server fails to bind to target port (e.g. 6006 already in use).
|
|
139
|
+
2. **Recovery Protocol**:
|
|
140
|
+
- Step 1: Detect collision and allocate next ephemeral port (`6007`+).
|
|
141
|
+
- Step 2: Update Live Preview URL Card link in the orchestration report.
|
|
142
|
+
- Step 3: Verify preview health endpoint responds with HTTP 200.
|
|
143
|
+
|
|
144
|
+
### Scenario B: Visual Regression Diff Exceeds Threshold
|
|
145
|
+
1. **Diagnosis**: Generated component rendering differs from baseline beyond allowable pixel delta (>0.5%).
|
|
146
|
+
2. **Recovery Protocol**:
|
|
147
|
+
- Step 1: Inspect region-selection bounding box coordinates in the visual diff artifact.
|
|
148
|
+
- Step 2: Adjust CSS layout tokens, typography, or padding to match design spec.
|
|
149
|
+
- Step 3: Re-capture snapshot and assert zero visual regression.
|
|
150
|
+
|
|
151
|
+
## Verification & Validation Checklist
|
|
152
|
+
- [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
|
|
153
|
+
- [ ] All 7 mandatory sections present with explicit headers.
|
|
154
|
+
- [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
|
|
155
|
+
- [ ] Code exemplars provided with valid syntax fencing.
|
|
156
|
+
- [ ] Live preview URL card format and visual diffing steps documented.
|
|
157
|
+
- [ ] Project build, test suite, and doctor check pass 100% cleanly.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: local-llm-inference
|
|
3
|
+
description: Local and on-premise LLM inference with Ollama, vLLM, GGUF
|
|
4
|
+
quantizations, PagedAttention, and OpenAI-compatible API servers.
|
|
5
|
+
metadata:
|
|
6
|
+
author: Ollama & vLLM Community / agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
license: MIT
|
|
9
|
+
icon: ๐ฆ
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Local LLM Inference Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`local-llm-inference` provides configuration and optimization guidelines for running open-source LLMs locally (Ollama) or in high-concurrency production environments (vLLM).
|
|
17
|
+
|
|
18
|
+
## When to Trigger
|
|
19
|
+
Trigger this skill whenever:
|
|
20
|
+
- Setting up local development workflows with privacy-preserving offline LLMs.
|
|
21
|
+
- Configuring Ollama CLI, custom Modelfile templates, and parameters.
|
|
22
|
+
- Deploying high-throughput vLLM inference servers with PagedAttention and continuous batching.
|
|
23
|
+
- Selecting model quantizations (GGUF, AWQ, GPTQ) for hardware memory limits.
|
|
24
|
+
|
|
25
|
+
## Input & Output Requirements
|
|
26
|
+
- **Inputs**: Model name or GGUF file path, hardware specifications (CPU, Apple Silicon RAM, NVIDIA VRAM), and inference API port.
|
|
27
|
+
- **Outputs**: Running local inference daemon, OpenAI-compatible REST endpoints (`/v1/chat/completions`), and benchmark metrics.
|
|
28
|
+
|
|
29
|
+
## Step-by-Step Execution Runbook
|
|
30
|
+
|
|
31
|
+
### Phase 1 โ Environment Reconnaissance & Model Selection
|
|
32
|
+
- Assess available RAM/VRAM to choose appropriate quantization (4-bit vs 8-bit).
|
|
33
|
+
- Pull model weights via Ollama CLI or download Hugging Face safetensors for vLLM.
|
|
34
|
+
|
|
35
|
+
### Phase 2 โ Server Launch & Optimization
|
|
36
|
+
- Launch Ollama server or start vLLM daemon with tuned `--gpu-memory-utilization` and `--max-model-len`.
|
|
37
|
+
- Verify GPU offloading layers and memory allocation.
|
|
38
|
+
|
|
39
|
+
### Phase 3 โ Verification & Client Connection
|
|
40
|
+
- Test local endpoint with curl or OpenAI SDK pointing to `http://localhost:11434/v1` or `http://localhost:8000/v1`.
|
|
41
|
+
- Measure Time-to-First-Token (TTFT) and sustained generation throughput.
|
|
42
|
+
|
|
43
|
+
## Edge Cases & Boundary Conditions
|
|
44
|
+
- **System Memory Pressure**: If total model weights exceed VRAM, configure Ollama partial CPU offloading or reduce context length.
|
|
45
|
+
- **High Concurrency Latency Spikes**: Enable continuous batching and tensor parallelism across multiple GPUs in vLLM.
|
|
46
|
+
- **Prompt Format Mismatches**: Ensure chat templates match exact model tokenizers (e.g. ChatML, Llama-3 headers).
|
|
47
|
+
|
|
48
|
+
## Error Recovery & Fallbacks
|
|
49
|
+
- If vLLM crashes with CUDA OOM, restart daemon with lower `--gpu-memory-utilization 0.80` and `--max-num-seqs 64`.
|
|
50
|
+
- If Ollama service fails to respond, restart daemon and verify model file integrity with `ollama list`.
|
|
51
|
+
|
|
52
|
+
## Code Exemplars & Patterns
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Start vLLM OpenAI-compatible server with PagedAttention and AWQ quantization
|
|
56
|
+
python3 -m vllm.entrypoints.openai.api_server \
|
|
57
|
+
--model casperhansen/llama-3-8b-instruct-awq \
|
|
58
|
+
--quantization awq \
|
|
59
|
+
--dtype float16 \
|
|
60
|
+
--gpu-memory-utilization 0.90 \
|
|
61
|
+
--max-model-len 8192 \
|
|
62
|
+
--port 8000
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
from openai import OpenAI
|
|
67
|
+
|
|
68
|
+
# Connect standard OpenAI client to local vLLM / Ollama instance
|
|
69
|
+
client = OpenAI(base_url="http://localhost:8000/v1", api_key="local-token")
|
|
70
|
+
|
|
71
|
+
response = client.chat.completions.create(
|
|
72
|
+
model="casperhansen/llama-3-8b-instruct-awq",
|
|
73
|
+
messages=[{"role": "user", "content": "Explain vector indexing in 2 sentences."}],
|
|
74
|
+
temperature=0.7,
|
|
75
|
+
)
|
|
76
|
+
print(response.choices[0].message.content)
|
|
77
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-mobile-testing
|
|
3
|
+
description: Declarative mobile UI testing with Maestro, automated mobile
|
|
4
|
+
regression flows, deep linking, and cross-platform verification.
|
|
5
|
+
metadata:
|
|
6
|
+
author: tovimx (tovimx/maestro-mobile-testing-skill)
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
source: https://skills.sh/tovimx/maestro-mobile-testing-skill/maestro-mobile-testing
|
|
9
|
+
icon: ๐งช
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Maestro Mobile E2E Testing Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`maestro-mobile-testing` provides instructions and patterns for authoring declarative, readable mobile UI test flows for iOS and Android using Maestro.
|
|
17
|
+
|
|
18
|
+
## Rules & Constraints
|
|
19
|
+
1. **Use Text and Accessibility Identifiers** โ Prefer `tapOn: "Button Text"` or `tapOn: { id: "button_id" }` over brittle coordinates.
|
|
20
|
+
2. **Avoid Hardcoded Sleeps** โ Rely on Maestro's built-in auto-waiting for elements to render.
|
|
21
|
+
3. **Isolate Test Flows** โ Use `launchApp: { clearState: true }` to guarantee independent test preconditions.
|
|
22
|
+
4. **Assert Visible Text and State** โ Verify expected screen content with `assertVisible: "Welcome Screen"`.
|
|
23
|
+
|
|
24
|
+
## Step-by-Step Execution Runbook
|
|
25
|
+
|
|
26
|
+
### Phase 1 โ Test Flow Definition
|
|
27
|
+
- Create `.maestro/` directory containing YAML test flow files (e.g. `auth_flow.yaml`, `checkout_flow.yaml`).
|
|
28
|
+
- Define appId and target environment configurations.
|
|
29
|
+
|
|
30
|
+
### Phase 2 โ Flow Execution & Actions
|
|
31
|
+
- Author steps: `tapOn`, `inputText`, `scroll`, `back`, `assertVisible`.
|
|
32
|
+
- Add conditional checks (`runFlow: { when: { visible: "Modal" } }`).
|
|
33
|
+
|
|
34
|
+
### Phase 3 โ Verification
|
|
35
|
+
- Run tests on iOS Simulator and Android Emulator via `maestro test .maestro/`.
|
|
36
|
+
|
|
37
|
+
## Verification Checklist
|
|
38
|
+
- [ ] Test flows execute deterministically on both iOS and Android.
|
|
39
|
+
- [ ] No brittle coordinate-based taps.
|
|
40
|
+
- [ ] Clear error logs and screenshots captured on assertion failure.
|