@hanzlaa/rcode 4.3.3 → 4.4.1

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 (118) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +28 -5
  3. package/cli/doctor.js +21 -3
  4. package/cli/generate-command-skills.cjs +1 -1
  5. package/cli/index.js +5 -1
  6. package/cli/install.js +7 -9
  7. package/cli/postinstall.js +22 -2
  8. package/cli/uninstall.js +48 -6
  9. package/dist/rcode.js +202 -203
  10. package/package.json +13 -23
  11. package/rcode/agents/rcode-codebase-mapper.md +12 -0
  12. package/rcode/agents/rcode-phase-researcher.md +13 -0
  13. package/rcode/agents/rcode-project-researcher.md +32 -0
  14. package/rcode/agents/rcode-roadmapper.md +15 -0
  15. package/rcode/agents/rules/planner/common-patterns.md +40 -0
  16. package/rcode/bin/lib/roadmap.cjs +184 -11
  17. package/rcode/bin/rcode-hooks.cjs +102 -151
  18. package/rcode/bin/rcode-tools.cjs +669 -55
  19. package/rcode/commands/lazy.md +10 -0
  20. package/rcode/data/intent-table.json +87 -0
  21. package/rcode/modules/seo.yaml +22 -0
  22. package/rcode/references/project-types.yaml +75 -0
  23. package/rcode/references/verb-dictionary.md +1 -1
  24. package/rcode/skills/SKILLS_INDEX.md +18 -1
  25. package/rcode/skills/actions/1-analysis/rcode-prfaq/SKILL.md +1 -1
  26. package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/SKILL.md +4 -21
  27. package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/templates/heartbeat.sh +0 -0
  28. package/rcode/skills/actions/4-implementation/rcode-scaffold-project/SKILL.md +60 -1
  29. package/rcode/skills/core/rcode-init/scripts/__pycache__/rcode_init.cpython-38.pyc +0 -0
  30. package/rcode/skills/core/rcode-init/scripts/tests/__pycache__/test_rcode_init.cpython-38.pyc +0 -0
  31. package/rcode/skills/seo/module.yaml +20 -0
  32. package/rcode/skills/seo/on-page-seo-auditor/SKILL.md +308 -0
  33. package/rcode/skills/seo/on-page-seo-auditor/references/audit-example.md +109 -0
  34. package/rcode/skills/seo/on-page-seo-auditor/references/audit-templates.md +427 -0
  35. package/rcode/skills/seo/on-page-seo-auditor/references/bulk-audit-playbook.md +116 -0
  36. package/rcode/skills/seo/on-page-seo-auditor/references/scoring-rubric.md +525 -0
  37. package/rcode/skills/seo/rank-and-rent-local-seo/SKILL.md +94 -0
  38. package/rcode/skills/seo/rank-and-rent-local-seo/rules/city-matrix-and-pages.md +76 -0
  39. package/rcode/skills/seo/rank-and-rent-local-seo/rules/monetization.md +70 -0
  40. package/rcode/skills/seo/rank-and-rent-local-seo/rules/niche-selection.md +60 -0
  41. package/rcode/skills/seo/rank-and-rent-local-seo/rules/subniche-discovery.md +66 -0
  42. package/rcode/skills/seo/rank-and-rent-local-seo/templates/service-city-page.md +36 -0
  43. package/rcode/skills/seo/rank-and-rent-local-seo/templates/subniche-research-prompt.md +34 -0
  44. package/rcode/skills/seo/seo-audit/SKILL.md +412 -0
  45. package/rcode/skills/seo/seo-audit/evals/evals.json +136 -0
  46. package/rcode/skills/seo/seo-audit/references/ai-writing-detection.md +200 -0
  47. package/rcode/skills/seo/seo-content-factory/SKILL.md +130 -0
  48. package/rcode/skills/seo/seo-content-factory/rules/agents.md +80 -0
  49. package/rcode/skills/seo/seo-content-factory/rules/herdr-wave-mapping.md +80 -0
  50. package/rcode/skills/seo/seo-content-factory/rules/pipeline.md +102 -0
  51. package/rcode/skills/seo/seo-content-factory/rules/programmatic-pages.md +107 -0
  52. package/rcode/skills/seo/seo-content-factory/rules/quality-gates.md +68 -0
  53. package/rcode/skills/seo/seo-content-factory/rules/weekly-cadence.md +61 -0
  54. package/rcode/skills/seo/seo-content-factory/templates/BACKLOG.md +23 -0
  55. package/rcode/skills/seo/seo-content-factory/templates/agent-prompts/01-funnel-A1-A4.md +63 -0
  56. package/rcode/skills/seo/seo-content-factory/templates/agent-prompts/02-fanout-editorial-A5-A6-A8.md +28 -0
  57. package/rcode/skills/seo/seo-content-factory/templates/agent-prompts/03-fanout-programmatic-A7-A6-A8.md +25 -0
  58. package/rcode/skills/seo/seo-content-factory/templates/agent-prompts/04-loop-A9-A10.md +34 -0
  59. package/rcode/skills/seo/seo-content-factory/templates/article.mdx +39 -0
  60. package/rcode/skills/seo/seo-content-factory/templates/cluster.schema.json +52 -0
  61. package/rcode/skills/seo/seo-content-factory/templates/content-brief.md +51 -0
  62. package/rcode/skills/seo/seo-content-factory/templates/jsonld-builders.ts +49 -0
  63. package/rcode/skills/seo/seo-content-factory/templates/keywords.csv +13 -0
  64. package/rcode/skills/seo/seo-content-factory/templates/programmatic-page.tsx +58 -0
  65. package/rcode/skills/seo/seo-content-writer/SKILL.md +263 -0
  66. package/rcode/skills/seo/seo-content-writer/references/content-structure-templates.md +875 -0
  67. package/rcode/skills/seo/seo-content-writer/references/instructions-detail.md +239 -0
  68. package/rcode/skills/seo/seo-content-writer/references/seo-writing-checklist.md +250 -0
  69. package/rcode/skills/seo/seo-content-writer/references/title-formulas.md +339 -0
  70. package/rcode/skills/seo/seo-growth-orchestrator/SKILL.md +79 -0
  71. package/rcode/skills/seo/seo-growth-orchestrator/rules/backlinks.md +29 -0
  72. package/rcode/skills/seo/seo-growth-orchestrator/rules/content-engine.md +27 -0
  73. package/rcode/skills/seo/seo-growth-orchestrator/rules/dos-and-donts.md +40 -0
  74. package/rcode/skills/seo/seo-growth-orchestrator/rules/goals-protocol.md +34 -0
  75. package/rcode/skills/seo/seo-growth-orchestrator/rules/local-seo-stack.md +35 -0
  76. package/rcode/skills/seo/seo-growth-orchestrator/rules/mrr-sprint.md +27 -0
  77. package/rcode/skills/seo/seo-growth-orchestrator/rules/tools.md +19 -0
  78. package/rcode/skills/seo/seo-growth-orchestrator/templates/backlink-research.md +29 -0
  79. package/rcode/skills/seo/seo-growth-orchestrator/templates/goal-protocol.md +35 -0
  80. package/rcode/skills/seo/seo-growth-orchestrator/templates/local-citations.md +24 -0
  81. package/rcode/skills/seo/seo-growth-orchestrator/templates/local-city-pages.md +27 -0
  82. package/rcode/skills/seo/seo-growth-orchestrator/templates/local-gbp-categories.md +23 -0
  83. package/rcode/skills/seo/seo-growth-orchestrator/templates/local-gsc-goldmine.md +27 -0
  84. package/rcode/skills/seo/seo-growth-orchestrator/templates/local-review-mining.md +26 -0
  85. package/rcode/skills/seo/seo-growth-orchestrator/templates/mrr-30day-plan.md +19 -0
  86. package/rcode/skills/seo/seo-growth-orchestrator/templates/mrr-cut.md +13 -0
  87. package/rcode/skills/seo/seo-growth-orchestrator/templates/mrr-opportunity-finder.md +17 -0
  88. package/rcode/skills/seo/seo-growth-orchestrator/templates/mrr-role-model.md +18 -0
  89. package/rcode/skills/seo/seo-site-builder/SKILL.md +149 -0
  90. package/rcode/skills/seo/seo-site-builder/rules/01-niche-discovery.md +64 -0
  91. package/rcode/skills/seo/seo-site-builder/rules/02-deep-research.md +164 -0
  92. package/rcode/skills/seo/seo-site-builder/rules/03-keyword-strategy.md +82 -0
  93. package/rcode/skills/seo/seo-site-builder/rules/04-content-plan.md +173 -0
  94. package/rcode/skills/seo/seo-site-builder/rules/05-site-build.md +187 -0
  95. package/rcode/skills/seo/seo-site-builder/rules/06-yolo.md +127 -0
  96. package/rcode/skills/seo/seo-site-builder/templates/article-stub.mdx +62 -0
  97. package/rcode/skills/seo/seo-site-builder/templates/image-prompt.md +97 -0
  98. package/rcode/skills/seo/seo-site-builder/templates/keyword-export.md +45 -0
  99. package/rcode/skills/seo/seo-site-builder/templates/niche-scorecard.md +28 -0
  100. package/rcode/skills/seo/technical-seo-checker/SKILL.md +329 -0
  101. package/rcode/skills/seo/technical-seo-checker/references/bulk-audit-playbook.md +118 -0
  102. package/rcode/skills/seo/technical-seo-checker/references/ecommerce-platform-patterns.md +166 -0
  103. package/rcode/skills/seo/technical-seo-checker/references/http-status-codes.md +705 -0
  104. package/rcode/skills/seo/technical-seo-checker/references/llm-crawler-handling.md +257 -0
  105. package/rcode/skills/seo/technical-seo-checker/references/pre-migration-playbook.md +137 -0
  106. package/rcode/skills/seo/technical-seo-checker/references/robots-txt-reference.md +717 -0
  107. package/rcode/skills/seo/technical-seo-checker/references/technical-audit-example.md +169 -0
  108. package/rcode/skills/seo/technical-seo-checker/references/technical-audit-templates.md +436 -0
  109. package/rcode/templates/settings-hooks.json +4 -0
  110. package/rcode/workflows/do.md +16 -0
  111. package/rcode/workflows/execute-sprint.md +22 -0
  112. package/rcode/workflows/execute.md +17 -3
  113. package/rcode/workflows/help.md +0 -2
  114. package/rcode/workflows/new-milestone.md +21 -9
  115. package/rcode/workflows/new-project-create-roadmap.md +2 -0
  116. package/rcode/workflows/new-project-roadmap.md +2 -0
  117. package/rcode/workflows/new-project.md +3 -0
  118. package/rcode/workflows/plan.md +15 -2
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: rcode-lazy
3
+ description: "Lazy senior dev lens — force the simplest solution that actually works before any code is written (YAGNI, stdlib first, one line before fifty)"
4
+ argument-hint: "[challenge or code to simplify] [--intensity=lite|full|ultra]"
5
+ allowed-tools:
6
+ - Read
7
+ - AskUserQuestion
8
+ ---
9
+
10
+ @rcode/skills/core/rcode-lazy/SKILL.md
@@ -0,0 +1,87 @@
1
+ [
2
+ {
3
+ "intent": "new-project",
4
+ "keywords": ["set up a new project", "initialize a new project", "start a new project", "create a new project"],
5
+ "command": "/rcode-new-project"
6
+ },
7
+ {
8
+ "intent": "map-codebase",
9
+ "keywords": ["map the codebase", "map this codebase", "analyze the codebase", "analyse the codebase", "map existing codebase"],
10
+ "command": "/rcode-map-codebase"
11
+ },
12
+ {
13
+ "intent": "debug",
14
+ "keywords": ["bug", "getting an error", "throwing an error", "error in the", "fix the error", "debug this", "crash", "failure", "broken", "not working", "fails", "exception", "traceback"],
15
+ "command": "/rcode-debug"
16
+ },
17
+ {
18
+ "intent": "audit-karpathy",
19
+ "keywords": ["audit", "review changes", "check my diff", "karpathy", "too complex", "complexity", "code review"],
20
+ "command": "/rcode-review --karpathy"
21
+ },
22
+ {
23
+ "intent": "lazy",
24
+ "keywords": ["be lazy", "lazy mode", "simplest solution", "yagni", "over-engineered", "over-engineering", "kam code likho"],
25
+ "command": "/rcode-lazy"
26
+ },
27
+ {
28
+ "intent": "checkpoint",
29
+ "keywords": ["checkpoint", "explain this diff", "human review", "walk through the change", "walk through this change"],
30
+ "command": "/rcode-checkpoint-preview"
31
+ },
32
+ {
33
+ "intent": "brainstorm",
34
+ "keywords": ["brainstorm", "generate ideas", "explore options", "what could we do", "ideate", "ideas for"],
35
+ "command": "/rcode-brainstorm"
36
+ },
37
+ {
38
+ "intent": "explore",
39
+ "keywords": ["explore", "research phase", "do some research", "comparing", "investigate", "look into", "understand how"],
40
+ "command": "/rcode-research-phase"
41
+ },
42
+ {
43
+ "intent": "discuss",
44
+ "keywords": ["which one", "better ux", "how should", "still have confusion", "conflicting", "discuss the scope", "design this", "architect this"],
45
+ "command": "/rcode-discuss-phase"
46
+ },
47
+ {
48
+ "intent": "add-phase",
49
+ "keywords": ["refactor", "migration", "multi-file", "system redesign", "multi file", "large refactor", "architectural", "integration", "integrate"],
50
+ "command": "/rcode-add-phase"
51
+ },
52
+ {
53
+ "intent": "sprint-planning",
54
+ "keywords": ["sprint planning", "plan the sprint", "next sprint", "what's in this sprint"],
55
+ "command": "/rcode-sprint-planning"
56
+ },
57
+ {
58
+ "intent": "execute-sprint",
59
+ "keywords": ["run the sprint", "start sprint", "execute sprint", "work on sprint"],
60
+ "command": "/rcode-execute-sprint"
61
+ },
62
+ {
63
+ "intent": "plan",
64
+ "keywords": ["let's plan", "plan phase", "plan this", "let me plan", "planning phase", "create a plan", "please plan", "plan and think", "scope this", "scope the feature"],
65
+ "command": "/rcode-plan"
66
+ },
67
+ {
68
+ "intent": "new-milestone",
69
+ "keywords": ["create milestones", "plan milestones", "create roadmap", "break project into milestones", "new milestone", "what milestones"],
70
+ "command": "/rcode-new-milestone"
71
+ },
72
+ {
73
+ "intent": "epics-stories",
74
+ "keywords": ["create epics", "user stories", "create stories", "epics and stories", "break into epics"],
75
+ "command": "/rcode-create-epics-and-stories"
76
+ },
77
+ {
78
+ "intent": "feature-drift",
79
+ "keywords": ["out of date", "out-of-date", "verify docs", "audit feature docs", "fill out existing", "prd drift", "docs vs code"],
80
+ "command": "/rcode-feature-drift"
81
+ },
82
+ {
83
+ "intent": "audit",
84
+ "keywords": ["re-audit", "extend the audit", "fill out the", "expand the", "re audit"],
85
+ "command": "/rcode-audit"
86
+ }
87
+ ]
@@ -0,0 +1,22 @@
1
+ name: seo
2
+ version: "1.0"
3
+ description: "Full-spectrum SEO skills — content factory, growth orchestrator, audits, writer, site builder, local SEO, on-page and technical auditors"
4
+ requires:
5
+ - core
6
+ agents: []
7
+ workflows: []
8
+ commands:
9
+ - seo-content-factory
10
+ - seo-growth-orchestrator
11
+ - seo-audit
12
+ - on-page-seo-auditor
13
+ - technical-seo-checker
14
+ - seo-content-writer
15
+ - seo-site-builder
16
+ - rank-and-rent-local-seo
17
+ references:
18
+ # claude-seo plugin agents — NOT bundled. Install separately: npx @hanzlaa/claude-seo install
19
+ # Routing rules in do.md reference: seo-cluster, seo-programmatic, seo-schema, seo-geo,
20
+ # seo-local, seo-sxo, seo-technical, seo-content, seo-backlinks, seo-ecommerce,
21
+ # seo-maps, seo-page, seo-performance, seo-sitemap, seo-drift, seo-dataforseo
22
+ - claude-seo-plugin-agents.md
@@ -268,3 +268,78 @@ dev-tool:
268
268
  - "What are the minimum dependency versions?"
