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,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: micro-interaction-design
|
|
3
|
+
description: Production-grade Micro Interaction Design 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
|
+
# Micro Interaction Design
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Micro Interaction Design skill provides a deterministic framework for executing micro interaction design 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 Micro Interaction Design tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing micro-interaction-design 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/micro-interaction-design/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/micro-interaction-design/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/micro-interaction-design/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/micro-interaction-design/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/micro-interaction-design/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/micro-interaction-design/ reports/micro-interaction-design/
|
|
101
|
+
git commit -m "feat(micro-interaction-design): implement Micro Interaction Design playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Micro Interaction Design Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "micro-interaction-design"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/micro-interaction-design/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Micro Interaction Design Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runMicroInteractionDesign(scope: string): boolean {
|
|
123
|
+
console.log('Running Micro Interaction Design on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Micro Interaction Design
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in micro-interaction-design.
|
|
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 Micro Interaction Design
|
|
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,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: microservices-architecture
|
|
3
|
+
description: Production-grade Microservices Architecture playbook for resilient
|
|
4
|
+
distributed systems, event choreography, and observability.
|
|
5
|
+
metadata:
|
|
6
|
+
author: agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
icon: 🌐
|
|
9
|
+
disable-slash-command: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Microservices Architecture, Service Mesh & Distributed Systems
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Microservices Architecture, Service Mesh & Distributed Systems skill provides a deterministic, battle-tested framework for executing microservices-architecture processes across the Agents United multi-agent ecosystem.
|
|
16
|
+
|
|
17
|
+
Following this skill ensures high quality, zero-regression execution, rigorous testing gates, and seamless cross-functional team alignment.
|
|
18
|
+
|
|
19
|
+
## Execution Triggers & Prerequisites
|
|
20
|
+
### Execution Triggers
|
|
21
|
+
- Direct request or workflow step invoking microservices-architecture.
|
|
22
|
+
- Auditing, implementing, or standardizing microservices-architecture procedures.
|
|
23
|
+
- Addressing technical debt, architectural reviews, or production readiness gates.
|
|
24
|
+
- Preparing pull requests or automated release validations.
|
|
25
|
+
|
|
26
|
+
### Prerequisites
|
|
27
|
+
- Active project repository workspace with version control configured.
|
|
28
|
+
- Operational testing, typechecking, and build toolchains.
|
|
29
|
+
- Domain requirements, architectural constraints, or user stories defined.
|
|
30
|
+
- Clean git working tree before beginning execution.
|
|
31
|
+
|
|
32
|
+
## Input & Output Requirements
|
|
33
|
+
### Inputs
|
|
34
|
+
| Parameter | Type | Required | Description |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| `target_scope` | String | Yes | Target module, service, component, or file path |
|
|
37
|
+
| `config` | Object | Optional | Specific domain configurations, thresholds, and options |
|
|
38
|
+
| `output_dir` | Directory Path | Optional | Destination directory for generated artifacts and reports |
|
|
39
|
+
| `strict_mode` | Boolean | Optional | Enforce strict zero-warning validation and high test coverage |
|
|
40
|
+
|
|
41
|
+
### Outputs
|
|
42
|
+
| Artifact | Path / Format | Description |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| Specification Document | `docs/microservices-architecture/spec.md` | Full technical specification and architectural plan |
|
|
45
|
+
| Implementation Files | `src/microservices-architecture/*` | Production-ready source code, tests, and configurations |
|
|
46
|
+
| Execution Report | `reports/microservices-architecture/summary.json` | Verification metrics, test results, and audit summary |
|
|
47
|
+
|
|
48
|
+
## Step-by-Step Execution Runbook
|
|
49
|
+
|
|
50
|
+
### Phase 1: Bounded Context Decomposition & Service Sizing
|
|
51
|
+
1. Apply Domain-Driven Design (DDD) strategic design to partition monolith into bounded contexts.
|
|
52
|
+
2. Define service ownership boundaries around independent business capabilities.
|
|
53
|
+
3. Ensure microservices own their private datastores to prevent shared-database anti-patterns.
|
|
54
|
+
4. Evaluate asynchronous event choreography vs synchronous gRPC orchestration.
|
|
55
|
+
5. Establish service dependency graph with zero circular dependencies.
|
|
56
|
+
|
|
57
|
+
### Phase 2: Resiliency & Fault Tolerance Engineering
|
|
58
|
+
1. Implement Circuit Breaker pattern (Cockatiel / Resilience4j) on all inter-service HTTP/gRPC calls.
|
|
59
|
+
2. Configure exponential backoff retry policies with jitter to avoid thundering herds.
|
|
60
|
+
3. Implement Transactional Outbox Pattern to guarantee atomic database updates and event publishing.
|
|
61
|
+
4. Design idempotent event consumers using deduplication tables.
|
|
62
|
+
5. Configure bulkhead isolation to prevent failure cascading across services.
|
|
63
|
+
|
|
64
|
+
### Phase 3: Distributed Tracing & Observability Instrumentation
|
|
65
|
+
1. Instrument OpenTelemetry (OTel) distributed tracing across all HTTP, gRPC, and messaging headers.
|
|
66
|
+
2. Inject W3C TraceContext headers (traceparent, tracestate) across service boundaries.
|
|
67
|
+
3. Expose standardized Prometheus metrics (/metrics): RED metrics (Rate, Errors, Duration).
|
|
68
|
+
4. Configure structured JSON logging with uniform fields (trace_id, span_id, service_name).
|
|
69
|
+
5. Set up centralized alerting on service latency and error budget consumption.
|
|
70
|
+
|
|
71
|
+
### Phase 4: Service Mesh & API Gateway Configuration
|
|
72
|
+
1. Configure API Gateway (Kong, Envoy, Traefik) for edge routing, SSL termination, and rate limiting.
|
|
73
|
+
2. Deploy Istio / Linkerd service mesh for mutual TLS (mTLS) zero-trust service communication.
|
|
74
|
+
3. Configure traffic splitting for canary and blue-green zero-downtime deployments.
|
|
75
|
+
4. Run chaos engineering experiments (Chaos Mesh) simulating random network latency and pod kills.
|
|
76
|
+
5. Validate system self-healing and service mesh rerouting.
|
|
77
|
+
|
|
78
|
+
### Phase 5: CI/CD Pipeline & Contract Testing Deployment
|
|
79
|
+
1. Implement Pact contract testing between consuming and providing services in CI.
|
|
80
|
+
2. Configure independent automated deployment pipelines per microservice.
|
|
81
|
+
3. Deploy canary release to production environment.
|
|
82
|
+
4. Verify distributed trace completion across live traffic.
|
|
83
|
+
5. Promote service version to 100% production traffic.
|
|
84
|
+
|
|
85
|
+
## Code & Configuration Exemplars
|
|
86
|
+
|
|
87
|
+
### Exemplar 1: Microservices Architecture, Service Mesh & Distributed Systems Configuration & Specification
|
|
88
|
+
```yaml
|
|
89
|
+
// Outbox message pattern for reliable event publishing
|
|
90
|
+
export interface OutboxEvent {
|
|
91
|
+
id: string;
|
|
92
|
+
aggregateType: 'Order';
|
|
93
|
+
aggregateId: string;
|
|
94
|
+
eventType: 'OrderCreated';
|
|
95
|
+
payload: Record<string, unknown>;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
publishedAt?: Date;
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Exemplar 2: Microservices Architecture, Service Mesh & Distributed Systems TypeScript Type Contract
|
|
102
|
+
```typescript
|
|
103
|
+
export interface MicroserviceTopology {
|
|
104
|
+
serviceName: string;
|
|
105
|
+
boundedContext: string;
|
|
106
|
+
communication: 'sync-grpc' | 'async-event';
|
|
107
|
+
circuitBreaker: {
|
|
108
|
+
timeoutMs: number;
|
|
109
|
+
errorThresholdPercentage: number;
|
|
110
|
+
resetTimeoutMs: number;
|
|
111
|
+
};
|
|
112
|
+
observability: {
|
|
113
|
+
distributedTracing: boolean;
|
|
114
|
+
metricsEndpoint: string;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Edge Cases & Error Recovery Procedures
|
|
120
|
+
|
|
121
|
+
### Scenario A: Validation Failure in Microservices Architecture, Service Mesh & Distributed Systems
|
|
122
|
+
1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
|
|
123
|
+
2. **Recovery Protocol**:
|
|
124
|
+
- Step 1: Inspect detailed error log output in test/build terminal.
|
|
125
|
+
- Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
|
|
126
|
+
- Step 3: Implement surgical code fix and re-run verification suite.
|
|
127
|
+
|
|
128
|
+
### Scenario B: Missing or Incompatible Dependency
|
|
129
|
+
1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
|
|
130
|
+
2. **Recovery Protocol**:
|
|
131
|
+
- Step 1: Verify `package.json` engine requirements and local environment versions.
|
|
132
|
+
- Step 2: Install required peer dependencies cleanly with lockfile sync.
|
|
133
|
+
- Step 3: Resume runbook from Phase 1.
|
|
134
|
+
|
|
135
|
+
## Verification & Validation Checklist
|
|
136
|
+
- [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
|
|
137
|
+
- [ ] All 7 mandatory sections present with explicit headers.
|
|
138
|
+
- [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
|
|
139
|
+
- [ ] Code exemplars provided with valid syntax fencing.
|
|
140
|
+
- [ ] Zero dummy placeholder strings or unpopulated template markers present.
|
|
141
|
+
- [ ] Project build, test suite, and doctor check pass 100% cleanly.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-android-design
|
|
3
|
+
description: Android Material 3 design conventions, Jetpack Compose layouts,
|
|
4
|
+
edge-to-edge support, and responsive window size classes.
|
|
5
|
+
metadata:
|
|
6
|
+
author: wshobson (wshobson/agents)
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
source: https://skills.sh/wshobson/agents/mobile-android-design
|
|
9
|
+
icon: 🤖
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Android Material 3 & Jetpack Compose Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`mobile-android-design` defines design patterns and implementation rules for native Android applications utilizing Google's Material Design 3 system and Jetpack Compose.
|
|
17
|
+
|
|
18
|
+
## Rules & Constraints
|
|
19
|
+
1. **Material 3 Theming** — Utilize `MaterialTheme.colorScheme` and dynamic tonal palettes.
|
|
20
|
+
2. **Edge-to-Edge Design** — Enable edge-to-edge rendering with `enableEdgeToEdge()` and handle window insets with `Modifier.safeDrawingPadding()`.
|
|
21
|
+
3. **Touch Targets** — Maintain minimum touch targets of 48x48dp for all interactive elements.
|
|
22
|
+
4. **Adaptive Layouts** — Support Compact, Medium, and Expanded window size classes for foldable devices and tablets.
|
|
23
|
+
|
|
24
|
+
## Step-by-Step Execution Runbook
|
|
25
|
+
|
|
26
|
+
### Phase 1 — Compose Scaffold Setup
|
|
27
|
+
- Structure screens using `Scaffold` with `TopAppBar`, `FloatingActionButton`, and `NavigationBar`.
|
|
28
|
+
- Apply appropriate content padding to prevent clipping behind status or navigation bars.
|
|
29
|
+
|
|
30
|
+
### Phase 2 — State Hoisting & Recomposition
|
|
31
|
+
- Hoist state parameters out of child composables into ViewModels.
|
|
32
|
+
- Mark immutable domain classes with `@Immutable` / `@Stable`.
|
|
33
|
+
|
|
34
|
+
### Phase 3 — Verification
|
|
35
|
+
- Test composables in Compose Preview across Phone and Tablet device configurations.
|
|
36
|
+
|
|
37
|
+
## Verification Checklist
|
|
38
|
+
- [ ] 48x48dp minimum touch target met.
|
|
39
|
+
- [ ] Safe drawing insets properly respected.
|
|
40
|
+
- [ ] Material 3 color tokens used throughout.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-first-design
|
|
3
|
+
description: Production-grade Mobile First Design 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
|
+
# Mobile First Design
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Mobile First Design skill provides a deterministic framework for executing mobile first design 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 Mobile First Design tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing mobile-first-design 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/mobile-first-design/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/mobile-first-design/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/mobile-first-design/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/mobile-first-design/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/mobile-first-design/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/mobile-first-design/ reports/mobile-first-design/
|
|
101
|
+
git commit -m "feat(mobile-first-design): implement Mobile First Design playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Mobile First Design Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "mobile-first-design"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/mobile-first-design/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Mobile First Design Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runMobileFirstDesign(scope: string): boolean {
|
|
123
|
+
console.log('Running Mobile First Design on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Mobile First Design
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in mobile-first-design.
|
|
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 Mobile First Design
|
|
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,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-ios-design
|
|
3
|
+
description: iOS design system conventions, SwiftUI component patterns, Apple
|
|
4
|
+
Human Interface Guidelines, and navigation ergonomics.
|
|
5
|
+
metadata:
|
|
6
|
+
author: wshobson (wshobson/agents)
|
|
7
|
+
version: 1.0.0
|
|
8
|
+
source: https://skills.sh/wshobson/agents/mobile-ios-design
|
|
9
|
+
icon: 🍏
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# iOS Design & SwiftUI Engineering Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`mobile-ios-design` provides systemic guidance for designing native iOS applications adhering to Apple's Human Interface Guidelines (HIG) and SwiftUI architectural standards.
|
|
17
|
+
|
|
18
|
+
## Rules & Constraints
|
|
19
|
+
1. **Follow Apple HIG Standards** — Respect safe area insets, navigation bar titles, dynamic type, and native gestures.
|
|
20
|
+
2. **Declarative State Flow** — Maintain single source of truth using `@State`, `@Binding`, and the `@Observable` macro.
|
|
21
|
+
3. **Touch Targets & Ergonomics** — Ensure interactive elements have a minimum tappable area of 44x44 points.
|
|
22
|
+
4. **Dark Mode & Dynamic Type** — Always utilize semantic system colors (`Color(.systemBackground)`, `Color.primary`) and semantic text styles (`.font(.title)`, `.font(.body)`).
|
|
23
|
+
|
|
24
|
+
## Step-by-Step Execution Runbook
|
|
25
|
+
|
|
26
|
+
### Phase 1 — Screen & Navigation Layout
|
|
27
|
+
- Establish standard NavigationStack architecture with typed navigation destinations.
|
|
28
|
+
- Wrap content in SafeAreaInsets and configure TabView for primary sections.
|
|
29
|
+
|
|
30
|
+
### Phase 2 — Component Design
|
|
31
|
+
- Design reusable SwiftUI view components with parameterizable `@Binding` properties.
|
|
32
|
+
- Add `#Preview` with both Light and Dark mode variations.
|
|
33
|
+
|
|
34
|
+
### Phase 3 — Verification
|
|
35
|
+
- Audit view hierarchy on iPad, iPhone SE, and Dynamic Island devices.
|
|
36
|
+
|
|
37
|
+
## Verification Checklist
|
|
38
|
+
- [ ] View adheres to 44x44pt touch target minimum.
|
|
39
|
+
- [ ] Dynamic type scales without text truncation.
|
|
40
|
+
- [ ] Dark mode semantic colors applied.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-platform-offline-validate
|
|
3
|
+
description: Offline-first architecture patterns, background sync, local
|
|
4
|
+
database persistence, and conflict resolution strategies for mobile
|
|
5
|
+
applications.
|
|
6
|
+
metadata:
|
|
7
|
+
author: Salesforce (forcedotcom/sf-skills)
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
source: https://skills.sh/forcedotcom/sf-skills/mobile-platform-offline-validate
|
|
10
|
+
icon: 📶
|
|
11
|
+
disable-slash-command: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Mobile Offline-First & Sync Playbook
|
|
15
|
+
|
|
16
|
+
## Overview & Purpose
|
|
17
|
+
`mobile-platform-offline-validate` guides the architecture of offline-first mobile applications, ensuring seamless local caching, optimistic UI updates, background synchronization, and conflict resolution.
|
|
18
|
+
|
|
19
|
+
## Rules & Constraints
|
|
20
|
+
1. **Optimistic UI Updates** — Mutate local state immediately and display pending sync indicators to the user.
|
|
21
|
+
2. **Deterministic Conflict Resolution** — Implement Last-Write-Wins (LWW) or custom CRDT / vector clock merge strategies for simultaneous updates.
|
|
22
|
+
3. **Network Resilience** — Queue failed outbound mutations in a persistent local queue with exponential backoff.
|
|
23
|
+
4. **Data Encryption at Rest** — Protect local SQLite / Room databases with SQLCipher or platform keychains.
|
|
24
|
+
|
|
25
|
+
## Step-by-Step Execution Runbook
|
|
26
|
+
|
|
27
|
+
### Phase 1 — Persistence Layer Architecture
|
|
28
|
+
- Establish local SQLite / Room / WatermelonDB schema mirroring critical cloud entities.
|
|
29
|
+
- Add sync metadata columns (`dirty`, `version`, `last_modified_at`, `deleted_at`).
|
|
30
|
+
|
|
31
|
+
### Phase 2 — Mutation Queue & Sync Worker
|
|
32
|
+
- Implement background sync worker (Android WorkManager / iOS BGTaskScheduler) triggered on network reconnect.
|
|
33
|
+
- Batch outbound mutations to optimize battery and bandwidth.
|
|
34
|
+
|
|
35
|
+
### Phase 3 — Verification
|
|
36
|
+
- Simulate airplane mode and intermittent packet loss to verify local CRUD operations and eventual consistency.
|
|
37
|
+
|
|
38
|
+
## Verification Checklist
|
|
39
|
+
- [ ] Application remains fully operational without active internet connection.
|
|
40
|
+
- [ ] Optimistic mutations successfully reconcile upon reconnect.
|
|
41
|
+
- [ ] Conflicts resolve deterministically without data loss.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: modal-serverless-python
|
|
3
|
+
description: Serverless Python applications, GPU function definitions (A10G,
|
|
4
|
+
H100), cold-start caching, and volume mounts on Modal.com.
|
|
5
|
+
metadata:
|
|
6
|
+
author: Modal Labs / agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
license: MIT
|
|
9
|
+
icon: ⚡
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Modal Serverless Python Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`modal-serverless-python` provides production best practices for authoring, deploying, and optimizing serverless Python AI workloads on Modal.com with hardware-accelerated GPU infrastructure and cold-start mitigations.
|
|
17
|
+
|
|
18
|
+
## When to Trigger
|
|
19
|
+
Trigger this skill whenever:
|
|
20
|
+
- Designing serverless GPU inference functions (LLMs, Diffusion models, Whisper transcription).
|
|
21
|
+
- Building fine-tuning or embedding generation pipelines requiring on-demand GPU clusters.
|
|
22
|
+
- Optimizing Python container cold-start latency and GPU memory management.
|
|
23
|
+
- Mounting persistent storage volumes for large machine learning model checkpoints.
|
|
24
|
+
|
|
25
|
+
## Input & Output Requirements
|
|
26
|
+
- **Inputs**: Model identifier (Hugging Face ID or local weights path), target GPU tier (`T4`, `A10G`, `A100`, `H100`), concurrency parameters, and environment secrets.
|
|
27
|
+
- **Outputs**: Fully functional Modal Python scripts (`modal.App`), persistent volume definitions, deployment runbooks, and endpoint latency benchmarks.
|
|
28
|
+
|
|
29
|
+
## Step-by-Step Execution Runbook
|
|
30
|
+
|
|
31
|
+
### Phase 1 — Environment & Image Scaffolding
|
|
32
|
+
- Define container images with minimal base layers and pinned PyTorch/CUDA wheels.
|
|
33
|
+
- Pre-download model weights into container image layers using `image.run_function()`.
|
|
34
|
+
|
|
35
|
+
### Phase 2 — GPU Function & Lifecycle Declaration
|
|
36
|
+
- Decorate class-based functions with `@app.cls(gpu="A10G", container_idle_timeout=60)`.
|
|
37
|
+
- Load weights into GPU VRAM once during container startup with `@modal.enter()`.
|
|
38
|
+
|
|
39
|
+
### Phase 3 — Verification & Scale Testing
|
|
40
|
+
- Execute test invocations using `modal run` before deploying production web endpoints (`modal deploy`).
|
|
41
|
+
|
|
42
|
+
## Edge Cases & Boundary Conditions
|
|
43
|
+
- **CUDA Out of Memory (OOM)**: Handle batch sizes dynamically based on available VRAM limits; fall back to gradient checkpointing or 4-bit quantization (bitsandbytes).
|
|
44
|
+
- **Cold-Start Spikes**: Utilize warm pools and flash-attention container optimizations to keep cold start < 8s.
|
|
45
|
+
- **Network Timeouts on Large Weight Downloads**: Split weight shards across persistent Modal Volumes.
|
|
46
|
+
|
|
47
|
+
## Error Recovery & Fallbacks
|
|
48
|
+
- If GPU capacity is unavailable in the primary region, configure fallback GPU selections (e.g. `gpu=["A10G", "A100"]`).
|
|
49
|
+
- When secret loading fails, verify authentication with `modal secret list` and surface missing secret keys.
|
|
50
|
+
|
|
51
|
+
## Code Exemplars & Patterns
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
import modal
|
|
55
|
+
|
|
56
|
+
app = modal.App("vllm-inference-service")
|
|
57
|
+
|
|
58
|
+
vllm_image = (
|
|
59
|
+
modal.Image.debian_slim(python_version="3.11")
|
|
60
|
+
.pip_install("vllm==0.6.3", "torch==2.4.0", "transformers")
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
@app.cls(
|
|
64
|
+
image=vllm_image,
|
|
65
|
+
gpu="A10G",
|
|
66
|
+
scaledown_window=60,
|
|
67
|
+
timeout=300,
|
|
68
|
+
)
|
|
69
|
+
class ModelServer:
|
|
70
|
+
@modal.enter()
|
|
71
|
+
def load_model(self):
|
|
72
|
+
from vllm import LLM
|
|
73
|
+
self.llm = LLM(model="meta-llama/Llama-3.1-8B-Instruct")
|
|
74
|
+
|
|
75
|
+
@modal.method()
|
|
76
|
+
def generate(self, prompt: str) -> str:
|
|
77
|
+
from vllm import SamplingParams
|
|
78
|
+
sampling_params = SamplingParams(temperature=0.7, max_tokens=512)
|
|
79
|
+
outputs = self.llm.generate([prompt], sampling_params)
|
|
80
|
+
return outputs[0].outputs[0].text
|
|
81
|
+
```
|