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,41 @@
|
|
|
1
|
+
# Master Operational Rules for Agents United
|
|
2
|
+
|
|
3
|
+
## 1. Test-Driven Development (TDD)
|
|
4
|
+
- **Mandatory Red-Green-Refactor**: Write failing unit or E2E tests before implementing functional logic or bug fixes.
|
|
5
|
+
- **Deterministic Testing**: Never use arbitrary sleeps or timeouts (`setTimeout`); use auto-waiting assertions and deterministic mock factories.
|
|
6
|
+
- **4-Tier Test Coverage**:
|
|
7
|
+
- *Tier 1 (Feature Coverage)*: Core function execution and expected outputs.
|
|
8
|
+
- *Tier 2 (Boundary & Corner Cases)*: Empty inputs, malformed data, network interruptions, and error recovery.
|
|
9
|
+
- *Tier 3 (Cross-Feature Pairwise)*: Module interoperability between Registry, Installer, Adapters, and CLI.
|
|
10
|
+
- *Tier 4 (Full Real-World Scenarios)*: Complete inventory audits across all agents, skills, and workflows.
|
|
11
|
+
|
|
12
|
+
## 2. Code Quality, Modularity & Type Safety
|
|
13
|
+
- **Strict Typing**: Never use implicit or explicit `any` where structured TypeScript types, enums, or interfaces can be declared.
|
|
14
|
+
- **Single Source of Truth**: Centralize shared interfaces in `src/core/types.ts` and maintain schema integrity.
|
|
15
|
+
- **Seams & Decoupling**: Separate business logic, file system operations, and terminal presentation into modular layers.
|
|
16
|
+
|
|
17
|
+
## 3. Safety, Security & Git Guardrails
|
|
18
|
+
- **Zero Secret Exposure**: Never log, output, or commit API keys, authentication tokens, or `.env` files.
|
|
19
|
+
- **Protected Branch Guard**: Never commit directly to `main`, `master`, or release branches. Always work on feature/fix branches.
|
|
20
|
+
- **Zero Force-Pushes**: Disallow `git push --force` or `git push -f` under all circumstances.
|
|
21
|
+
- **Pre-Staging Diff Inspection**: Always audit staged diffs (`git diff --cached`) before committing.
|
|
22
|
+
|
|
23
|
+
## 4. Skill Attribution & Provenance Standards
|
|
24
|
+
- **Frontmatter Metadata**: All adopted or adapted skills must declare author metadata (`author`, `version`, `source`, `license`) in YAML frontmatter.
|
|
25
|
+
- **README Credits**: Credit open-source creators and original repositories under `## Credits & Acknowledgments` in `README.md`.
|
|
26
|
+
- **Adaptation Standard**: Adapt external skills to conform to Agents United schema and execution guidelines rather than importing raw unverified files.
|
|
27
|
+
|
|
28
|
+
## 5. UI/UX Quality, Aesthetics & Accessibility
|
|
29
|
+
- **Terminal Presentation**: Format listings and menus with structured folder tree branches (`├──`, `└──`, `│`), clear badges, and progressive two-stage drill-downs.
|
|
30
|
+
- **Web & Mobile Accessibility**: Enforce WCAG 2.1 Level AA compliance, 4.5:1 text contrast ratios, semantic HTML5, and touch target minimums (44pt iOS, 48dp Android).
|
|
31
|
+
- **Anti-Cliché Design**: Avoid unpadded layouts, purple-on-dark tropes, arbitrary animations, or icon-stuffed bento boxes without functional hierarchy.
|
|
32
|
+
|
|
33
|
+
## 6. Multi-Agent Delegation & Lifecycle Hooks
|
|
34
|
+
- **Orchestrator Mandate**: Orchestrators plan and coordinate; specialized sub-agents execute domain-specific tasks.
|
|
35
|
+
- **Lifecycle Hooks**: Enforce `PreInvocation`, `PostInvocation`, `PreToolUse`, and `PostToolUse` safety hooks to validate workspace state and audit outputs.
|
|
36
|
+
- **Structured Deliverables**: Provide complete, actionable code and structured markdown summaries with deterministic verification criteria.
|
|
37
|
+
|
|
38
|
+
## 7. Domain Modeling & Architecture Decision Records (ADRs)
|
|
39
|
+
- **Ubiquitous Language**: Maintain domain terminology consistency across agents, prompts, and documentation.
|
|
40
|
+
- **ADR Governance**: Document non-trivial architectural changes and tradeoffs in `docs/adr/` with Context, Decision, and Consequences.
|
|
41
|
+
- **Socratic Clarification**: Clarify ambiguous requirements via interactive questioning before committing to major architectural shifts.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Operational Directives for Anthropic Claude Code
|
|
2
|
+
|
|
3
|
+
This rule file is automatically provisioned by Agents United to guide Anthropic Claude Code runtime execution.
|
|
4
|
+
|
|
5
|
+
## Core Behavioral Directives
|
|
6
|
+
|
|
7
|
+
1. **Test-Driven Development**: Always author failing tests before implementing or refactoring source code.
|
|
8
|
+
2. **Deterministic Verification**: Verify code changes by running test suites (`npm test`) or build steps (`npm run build`) before declaring completion.
|
|
9
|
+
3. **Safety & Zero-Trust Secret Policy**: Never output secret keys or stage `.env` files.
|
|
10
|
+
4. **Git Protection**: Never commit directly to `main` or `master`; do not execute force-pushes (`git push -f`).
|
|
11
|
+
5. **Attribution Standard**: Ensure all adopted skills record author metadata in frontmatter and are acknowledged in `README.md`.
|
|
12
|
+
6. **Clean TypeScript**: Enforce explicit typing and avoid `any`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Operational Directives for Cursor & Codex Runtimes
|
|
2
|
+
|
|
3
|
+
This rule file is automatically provisioned by Agents United to guide Cursor and Codex runtime execution.
|
|
4
|
+
|
|
5
|
+
## Core Behavioral Directives
|
|
6
|
+
|
|
7
|
+
1. **Test-Driven First**: Write tests that fail before writing implementation code.
|
|
8
|
+
2. **Deterministic Verification**: Verify code changes with automated test execution before finalizing edits.
|
|
9
|
+
3. **Safety & Zero-Trust Secret Policy**: Never log or commit secret tokens or credentials.
|
|
10
|
+
4. **Git Protection**: Never commit directly to `main` or `master`; zero force-pushes allowed.
|
|
11
|
+
5. **Attribution Standard**: Declare author metadata in skill frontmatter and credit authors in `README.md`.
|
|
12
|
+
6. **Clean Architecture**: Maintain modular boundaries, explicit TypeScript interfaces, and single responsibility.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Master Operational Rules for Agents United (Gemini / Antigravity Edition)
|
|
2
|
+
|
|
3
|
+
## 1. Test-Driven Development (TDD)
|
|
4
|
+
- **Mandatory Red-Green-Refactor**: Write failing unit or E2E tests before implementing functional logic or bug fixes.
|
|
5
|
+
- **Deterministic Testing**: Never use arbitrary sleeps or timeouts (`setTimeout`); use auto-waiting assertions and deterministic mock factories.
|
|
6
|
+
- **4-Tier Test Coverage**:
|
|
7
|
+
- *Tier 1 (Feature Coverage)*: Core function execution and expected outputs.
|
|
8
|
+
- *Tier 2 (Boundary & Corner Cases)*: Empty inputs, malformed data, network interruptions, and error recovery.
|
|
9
|
+
- *Tier 3 (Cross-Feature Pairwise)*: Module interoperability between Registry, Installer, Adapters, and CLI.
|
|
10
|
+
- *Tier 4 (Full Real-World Scenarios)*: Complete inventory audits across all agents, skills, and workflows.
|
|
11
|
+
|
|
12
|
+
## 2. Code Quality, Modularity & Type Safety
|
|
13
|
+
- **Strict Typing**: Never use implicit or explicit `any` where structured TypeScript types, enums, or interfaces can be declared.
|
|
14
|
+
- **Single Source of Truth**: Centralize shared interfaces in `src/core/types.ts` and maintain schema integrity.
|
|
15
|
+
- **Seams & Decoupling**: Separate business logic, file system operations, and terminal presentation into modular layers.
|
|
16
|
+
|
|
17
|
+
## 3. Safety, Security & Git Guardrails
|
|
18
|
+
- **Zero Secret Exposure**: Never log, output, or commit API keys, authentication tokens, or `.env` files.
|
|
19
|
+
- **Protected Branch Guard**: Never commit directly to `main`, `master`, or release branches. Always work on feature/fix branches.
|
|
20
|
+
- **Zero Force-Pushes**: Disallow `git push --force` or `git push -f` under all circumstances.
|
|
21
|
+
- **Pre-Staging Diff Inspection**: Always audit staged diffs (`git diff --cached`) before committing.
|
|
22
|
+
|
|
23
|
+
## 4. Skill Attribution & Provenance Standards
|
|
24
|
+
- **Frontmatter Metadata**: All adopted or adapted skills must declare author metadata (`author`, `version`, `source`, `license`) in YAML frontmatter.
|
|
25
|
+
- **README Credits**: Credit open-source creators and original repositories under `## Credits & Acknowledgments` in `README.md`.
|
|
26
|
+
- **Adaptation Standard**: Adapt external skills to conform to Agents United schema and execution guidelines rather than importing raw unverified files.
|
|
27
|
+
|
|
28
|
+
## 5. UI/UX Quality, Aesthetics & Accessibility
|
|
29
|
+
- **Terminal Presentation**: Format listings and menus with structured folder tree branches (`├──`, `└──`, `│`), clear badges, and progressive two-stage drill-downs.
|
|
30
|
+
- **Web & Mobile Accessibility**: Enforce WCAG 2.1 Level AA compliance, 4.5:1 text contrast ratios, semantic HTML5, and touch target minimums (44pt iOS, 48dp Android).
|
|
31
|
+
- **Anti-Cliché Design**: Avoid unpadded layouts, purple-on-dark tropes, arbitrary animations, or icon-stuffed bento boxes without functional hierarchy.
|
|
32
|
+
|
|
33
|
+
## 6. Multi-Agent Delegation & Lifecycle Hooks
|
|
34
|
+
- **Orchestrator Mandate**: Orchestrators plan and coordinate; specialized sub-agents execute domain-specific tasks.
|
|
35
|
+
- **Lifecycle Hooks**: Enforce `PreInvocation`, `PostInvocation`, `PreToolUse`, and `PostToolUse` safety hooks to validate workspace state and audit outputs.
|
|
36
|
+
- **Structured Deliverables**: Provide complete, actionable code and structured markdown summaries with deterministic verification criteria.
|
|
37
|
+
|
|
38
|
+
## 7. Domain Modeling & Architecture Decision Records (ADRs)
|
|
39
|
+
- **Ubiquitous Language**: Maintain domain terminology consistency across agents, prompts, and documentation.
|
|
40
|
+
- **ADR Governance**: Document non-trivial architectural changes and tradeoffs in `docs/adr/` with Context, Decision, and Consequences.
|
|
41
|
+
- **Socratic Clarification**: Clarify ambiguous requirements via interactive questioning before committing to major architectural shifts.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Persistent Rule: Clean Code & Modular Architecture
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
This rule establishes rigorous standards for code organization, type safety, dependency boundaries, and maintainability across the Agents United ecosystem.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Strict TypeScript & Type Safety
|
|
9
|
+
- **No Implicit `any`**: All function parameters, return values, and exported interfaces must have explicit type declarations.
|
|
10
|
+
- **Centralized Types**: Define and export all shared data models in `src/core/types.ts`.
|
|
11
|
+
- **Exhaustive Pattern Matching**: Use TypeScript discriminated unions for polymorphic types (e.g. `InstallScope`, `InstallMethod`, `AgentHost`).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 2. Modular Architecture & Clean Seams
|
|
16
|
+
- **Single Responsibility Principle**: Keep classes and modules focused on a single domain (e.g. `RegistryResolver` manages assets, `InstallEngine` coordinates installation, `FileAdapter` handles host-specific file writes).
|
|
17
|
+
- **Decoupled Interfaces**: Business logic must never directly invoke terminal I/O (`console.log`, `@clack/prompts`). All user interaction belongs in `src/cli.ts`.
|
|
18
|
+
- **Recursive Bundle Composition**: Support parent-child bundle inheritance (`parentBundle: "software-engineering"`) to eliminate duplicate asset declarations.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 3. Idempotency & Reversibility
|
|
23
|
+
- **Safe State Tracking**: Every installed asset must be recorded in `agents-united.json` with its content hash and installation mode (`symlink` vs `copy`).
|
|
24
|
+
- **Clean Uninstallations**: Uninstallation routines must remove only tracked, managed assets without damaging user-created workspace files.
|
|
25
|
+
- **Zero Orphaned Files**: Installation failures must roll back cleanly or report exact error diagnostic paths.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Persistent Rule: Domain Modeling & Architecture Decision Records (ADRs)
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
This rule establishes rigorous standards for maintaining a shared ubiquitous language, documenting architectural decisions, and conducting Socratic requirement clarification across all projects.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Ubiquitous Language & Domain Dictionary (`CONTEXT.md`)
|
|
9
|
+
- **Shared Terminology**: Maintain a persistent `CONTEXT.md` defining core domain concepts, entities, and bounded contexts.
|
|
10
|
+
- **Terminology Alignment**: All agents, prompts, APIs, and documentation must use identical terms for domain concepts (e.g. `Bundle`, `Skill`, `Workflow`, `Host`, `Scope`).
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 2. Architecture Decision Records (`docs/adr/`)
|
|
15
|
+
Whenever a significant architectural, structural, or strategic decision is made, author an ADR in `docs/adr/`:
|
|
16
|
+
- **File Naming**: `docs/adr/YYYY-MM-DD-<slug>.md` (e.g. `2026-08-14-devops-vs-sysops-separation.md`).
|
|
17
|
+
- **Standard Structure**:
|
|
18
|
+
- **Status**: Proposed / Accepted / Superseded
|
|
19
|
+
- **Context**: Problem statement, constraints, and business context.
|
|
20
|
+
- **Decision**: The selected architectural approach and rationale.
|
|
21
|
+
- **Consequences**: Positive tradeoffs, limitations, and future implications.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 3. Socratic Requirements Clarification (`/grill-with-docs`)
|
|
26
|
+
- **Probe Ambiguity First**: Before commencing large architectural changes or complex implementations, probe underspecified requirements with structured multiple-choice questions.
|
|
27
|
+
- **Continuous Documentation**: Capture clarified decisions directly into ADRs or domain models during the requirements alignment phase.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Persistent Rule: Git Guardrails & Safety Policy
|
|
2
|
+
|
|
3
|
+
This persistent rule applies across all agent ecosystems and orchestrator bundles. Agents United guarantees user codebase safety by enforcing strict version control guardrails.
|
|
4
|
+
|
|
5
|
+
## Safety Directives
|
|
6
|
+
|
|
7
|
+
1. **Never Commit Directly to Protected Branches**:
|
|
8
|
+
- Always verify the active branch with `git branch --show-current`.
|
|
9
|
+
- Never commit directly to `main`, `master`, `production`, or `release/*`. Always create a feature or fix branch (`git checkout -b feature/<name>`).
|
|
10
|
+
|
|
11
|
+
2. **Never Execute Force Pushes**:
|
|
12
|
+
- Disallow `git push --force` or `git push -f` under all circumstances.
|
|
13
|
+
|
|
14
|
+
3. **Pre-Staging Secret Scanning**:
|
|
15
|
+
- Inspect staged changes with `git diff --cached` prior to creating commits.
|
|
16
|
+
- Never stage `.env`, private keys, API credentials, or auth tokens.
|
|
17
|
+
|
|
18
|
+
4. **Clean Working Tree**:
|
|
19
|
+
- Never leave uncommitted temporary files or dirty detached HEAD states.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Persistent Rule: Multi-Agent Delegation & Coordination Protocol
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
This rule governs interactions, task distribution, lifecycle hooks, and reporting standards between Lead Orchestrators and specialized sub-agents.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Separation of Responsibilities
|
|
9
|
+
- **Lead Orchestrators**:
|
|
10
|
+
- Analyze user requirements and formulate step-by-step implementation plans.
|
|
11
|
+
- Route tasks to specialized sub-agents via structured prompts.
|
|
12
|
+
- Synthesize sub-agent outputs and enforce verification phase gates.
|
|
13
|
+
- **Specialized Sub-Agents**:
|
|
14
|
+
- Execute focused domain tasks (e.g. `subagent-ios-architect`, `subagent-data-engineer`, `subagent-qa-automation-lead`).
|
|
15
|
+
- Report findings, code modifications, and test results back to the caller without executing unauthorized out-of-scope work.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Lifecycle Hook Governance
|
|
20
|
+
All agent markdown manifests must support declarative lifecycle hooks:
|
|
21
|
+
- **`PreInvocation`**: Executed before task execution begins to verify preconditions, workspace paths, and active branch safety.
|
|
22
|
+
- **`PostInvocation`**: Executed upon task completion to verify test pass rates, lint status, and artifact generation.
|
|
23
|
+
- **`PreToolUse`**: Guards sensitive commands against destructive or unconfirmed executions.
|
|
24
|
+
- **`PostToolUse`**: Validates tool output integrity and logs audit trails.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 3. Structured Deliverable Standard
|
|
29
|
+
Sub-agents must provide structured outputs containing:
|
|
30
|
+
1. **Executive Summary**: 1-2 sentence overview of actions taken.
|
|
31
|
+
2. **File Modifications**: Clickable file links and concise change summaries.
|
|
32
|
+
3. **Verification Results**: Command output and test pass indicators.
|
|
33
|
+
4. **Next Actions / Risks**: Open decisions requiring human or orchestrator review.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Persistent Rule: Quality, Aesthetics & Accessibility Standards
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
This rule mandates premium visual design, accessible human-computer interaction, and intuitive terminal user interfaces across all tools and web components produced by Agents United.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Terminal User Interface (TUI) Standards
|
|
9
|
+
- **Folder Tree Visualizations**: Present multi-item catalogs using standardized Unicode box-drawing characters (`├──`, `└──`, `│`, `│ `).
|
|
10
|
+
- **Two-Stage Progressive Drill-Downs**: Avoid massive unorganized select lists. Group options into domain categories before opening specialized sub-teams.
|
|
11
|
+
- **Consistent Visual Badges**: Use color-coded badges to indicate item types (`[Bundle]`, `[Agent]`, `[Skill]`, `[Workflow]`).
|
|
12
|
+
- **Explicit Confirmation Gates**: Require user confirmation before destructive actions or large-scale batch installations (e.g. installing an entire department).
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. Web & Mobile Accessibility Standards (WCAG 2.1 Level AA)
|
|
17
|
+
- **Semantic HTML5**: Always use appropriate semantic elements (`<main>`, `<nav>`, `<article>`, `<header>`, `<button>`) instead of nested `<div>` wrappers.
|
|
18
|
+
- **Contrast Ratios**: Maintain a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text and interactive components.
|
|
19
|
+
- **Keyboard Navigation**: Guarantee visible focus rings and logical tab ordering (`tabindex="0"` for interactive custom widgets).
|
|
20
|
+
- **Touch Target Ergonomics**: Ensure minimum interactive target sizes of 44x44 points (iOS) and 48x48 dp (Android).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 3. Anti-Cliché Design Guidelines
|
|
25
|
+
Unless explicitly requested by the user, DO NOT use generic tropes:
|
|
26
|
+
- No purple fonts or violet accents on dark backgrounds.
|
|
27
|
+
- No unpadded containers or textureless surfaces.
|
|
28
|
+
- No floating badge pills with pulsing dots above main headlines.
|
|
29
|
+
- No icon-stuffed bento boxes without clear functional hierarchy.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Persistent Rule: Skill & Workflows Author Attribution Standard
|
|
2
|
+
|
|
3
|
+
This rule governs the adoption, adaptation, and integration of external skills, agents, workflows, and prompts into the Agents United ecosystem.
|
|
4
|
+
|
|
5
|
+
## Mandatory Attribution Policy
|
|
6
|
+
|
|
7
|
+
Whenever skills or workflows are adopted or adapted from external creators or repositories, you MUST:
|
|
8
|
+
|
|
9
|
+
1. **Skill Frontmatter Metadata**:
|
|
10
|
+
- In `SKILL.md`, include the author's name, repository URL, and license inside the YAML frontmatter `metadata` block:
|
|
11
|
+
```yaml
|
|
12
|
+
---
|
|
13
|
+
name: <skill-name>
|
|
14
|
+
description: <skill-description>
|
|
15
|
+
metadata:
|
|
16
|
+
author: "<Author Name> (<repo-identifier>)"
|
|
17
|
+
version: "1.0.0"
|
|
18
|
+
source: "https://github.com/<owner>/<repo>"
|
|
19
|
+
license: "MIT"
|
|
20
|
+
---
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
2. **README.md Credits & Acknowledgments Section**:
|
|
24
|
+
- Add or maintain an entry in `README.md` under `## Credits & Acknowledgments` with the author's handle, repository link, and list of adapted capabilities.
|
|
25
|
+
|
|
26
|
+
3. **Integrity & Adaptation**:
|
|
27
|
+
- Adapt external skills to conform to Agents United schema and execution standards rather than importing them as unformatted raw files.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Persistent Rule: Test-Driven Development (TDD) Protocol
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
This rule enforces a strict, verifiable Test-Driven Development protocol across all software engineering, architecture, and tool development tasks within Agents United.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. The Red-Green-Refactor Lifecycle
|
|
9
|
+
Autonomous agents must follow the three-phase cycle for all new features, refactors, and bug fixes:
|
|
10
|
+
1. **Red Phase (Write Failing Tests)**: Create or update test files specifying the expected behavior, types, or assertions before modifying implementation source code. Execute `npm test` and verify that the tests fail for the intended reason.
|
|
11
|
+
2. **Green Phase (Minimal Implementation)**: Write only the minimal necessary implementation code to satisfy the test assertions and achieve a green test pass.
|
|
12
|
+
3. **Refactor Phase (Clean Up & Optimize)**: Refactor code for clarity, performance, and modularity while ensuring all tests continue to pass.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. The 4-Tier Testing Methodology
|
|
17
|
+
All test suites in the codebase should adhere to our 4-tier architectural testing model:
|
|
18
|
+
|
|
19
|
+
### Tier 1: Feature Coverage (Happy Path)
|
|
20
|
+
- Verify that standard valid inputs produce expected outputs.
|
|
21
|
+
- Test all exposed functions, classes, and exported interface methods.
|
|
22
|
+
|
|
23
|
+
### Tier 2: Boundary & Corner Cases (Negative Testing)
|
|
24
|
+
- Test empty strings, null/undefined inputs, and invalid type parameters.
|
|
25
|
+
- Test missing files, malformed YAML/JSON, and invalid enum values.
|
|
26
|
+
- Verify graceful error messages and structured exception handling.
|
|
27
|
+
|
|
28
|
+
### Tier 3: Cross-Feature Integration (Pairwise Consistency)
|
|
29
|
+
- Verify data flow across interconnected modules (e.g. `RegistryResolver` $\leftrightarrow$ `InstallEngine` $\leftrightarrow$ `FileAdapter`).
|
|
30
|
+
- Ensure lockfile updates match physical file system states.
|
|
31
|
+
|
|
32
|
+
### Tier 4: Real-World Scenarios & Full Inventory Audits
|
|
33
|
+
- Execute end-to-end tests against the complete registry catalog (all agents, skills, workflows).
|
|
34
|
+
- Verify zero schema drift, zero duplicate naming, and valid frontmatter parsing.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 3. Flakiness Elimination Rules
|
|
39
|
+
- **No Hardcoded Sleeps**: Never use `setTimeout` or arbitrary delays. Always use auto-waiting assertions (`expect(locator).toBeVisible()`) or deterministic callbacks.
|
|
40
|
+
- **Isolated Workspaces**: Run test file mutations inside temporary directories (e.g. `scratch/test-workspace/`) and clean up in `afterEach()`.
|
|
41
|
+
- **Deterministic Factories**: Use predictable test fixtures rather than non-deterministic random data.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ab-test-setup
|
|
3
|
+
description: Production-grade Ab Test Setup playbook for design operations, UX
|
|
4
|
+
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
|
+
# Ab Test Setup
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Ab Test Setup skill provides a deterministic framework for executing ab test setup 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 Ab Test Setup tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing ab-test-setup 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/ab-test-setup/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/ab-test-setup/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/ab-test-setup/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/ab-test-setup/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/ab-test-setup/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/ab-test-setup/ reports/ab-test-setup/
|
|
101
|
+
git commit -m "feat(ab-test-setup): implement Ab Test Setup playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Ab Test Setup Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "ab-test-setup"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/ab-test-setup/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Ab Test Setup Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runAbTestSetup(scope: string): boolean {
|
|
123
|
+
console.log('Running Ab Test Setup on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Ab Test Setup
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in ab-test-setup.
|
|
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 Ab Test Setup
|
|
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,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: accessibility-audit
|
|
3
|
+
description: Production-grade Accessibility Audit 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
|
+
# Accessibility Audit
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Accessibility Audit skill provides a deterministic framework for executing accessibility audit 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 Accessibility Audit tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing accessibility-audit 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/accessibility-audit/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/accessibility-audit/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/accessibility-audit/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/accessibility-audit/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/accessibility-audit/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/accessibility-audit/ reports/accessibility-audit/
|
|
101
|
+
git commit -m "feat(accessibility-audit): implement Accessibility Audit playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Accessibility Audit Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "accessibility-audit"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/accessibility-audit/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Accessibility Audit Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runAccessibilityAudit(scope: string): boolean {
|
|
123
|
+
console.log('Running Accessibility Audit on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Accessibility Audit
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in accessibility-audit.
|
|
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 Accessibility Audit
|
|
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.
|