269
269
  - "How will developers discover and install this?"
270
270
  - "Do you need a community or plugin ecosystem?"
271
+
272
+ content-site:
273
+ display_name: "Content / SEO / Programmatic Site"
274
+ signals:
275
+ - rank-and-rent
276
+ - lead-gen
277
+ - lead gen
278
+ - landing pages
279
+ - programmatic seo
280
+ - programmatic pages
281
+ - service pages
282
+ - location pages
283
+ - content site
284
+ - seo site
285
+ - affiliate site
286
+ - affiliate
287
+ - local seo
288
+ - content farm
289
+ - niche site
290
+ - rank and rent
291
+ - local lead gen
292
+ - city pages
293
+ - service area pages
294
+ - editorial site
295
+ - blog site
296
+ - publisher
297
+ - content marketing
298
+ - link building
299
+ - backlink
300
+ - keyword research
301
+ - keyword cluster
302
+ - topic cluster
303
+ - E-E-A-T
304
+ - google business profile
305
+ - gbp
306
+ - citations
307
+ - nap audit
308
+ - schema markup
309
+ - structured data
310
+ - rich results
311
+ - AI overview
312
+ - AI search
313
+ - GEO SEO
314
+ - llms.txt
315
+ - programmatic seo site
316
+ - doorway page
317
+ - thin content
318
+ - content refresh
319
+ - crawl budget
320
+ - indexation
321
+ - core web vitals
322
+ - technical seo
323
+ - on-page seo
324
+ - digital pr
325
+ - guest posts
326
+ - seo content
327
+ - content strategy
328
+ - topical authority
329
+ required_sections:
330
+ - keyword-strategy
331
+ - programmatic-page-matrix
332
+ - internal-link-plan
333
+ - schema-plan
334
+ - content-quality-gates
335
+ skip_sections:
336
+ - authentication
337
+ - state-management
338
+ - authorization
339
+ discovery_questions:
340
+ - "What are your 3–5 primary target keywords (and their search intent)?"
341
+ - "What is the programmatic page matrix? (e.g. 50 services × 20 cities = 1,000 pages, or editorial only)"
342
+ - "Who are your top 3 organic competitors? (needed for cluster gap analysis)"
343
+ - "Do you have Google Search Console / analytics access for this domain?"
344
+ - "What is your content quality gate — minimum word count, E-E-A-T signals, author attribution?"
345
+ - "What schema types are needed? (LocalBusiness, FAQPage, BreadcrumbList, Product)"
@@ -112,7 +112,7 @@ These are matched alongside §Create / §Add / §Plan verbs to determine the dis
112
112
  | epic | `epic`, `epics`, `epics and stories`, **AR:** `ملحمة`, `ملاحم`, `فصل`, `فصول` | `/rcode-create-epics-and-stories` |
