agentleFS
ranjanrishikeshranjanrishikesh/taketomarket/CLAUDE.md

taketomarket

CLAUDE.md16 starsChanged 7 months agoMITView on GitHub

takeToMarket An open-source Claude Code / Codex skill that brings GSD-style spec-driven development to marketing. takeToMarket is a marketing operating system — not a content generator — that treats every campaign, asset, and channel as a spec-driven unit with a verifiable outcome, a positioning invariant, and a quality gate wall. Users install it into their Claude Code or Codex environment and run marketing campaigns through a 9-phase lifecycle with persistent state, compound learnings, and automated verification. Core Value: Every marketing…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

18 rules. About 0 are common, 9 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Core Value: Every marketing asset ships with a verifiable outcome metric and passes through a positioning-invariant quality gate wall — no …

    line 8
  2. Distinctive:

    When assisting the user:

    line 14
  3. Distinctive:

    Default to opinionated guidance — they came here because they don't know what's "right" in marketing.

    line 17
  4. Very specific:

    When suggesting marketing terms, link to /ttm-101 or run inline explanations on first use.

    line 18
  5. Distinctive:

    Platform: Must work as a Claude Code skill AND Codex skill — skill format must be compatible with both runtimes

    line 22
  6. Very specific:

    State persistence: All state lives in .taketomarket/ directory files — no database, no external storage <!-- GSD:project-end -->

    line 25
  7. Very specific:

    Use context: fork for production and verification skills

    line 94
  8. Very specific:

    Use Task() subagent API for wave-parallel execution

    line 95
  9. Very specific:

    Use AskUserQuestion for interactive onboarding

    line 96
  10. Distinctive:

    Add AGENTS.md alongside CLAUDE.md

    line 98
  11. Distinctive:

    Add text_mode fallback for AskUserQuestion (numbered list prompts)

    line 99
  12. Very specific:

    Test that all skills work without AskUserQuestion tool

    line 100
  13. Very specific:

    Use --text flag detection pattern from GSD

    line 101
  14. Very specific:

    All skills installed as /ttm-* flat commands via ~/.claude/skills/ttm-*/

    line 102
  15. Very specific:

    No project skills found. Add skills to any of: .claude/skills/, .agents/skills/, .cursor/skills/, or .github/skills/ with a SKILL.md index …

    line 164
  16. Distinctive:

    Before using Edit, Write, or other file-changing tools, start work through a GSD command so planning artifacts and execution context stay …

    line 170
  17. Distinctive:

    Use these entry points:

    line 172
  18. Distinctive:

    Do not make direct repo edits outside a GSD workflow unless the user explicitly asks to bypass it.

    line 177

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- GSD:project-start source:PROJECT.md -->

Project

takeToMarket

An open-source Claude Code / Codex skill that brings GSD-style spec-driven development to marketing. takeToMarket is a marketing operating system — not a content generator — that treats every campaign, asset, and channel as a spec-driven unit with a verifiable outcome, a positioning invariant, and a quality gate wall. Users install it into their Claude Code or Codex environment and run marketing campaigns through a 9-phase lifecycle with persistent state, compound learnings, and automated verification.

Core Value: Every marketing asset ships with a verifiable outcome metric and passes through a positioning-invariant quality gate wall — no asset ships without both, ever.

Target Audience

Built for developerneurs and solopreneurs — engineers building and shipping their own products who have zero or near-zero marketing/growth experience.

When assisting the user:

  • Assume strong engineering literacy. They read code fluently.
  • Assume zero marketing literacy. Explain positioning, ICP, AEO, funnels in engineering analogies.
  • Default to opinionated guidance — they came here because they don't know what's "right" in marketing.
  • When suggesting marketing terms, link to /ttm-101 or run inline explanations on first use.

