anymorph 0.2.6 → 0.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 (63) hide show
  1. package/README.md +50 -36
  2. package/dist/index.js +9184 -251
  3. package/dist/skillpacks/geo/scaffold/AGENTS.md +38 -0
  4. package/dist/skillpacks/geo/scaffold/CLAUDE.md +33 -0
  5. package/dist/skillpacks/geo/shared/evidence-principles.md +35 -0
  6. package/dist/skillpacks/geo/shared/geo-principles.md +281 -0
  7. package/dist/skillpacks/geo/shared/vertical-playbooks/beauty.md +65 -0
  8. package/dist/skillpacks/geo/shared/vertical-playbooks/commerce.md +65 -0
  9. package/dist/skillpacks/geo/shared/vertical-playbooks/ota.md +62 -0
  10. package/dist/skillpacks/geo/shared/vertical-playbooks/saas.md +64 -0
  11. package/dist/skillpacks/geo/skills/brand-owned-diagnosis/SKILL.md +1 -1
  12. package/dist/skillpacks/geo/skills/brand-owned-diagnosis/references/diagnosis-contract.md +8 -9
  13. package/dist/skillpacks/geo/skills/brand-owned-diagnosis/references/workflow.md +11 -8
  14. package/dist/skillpacks/geo/skills/geo-generating-actions/SKILL.md +110 -22
  15. package/dist/skillpacks/geo/skills/geo-generating-actions/references/orchestrator.workflow.md +171 -5
  16. package/dist/skillpacks/geo/skills/geo-generating-actions/scripts/geo-scaffold.mjs +358 -0
  17. package/dist/skillpacks/geo/skills/geo-generating-actions/scripts/geo.mjs +66 -0
  18. package/dist/skillpacks/geo/skills/geo-initializing-strategy/references/foundation-diagnosis.md +1 -1
  19. package/dist/skillpacks/geo/skills/geo-local-setup/SKILL.md +66 -0
  20. package/dist/skillpacks/geo/skills/geo-local-setup/agents/openai.yaml +4 -0
  21. package/dist/skillpacks/geo/skills/geo-page-writer/SKILL.md +81 -0
  22. package/dist/skillpacks/geo/skills/geo-page-writer/agents/openai.yaml +4 -0
  23. package/dist/skillpacks/geo/skills/geo-page-writer/references/research.md +61 -0
  24. package/dist/skillpacks/geo/skills/geo-page-writer/references/validation.md +59 -0
  25. package/dist/skillpacks/geo/skills/geo-page-writer/references/writing.md +55 -0
  26. package/dist/skillpacks/geo/skills/geo-page-writer/scripts/check-page-mdx.mjs +210 -0
  27. package/dist/skillpacks/geo/skills/geo-page-writer/scripts/collect-page-sources.mjs +303 -0
  28. package/dist/skillpacks/geo/skills/geo-pages-diagnosis/SKILL.md +1 -1
  29. package/dist/skillpacks/geo/skills/geo-pages-diagnosis/references/diagnosis-contract.md +36 -17
  30. package/dist/skillpacks/geo/skills/geo-pages-diagnosis/references/workflow.md +65 -15
  31. package/dist/skillpacks/geo/skills/seo-ecommerce-opportunity/SKILL.md +82 -0
  32. package/dist/skillpacks/geo/skills/seo-ecommerce-opportunity/agents/openai.yaml +5 -0
  33. package/dist/skillpacks/geo/skills/seo-ecommerce-opportunity/references/ecommerce-rules.md +31 -0
  34. package/dist/skillpacks/geo/skills/seo-internal-link-opportunity/SKILL.md +57 -0
  35. package/dist/skillpacks/geo/skills/seo-internal-link-opportunity/agents/openai.yaml +5 -0
  36. package/dist/skillpacks/geo/skills/seo-internal-link-opportunity/references/link-rules.md +28 -0
  37. package/dist/skillpacks/geo/skills/seo-opportunity-audit/SKILL.md +141 -0
  38. package/dist/skillpacks/geo/skills/seo-opportunity-audit/agents/openai.yaml +5 -0
  39. package/dist/skillpacks/geo/skills/seo-opportunity-audit/references/action-contract.md +62 -0
  40. package/dist/skillpacks/geo/skills/seo-opportunity-audit/scripts/seo-toolkit.mjs +248 -0
  41. package/dist/skillpacks/geo/skills/seo-page-diagnosis/SKILL.md +56 -0
  42. package/dist/skillpacks/geo/skills/seo-page-diagnosis/agents/openai.yaml +5 -0
  43. package/dist/skillpacks/geo/skills/seo-page-diagnosis/references/page-checks.md +38 -0
  44. package/dist/skillpacks/geo/skills/seo-serp-opportunity-research/SKILL.md +66 -0
  45. package/dist/skillpacks/geo/skills/seo-serp-opportunity-research/agents/openai.yaml +5 -0
  46. package/dist/skillpacks/geo/skills/seo-serp-opportunity-research/references/page-type-taxonomy.md +40 -0
  47. package/dist/skillpacks/geo/skills/seo-serp-opportunity-research/references/serp-methodology.md +38 -0
  48. package/dist/skillpacks/geo/skills/seo-technical-diagnosis/SKILL.md +64 -0
  49. package/dist/skillpacks/geo/skills/seo-technical-diagnosis/agents/openai.yaml +5 -0
  50. package/dist/skillpacks/geo/skills/seo-technical-diagnosis/references/checks.md +58 -0
  51. package/dist/skillpacks/geo/skills/third-party-diagnosis/SKILL.md +1 -1
  52. package/dist/skillpacks/geo/skills/third-party-diagnosis/references/diagnosis-contract.md +2 -2
  53. package/dist/skillpacks/geo/skills/third-party-diagnosis/references/workflow.md +1 -1
  54. package/dist/skillpacks/geo/skills/third-party-execution-planning/SKILL.md +64 -0
  55. package/dist/skillpacks/geo/skills/third-party-execution-planning/agents/openai.yaml +4 -0
  56. package/dist/skillpacks/geo/skills/third-party-execution-planning/references/execution-contract.md +90 -0
  57. package/dist/skillpacks/geo/skills/third-party-execution-planning/references/non-social-surface-playbooks.md +123 -0
  58. package/package.json +2 -1
  59. package/dist/skillpacks/geo/skills/social-execution-planning/SKILL.md +0 -53
  60. package/dist/skillpacks/geo/skills/social-execution-planning/agents/openai.yaml +0 -5
  61. package/dist/skillpacks/geo/skills/social-execution-planning/references/execution-contract.md +0 -68
  62. /package/dist/skillpacks/geo/skills/{social-execution-planning → third-party-execution-planning}/references/reddit-rules.md +0 -0
  63. /package/dist/skillpacks/geo/skills/{social-execution-planning/references/platform-playbooks.md → third-party-execution-planning/references/social-platform-playbooks.md} +0 -0