113
113
  | sprint | `sprint`, `iteration`, **AR:** `سباق`, `جولة`, `دورة عمل`, `سبرنت` | `/rcode-sprint-planning` |
114
114
  | PRD | `PRD`, `requirements doc`, `product requirements`, **AR:** `وثيقة المتطلبات`, `متطلبات المنتج`, `وثيقة المنتج` | `/rcode-create-prd` |
115
- | roadmap | `roadmap`, `plan` (top-level), **AR:** `خارطة طريق`, `خريطة الطريق`, `خطة عامة` | `/rcode-create-milestone` |
115
+ | roadmap | `roadmap`, `plan` (top-level), **AR:** `خارطة طريق`, `خريطة الطريق`, `خطة عامة` | `/rcode-new-milestone` |
116
116
  | council | `council`, `majlis`, `panel`, `mashwara`, `salah`, **AR:** `مجلس`, `شورى`, `لجنة`, `استشارة` | `/rcode-council` |
117
117
  | plan (verb form — "plan phase N") | `plan`, **AR:** `خطّط`, `خطة` | `/rcode-plan` |
118
118
  | story (impl) | `dev story`, `implement story`, `build story`, **AR:** `نفذ القصة`, `طبّق القصة` | `/rcode-dev-story` |
@@ -56,7 +56,7 @@ Invoked by agents via the capabilities table in their SKILL.md. Organized by SDL
56
56
  - `actions/2-plan/rcode-frontend-design` — typography, colours, motion, spatial design
