agileflow 3.2.1 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +6 -6
  3. package/lib/feature-flags.js +32 -4
  4. package/lib/skill-loader.js +0 -1
  5. package/package.json +1 -1
  6. package/scripts/agileflow-statusline.sh +81 -0
  7. package/scripts/babysit-clear-restore.js +154 -0
  8. package/scripts/claude-tmux.sh +120 -24
  9. package/scripts/claude-watchdog.sh +225 -0
  10. package/scripts/generators/agent-registry.js +14 -1
  11. package/scripts/generators/inject-babysit.js +22 -9
  12. package/scripts/generators/inject-help.js +19 -9
  13. package/scripts/lib/README-portable-tasks.md +424 -0
  14. package/scripts/lib/audit-cleanup.js +250 -0
  15. package/scripts/lib/audit-registry.js +248 -0
  16. package/scripts/lib/configure-detect.js +20 -0
  17. package/scripts/lib/feature-catalog.js +13 -2
  18. package/scripts/lib/gate-enforcer.js +295 -0
  19. package/scripts/lib/model-profiles.js +98 -0
  20. package/scripts/lib/signal-detectors.js +1 -1
  21. package/scripts/lib/skill-catalog.js +557 -0
  22. package/scripts/lib/skill-recommender.js +311 -0
  23. package/scripts/lib/tdd-phase-manager.js +455 -0
  24. package/scripts/lib/team-events.js +76 -8
  25. package/scripts/lib/tmux-group-colors.js +113 -0
  26. package/scripts/messaging-bridge.js +209 -1
  27. package/scripts/spawn-audit-sessions.js +549 -0
  28. package/scripts/team-manager.js +37 -16
  29. package/scripts/tmux-close-windows.sh +180 -0
  30. package/scripts/tmux-restore-window.sh +67 -0
  31. package/scripts/tmux-save-closed-window.sh +35 -0
  32. package/src/core/agents/ads-audit-budget.md +181 -0
  33. package/src/core/agents/ads-audit-compliance.md +169 -0
  34. package/src/core/agents/ads-audit-creative.md +164 -0
  35. package/src/core/agents/ads-audit-google.md +226 -0
  36. package/src/core/agents/ads-audit-meta.md +183 -0
  37. package/src/core/agents/ads-audit-tracking.md +197 -0
  38. package/src/core/agents/ads-consensus.md +322 -0
  39. package/src/core/agents/brainstorm-analyzer-features.md +169 -0
  40. package/src/core/agents/brainstorm-analyzer-growth.md +161 -0
  41. package/src/core/agents/brainstorm-analyzer-integration.md +172 -0
  42. package/src/core/agents/brainstorm-analyzer-market.md +147 -0
  43. package/src/core/agents/brainstorm-analyzer-ux.md +167 -0
  44. package/src/core/agents/brainstorm-consensus.md +237 -0
  45. package/src/core/agents/completeness-analyzer-api.md +190 -0
  46. package/src/core/agents/completeness-analyzer-conditional.md +201 -0
  47. package/src/core/agents/completeness-analyzer-handlers.md +159 -0
  48. package/src/core/agents/completeness-analyzer-imports.md +159 -0
  49. package/src/core/agents/completeness-analyzer-routes.md +182 -0
  50. package/src/core/agents/completeness-analyzer-state.md +188 -0
  51. package/src/core/agents/completeness-analyzer-stubs.md +198 -0
  52. package/src/core/agents/completeness-consensus.md +286 -0
  53. package/src/core/agents/perf-consensus.md +2 -2
  54. package/src/core/agents/security-consensus.md +2 -2
  55. package/src/core/agents/seo-analyzer-content.md +167 -0
  56. package/src/core/agents/seo-analyzer-images.md +187 -0
  57. package/src/core/agents/seo-analyzer-performance.md +206 -0
  58. package/src/core/agents/seo-analyzer-schema.md +176 -0
  59. package/src/core/agents/seo-analyzer-sitemap.md +172 -0
  60. package/src/core/agents/seo-analyzer-technical.md +144 -0
  61. package/src/core/agents/seo-consensus.md +289 -0
  62. package/src/core/agents/test-consensus.md +2 -2
  63. package/src/core/commands/ads/audit.md +375 -0
  64. package/src/core/commands/ads/budget.md +97 -0
  65. package/src/core/commands/ads/competitor.md +112 -0
  66. package/src/core/commands/ads/creative.md +85 -0
  67. package/src/core/commands/ads/google.md +112 -0
  68. package/src/core/commands/ads/landing.md +119 -0
  69. package/src/core/commands/ads/linkedin.md +112 -0
  70. package/src/core/commands/ads/meta.md +91 -0
  71. package/src/core/commands/ads/microsoft.md +115 -0
  72. package/src/core/commands/ads/plan.md +321 -0
  73. package/src/core/commands/ads/tiktok.md +129 -0
  74. package/src/core/commands/ads/youtube.md +124 -0
  75. package/src/core/commands/ads.md +128 -0
  76. package/src/core/commands/babysit.md +250 -1344
  77. package/src/core/commands/code/completeness.md +466 -0
  78. package/src/core/commands/{audit → code}/legal.md +26 -16
  79. package/src/core/commands/{audit → code}/logic.md +27 -16
  80. package/src/core/commands/{audit → code}/performance.md +30 -20
  81. package/src/core/commands/{audit → code}/security.md +32 -19
  82. package/src/core/commands/{audit → code}/test.md +30 -20
  83. package/src/core/commands/{discovery → ideate}/brief.md +12 -12
  84. package/src/core/commands/{discovery/new.md → ideate/discover.md} +13 -13
  85. package/src/core/commands/ideate/features.md +435 -0
  86. package/src/core/commands/seo/audit.md +373 -0
  87. package/src/core/commands/seo/competitor.md +174 -0
  88. package/src/core/commands/seo/content.md +107 -0
  89. package/src/core/commands/seo/geo.md +229 -0
  90. package/src/core/commands/seo/hreflang.md +140 -0
  91. package/src/core/commands/seo/images.md +96 -0
  92. package/src/core/commands/seo/page.md +198 -0
  93. package/src/core/commands/seo/plan.md +163 -0
  94. package/src/core/commands/seo/programmatic.md +131 -0
  95. package/src/core/commands/seo/references/cwv-thresholds.md +64 -0
  96. package/src/core/commands/seo/references/eeat-framework.md +110 -0
  97. package/src/core/commands/seo/references/quality-gates.md +91 -0
  98. package/src/core/commands/seo/references/schema-types.md +102 -0
  99. package/src/core/commands/seo/schema.md +183 -0
  100. package/src/core/commands/seo/sitemap.md +97 -0
  101. package/src/core/commands/seo/technical.md +100 -0
  102. package/src/core/commands/seo.md +107 -0
  103. package/src/core/commands/skill/list.md +68 -212
  104. package/src/core/commands/skill/recommend.md +216 -0
  105. package/src/core/commands/tdd-next.md +238 -0
  106. package/src/core/commands/tdd.md +210 -0
  107. package/src/core/experts/_core-expertise.yaml +105 -0
  108. package/src/core/experts/analytics/expertise.yaml +5 -99
  109. package/src/core/experts/codebase-query/expertise.yaml +3 -72
  110. package/src/core/experts/compliance/expertise.yaml +6 -72
  111. package/src/core/experts/database/expertise.yaml +9 -52
  112. package/src/core/experts/documentation/expertise.yaml +7 -140
  113. package/src/core/experts/integrations/expertise.yaml +7 -127
  114. package/src/core/experts/mentor/expertise.yaml +8 -35
  115. package/src/core/experts/monitoring/expertise.yaml +7 -49
  116. package/src/core/experts/performance/expertise.yaml +1 -26
  117. package/src/core/experts/security/expertise.yaml +9 -34
  118. package/src/core/experts/ui/expertise.yaml +6 -36
  119. package/src/core/knowledge/ads/ad-audit-checklist-scoring.md +424 -0
  120. package/src/core/knowledge/ads/ad-optimization-logic.md +590 -0
  121. package/src/core/knowledge/ads/ad-technical-specifications.md +385 -0
  122. package/src/core/knowledge/ads/definitive-advertising-reference-2026.md +506 -0
  123. package/src/core/knowledge/ads/paid-advertising-research-2026.md +445 -0
  124. package/src/core/templates/agileflow-metadata.json +15 -1
  125. package/tools/cli/installers/ide/_base-ide.js +42 -5
  126. package/tools/cli/installers/ide/claude-code.js +13 -4
  127. package/tools/cli/lib/content-injector.js +160 -12
  128. package/tools/cli/lib/docs-setup.js +1 -1
  129. package/src/core/commands/skill/create.md +0 -698
  130. package/src/core/commands/skill/delete.md +0 -316
  131. package/src/core/commands/skill/edit.md +0 -359
  132. package/src/core/commands/skill/test.md +0 -394
  133. package/src/core/commands/skill/upgrade.md +0 -552
  134. package/src/core/templates/skill-template.md +0 -117
