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,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: replicate-model-inference
|
|
3
|
+
description: Integrating hosted open-source AI models, streaming responses,
|
|
4
|
+
webhook handlers, and fine-tuning jobs on Replicate.com.
|
|
5
|
+
metadata:
|
|
6
|
+
author: Replicate / agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
license: MIT
|
|
9
|
+
icon: 🔮
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Replicate Model Inference Playbook
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
`replicate-model-inference` provides comprehensive patterns for invoking, streaming, and managing open-source AI models deployed on the Replicate cloud infrastructure.
|
|
17
|
+
|
|
18
|
+
## When to Trigger
|
|
19
|
+
Trigger this skill whenever:
|
|
20
|
+
- Integrating hosted open-source LLMs, image generation (Flux, SDXL), or audio models via API.
|
|
21
|
+
- Setting up async webhook handlers for long-running prediction jobs.
|
|
22
|
+
- Implementing real-time text/token streaming in web applications.
|
|
23
|
+
- Managing model fine-tuning and custom Cog container deployments.
|
|
24
|
+
|
|
25
|
+
## Input & Output Requirements
|
|
26
|
+
- **Inputs**: Model version string (`owner/model:version`), prompt payload, generation parameters (temperature, max_tokens, guidance_scale), and `REPLICATE_API_TOKEN`.
|
|
27
|
+
- **Outputs**: Output streams, prediction JSON objects, signed image/audio URLs, and error status responses.
|
|
28
|
+
|
|
29
|
+
## Step-by-Step Execution Runbook
|
|
30
|
+
|
|
31
|
+
### Phase 1 — Client Setup & Model Version Pinning
|
|
32
|
+
- Authenticate API client using environment token.
|
|
33
|
+
- Lock exact model version hash to prevent breaking changes from upstream model updates.
|
|
34
|
+
|
|
35
|
+
### Phase 2 — Inference Execution & Streaming
|
|
36
|
+
- Use synchronous predictions for fast requests (<5s).
|
|
37
|
+
- Use streaming iterators (`replicate.stream()`) for LLMs to deliver immediate tokens.
|
|
38
|
+
- Use webhook callbacks for asynchronous generation tasks (>10s).
|
|
39
|
+
|
|
40
|
+
### Phase 3 — Verification & Retry Handling
|
|
41
|
+
- Implement exponential backoff for HTTP 429 rate limit responses.
|
|
42
|
+
- Verify generated output formats and validate against expected response schemas.
|
|
43
|
+
|
|
44
|
+
## Edge Cases & Boundary Conditions
|
|
45
|
+
- **Cold-Start Latency**: Account for 15-30s cold starts on un-cached model hardware by displaying UI progress indicators.
|
|
46
|
+
- **Payload Truncation**: Truncate or chunk user inputs exceeding the model's context window.
|
|
47
|
+
- **Hardware Failures**: Handle HTTP 500/503 responses gracefully with fallback replica endpoints.
|
|
48
|
+
|
|
49
|
+
## Error Recovery & Fallbacks
|
|
50
|
+
- If prediction times out, cancel the active prediction via API to prevent ongoing billing.
|
|
51
|
+
- Fall back to secondary models (e.g. Llama-3.1-70B -> Llama-3.1-8B) during upstream service degradations.
|
|
52
|
+
|
|
53
|
+
## Code Exemplars & Patterns
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import Replicate from "replicate";
|
|
57
|
+
|
|
58
|
+
const replicate = new Replicate({
|
|
59
|
+
auth: process.env.REPLICATE_API_TOKEN,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export async function* streamLlamaCompletion(prompt: string) {
|
|
63
|
+
const model = "meta/meta-llama-3.1-405b-instruct";
|
|
64
|
+
const stream = replicate.stream(model, {
|
|
65
|
+
input: {
|
|
66
|
+
prompt,
|
|
67
|
+
max_tokens: 1024,
|
|
68
|
+
temperature: 0.7,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
for await (const event of stream) {
|
|
73
|
+
yield event.toString();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: requesting-code-review
|
|
3
|
+
description: Production-grade Requesting Code Review playbook for authoring
|
|
4
|
+
high-context PRs, reviewer routing, and accelerating velocity.
|
|
5
|
+
metadata:
|
|
6
|
+
author: agents-united
|
|
7
|
+
version: 2.0.0
|
|
8
|
+
icon: 📨
|
|
9
|
+
disable-slash-command: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Requesting Code Review & Authoring High-Context Pull Requests
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Requesting Code Review & Authoring High-Context Pull Requests skill provides a deterministic, battle-tested framework for executing requesting-code-review 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 requesting-code-review.
|
|
22
|
+
- Auditing, implementing, or standardizing requesting-code-review 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/requesting-code-review/spec.md` | Full technical specification and architectural plan |
|
|
45
|
+
| Implementation Files | `src/requesting-code-review/*` | Production-ready source code, tests, and configurations |
|
|
46
|
+
| Execution Report | `reports/requesting-code-review/summary.json` | Verification metrics, test results, and audit summary |
|
|
47
|
+
|
|
48
|
+
## Step-by-Step Execution Runbook
|
|
49
|
+
|
|
50
|
+
### Phase 1: Pre-Submission Self-Review & Diff Scrutiny
|
|
51
|
+
1. Perform a thorough self-review of your own pull request diff on GitHub / CLI before requesting peers.
|
|
52
|
+
2. Check for leftover debug logs (console.log), temporary test files, or commented-out code.
|
|
53
|
+
3. Ensure the diff size is manageable (< 400 lines modified) to facilitate thorough review.
|
|
54
|
+
4. Split oversized PRs into smaller, sequential, independently-testable PRs if necessary.
|
|
55
|
+
5. Verify clean branch rebase on latest main.
|
|
56
|
+
|
|
57
|
+
### Phase 2: High-Context PR Description Authoring
|
|
58
|
+
1. Write concise, informative PR title following Conventional Commits (feat(auth): add OAuth2 refresh token flow).
|
|
59
|
+
2. Document Motivation: Why is this change necessary? Link relevant issue tickets.
|
|
60
|
+
3. Document Approach: How was the problem solved? What architectural decisions were made?
|
|
61
|
+
4. Document Tradeoffs: What alternatives were evaluated and why were they not chosen?
|
|
62
|
+
5. Attach visual proof (screenshots, animated GIFs, or terminal logs) demonstrating functionality.
|
|
63
|
+
|
|
64
|
+
### Phase 3: Verification Instructions & Test Evidence
|
|
65
|
+
1. Provide clear, copy-pasteable terminal commands for reviewers to verify the changes locally.
|
|
66
|
+
2. Document manual test steps and environment prerequisites.
|
|
67
|
+
3. Include test execution results and code coverage metrics in PR description.
|
|
68
|
+
4. Highlight any database migrations or environment variable changes required.
|
|
69
|
+
5. Confirm all automated CI checks are passing green.
|
|
70
|
+
|
|
71
|
+
### Phase 4: Reviewer Routing & Context Briefing
|
|
72
|
+
1. Assign code owners and subject-matter experts based on modified file paths (CODEOWNERS).
|
|
73
|
+
2. Add inline comments on complex or non-obvious algorithms explaining the rationale.
|
|
74
|
+
3. Tag security or architecture specialists if sensitive boundaries were touched.
|
|
75
|
+
4. Ping assigned reviewers in team chat with a one-sentence summary and urgency level.
|
|
76
|
+
5. Monitor PR for incoming comments.
|
|
77
|
+
|
|
78
|
+
### Phase 5: Review Coordination & Handoff
|
|
79
|
+
1. Respond promptly to incoming reviewer questions and feedback.
|
|
80
|
+
2. Keep PR branch updated with main during extended review cycles.
|
|
81
|
+
3. Coordinate final sign-off once all review requirements are satisfied.
|
|
82
|
+
4. Merge PR according to repository merge strategy (Squash and Merge).
|
|
83
|
+
5. Confirm deployment in staging / production.
|
|
84
|
+
|
|
85
|
+
## Code & Configuration Exemplars
|
|
86
|
+
|
|
87
|
+
### Exemplar 1: Requesting Code Review & Authoring High-Context Pull Requests Configuration & Specification
|
|
88
|
+
```yaml
|
|
89
|
+
## Summary of Changes
|
|
90
|
+
- Implemented idempotent payment checkout flow using Stripe Webhooks.
|
|
91
|
+
- Added transactional outbox pattern to prevent double-charging on network timeout.
|
|
92
|
+
- Added comprehensive unit and integration tests with 94% code coverage.
|
|
93
|
+
|
|
94
|
+
## Verification
|
|
95
|
+
```bash
|
|
96
|
+
npm run typecheck && npm test
|
|
97
|
+
```
|
|
98
|
+
- [x] All 28 automated tests passing.
|
|
99
|
+
- [x] Tested against Stripe test environment.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Exemplar 2: Requesting Code Review & Authoring High-Context Pull Requests TypeScript Type Contract
|
|
103
|
+
```typescript
|
|
104
|
+
export interface PullRequestMetadata {
|
|
105
|
+
title: string;
|
|
106
|
+
description: string;
|
|
107
|
+
type: 'feat' | 'fix' | 'refactor' | 'perf' | 'docs';
|
|
108
|
+
scope: string;
|
|
109
|
+
breakingChanges: boolean;
|
|
110
|
+
issueReferences: string[];
|
|
111
|
+
reviewers: string[];
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Edge Cases & Error Recovery Procedures
|
|
116
|
+
|
|
117
|
+
### Scenario A: Validation Failure in Requesting Code Review & Authoring High-Context Pull Requests
|
|
118
|
+
1. **Diagnosis**: Static analysis, typechecking, or unit tests fail validation rules during execution.
|
|
119
|
+
2. **Recovery Protocol**:
|
|
120
|
+
- Step 1: Inspect detailed error log output in test/build terminal.
|
|
121
|
+
- Step 2: Formulate targeted hypothesis and isolate failing line or assertion.
|
|
122
|
+
- Step 3: Implement surgical code fix and re-run verification suite.
|
|
123
|
+
|
|
124
|
+
### Scenario B: Missing or Incompatible Dependency
|
|
125
|
+
1. **Diagnosis**: Required toolchain binary or library dependency is missing from the environment.
|
|
126
|
+
2. **Recovery Protocol**:
|
|
127
|
+
- Step 1: Verify `package.json` engine requirements and local environment versions.
|
|
128
|
+
- Step 2: Install required peer dependencies cleanly with lockfile sync.
|
|
129
|
+
- Step 3: Resume runbook from Phase 1.
|
|
130
|
+
|
|
131
|
+
## Verification & Validation Checklist
|
|
132
|
+
- [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
|
|
133
|
+
- [ ] All 7 mandatory sections present with explicit headers.
|
|
134
|
+
- [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
|
|
135
|
+
- [ ] Code exemplars provided with valid syntax fencing.
|
|
136
|
+
- [ ] Zero dummy placeholder strings or unpopulated template markers present.
|
|
137
|
+
- [ ] Project build, test suite, and doctor check pass 100% cleanly.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: responsive-design-audit
|
|
3
|
+
description: Production-grade Responsive Design 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
|
+
# Responsive Design Audit
|
|
13
|
+
|
|
14
|
+
## Overview & Purpose
|
|
15
|
+
The Responsive Design Audit skill provides a deterministic framework for executing responsive design 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 Responsive Design Audit tasks.
|
|
22
|
+
- Auditing existing product assets or workflows.
|
|
23
|
+
- Standardizing responsive-design-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/responsive-design-audit/spec.md` | Full specification and guidelines document |
|
|
45
|
+
| Component / Asset Files | `src/responsive-design-audit/*` | Implemented design tokens, components, or campaign assets |
|
|
46
|
+
| Audit Report | `reports/responsive-design-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/responsive-design-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/responsive-design-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/responsive-design-audit/ reports/responsive-design-audit/
|
|
101
|
+
git commit -m "feat(responsive-design-audit): implement Responsive Design Audit playbook artifacts"
|
|
102
|
+
```
|
|
103
|
+
4. Publish documentation for team review.
|
|
104
|
+
|
|
105
|
+
## Code & Configuration Exemplars
|
|
106
|
+
|
|
107
|
+
### Exemplar 1: Responsive Design Audit Configuration Specification
|
|
108
|
+
```yaml
|
|
109
|
+
version: "2.0.0"
|
|
110
|
+
metadata:
|
|
111
|
+
skill: "responsive-design-audit"
|
|
112
|
+
author: "agents-united"
|
|
113
|
+
rules:
|
|
114
|
+
strictValidation: true
|
|
115
|
+
reporting:
|
|
116
|
+
format: "json"
|
|
117
|
+
output: "reports/responsive-design-audit/summary.json"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Exemplar 2: Responsive Design Audit Helper Module
|
|
121
|
+
```typescript
|
|
122
|
+
export function runResponsiveDesignAudit(scope: string): boolean {
|
|
123
|
+
console.log('Running Responsive Design Audit on:', scope);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Edge Cases & Error Recovery Procedures
|
|
129
|
+
|
|
130
|
+
### Scenario A: Validation Failure in Responsive Design Audit
|
|
131
|
+
1. **Diagnosis**: Specification or code asset fails validation rules in responsive-design-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 Responsive Design 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.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: runpod-gpu-orchestration
|
|
3
|
+
description: On-demand GPU instance provisioning, serverless worker handler
|
|
4
|
+
creation, network volume configuration, and spot pricing optimization on
|
|
5
|
+
RunPod.io.
|
|
6
|
+
metadata:
|
|
7
|
+
author: RunPod / agents-united
|
|
8
|
+
version: 2.0.0
|
|
9
|
+
license: MIT
|
|
10
|
+
icon: 🖥️
|
|
11
|
+
disable-slash-command: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# RunPod GPU Orchestration Playbook
|
|
15
|
+
|
|
16
|
+
## Overview & Purpose
|
|
17
|
+
`runpod-gpu-orchestration` standardizes building, deploying, and managing custom AI containers on RunPod Serverless and GPU Pod instances with cost-effective spot pricing.
|
|
18
|
+
|
|
19
|
+
## When to Trigger
|
|
20
|
+
Trigger this skill whenever:
|
|
21
|
+
- Creating custom CUDA Docker containers for high-performance model serving.
|
|
22
|
+
- Implementing RunPod Serverless asynchronous and streaming worker handlers.
|
|
23
|
+
- Configuring network storage volumes for shared model weight caching across pods.
|
|
24
|
+
- Setting up automated scaling policies and spot GPU instance recovery.
|
|
25
|
+
|
|
26
|
+
## Input & Output Requirements
|
|
27
|
+
- **Inputs**: Base Dockerfile, Python worker script, RunPod API Key, GPU type requirements (RTX 4090, A100, H100), and network volume IDs.
|
|
28
|
+
- **Outputs**: Docker container registry images, RunPod endpoint configurations, and health monitoring alerts.
|
|
29
|
+
|
|
30
|
+
## Step-by-Step Execution Runbook
|
|
31
|
+
|
|
32
|
+
### Phase 1 — Worker Implementation & Containerization
|
|
33
|
+
- Author the Python worker handler conforming to `runpod.serverless.start()`.
|
|
34
|
+
- Package dependencies with CUDA runtime base layers in Dockerfile.
|
|
35
|
+
|
|
36
|
+
### Phase 2 — Network Volume Caching & Endpoint Deployment
|
|
37
|
+
- Mount `/runpod-volume` to share checkpoints and avoid downloading model weights on worker initialization.
|
|
38
|
+
- Deploy the serverless endpoint with concurrency limits and idle timeout thresholds.
|
|
39
|
+
|
|
40
|
+
### Phase 3 — Verification & Load Testing
|
|
41
|
+
- Trigger test jobs via RunPod `/run` and `/runsync` REST endpoints.
|
|
42
|
+
- Validate worker auto-scaling under load and clean scale-down on idle.
|
|
43
|
+
|
|
44
|
+
## Edge Cases & Boundary Conditions
|
|
45
|
+
- **Spot Pod Interruption**: Implement checkpoint saves every N training steps to recover from spot instance preemptions.
|
|
46
|
+
- **CUDA OOM on High Concurrency**: Enforce max concurrent jobs per worker container (`concurrency_modifier`).
|
|
47
|
+
- **Disk Space Exhaustion**: Clean `/tmp` and PyTorch cache files between batch jobs.
|
|
48
|
+
|
|
49
|
+
## Error Recovery & Fallbacks
|
|
50
|
+
- If serverless job fails with worker error, inspect container stderr logs via RunPod API.
|
|
51
|
+
- Fall back from spot instances to on-demand secure cloud pods when guaranteed uptime is required.
|
|
52
|
+
|
|
53
|
+
## Code Exemplars & Patterns
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
import runpod
|
|
57
|
+
import torch
|
|
58
|
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
59
|
+
|
|
60
|
+
model = None
|
|
61
|
+
tokenizer = None
|
|
62
|
+
|
|
63
|
+
def load_model():
|
|
64
|
+
global model, tokenizer
|
|
65
|
+
model_name = "mistralai/Mistral-7B-Instruct-v0.3"
|
|
66
|
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
67
|
+
model = AutoModelForCausalLM.from_pretrained(
|
|
68
|
+
model_name,
|
|
69
|
+
torch_dtype=torch.float16,
|
|
70
|
+
device_map="auto"
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
def handler(job):
|
|
74
|
+
job_input = job["input"]
|
|
75
|
+
prompt = job_input.get("prompt", "")
|
|
76
|
+
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
|
77
|
+
with torch.no_grad():
|
|
78
|
+
outputs = model.generate(**inputs, max_new_tokens=256)
|
|
79
|
+
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
80
|
+
return {"output": result}
|
|
81
|
+
|
|
82
|
+
if __name__ == "__main__":
|
|
83
|
+
load_model()
|
|
84
|
+
runpod.serverless.start({"handler": handler})
|
|
85
|
+
```
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: schema-markup-strategy
|
|
3
|
+
description: Production-grade Schema Markup Strategy playbook for JSON-LD
|
|
4
|
+
structured data architecture, Schema.org entities, rich snippet qualification,
|
|
5
|
+
and SERP visibility.
|
|
6
|
+
metadata:
|
|
7
|
+
author: agents-united
|
|
8
|
+
version: 2.0.0
|
|
9
|
+
icon: 🏷️
|
|
10
|
+
disable-slash-command: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Schema Markup Strategy & JSON-LD Structured Data Architecture
|
|
14
|
+
|
|
15
|
+
## Overview & Purpose
|
|
16
|
+
The Schema Markup Strategy skill provides a deterministic framework for architecting and deploying production-grade JSON-LD structured data conforming to Schema.org standards and Google Search Gallery specifications.
|
|
17
|
+
|
|
18
|
+
Following this skill structures interconnected entity graphs (`@graph`), linking Organization, WebSite, WebPage, SoftwareApplication, Product, FAQPage, BreadcrumbList, HowTo, and Article entities to unlock Google rich snippets, Knowledge Panels, and LLM semantic web parsing.
|
|
19
|
+
|
|
20
|
+
## Execution Triggers & Prerequisites
|
|
21
|
+
### Execution Triggers
|
|
22
|
+
- Implementing structured data for SaaS product pages, blog articles, documentation, or FAQs.
|
|
23
|
+
- Qualifying web pages for Google Rich Results (FAQ accordions, breadcrumbs, star ratings, software pricing).
|
|
24
|
+
- Resolving Google Search Console structured data warnings and validation errors.
|
|
25
|
+
- Establishing brand entity Knowledge Graph authority across organizational domains.
|
|
26
|
+
|
|
27
|
+
### Prerequisites
|
|
28
|
+
- Target page URLs, entity data (authors, publish dates, ratings, pricing, FAQ items).
|
|
29
|
+
- Web application framework supporting `<script type="application/ld+json">` injection.
|
|
30
|
+
- Google Rich Results Test or Schema Validator testing tools.
|
|
31
|
+
- Clean git working directory.
|
|
32
|
+
|
|
33
|
+
## Input & Output Requirements
|
|
34
|
+
### Inputs
|
|
35
|
+
| Parameter | Type | Required | Description |
|
|
36
|
+
|---|---|---|---|
|
|
37
|
+
| `entity_types` | Array<String> | Yes | Target entities: `['SoftwareApplication', 'FAQPage', 'Organization', 'BreadcrumbList']` |
|
|
38
|
+
| `page_url` | String | Yes | Canonical URL of target page |
|
|
39
|
+
| `organization_metadata` | Object | Yes | Name, logo URL, sameAs social links, contact point |
|
|
40
|
+
| `item_payload` | Object | Yes | Specific entity properties (pricing, ratings, steps, questions) |
|
|
41
|
+
| `strict_mode` | Boolean | Optional | Enforce zero-warning validation against Google specs |
|
|
42
|
+
|
|
43
|
+
### Outputs
|
|
44
|
+
| Artifact | Path / Format | Description |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| Schema Architecture Spec | `docs/schema-markup-strategy/schema-spec.md` | Entity graph definitions and property mapping |
|
|
47
|
+
| React / Next.js Component | `src/components/seo/JsonLd.tsx` | Reusable JSON-LD script injector component |
|
|
48
|
+
| Validation Audit Report | `reports/schema-markup-strategy/validation.json` | Google Rich Results API test output and status |
|
|
49
|
+
|
|
50
|
+
## Step-by-Step Execution Runbook
|
|
51
|
+
|
|
52
|
+
### Phase 1: Entity Graph Discovery & Schema Vocabulary Selection
|
|
53
|
+
1. Inspect target page content to classify required Schema.org entity types.
|
|
54
|
+
2. Review Google Search Gallery guidelines for eligible rich result types (e.g. Software App, FAQ, Breadcrumb).
|
|
55
|
+
3. Extract core entity properties: `@id` URI anchors, `@type`, name, url, description, author, dateModified.
|
|
56
|
+
4. Establish entity graph relationships using `@graph` notation to link sub-entities to parent Organization and WebPage.
|
|
57
|
+
5. Verify schema licensing and compliance against Schema.org vocabulary version 26+.
|
|
58
|
+
|
|
59
|
+
### Phase 2: Structured JSON-LD Graph (`@graph`) Data Modeling
|
|
60
|
+
1. Author canonical Organization root entity with official logo URL and verified `sameAs` social profiles.
|
|
61
|
+
2. Build WebSite and WebPage entities referencing root Organization as `publisher`.
|
|
62
|
+
3. Construct specific domain entities:
|
|
63
|
+
- `SoftwareApplication`: include `operatingSystem`, `applicationCategory`, `offers` (price, currency), `aggregateRating`.
|
|
64
|
+
- `FAQPage`: build `mainEntity` array containing `Question` and accepted `Answer` blocks.
|
|
65
|
+
- `BreadcrumbList`: define `itemListElement` array with positional integers and item URLs.
|
|
66
|
+
4. Link entities using unambiguous `@id` URI fragments (e.g., `https://example.com/#organization`).
|
|
67
|
+
|
|
68
|
+
### Phase 3: Component Integration & Dynamic Hydration
|
|
69
|
+
1. Create a typed, reusable Next.js / React component (`<JsonLd data={graph} />`) that renders sanitized JSON-LD in `<head>` or page root.
|
|
70
|
+
2. Implement XSS escaping for user-generated strings injected into JSON-LD script tags.
|
|
71
|
+
3. Configure dynamic metadata hooks to populate real-time pricing and rating changes into the schema payload.
|
|
72
|
+
4. Integrate schema generation directly into CMS or programmatic template render pipelines.
|
|
73
|
+
|
|
74
|
+
### Phase 4: Schema Validation, Google Rich Results Testing & Syntax Linting
|
|
75
|
+
1. Run local JSON-LD parser validation to confirm zero trailing commas or syntax errors.
|
|
76
|
+
2. Test rendered output against Google Rich Results Test API / schema validator CLI.
|
|
77
|
+
```bash
|
|
78
|
+
npx schema-dts-gen --input docs/schema-markup-strategy/sample.json --validate
|
|
79
|
+
```
|
|
80
|
+
3. Assert that zero required fields are missing and all recommended fields are populated where applicable.
|
|
81
|
+
4. Verify that schema content exactly mirrors visible on-page user content to prevent manual spam actions.
|
|
82
|
+
|
|
83
|
+
### Phase 5: Deployment Verification & SERP Feature Monitoring
|
|
84
|
+
1. Deploy structured data component to staging / preview environment.
|
|
85
|
+
2. Execute live URL inspection check confirming correct MIME type `<script type="application/ld+json">`.
|
|
86
|
+
3. Log schema deployment metadata to `reports/schema-markup-strategy/validation.json`.
|
|
87
|
+
4. Commit validated schema components to repository.
|
|
88
|
+
```bash
|
|
89
|
+
git add docs/schema-markup-strategy/ src/components/seo/
|
|
90
|
+
git commit -m "feat(schema-markup-strategy): implement nested JSON-LD structured data engine"
|
|
91
|
+
```
|
|
92
|
+
5. Set up Google Search Console Rich Results tracking.
|
|
93
|
+
|
|
94
|
+
## Code & Configuration Exemplars
|
|
95
|
+
|
|
96
|
+
### Exemplar 1: Multi-Entity Nested JSON-LD `@graph` Specification
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"@context": "https://schema.org",
|
|
100
|
+
"@graph": [
|
|
101
|
+
{
|
|
102
|
+
"@type": "Organization",
|
|
103
|
+
"@id": "https://agents-united.dev/#organization",
|
|
104
|
+
"name": "Agents United",
|
|
105
|
+
"url": "https://agents-united.dev",
|
|
106
|
+
"logo": "https://agents-united.dev/logo.png",
|
|
107
|
+
"sameAs": [
|
|
108
|
+
"https://github.com/agents-united",
|
|
109
|
+
"https://twitter.com/agentsunited"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"@type": "SoftwareApplication",
|
|
114
|
+
"@id": "https://agents-united.dev/#software",
|
|
115
|
+
"name": "Agents United CLI",
|
|
116
|
+
"operatingSystem": "All",
|
|
117
|
+
"applicationCategory": "DeveloperApplication",
|
|
118
|
+
"offers": {
|
|
119
|
+
"@type": "Offer",
|
|
120
|
+
"price": "0",
|
|
121
|
+
"priceCurrency": "USD"
|
|
122
|
+
},
|
|
123
|
+
"aggregateRating": {
|
|
124
|
+
"@type": "AggregateRating",
|
|
125
|
+
"ratingValue": "4.9",
|
|
126
|
+
"ratingCount": "128"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"@type": "FAQPage",
|
|
131
|
+
"@id": "https://agents-united.dev/#faq",
|
|
132
|
+
"mainEntity": [
|
|
133
|
+
{
|
|
134
|
+
"@type": "Question",
|
|
135
|
+
"name": "How do I install Agents United?",
|
|
136
|
+
"acceptedAnswer": {
|
|
137
|
+
"@type": "Answer",
|
|
138
|
+
"text": "Run npm install -g agents-united to install globally."
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Exemplar 2: TypeScript React Reusable JSON-LD Injection Component
|
|
148
|
+
```typescript
|
|
149
|
+
import React from 'react';
|
|
150
|
+
|
|
151
|
+
export interface JsonLdProps {
|
|
152
|
+
data: Record<string, any>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function JsonLd({ data }: JsonLdProps): React.JSX.Element {
|
|
156
|
+
const jsonString = JSON.stringify(data, null, 2)
|
|
157
|
+
.replace(/</g, '\\u003c')
|
|
158
|
+
.replace(/>/g, '\\u003e')
|
|
159
|
+
.replace(/&/g, '\\u0026');
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<script
|
|
163
|
+
type="application/ld+json"
|
|
164
|
+
dangerouslySetInnerHTML={{ __html: jsonString }}
|
|
165
|
+
/>
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Edge Cases & Error Recovery Procedures
|
|
171
|
+
|
|
172
|
+
### Scenario A: Google Rich Results Error on Missing Required Schema Properties
|
|
173
|
+
1. **Diagnosis**: Validator flags missing required fields (e.g., `offers.priceCurrency` or `publisher.logo`).
|
|
174
|
+
2. **Recovery Protocol**:
|
|
175
|
+
- Step 1: Consult Google Search Gallery documentation for the failing entity type.
|
|
176
|
+
- Step 2: Inject fallback default values for missing required properties into data mapper.
|
|
177
|
+
- Step 3: Re-run schema validator script and assert zero errors.
|
|
178
|
+
|
|
179
|
+
### Scenario B: Schema Content Mismatch with On-Page Rendered HTML
|
|
180
|
+
1. **Diagnosis**: Search engine flags cloaking or deceptive markup because schema price/rating differs from page text.
|
|
181
|
+
2. **Recovery Protocol**:
|
|
182
|
+
- Step 1: Ensure JSON-LD generator consumes the exact same data source object as React UI components.
|
|
183
|
+
- Step 2: Implement build-time assertion checking parity between DOM text nodes and JSON-LD properties.
|
|
184
|
+
- Step 3: Re-deploy corrected unified data source.
|
|
185
|
+
|
|
186
|
+
## Verification & Validation Checklist
|
|
187
|
+
- [ ] Frontmatter conforms strictly to `author: "agents-united"` and `version: "2.0.0"`.
|
|
188
|
+
- [ ] All 7 mandatory sections present with explicit headers.
|
|
189
|
+
- [ ] Step-by-Step Execution Runbook body contains >= 50 lines.
|
|
190
|
+
- [ ] Nested `@graph` syntax used for cross-entity referencing.
|
|
191
|
+
- [ ] XSS escaping sanitization implemented for JSON-LD strings.
|
|
192
|
+
- [ ] Code exemplars provided with valid syntax fencing.
|
|
193
|
+
- [ ] Zero dummy placeholder strings or unpopulated template markers present.
|
|
194
|
+
- [ ] Project build, test suite, and doctor check pass 100% cleanly.
|