57
57
  - `actions/2-plan/rcode-create-epics-and-stories` — break down PRD into epics and stories
58
58
  - `actions/2-plan/rcode-create-story` — prepare a dev-ready user story
59
- - `actions/2-plan/rcode-create-milestone` — create milestone definition
59
+ - `actions/2-plan/rcode-new-milestone` — create milestone definition
60
60
 
61
61
  ### 3 — Solutioning (3)
62
62
  - `actions/3-solutioning/rcode-create-architecture` — architectural decision record (ADR)
@@ -140,6 +140,23 @@ When a user picks capability `DS`, Claude invokes the `rcode-dev-story` skill.
140
140
 
141
141
  ---
142
142
 
143
+ ## SEO Module (8)
144
+
145
+ Full-spectrum SEO skills — content factory, growth orchestrator, audits, writer, site builder, local SEO, on-page and technical auditors.
146
+
147
+ | Skill | Path | Description |
148
+ |---|---|---|
149
+ | **seo-content-factory** | `rcode/skills/seo/seo-content-factory/` | Continuous organic-traffic growth via produced SEO pages; the production line for content-driven strategies |
150
+ | **seo-growth-orchestrator** | `rcode/skills/seo/seo-growth-orchestrator/` | Strategic SEO orchestrator across five plays: local, affiliate, technical, content-factory, and e-commerce |
151
+ | **seo-audit** | `rcode/skills/seo/seo-audit/` | Full-spectrum SEO audit covering on-page, technical, content, and backlink signals |
152
+ | **on-page-seo-auditor** | `rcode/skills/seo/on-page-seo-auditor/` | On-page analysis covering title tags, meta, headings, keyword integration, and CTR optimization |
153
+ | **technical-seo-checker** | `rcode/skills/seo/technical-seo-checker/` | Technical SEO audit covering crawlability, robots.txt, sitemaps, Core Web Vitals, and indexability |
154
+ | **seo-content-writer** | `rcode/skills/seo/seo-content-writer/` | SEO-optimized content writing with natural keyword integration and E-E-A-T quality signals |
155
+ | **seo-site-builder** | `rcode/skills/seo/seo-site-builder/` | End-to-end affiliate content site builder: niche discovery, keyword analysis, competitor intel, and site build |
156
+ | **rank-and-rent-local-seo** | `rcode/skills/seo/rank-and-rent-local-seo/` | Rank-and-rent local SEO business playbook: niche selection, long-tail targeting, multi-city expansion |
157
+
158
+ ---
159
+
143
160
  ## Licensing