Constraints

  • Platform: Must work as a Claude Code skill AND Codex skill — skill format must be compatible with both runtimes
  • Context window: Production in Produce phase uses fresh 200K-token contexts per wave, loaded with brief + positioning + brand + ICP + playbook
  • No external dependencies for MVP: The skill itself should not require external services — analytics data is pasted in manually
  • State persistence: All state lives in .taketomarket/ directory files — no database, no external storage
<!-- GSD:project-end --><!-- GSD:stack-start source:research/STACK.md -->

Technology Stack

Recommended Stack

Core Technologies

TechnologyVersionPurposeWhy Recommended
SKILL.md (Agent Skills standard)CurrentSkill entry point and slash command definitionUniversal standard adopted by Claude Code, Codex, Gemini CLI, Cursor, and 8+ runtimes. Each SKILL.md directory becomes a /ttm-* slash command. Verified via official Claude Code docs.
CLAUDE.mdCurrentProject-level instruction file for Claude CodeLoaded automatically in every session. takeToMarket uses this to inject positioning-as-invariant enforcement and campaign lifecycle rules.
AGENTS.mdCurrentCodex-compatible instruction fileCodex reads AGENTS.md automatically. Coexists with CLAUDE.md -- both can live in the same repo. Required for dual-runtime support.
Markdown (.md)N/AAll skill content, templates, workflows, referencesThe entire Claude Code skill ecosystem is Markdown-native. YAML frontmatter for config, Markdown body for instructions. No other format is viable.
Node.js (CJS)18+CLI utilities (bin/ tools)GSD uses .cjs files for deterministic operations (state management, config parsing, slug generation, commit orchestration). Node 18+ is required by Claude Code itself.
YAML frontmatterN/ASkill metadata, plan metadata, state trackingStandard across all Agent Skills. Parsed natively by Claude Code, Codex, and the GSD ecosystem.

Directory Structure (The Skill Itself)

User's Project Directory (Created by /ttm-init)

Supporting Libraries

LibraryVersionPurposeWhen to Use
None (zero runtime dependencies)N/AN/AThe skill itself has NO runtime dependencies. This is critical -- skills are Markdown files read by the AI runtime. The only "code" is optional CLI utilities in bin/ using Node.js built-ins only.

Development Tools

ToolPurposeNotes
Node.js 18+Run bin/ttm-tools.cjs for deterministic operationsAlready required by Claude Code. Use built-in fs, path, crypto only -- no npm dependencies in the tool itself.
gitVersion control for skill developmentStandard. Needed for git clone distribution path.
npmPackage publishingFor npx taketomarket installation path. Only the installer uses npm -- the skill itself is dependency-free.

SKILL.md Frontmatter Specification

Key Frontmatter Decisions

FieldRecommendationWhy
disable-model-invocation: trueUse for all campaign lifecycle commandsMarketing campaigns are deliberate actions. Users should invoke /ttm-produce, not have Claude auto-trigger it because it detected "content" in conversation.
disable-model-invocation: falseUse for /ttm-positioning-check and /ttm-healthThese are advisory/monitoring skills that Claude should trigger when it detects potential positioning drift in conversation.
context: forkUse for /ttm-produce and /ttm-verifyProduction and verification benefit from isolated subagent contexts with fresh context windows, following GSD's wave-parallel pattern.
allowed-toolsInclude Task for orchestration skillsSkills that spawn subagents (produce, verify) need the Task tool. Simpler skills (state, resume) only need Read/Write/Bash.

Codex Compatibility (AGENTS.md)

Plugin Distribution (PRIMARY -- Recommended)

  • Installs skills as flat commands to ~/.claude/skills/ttm-*/ (e.g., /ttm-produce)
  • Supports marketplace discovery and one-command installation
  • Handles updates via /plugin update
  • Packages skills, agents, hooks, and bin/ together

Plugin Manifest

Plugin Directory Layout

npm Distribution (SECONDARY -- Convenience)

package.json

Installer Script (install.js)

git clone Distribution (TERTIARY -- Hackers)

