agentleFS
ZevenueZevenue/headless-gtm/skills/headless-gtm-shared/SKILL.md

headless-gtm-shared

Skill29 starsChanged 4 months agoMITView on GitHub

Reference module for the Headless GTM chain, not a skill to invoke. Holds the record contract every chain skill reads and writes (CONVENTIONS.md) plus the Python helpers they import (common.py, schema.py). Installed alongside the chain so those imports and references resolve; read CONVENTIONS.md when you need the JSONL record shape, the runs/ layout, or the cost-gate rules.

  • Reads credentials
  • Installs packages

The file

Files
SKILL.md

headless-gtm-shared - the chain's record contract and helpers

This folder is a library, not a skill. Nothing invokes it directly. It ships as a skill folder for one reason: the SKILL.md marker is what makes skill installers copy a directory, and every chain skill depends on this one.

What is in here

FileWhat it isWho uses it
CONVENTIONS.mdThe chain contract: JSONL records, additive per-stage fields, the runs/<run-id>/ layout, deviation loggingEvery chain skill references it; read it before changing any output format
common.py.env loading, the >$10 cost gate, output-dir resolution, run slugs, run metadataImported by the chain scripts
schema.pyProspectRecord construction and the CSV/JSON writersImported by the discovery scripts
requirements.txtThe full dependency list for the chain, mirrored at the repo rootpip install

If you are reading this because an import failed

A script exited with cannot find headless-gtm-shared/common.py. The skill was copied out without this folder. Copy skills/headless-gtm-shared/ next to the skill that failed, so the layout is:

<skills-dir>/
├── headless-gtm-shared/          <- this folder
├── 02-apify-maps-discover/
└── ...

The npx skills add installer picks this folder up on its own. Only a manual single-folder copy can miss it.

Two rules worth knowing before you edit anything here

  • common.load_env() never overwrites an exported variable. A real shell export or a secrets manager always beats a .env on disk. The loader only fills in what is missing.
  • common.resolve_out_dir() writes under the current working directory, not under the skill. An installed skill is a read-only package; client output belongs in the project you are working in.

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.