144
161
 
145
162
  Free to use and adapt.
@@ -18,7 +18,7 @@ user-invocable: true
18
18
 
19
19
  - **Refining an existing PRD** — use `rcode-create-prd` or `rcode-edit-prd`.
20
20
  - **Brainstorming raw ideas** before there's a concept — use `rcode-brainstorming` first; PRFAQ assumes a candidate concept exists.
21
- - **Sprint or phase planning** — use `rcode-sprint-planning` / `rcode-create-milestone`.
21
+ - **Sprint or phase planning** — use `rcode-sprint-planning` / `rcode-new-milestone`.
22
22
  - **Pure market research with no product hypothesis** — use a research workflow.
23
23
  - **Single-question Q&A** — PRFAQ runs a multi-stage gauntlet; for a one-off answer, just answer.
24
24
 
@@ -2,39 +2,22 @@
2
2
  name: rcode-herdr-orchestration
3
3
  description: Orchestrate parallel cld agents in herdr — fan-out or autonomous wave campaign.
4
4
  triggers:
5
- # English — single-shot orchestration
6
5
  - "orchestrate agents"
7
6
  - "run agents in herdr"
8
7
  - "parallel audit"
9
8
  - "spin up agents"
10
- - "use herdr to do"
11
- - "split work across panes"
12
9
  - "fan out work in herdr"