Then install via /plugin install from the directory

Alternatives Considered

RecommendedAlternativeWhen to Use Alternative
Plugin format (.claude-plugin/)Standalone skills (.claude/skills/)Only if you never plan to distribute the skill. Plugin format is strictly better for distribution.
Markdown for all contentYAML/JSON config filesNever for skill instructions. Only use JSON for plugin.json manifest and ttm-tools.cjs config state.
Node.js CJS for bin/ toolsPython scriptsOnly if the skill needs heavy computation (PDF generation, data analysis). Python requires additional runtime. Node.js is guaranteed available because Claude Code requires it.
Single bin/ttm-tools.cjs entryMultiple bin scriptsNever split into multiple entry points. GSD uses a single gsd-tools.cjs with subcommands. This keeps PATH clean and avoids permission issues.
YAML frontmatter for metadataCustom config formatNever. YAML frontmatter is the universal standard parsed by all Agent Skills-compatible runtimes.

What NOT to Use

AvoidWhyUse Instead
npm dependencies in the skillSkills must be zero-dependency. The AI runtime reads Markdown -- it does not run npm install. Adding dependencies breaks installation for all distribution paths.Node.js built-in modules only in bin/ tools.
TypeScript for bin/ toolsRequires build step, adds complexity to installation. GSD uses plain .cjs files.Plain CommonJS (.cjs) with no transpilation.
JSON for skill instructionsNot human-readable for the AI or the user. Markdown is the lingua franca of prompt engineering.Markdown with YAML frontmatter.
Jinja/Handlebars/EJS templatesTemplate engines add runtime dependencies and complexity. Claude fills in templates natively from Markdown.Plain Markdown templates with placeholder sections the AI fills in.
Database for stateSkills run in the user's filesystem. No database server to depend on.Markdown files in .taketomarket/ directory.
External API calls in skill codeMVP has no external dependencies. Analytics data is pasted manually.Manual paste workflow. MCP integrations deferred to V2.
.claude/commands/*.md (flat files)Legacy format. Skills (directory + SKILL.md) supersede flat command files and support additional features (supporting files, hooks, subagent execution)..claude/skills/ttm-*/SKILL.md directory format.
Putting skills inside .claude-plugin/Common mistake documented in official docs. Only plugin.json goes inside .claude-plugin/. Skills, agents, hooks go at plugin root.Plugin root level: skills/, agents/, bin/ at same level as .claude-plugin/.

Stack Patterns by Variant

  • Use context: fork for production and verification skills
  • Use Task() subagent API for wave-parallel execution
  • Use AskUserQuestion for interactive onboarding
  • Single CLAUDE.md instruction file
  • Add AGENTS.md alongside CLAUDE.md
  • Add text_mode fallback for AskUserQuestion (numbered list prompts)
  • Test that all skills work without AskUserQuestion tool
  • Use --text flag detection pattern from GSD
  • All skills installed as /ttm-* flat commands via ~/.claude/skills/ttm-*/
  • Plugin manifest at .claude-plugin/plugin.json
  • bin/ directory for CLI tools (added to PATH automatically)
  • settings.json for default configuration
  • Single install.js bin entry point
  • File manifest tracking for updates
  • Runtime detection and transformation
  • Symlink creation to ~/.claude/skills/

Key Architecture Patterns from GSD

1. Workflow-Skill Separation

2. Reference Files for Domain Knowledge

3. Templates for User-Facing Output

4. bin/ for Deterministic Operations

5. State as Markdown Files

