ttm-update
Skill16 starsChanged 7 months agoMITView on GitHub
Check for takeToMarket updates and upgrade to the latest version. Compares installed version against npm registry and runs installer if newer version found.
- Deletes or force-pushes
- Installs packages
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ttm-101Skill
- ttm-aeo-checkSkill
- ttm-affiliate-kitSkill
- ttm-archiveSkill
- ttm-brand-refreshSkill
- ttm-briefSkill
- ttm-competitor-scanSkill
- ttm-deploySkill
- ttm-discoverSkill
- ttm-email-checkSkill
- ttm-email-preflightSkill
- ttm-fixSkill
- ttm-healthSkill
- ttm-humanizeSkill
- ttm-icp-refreshSkill
- ttm-improve-skillSkill
- ttm-initSkill
- ttm-keyword-mapSkill
- ttm-landingSkill
- ttm-learnSkill
- ttm-linkedin-postSkill
- ttm-measureSkill
- ttm-new-campaignSkill
- ttm-nextSkill
- ttm-playwright-setupSkill
- ttm-positioning-checkSkill
- ttm-positioning-shiftSkill
- ttm-produceSkill
- ttm-pseoSkill
- ttm-repurposeSkill
- ttm-request-skillSkill
- ttm-researchSkill
- ttm-resumeSkill
- ttm-reviewSkill
- ttm-seo-auditSkill
- ttm-seoSkill
- ttm-shipSkill
- ttm-stateSkill
- ttm-verifySkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read .taketomarket/CONFIG.md.
- Very specific: line 16
If inline_education is false: skip this step.
- Very specific: line 22
Use this exact check (bash) to decide whether to print: node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" first-run check ttm-update --raw -- …
- Very specific: line 41
Check if takeToMarket needs updating and upgrade if available.
- Distinctive: line 46
Run this FIRST, before any version or legacy-folder work:
- Very specific: line 74
Before checking version, detect whether the project still uses the legacy .marketing/ state directory and offer migration to .taketomarket/:
- Very specific: line 119
If a newer version is available, branch by the install method detected earlier:
- Very specific: line 138
After the install completes (clone or npm), reconcile any user-installed skill files under ~/.claude/skills/ttm-*/ against the freshly …
- Very specific: line 156
If <root> is null (unknown install method), skip this step entirely.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.
Files
/ttm-update
Step 0: First-run inline education
Read .taketomarket/CONFIG.md. Parse first_run_seen (object) and inline_education (boolean, default true).
If inline_education is false: skip this step. Else if first_run_seen.ttm-update is not true, print the explainer below verbatim, then mark this skill as seen:
node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" first-run mark ttm-updateUse this exact check (bash) to decide whether to print: node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" first-run check ttm-update --raw -- the JSON seen field is true once the explainer has run before.
Explainer for /ttm-update
/ttm-update checks your installed takeToMarket version against the
npm registry, detects whether you installed via npm or git clone,
runs the appropriate upgrade path, then reconciles any locally-edited
skill files against the new source and offers per-file diffs.
Why it matters: skills evolve quickly and an out-of-date install silently misses gate improvements and bug fixes. This skill is the opinionated upgrader -- it knows the right command for your install method and preserves your local edits behind explicit prompts rather than overwriting them.
(Canonical source: references/inline-education-blurbs.md. Embedded verbatim because workflows do not @-resolve files at runtime.)
Check if takeToMarket needs updating and upgrade if available.
Step: Detect install method
Detect how the user installed takeToMarket before deciding how to upgrade. Run this FIRST, before any version or legacy-folder work:
node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" install-detect --rawParse the JSON method field. The value will be one of:
- clone — installed via
git clone. Upgrades happen withgit pullin the plugin root, then re-running the installer (node install.jsornpx taketomarket@latest --yesfrom the cloned directory). - npm — installed via
npx taketomarketornpm install -g taketomarket. Upgrades happen vianpx taketomarket@latest --yes. - unknown — could not locate a plugin root. Print manual instructions and
ask the user where takeToMarket is installed before continuing:
Halt the workflow until the user confirms the method to use.Could not auto-detect your takeToMarket install location. Manual upgrade options: - npm: npx taketomarket@latest --yes - clone: cd <your-clone>; git pull; node install.js
Remember the method and root values — they are used by the version-check
branching and the skill-file sync step below.
Step: Legacy folder migration
Before checking version, detect whether the project still uses the legacy
.marketing/ state directory and offer migration to .taketomarket/:
node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" legacy-folder check --rawParse the JSON state field:
- legacy: print
WARN: Legacy '.marketing/' detected. Migration will rename it to '.taketomarket/'. Recommend committing or backing up first.then prompt withAskUserQuestion:- question: "Migrate
.marketing/to.taketomarket/now? (recommended before upgrade)" - options: "Yes, migrate now" / "Skip for now"
- On Yes:
node "${CLAUDE_PLUGIN_ROOT}/bin/ttm-tools.cjs" legacy-folder migrate --raw - On Skip: continue with a note that the upgrade will land alongside the legacy folder.
- question: "Migrate
- conflict: print the error below, then halt before the version check:
ERROR: Both .marketing/ and .taketomarket/ exist. Manual resolution required before upgrade. To resolve: 1. Compare contents: diff -r .marketing .taketomarket 2. Merge any unique files from .marketing/ into .taketomarket/. 3. Remove the legacy folder once .taketomarket/ is complete: rm -rf .marketing 4. Re-run /ttm-update to continue the upgrade. - current or none: continue silently.
Version check
- Get current installed version:
cat $HOME/.taketomarket/package.json 2>/dev/null | python3 -c "import sys,json; print(json.load(sys.stdin).get('version','unknown'))" 2>/dev/null || echo "unknown"- Get latest version from npm:
npm show taketomarket version 2>/dev/null || echo "unknown"- Compare versions. If already up to date, confirm "takeToMarket vX.X.X is up to date." and skip the install + sync steps below.
If a newer version is available, branch by the install
methoddetected earlier:- clone — pull the latest source, then reinstall from the cloned directory:
(Substitute thegit -C "<root>" pull --ff-only && node "<root>/install.js"rootreturned frominstall-detect.) - npm — upgrade via npm:
(Falling back tonpm install -g taketomarket@latestnpx taketomarket@latest --yesis acceptable ifnpm install -gis not desired.) - unknown — print the manual instructions emitted in the detection step and halt. Do NOT attempt an automatic install.
- clone — pull the latest source, then reinstall from the cloned directory:
Step: Skill-file diff + sync
After the install completes (clone or npm), reconcile any user-installed skill
files under ~/.claude/skills/ttm-*/ against the freshly installed source under
<root>/skills/ttm-*/. This catches the case where the user edited an installed
skill or where the installer skipped a file.
For each ttm-* skill directory present in BOTH locations:
- Compare files (e.g.,
SKILL.mdand any supporting files) between~/.claude/skills/<skill>/and<root>/skills/<skill>/. - For every file with a non-trivial diff, show the user a short summary of the
diff (filename + a few lines of context). Then use
AskUserQuestionwith prioritycritical:- question: "Overwrite
~/.claude/skills/<skill>/<file>with the new source?" - options: "Yes, overwrite" / "Skip this file" / "Skip remaining files"
- question: "Overwrite
- On "Yes, overwrite": copy the source file over the installed copy.
- On "Skip remaining files": stop the sync loop and continue to the log step.
- Track the count of files actually synced.
If <root> is null (unknown install method), skip this step entirely.
Step: Append to UPDATE-LOG.md
Record the upgrade outcome in .taketomarket/UPDATE-LOG.md (create the file if
it does not exist). Append the following block:
## YYYY-MM-DD HH:MM
- Updated from vX.X.X to vY.Y.Y
- Method: <clone|npm>
- Files synced: <count>
- Folder migration: <yes|no><yes|no> reflects whether the legacy-folder migration step actually ran a
rename during this invocation.
Next steps
See ${CLAUDE_PLUGIN_ROOT}/templates/next-step-footer.md.
<!-- next-step-footer -->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
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.