package/README.md CHANGED
@@ -27,9 +27,10 @@ anymorph check yourdomain.com
27
27
  anymorph workspaces
28
28
 
29
29
  # Prepare and validate local GEO strategy artifacts
30
- anymorph geo init --repo .
31
- anymorph geo prepare yourdomain.com
32
- anymorph geo validate 20260517T074200Z --repo .
30
+ anymorph init
31
+ anymorph prepare ws_abc123
32
+ anymorph validate 20260517T074200Z
33
+ anymorph submit 20260517T074200Z
33
34
  ```
34
35
 
35
36
  ## Commands
@@ -116,30 +117,32 @@ anymorph workspaces
116
117
  anymorph workspaces --json
117
118
  ```
118
119
 
119
- ### `anymorph geo prepare <workspace-or-domain>`
120
+ ### `anymorph prepare <workspaceId>`
120
121
 
121
- Prepare a local GEO strategy run package. By default, the CLI manages tenant
122
- repos under `~/.anymorph/repos/{domain}`. Use `--repo` to target an explicit
123
- local checkout.
122
+ Prepare a local GEO strategy run package. Run this command from the tenant repo
123
+ root and pass the workspace id from `anymorph workspaces`. The CLI fails when
124
+ run outside a git repo root.
124
125
 
125
126
  ```bash
126
- anymorph geo init --repo ~/works/yourdomain.com
127
- anymorph geo prepare yourdomain.com
128
- anymorph geo prepare yourdomain.com --repo ~/works/yourdomain.com
127
+ cd ~/works/yourdomain.com
128
+ anymorph init
129
+ anymorph workspaces
130
+ anymorph prepare ws_abc123
129
131
  ```
130
132
 
131
133
  `prepare` syncs the GEO scaffold first unless `--skip-scaffold` is passed. It