@@ -0,0 +1,183 @@
1
+ ---
2
+ description: Schema markup validation, deprecated type detection, and ready-to-use JSON-LD generation for rich results
3
+ argument-hint: "URL [GENERATE=true]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:seo:schema - Schema markup analysis"
8
+ - "Detect existing JSON-LD, Microdata, RDFa on the page"
9
+ - "Validate against current Google standards (2025-2026)"
10
+ - "Flag deprecated types (HowTo, SpecialAnnouncement, etc.)"
11
+ - "If GENERATE=true, produce ready-to-use JSON-LD snippets"
12
+ state_fields:
13
+ - target_url
14
+ - generate
15
+ - schema_found
16
+ ---
17
+
18
+ # /agileflow:seo:schema
19
+
20
+ Detect, validate, and generate schema markup (structured data) for rich results in Google Search.
21
+
22
+ ---
23
+
24
+ ## Quick Reference
25
+
26
+ ```
27
+ /agileflow:seo:schema https://example.com # Detect and validate existing schema
28
+ /agileflow:seo:schema https://example.com GENERATE=true # Also generate missing JSON-LD
29
+ /agileflow:seo:schema https://example.com/product # Analyze product page schema
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Arguments
35
+
36
+ | Argument | Values | Default | Description |
37
+ |----------|--------|---------|-------------|
38
+ | URL | Any valid URL | Required | Page to analyze |
39
+ | GENERATE | true, false | false | Generate ready-to-use JSON-LD for missing schema |
40
+
41
+ ---
42
+
43
+ ## Process
44
+
45
+ ### STEP 1: Fetch and Detect
46
+
47
+ Use WebFetch to retrieve the page. Extract all structured data:
48
+ - `<script type="application/ld+json">` blocks (JSON-LD)
49
+ - Elements with `itemscope`/`itemtype`/`itemprop` (Microdata)
50
+ - Elements with `typeof`/`property` (RDFa)
51
+
52
+ ### STEP 2: Validate Existing Schema
53
+
54
+ For each schema block found, check:
55
+
56
+ **Format**:
57
+ - Valid JSON syntax (for JSON-LD)
58
+ - `@context` uses `https://schema.org` (HTTPS, not HTTP)
59
+ - `@type` is a recognized type
60
+
61
+ **Required Properties** (per type - see schema-types.md reference):
62
+ - Organization: name, url, logo
63
+ - Product: name, image, offers (price, priceCurrency, availability)
64
+ - Article: headline, image, datePublished, author
65
+ - LocalBusiness: name, address, telephone
66
+ - etc.
67
+
68
+ **Current Rules**:
69
+ - `returnPolicyCountry` mandatory for Products (March 2025)
70
+ - ISO 8601 dates required
71
+ - Merchant API migration by August 18, 2026
72
+
73
+ ### STEP 3: Flag Deprecated/Restricted Types
74
+
75
+ **Deprecated (remove immediately)**:
76
+ - HowTo, SpecialAnnouncement, CourseInfo, EstimatedSalary
77
+ - LearningVideo, ClaimReview, VehicleListing, PracticeProblem, Dataset
78
+
79
+ **Restricted (use only if eligible)**:
80
+ - FAQPage: Only government/healthcare sites since August 2023
81
+
82
+ ### STEP 4: Identify Missing Opportunities
83
+
84
+ Based on page content, recommend schema that should be present:
85
+
86
+ | Page Contains | Recommended Schema |
87
+ |--------------|-------------------|
88
+ | Business info | Organization or LocalBusiness |
89
+ | Products | Product with Offer |
90
+ | Blog articles | Article or BlogPosting |
91
+ | Events | Event |
92
+ | Job listings | JobPosting |
93
+ | Videos | VideoObject |
94
+ | Breadcrumbs | BreadcrumbList |
95
+ | Site search | WebSite with SearchAction |
96
+ | Reviews | Review with Rating |
97
+
98
+ ### STEP 5: Generate JSON-LD (if GENERATE=true)
99
+
100
+ For each missing schema, generate a ready-to-use JSON-LD snippet with placeholder values filled from the actual page content:
101
+
102
+ ```json
103
+ {
104
+ "@context": "https://schema.org",
105
+ "@type": "Organization",
106
+ "name": "[extracted from page]",
107
+ "url": "[page URL]",
108
+ "logo": "[detected logo URL]",
109
+ "sameAs": [
110
+ "[detected social links]"
111
+ ]
112
+ }
113
+ ```
114
+
115
+ ### STEP 6: Output Report
116
+
117
+ ```markdown
118
+ # Schema Analysis: {URL}
119
+
120
+ ## Existing Schema
121
+
122
+ | # | Type | Format | Valid | Issues |
123
+ |---|------|--------|-------|--------|
124
+ | 1 | Organization | JSON-LD | Yes | None |
125
+ | 2 | FAQPage | JSON-LD | No | Restricted type (commercial site) |
126
+
127
+ ## Validation Results
128
+
129
+ ### Schema 1: Organization (Valid)
130
+ ```json
131
+ {existing schema}
132
+ ```
133
+ All required properties present.
134
+
135
+ ### Schema 2: FAQPage (Invalid)
136
+ - Issue: FAQPage restricted to government/healthcare since Aug 2023
137
+ - Action: Remove FAQPage schema from commercial pages
138
+
139
+ ## Missing Schema Opportunities
140
+
141
+ | Type | Why | Rich Result |
142
+ |------|-----|-------------|
143
+ | BreadcrumbList | Page has breadcrumb nav | Breadcrumb trail in SERP |
144
+ | WebSite | Homepage, has search | Sitelinks search box |
145
+
146
+ ## Generated JSON-LD (if requested)
147
+
148
+ [Ready-to-use code blocks]
149
+
150
+ ## Schema Score: X/100
151
+ ```
152
+
153
+ ### STEP 7: Offer Next Steps
154
+
155
+ ```xml
156
+ <invoke name="AskUserQuestion">
157
+ <parameter name="questions">[{
158
+ "question": "Schema analysis: {found} types detected, {valid} valid, {issues} issues, {missing} opportunities.",
159
+ "header": "Next steps",
160
+ "multiSelect": false,
161
+ "options": [
162
+ {"label": "Generate missing JSON-LD (Recommended)", "description": "Create ready-to-use schema for {missing} opportunities"},
163
+ {"label": "Fix {issues} validation errors", "description": "{top_error_summary}"},
164
+ {"label": "Test in Rich Results Test", "description": "Validate generated schema at search.google.com/test/rich-results"},
165
+ {"label": "Run full SEO audit", "description": "/agileflow:seo:audit {domain}"}
166
+ ]
167
+ }]</parameter>
168
+ </invoke>
169
+ ```
170
+
171
+ ---
172
+
173
+ <!-- COMPACT_SUMMARY_START -->
174
+ ## Compact Summary
175
+
176
+ **Command**: `/agileflow:seo:schema` - Schema markup validation and generation
177
+
178
+ **Usage**: `/agileflow:seo:schema URL [GENERATE=true]`
179
+
180
+ **What It Does**: Detect existing schema → Validate against Google standards → Flag deprecated types → Identify missing opportunities → Generate JSON-LD
181
+
182
+ **Key References**: schema-types.md (recommended, restricted, deprecated types)
183
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,97 @@
1
+ ---
2
+ description: XML sitemap validation, URL coverage analysis, quality gate enforcement, and sitemap generation assistance
3
+ argument-hint: "URL [GENERATE=true]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:seo:sitemap - Sitemap validation"
8
+ - "Deploy seo-analyzer-sitemap for comprehensive sitemap audit"
9
+ - "Check existence, structure, coverage, quality gates"
10
+ - "If GENERATE=true, help create or fix the sitemap"
11
+ state_fields:
12
+ - target_url
13
+ - generate
14
+ - sitemap_found
15
+ ---
16
+
17
+ # /agileflow:seo:sitemap
18
+
19
+ Validate XML sitemap structure, assess URL coverage, enforce quality gates, and optionally generate or fix sitemaps.
20
+
21
+ ---
22
+
23
+ ## Quick Reference
24
+
25
+ ```
26
+ /agileflow:seo:sitemap https://example.com # Validate existing sitemap
27
+ /agileflow:seo:sitemap https://example.com GENERATE=true # Also generate improvements
28
+ ```
29
+
30
+ ---
31
+
32
+ ## Arguments
33
+
34
+ | Argument | Values | Default | Description |
35
+ |----------|--------|---------|-------------|
36
+ | URL | Any valid URL (domain) | Required | Site to analyze |
37
+ | GENERATE | true, false | false | Generate or fix sitemap XML |
38
+
39
+ ---
40
+
41
+ ## Process
42
+
43
+ ### STEP 1: Deploy Sitemap Analyzer
44
+
45
+ ```xml
46
+ <invoke name="Task">
47
+ <parameter name="description">Sitemap validation analysis</parameter>
48
+ <parameter name="prompt">TASK: Validate XML sitemap comprehensively.
49
+
50
+ TARGET URL: {url}
51
+
52
+ Check:
53
+ 1. Locate sitemap: robots.txt Sitemap: directive, /sitemap.xml, /sitemap_index.xml
54
+ 2. Structure: Valid XML, correct namespace, proper elements
55
+ 3. URL quality: Status codes, canonical match, not noindexed, HTTPS
56
+ 4. Coverage: Important pages included, no orphans
57
+ 5. Quality: lastmod dates present and valid, under 50k URLs / 50MB
58
+ 6. robots.txt: Sitemap declared in robots.txt
59
+
60
+ Quality gates:
61
+ - Non-200 URLs: Warning >5%, Critical >15%
62
+ - Missing lastmod: Warning >20%, Critical >50%
63
+ - Stale lastmod (>1 year): Warning >30%, Critical >60%
64
+ - Duplicate URLs: Any = Warning
65
+
66
+ OUTPUT: Sitemap Score X/100 with detailed findings.</parameter>
67
+ <parameter name="subagent_type">seo-analyzer-sitemap</parameter>
68
+ </invoke>
69
+ ```
70
+
71
+ ### STEP 2: Present Results and Optionally Generate
72
+
73
+ If GENERATE=true and issues found, help create a corrected sitemap or generate one from scratch based on discovered pages.
74
+
75
+ ---
76
+
77
+ ## Quality Gates
78
+
79
+ | Metric | Warning | Critical |
80
+ |--------|---------|----------|
81
+ | Non-200 URLs | > 5% | > 15% |
82
+ | Missing lastmod | > 20% | > 50% |
83
+ | Stale lastmod | > 30% | > 60% |
84
+ | Not in robots.txt | Always | - |
85
+ | No sitemap at all | - | Always |
86
+
87
+ ---
88
+
89
+ <!-- COMPACT_SUMMARY_START -->
90
+ ## Compact Summary
91
+
92
+ **Command**: `/agileflow:seo:sitemap` - XML sitemap validation
93
+
94
+ **Checks**: Existence, XML structure, URL coverage, lastmod quality, robots.txt reference
95
+
96
+ **Usage**: `/agileflow:seo:sitemap URL [GENERATE=true]`
97
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,100 @@
1
+ ---
2
+ description: Deep technical SEO analysis - crawlability, indexability, security headers, URL structure, mobile-friendliness, and rendering
3
+ argument-hint: "URL [FOCUS=crawl|index|security|urls|mobile|rendering|all]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:seo:technical - Technical SEO deep-dive"
8
+ - "Deploy seo-analyzer-technical agent for comprehensive assessment"
9
+ - "8 categories: crawl, index, security, urls, mobile, rendering, international, performance"
10
+ state_fields:
11
+ - target_url
12
+ - focus
13
+ - tech_score
14
+ ---
15
+
16
+ # /agileflow:seo:technical
17
+
18
+ Deep technical SEO analysis covering crawlability, indexability, security headers, URL structure, mobile-friendliness, JavaScript rendering, and international signals.
19
+
20
+ ---
21
+
22
+ ## Quick Reference
23
+
24
+ ```
25
+ /agileflow:seo:technical https://example.com # Full 8-category assessment
26
+ /agileflow:seo:technical https://example.com FOCUS=crawl # Crawlability only
27
+ /agileflow:seo:technical https://example.com FOCUS=security # Security headers only
28
+ /agileflow:seo:technical https://example.com FOCUS=mobile # Mobile-friendliness only
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Arguments
34
+
35
+ | Argument | Values | Default | Description |
36
+ |----------|--------|---------|-------------|
37
+ | URL | Any valid URL | Required | Site to analyze |
38
+ | FOCUS | crawl, index, security, urls, mobile, rendering, international, all | all | Narrow to specific area |
39
+
40
+ ---
41
+
42
+ ## Process
43
+
44
+ ### STEP 1: Deploy Technical Analyzer
45
+
46
+ ```xml
47
+ <invoke name="Task">
48
+ <parameter name="description">Technical SEO deep-dive</parameter>
49
+ <parameter name="prompt">TASK: Perform a deep technical SEO analysis.
50
+
51
+ TARGET URL: {url}
52
+ FOCUS: {focus or "all 8 categories"}
53
+
54
+ Analyze all 8 categories in depth:
55
+ 1. Crawlability: robots.txt, meta robots, canonicals, redirect chains, crawl budget
56
+ 2. Indexability: noindex directives, orphan pages, sitemap coverage, crawl depth
57
+ 3. Security: HTTPS, HSTS, X-Content-Type-Options, CSP, X-Frame-Options, Referrer-Policy
58
+ 4. URL Structure: Cleanliness, hierarchy, parameters, consistency, depth
59
+ 5. Mobile: Viewport, responsive design, tap targets, font sizes, no horizontal scroll
60
+ 6. JavaScript Rendering: Client-side content, JS-dependent elements, hydration
61
+ 7. International: hreflang, language tags, geo-targeting, content localization
62
+ 8. Performance Indicators: TTFB, render-blocking, resource hints, compression
63
+
64
+ For each category, provide specific findings with evidence and a category score out of 100.
65
+
66
+ OUTPUT: Technical SEO Score X/100 with category breakdown.</parameter>
67
+ <parameter name="subagent_type">seo-analyzer-technical</parameter>
68
+ </invoke>
69
+ ```
70
+
71
+ ### STEP 2: Present Results
72
+
73
+ Show the technical assessment with category scores and offer targeted fixes.
74
+
75
+ ---
76
+
77
+ ## 8 Categories
78
+
79
+ | Category | Weight | Key Checks |
80
+ |----------|--------|-----------|
81
+ | Crawlability | 25% | robots.txt, canonicals, redirects |
82
+ | Indexability | 20% | noindex, orphans, sitemap coverage |
83
+ | Security | 15% | HTTPS, HSTS, CSP, security headers |
84
+ | URL Structure | 15% | Clean URLs, hierarchy, consistency |
85
+ | Mobile | 15% | Viewport, responsive, tap targets |
86
+ | JS Rendering | 5% | Client-side content visibility |
87
+ | International | 3% | hreflang, language declarations |
88
+ | Performance | 2% | TTFB, resource hints, compression |
89
+
90
+ ---
91
+
92
+ <!-- COMPACT_SUMMARY_START -->
93
+ ## Compact Summary
94
+
95
+ **Command**: `/agileflow:seo:technical` - Deep technical SEO analysis
96
+
97
+ **8 Categories**: Crawlability, Indexability, Security, URLs, Mobile, JS Rendering, International, Performance
98
+
99
+ **Usage**: `/agileflow:seo:technical URL [FOCUS=category]`
100
+ <!-- COMPACT_SUMMARY_END -->
@@ -0,0 +1,107 @@
1
+ ---
2
+ description: SEO analysis toolkit - comprehensive website audits, page analysis, schema validation, AI search optimization, and more
3
+ argument-hint: "[subcommand] [URL]"
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:seo - SEO analysis router"
8
+ - "Route to the appropriate sub-command based on user intent"
9
+ - "If no sub-command specified, show the quick reference guide"
10
+ state_fields:
11
+ - subcommand
12
+ - target_url
13
+ ---
14
+
15
+ # /agileflow:seo
16
+
17
+ SEO analysis toolkit for comprehensive website optimization. Routes to specialized sub-commands.
18
+
19
+ ---
20
+
21
+ ## Quick Reference
22
+
23
+ ```
24
+ /agileflow:seo:audit https://example.com # Full site audit (6 parallel analyzers)
25
+ /agileflow:seo:page https://example.com/about # Single page deep analysis
26
+ /agileflow:seo:schema https://example.com # Schema/structured data validation
27
+ /agileflow:seo:geo https://example.com # AI search optimization (GEO)
28
+ /agileflow:seo:technical https://example.com # Technical SEO deep-dive
29
+ /agileflow:seo:content https://example.com # E-E-A-T & content quality
30
+ /agileflow:seo:images https://example.com # Image optimization analysis
31
+ /agileflow:seo:sitemap https://example.com # Sitemap validation
32
+ /agileflow:seo:hreflang https://example.com # Multi-language SEO
33
+ /agileflow:seo:plan https://example.com # Strategic SEO planning
34
+ /agileflow:seo:programmatic https://example.com # Programmatic SEO quality gates
35
+ /agileflow:seo:competitor https://example.com # Competitor comparison pages
36
+ ```
37
+
38
+ ---
39
+
40
+ ## Sub-Commands
41
+
42
+ | Command | Purpose | When to Use |
43
+ |---------|---------|-------------|
44
+ | **audit** | Full site audit with health score | Starting point for any site |
45
+ | **page** | Single page analysis (6 dimensions) | Optimize a specific page |
46
+ | **schema** | Structured data validation + generation | Rich results optimization |
47
+ | **geo** | AI search platform optimization | Optimize for ChatGPT, AI Overviews |
48
+ | **technical** | Crawlability, indexing, security | Technical foundation issues |
49
+ | **content** | E-E-A-T scoring + content quality | Content strategy improvement |
50
+ | **images** | Alt text, sizing, formats, lazy loading | Image-heavy pages |
51
+ | **sitemap** | XML sitemap validation | Crawl coverage concerns |
52
+ | **hreflang** | Multi-language/region SEO | International sites |
53
+ | **plan** | Strategic SEO roadmap | Planning SEO improvements |
54
+ | **programmatic** | Bulk page quality gates | Programmatic SEO at scale |
55
+ | **competitor** | Comparison page generation | Competitive positioning |
56
+
57
+ ---
58
+
59
+ ## Routing Logic
60
+
61
+ If the user provides a URL without a sub-command, determine intent:
62
+
63
+ 1. **"audit my site"** → `/agileflow:seo:audit`
64
+ 2. **"check this page"** → `/agileflow:seo:page`
65
+ 3. **"structured data" / "schema" / "JSON-LD"** → `/agileflow:seo:schema`
66
+ 4. **"AI search" / "GEO" / "ChatGPT"** → `/agileflow:seo:geo`
67
+ 5. **"technical" / "crawl" / "robots"** → `/agileflow:seo:technical`
68
+ 6. **"content quality" / "E-E-A-T"** → `/agileflow:seo:content`
69
+ 7. **"images" / "alt text"** → `/agileflow:seo:images`
70
+ 8. **"sitemap"** → `/agileflow:seo:sitemap`
71
+ 9. **"international" / "hreflang" / "languages"** → `/agileflow:seo:hreflang`
72
+ 10. **"strategy" / "plan" / "roadmap"** → `/agileflow:seo:plan`
73
+ 11. **Unclear** → Show the quick reference and ask which analysis they want
74
+
75
+ ---
76
+
77
+ ## If No Sub-Command Specified
78
+
79
+ Show the quick reference table above and ask:
80
+
81
+ ```xml
82
+ <invoke name="AskUserQuestion">
83
+ <parameter name="questions">[{
84
+ "question": "Which SEO analysis would you like to run?",
85
+ "header": "SEO Analysis",
86
+ "multiSelect": false,
87
+ "options": [
88
+ {"label": "Full site audit (Recommended)", "description": "Comprehensive 6-analyzer audit with health score 0-100"},
89
+ {"label": "Single page analysis", "description": "Deep-dive into one specific page across 6 dimensions"},
90
+ {"label": "Schema validation", "description": "Check structured data, flag deprecated types, generate JSON-LD"},
91
+ {"label": "AI search optimization (GEO)", "description": "Optimize for ChatGPT, AI Overviews, Perplexity"}
92
+ ]
93
+ }]</parameter>
94
+ </invoke>
95
+ ```
96
+
97
+ ---
98
+
99
+ <!-- COMPACT_SUMMARY_START -->
100
+ ## Compact Summary
101
+
102
+ **Command**: `/agileflow:seo` - SEO analysis router
103
+
104
+ **Sub-commands**: audit, page, schema, geo, technical, content, images, sitemap, hreflang, plan, programmatic, competitor
105
+
106
+ **Quick start**: `/agileflow:seo:audit https://example.com` for full analysis
107
+ <!-- COMPACT_SUMMARY_END -->