13
10
  - "multi-agent in herdr"
14
- # English — autonomous campaign mode
15
11
  - "autonomous fix campaign"
16
- - "auto mode"
17
- - "auto loop"
18
12
  - "run waves of agents"
19
- - "dispatch waves"
20
- - "100+ commits"
21
13
  - "keep working until done"
22
- - "complete site audit and fix"
23
- # Roman Urdu / Hindi
24
14
  - "herdr mein chalao"
25
- - "parallel agents lagao"
26
- - "panes mein todo"
27
- - "ek saath kai agents"
28
- - "auto mode chalao"
29
- - "waves mein fix karo"
30
- - "campaign chalao"
31
- # Arabic native
32
15
  - "شغّل وكلاء بالتوازي"
33
- - "وزّع العمل على عدة وكلاء"
34
- - "استخدم herdr"
35
16
  - "حملة إصلاح تلقائية"
36
- - "موجات من الوكلاء"
37
- - "وضع تلقائي"
17
+ not-for:
18
+ - single-agent or single-file tasks (run directly, no herdr overhead)
19
+ - interactive step-through work (use /rcode-execute --interactive)
20
+ - deployment or push operations (herdr only commits locally)
38
21
  user-invocable: true
39
22
  ---
40
23
 
@@ -74,6 +74,53 @@ Then proceed to `./steps/step-01-target.md`.
74
74
  | 3b | Brownfield Init | Overlay rcode structure into existing project *(brownfield only)* | `steps/step-03-brownfield.md` |