132
- then initializes `agent/runs/{runId}/manifest.json`, `context.json`,
133
- `intents.json`, `crawl_logs.json`, and `status.json`. The agent fills the
134
- content artifacts separately.
134
+ then initializes the full manifest-based run package under
135
+ `agent/runs/{runId}`: manifest, context, policy, intents, product catalog,
136
+ intent-product mapping, crawl logs, and status. The agent fills
137
+ `actions.json` and `rationale.md` separately.
135
138
 
136
- ### `anymorph geo init`
139
+ ### `anymorph init`
137
140
 
138
141
  Initialize a local tenant repo for GEO work.
139
142
 
140
143
  ```bash
141
- anymorph geo init --repo .
142
- anymorph geo init --repo . --skills-source /path/to/anymorph-geo-skills/plugins/anymorph-geo/skills
144
+ anymorph init
145
+ anymorph init --skills-source /path/to/anymorph-geo-skills/skills
143
146
  ```
144
147
 
145
148
  By default, `init` uses the GEO skillpack bundled inside the installed
@@ -147,47 +150,58 @@ By default, `init` uses the GEO skillpack bundled inside the installed
147
150
  private `anymorph-geo-skills` repo. `--skills-source` is only for internal local
148
151
  development when testing an unreleased skillpack.
149
152
 
150
- This installs managed skills under `.claude/skills` and `.agents/skills`, writes
151
- `agent/contracts`, creates `agent/runs` and `agent/archive`, and creates missing
152
- memory files without overwriting existing `agent/BRAND.md`, `agent/STRATEGY.md`,
153
- or `agent/LEARNINGS.md`.
153
+ This installs managed skills under `.claude/skills` and `.agents/skills`,
154
+ installs managed shared references under `.claude/shared` and `.agents/shared`,
155
+ writes `agent/contracts`, creates `agent/runs` and `agent/archive`, and creates
156
+ missing memory files without overwriting existing `agent/BRAND.md`,
157
+ `agent/STRATEGY.md`, or `agent/LEARNINGS.md`.
154
158
 
155
- ### `anymorph geo sync`
159
+ ### `anymorph doctor`
156
160
 
157
- Sync managed GEO files without touching memory or run artifacts.
161
+ Check whether the local scaffold still matches the installed skillpack.
158
162
 
159
163
  ```bash
160
- anymorph geo sync --repo .
164
+ anymorph doctor
165
+ anymorph doctor --json
166
+ anymorph doctor --fix
161
167
  ```
162
168
 
163
- ### `anymorph geo doctor`
169
+ Use `--fix` to repair managed GEO files without touching memory or run
170
+ artifacts.
164
171
 
165
- Check whether the local scaffold still matches the installed skillpack.
172
+ ### `anymorph intents <runId>`
173
+
174
+ Show the pre-fetched intent list for a local GEO strategy run.
166
175
 
167
176
  ```bash
168
- anymorph geo doctor --repo .
169
- anymorph geo doctor --repo . --json
177
+ anymorph intents 20260517T074200Z
178
+ anymorph intents 20260517T074200Z --json
170
179
  ```
171
180
 
172
- ### `anymorph geo intents <runId>`
181
+ ### `anymorph validate <runId>`
173
182
 
174
- Show the pre-fetched intent list for a local GEO strategy run.
183
+ Validate local GEO run artifacts before pushing `main`.
175
184
 
176
185
  ```bash
177
- anymorph geo intents 20260517T074200Z --repo .
178
- anymorph geo intents 20260517T074200Z --repo . --json
186
+ anymorph validate 20260517T074200Z
179
187
  ```
180
188
 
181
- ### `anymorph geo validate <runId>`
189
+ Validation does not update the backend. Backend sync happens from the tenant
190
+ submission command after local artifacts pass validation.
182
191
 
183
- Validate local GEO run artifacts before pushing `main`.
192
+ ### `anymorph submit <runId>`
193
+
194
+ Submit validated local GEO run artifacts to Anymorph.
184
195
 
185
196
  ```bash
186
- anymorph geo validate 20260517T074200Z --repo .
197
+ anymorph submit 20260517T074200Z
198
+ anymorph submit 20260517T074200Z --json
187
199
  ```
188
200
 
189
- Validation does not update the backend. Backend sync happens from the tenant
190
- repo GitHub `main` push webhook.
201
+ The CLI reads `agent/runs/{runId}/manifest.json`, submits the manifest-declared
202
+ artifact paths, and includes the current git commit SHA when available. Use
203
+ `--workspace <workspaceId>` only when the workspace cannot be inferred from the
204
+ run package.
191
205
 
192
206
  ## How It Works
193
207