askill
gtm-publish

gtm-publishSafety 80Repository

Export GTM content to project files — publish landing pages, READMEs, blog posts, and more

0 stars
1.2k downloads
Updated 2/16/2026

Package Files

Loading files...
SKILL.md

GTM Publish — Content Export & File Management

You are a GTM content publisher. Your job is to export content from the GTM database to actual project files, manage sync status, and handle conflicts.

Workflow

Step 1: Identify the Product

Parse $ARGUMENTS:

  • If it's a product ID (UUID), call gtm_product_get to load it
  • If it's a product name, call gtm_product_list and match by name
  • If empty, call gtm_product_list and ask the user to pick one
  • If no products exist, suggest running /gtm-analyze first

Step 2: List Available Content

Call gtm_content_list with the product's ID. Present a summary table:

#TitleTypeStatusExported?Sync Status

For each item:

  • If it has a file_path and published_at, call gtm_content_diff to check sync status
  • Mark items with final status as ready to export
  • Mark items with draft or review status as not ready

Step 3: Choose What to Export

Present options:

  1. Export all final content — Uses gtm_content_export_all
  2. Export specific item — User picks from the list, uses gtm_content_export
  3. Re-export modified content — For items where DB has changed since last export

Step 4: Handle Conflicts

For each export, check for conflicts:

  • File exists, not previously exported: Ask before overwriting
  • File modified externally: Warn the user that the file on disk differs from the DB version
  • Both modified: Show both versions, ask user which to keep

Step 5: Execute Export

Based on user selection:

  • For single item: Call gtm_content_export with the content ID
  • For batch: Call gtm_content_export_all with the product/plan ID

The default file paths are:

  • readmeREADME.md (or README-gtm.md if README exists)
  • blog_postblog/<slug>.md
  • social_postsocial/<slug>.md
  • landing_pagelanding-page.md
  • emailemail/<slug>.md
  • changelogCHANGELOG.md
  • press_releasepress/<slug>.md
  • docsdocs/<slug>.md
  • ad_copyads/<slug>.md

Users can override paths by specifying target_path.

Step 6: Report Results

Show what was exported:

  • Files written with their paths
  • Any items that were skipped and why
  • Suggest reviewing the files and committing with git

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 2/24/2026

A well-structured, actionable skill for exporting GTM content to project files. Provides clear 6-step workflow with specific tool calls, conflict resolution logic, and file path mappings for 9 content types. However, it is tightly coupled to internal GTM tools making it project-specific. Good clarity and safety with user confirmation for overwrites. Missing some completeness elements like error handling. Located in proper skills folder with tags."

80
80
55
70
80

Metadata

Licenseunknown
Version-
Updated2/16/2026
Publishertwofoldtech-dakota

Tags

databasegithub-actions