75
75
  | 4 | Post-Setup | Rename, init git, suggest next steps | `steps/step-04-post-setup.md` |
76
76
 
77
+ ## Post-Clone Checklist (Greenfield)
78
+
79
+ After cloning the template and before handing off to the user, run these steps in order:
80
+
81
+ ### 1. pnpm-first — Install Dependencies with pnpm
82
+
83
+ **Never use `npm install`.** Always install with pnpm:
84
+
85
+ ```bash
86
+ corepack enable pnpm # ensure pnpm is available via corepack
87
+ pnpm install # install all dependencies
88
+ ```
89
+
90
+ If `package.json` contains a `packageManager` field, verify it is set to a `pnpm@x.y.z` string. If it is missing or set to `npm`, update it to `pnpm` before installing.
91
+
92
+ ### 2. Node.js 20+ Verification
93
+
94
+ Check `.nvmrc` (if present) and the `engines.node` field in `package.json`. If either targets Node 16 or Node 18, update to `>=20.0.0`:
95
+
96
+ - `.nvmrc`: change content to `20`
97
+ - `package.json` `engines.node`: change `>=16.0.0` or `>=18.0.0` to `>=20.0.0`
98
+
99
+ Report the result to the user: "Node target verified: 20+" or "Node target updated from X to 20+".
100
+
101
+ ### 3. Modern Dependency Check
102
+
103
+ Scan the scaffolded `package.json` for known deprecated packages and flag them to the user:
104
+
105
+ | Found | Suggestion |
106
+ |-------|-----------|
107
+ | `moment` | Replace with `date-fns` (tree-shakeable, no-timezone footgun) |
108
+ | `axios` | Native `fetch` is available in Node 18+; only keep `axios` if fetch polyfill is needed |
109
+ | `request` | Unmaintained — use native `fetch` or `undici` |
110
+
111
+ Do **not** auto-remove these; surface the finding and let the user decide.
112
+
113
+ ### 4. rcode Config Scaffold
114
+
115
+ After cloning, create `.rcode/config.yaml` with starter content if it does not already exist:
116
+
117
+ ```yaml
118
+ project_name: "{PROJECT_NAME}"
119
+ current_phase: 1
120
+ ```
121
+
122
+ Replace `{PROJECT_NAME}` with the actual project name supplied by the user. Do not overwrite an existing `.rcode/config.yaml`.
123
+
77
124
  ## Design Decisions