Sources

  • Claude Code Skills Documentation -- Official SKILL.md specification, frontmatter fields, directory structure, context: fork, allowed-tools, dynamic context injection (HIGH confidence)
  • Claude Code Plugins Documentation -- Plugin manifest format, distribution, marketplace, directory layout (HIGH confidence)
  • GSD (Get Shit Done) GitHub -- Installation architecture, 14-runtime support, npm packaging pattern (HIGH confidence, verified via local filesystem inspection)
  • GSD local installation at ~/.claude/get-shit-done/ -- Direct inspection of v1.36.0: workflows/, references/, templates/, bin/, contexts/, agents/ structure (HIGH confidence)
  • Agent Skills open standard -- Cross-runtime compatibility specification (MEDIUM confidence, referenced in official Claude Code docs)
  • get-shit-done-cc npm package -- npm distribution pattern with single bin entry point and runtime-specific installer (HIGH confidence)
  • DeepWiki GSD Installation -- Detailed installer architecture, file manifest, runtime transformations (MEDIUM confidence)
<!-- GSD:stack-end --><!-- GSD:conventions-start source:CONVENTIONS.md -->

Conventions

Conventions not yet established. Will populate as patterns emerge during development.

<!-- GSD:conventions-end --><!-- ttm-maintainer-notes-start: hand-written, not GSD-managed -->

Maintainer Notes

Project-specific gotchas future maintainers should know before editing.

Inline-workflow skills (no separate workflow file)

Two skills carry their entire workflow inline in SKILL.md instead of routing to a workflows/<...>.md file:

  • skills/ttm-update/SKILL.md
  • skills/ttm-seo/SKILL.md (with sub-workflows at workflows/discipline/seo/{aeo,audit,keyword-map}.md covering subcommand bodies)

The P6 first-run-inline-education hook (## Step 0: First-run inline education) lives in the SKILL.md for these two — not in a workflow file. If you later split either skill's flow out into a dedicated workflow file, move Step 0 with it and remove it from the SKILL.md so the hook fires exactly once per invocation.

Playbook contract

Every discipline playbook in playbooks/<discipline>.md must conform to playbooks/base.md: YAML frontmatter (discipline, asset_types, version), 7 required H2 sections in order (Production Guidance / Discipline Gates / Base Gate Overrides / Format Rules / Examples / Anti-Patterns / Metrics), gate IDs DISC-{DISCIPLINE}-NN with PASS/WARN/FAIL criteria, ≤500 lines. An optional ## Sources 8th section is permitted for leader-derived playbooks (P6+).

Install-method detection

bin/lib/install-detect.cjs reads ~/.taketomarket/.install-method first (sentinel JSON written by install.js during copyPackageBase). Falls back to a CLAUDE_PLUGIN_ROOT + .git/ heuristic only when the sentinel is absent. The plugin-root candidate must contain a package.json with "name": "taketomarket" to qualify — this prevents false positives against generic ~/.claude/skills/ directories. If you change install.js's copy targets, keep writeInstallSentinel in the same code path or /ttm-update will degrade silently.

<!-- ttm-maintainer-notes-end --><!-- GSD:architecture-start source:ARCHITECTURE.md -->

Architecture

Architecture not yet mapped. Follow existing patterns found in the codebase.

<!-- GSD:architecture-end --><!-- GSD:skills-start source:skills/ -->

Project Skills

No project skills found. Add skills to any of: .claude/skills/, .agents/skills/, .cursor/skills/, or .github/skills/ with a SKILL.md index file.

<!-- GSD:skills-end --><!-- GSD:workflow-start source:GSD defaults -->

GSD Workflow Enforcement

Before using Edit, Write, or other file-changing tools, start work through a GSD command so planning artifacts and execution context stay in sync.

Use these entry points:

  • /gsd-quick for small fixes, doc updates, and ad-hoc tasks
  • /gsd-debug for investigation and bug fixing
  • /gsd-execute-phase for planned phase work

Do not make direct repo edits outside a GSD workflow unless the user explicitly asks to bypass it.

<!-- GSD:workflow-end --><!-- GSD:profile-start -->

Developer Profile

Profile not yet configured. Run /gsd-profile-user to generate your developer profile. This section is managed by generate-claude-profile -- do not edit manually.

<!-- GSD:profile-end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.