Guidance for AI agents working in the Diffmode Growth Tactics standalone repo.
The free Diffmode growth-ideation pipeline, packaged as a portable Claude Code plugin
(+ a Codex scaffold). It takes a founder from a 2-minute intake to a synthesis.md of
7-9 novel demand-gen tactic IDEAS and stops at synthesis. It is an extract of the
private ai-cmo monorepo's pipeline-skills/ — re-pointed so it runs standalone, leaking
none of the paid product.
This is a prompt-based system, not traditional software: no build, no runtime. The
"code" is Markdown (SKILL.md bodies, agent defs, orchestrator commands) executed by a
coding-agent runtime. Outputs are Markdown/JSON files written to a per-run workspace.
Buyer-facing essence / moat framing lives in README.md and plugin/README.md.
The synthesis method is what this repo gives away. Paid + proprietary (never ship,
never reference content of): the 576-vector growth database (tactics_DB/ in the private
repo), its intelligence layer + saturation/anti-vector tracking, and the downstream
prioritization + implementation stages. The free pipeline runs the same method on a
deliberately weaker per-run LIGHT DB mined fresh from public case studies, and stops.
Clean-room rule (moat-critical): growth-factors-mining and the whole synthesis chain
MUST NOT read anything under tactics_DB/. Mentions of tactics_DB/ in this repo are only
prohibitions / moat framing — never actual DB content, vector counts (no 542/8,238), or
prompts/ source files. Keep it that way.
- One repo, one physical copy of the skills. The 13 skills live once in
plugin/skills/. Edit them there.codex/.agents/skills/*are relative symlinks (../../../plugin/skills/<name>) — Codex reads the same files; do NOT create a second copy. - Only
plugin/ships to Claude users.marketplace.json(repo root) declaressource: ./plugin, so Claude copies just that dir to its cache.docs/,codex/, and the rootREADME.mddo not ship — put internal notes there, not inplugin/. - Codex reads a checked-out repo (not a copy), so the symlinks resolve. The Codex side is a
second, working orchestrator —
codex/orchestrate.pydrives the same DAG,codex/codex_dispatch.pydispatches workers, andcodex/checks.pyholds the deterministic stage checks.checks.pyis the more precise of the two implementations (per-stage completeness anchors with rationale, substring match semantics, the 15-40 gate vs 20-40 acceptance split): when a structural check needs fixing, port from it rather than reinventing the check in prose instart.md— and change both in the same commit. Seecodex/CODEX.md.
| Path | Role | Ships to Claude? |
|---|---|---|
plugin/skills/ |
13 SKILL.md — canonical methodology | yes |
plugin/agents/ |
5 worker sub-agents (research · research-perplexity (opt-in) · analysis · synthesis · reviewer) | yes |
plugin/commands/ |
start (main entry) orchestrator |
yes |
plugin/reference/ |
bundled Marketing-Channel-Menu-2026.md |
yes |
codex/ |
AGENTS.md + CODEX.md + worker .toml + symlinked skills + the orchestrate.py / checks.py / codex_dispatch.py drivers |
no |
docs/ |
architecture, eval-methodology, STATUS, full-pipeline-map | no |
-
No host-repo dependencies. Never reintroduce a "confirm repo root /
ai-cmo-workspace//prompts/present, abort if not" pre-flight. Runs write to./<slug>/in the user's current directory. -
Resolve bundled files via
${CLAUDE_PLUGIN_ROOT}(expands to the install dir at runtime): the channel menu is${CLAUDE_PLUGIN_ROOT}/reference/…; reviewerspec_paths are${CLAUDE_PLUGIN_ROOT}/skills/<skill>/SKILL.md. Never point atprompts/…. -
Skill bodies stay runtime-neutral — no Claude-only tool ids baked in (say "your web-research backend", not
mcp__perplexity__*orWebSearch). The concrete tool binding belongs inplugin/agents/*.md(Claude) /codex/agents/*.toml(Codex). Skills treat input paths (incl. the channel menu) as invoker-supplied.The built-in web search is the default and only assumed backend. Perplexity is opt-in. Nothing detects, probes for, or announces a Perplexity MCP; a configured server is not consent. It is dispatched only when the founder names it in
$ARGUMENTS(seeplugin/commands/start.md→ Arguments), and it is a separate agent file (plugin/agents/research-worker-perplexity.md) so the default worker cannot reach those tools at all — structural enforcement, the same pattern that keepsanalysis-workeroff the web.Justify that on cost and setup, never on quality. Perplexity is opt-in because it bills a paid API and its key can expire mid-run (it did, silently, after a founder had been told they were paying for it) — not because the built-in search produces better output.
docs/eval-methodology.md§4c measured no quality delta and requires n≥3 to re-open the question; do not add "quality slightly lower/higher" language on either path, anywhere. -
Plugin name stays
diffmode-growth-tactics— thediffmode-growth-tactics:*namespaced dispatch ids in commands/agents depend on it.
diagnostics-intake → enrichment (competitors → audience ‖ acq-tactics)
→ think-tank ×3 (competitor-gaps · cross-industry · platform-arbitrage)
‖ growth-factors-mining (LIGHT DB; starts right after the competitors gate, overlaps enrichment + think-tanks)
→ lite-constraints → synthesis (explore → build) → synthesis.md (STOP)
→ founder-report (best-effort packaging) → growth-tactics.md (the founder-facing view; renderer falls back to synthesis.md when absent)
A parameterized reviewer gates two stages (v2.3.0): enrichment competitors and the
final synthesis (build) — score ≥ 7, max 3 retries, blocking_issues injected into a FRESH
worker. Every other generating stage (audience + acquisition-tactics, the 3 think-tanks,
growth-factors, lite-constraints, the intermediate explore, the post-gate founder-report
packaging) gets a structural check. Workers are single-shot and stateless — every retry is a fresh
spawn; never SendMessage a returned worker. Research stages run on the built-in WebSearch
(the default, zero-setup path); a Perplexity MCP is opt-in only, on a separate worker (see
portability rule 3). Analysis + synthesis run with no MCP by design (structurally enforces
no-web-search).
- Edit a skill / agent / command → edit under
plugin/. After editing, reinstall the plugin to pick up changes. Codex symlinks need no action. - Validate →
claude plugin validate plugin(must pass before publishing / community submission), plusbash dev/smoke-test.sh <completed-workspace>andpython3 codex/checks.py(its self-test; pointDIFFMODE_FIXTURE_WSat a completed workspace). There is no CI — nothing runs these but you. - Confirm which copy of the plugin is live → it resolves from whatever
~/.claude/settings.json→extraKnownMarketplaces.diffmode-free.sourcepoints at. Adirectorysource runs this working tree (skill edits take effect with no reinstall); agithubsource runs~/.claude/plugins/cache/diffmode-free/…/<version>/. Stale cache dirs from earlier installs coexist and are NOT used under a directory source — delete them so you can't test the wrong tree. Each run also recordsplugin_version+plugin_rootin its ledger's first row, so a finished workspace can answer this after the fact. - When docs disagree with code, code wins.
docs/STATUS.mdis an append-only build log — historical entries are never rewritten, so an old claim there can contradict currentplugin/. Trustplugin/. - Check nothing external leaked back in →
grep -rn "prompts/\|ai-cmo-workspace\|repo root" plugin/should return nothing but the README's references to this repo's own root. - Confirm Codex symlinks resolve →
ls -L codex/.agents/skills/lists all 13.
- Repo landing + install (both runtimes) →
README.md - Plugin internals + command reference →
plugin/README.md - Codex setup, MCP
KEY/TOKENgotcha, porting guide →codex/CODEX.md - Codex orchestration model (DAG, gates, clean-room) →
codex/AGENTS.md - Design rationale / state contract →
docs/architecture.md - Reviewer methodology / scoring →
docs/eval-methodology.md - Why the output isn't default LLM answer (the 7 novelty layers, with file:line backing —
source for buyer-facing copy) →
docs/novelty-engineering.md - Build/version history →
docs/STATUS.md
- Marketplace name is
diffmode-free(inmarketplace.json+ install strings as@diffmode-free) — deliberately NOTdiffmode, to avoid colliding with / squatting the paiddiffmodeCLI + skill (github.com/agentic-builders/diffmode-cli). The plugin name staysdiffmode-growth-tactics. - Source of truth between this repo and the private
ai-cmo/pipeline-skills/dev origin is undecided — keep edits here in sync deliberately until that's settled. claude-communitymarketplace submission — optional, after the repo is verified.