78
125
 
79
126
  - **Always clone fresh** — never cache template locally. Template updates are free.
@@ -81,12 +128,24 @@ Then proceed to `./steps/step-01-target.md`.
81
128
  - **Safety first** — never touch a non-empty directory without user approval.
82
129
  - **Brownfield never overwrites** — in `--here` mode, existing files are never modified.
83
130
  - **Minimal assumptions** — ask before acting on any ambiguity.
131
+ - **pnpm always** — never use npm or yarn for installs; always use pnpm via corepack.
132
+
133
+ ### Safety Check: What "non-empty" means
134
+
135
+ A directory is considered **non-empty** (and therefore protected) if it contains **any files or directories other than**:
136
+ - `.git/` (git metadata only)
137
+ - `README.md` (bare readme with no project code)
138
+
139
+ Everything else — including `package.json`, `src/`, `.rcode/`, `node_modules/`, dotfiles like `.env` — counts as content. If any such file is present, the safety check triggers and the user must explicitly consent before the skill proceeds.
84
140
 
85
141
  ## Output Format
86
142
 
87
143
  - New project directory scaffolded at the specified path
88
144
  - Fresh git history (template history stripped, new `git init` applied)
89
- - `.rcode/config.json` initialized with project name and user preferences
145
+ - `.rcode/config.yaml` initialized with project name and current phase
146
+ - Dependencies installed via `pnpm install`
147
+ - Node.js target verified or updated to 20+
148
+ - Deprecated dependency findings reported (if any)
90
149
  - Console summary: path created, files scaffolded, next steps
91
150
 
92
151
  ## Examples
@@ -0,0 +1,20 @@
1
+ code: seo
2
+ name: "rcode SEO Module"
3
+
4
+ header: "rcode SEO Module Configuration"
5
+ subheader: "Configure the SEO module for your rcode installation.\nThese settings apply to all SEO skills: content factory, growth orchestrator, audits, and local SEO."
6
+
7
+ default_seo_vertical:
8
+ prompt: "What is your primary SEO vertical? (local, affiliate, technical, content-factory, e-commerce, saas, publisher, agency)"
9
+ default: "general"
10
+ result: "{value}"
11
+
12
+ gsc_access:
13
+ prompt: "Do you have Google Search Console access for the target domain? (yes/no)"
14
+ default: "no"
15
+ result: "{value}"
16
+
17
+ content_quality_gate:
18
+ prompt: "Minimum word count for SEO content pieces?"
19
+ default: "1200"
20
+ result: "{value}"