Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/cyanheads/workflows-mcp-server/add-exportnpx skills add cyanheads/workflows-mcp-server --skill add-exportgit clone --depth 1 https://github.com/cyanheads/workflows-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cyanheads/workflows-mcp-server/add-export)<a href="https://agentmods.dev/skills/cyanheads/workflows-mcp-server/add-export"><img src="https://agentmods.dev/badge/skills/cyanheads/workflows-mcp-server/add-export.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00050 | $0.00791 |
| Opus 5 | $0.00025 | $0.00396 |
| Sonnet 5 | $0.00010 | $0.00158 |
| Haiku 4.5 | $0.00005 | $0.00079 |
Grade A, and why
add-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to add-export — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
Subpath exports are defined in package.json under the exports field. Each subpath maps to a source entry point that gets compiled to dist/. The exports catalog in CLAUDE.md/AGENTS.md must stay in sync with package.json.
The build uses tsconfig.build.json (not tsconfig.json) with rootDir: ./src and include: ["src/**/*"]. This means every source file at src/foo/bar.ts compiles to dist/foo/bar.js — the dist/ path in each export entry must match wherever tsc produces the compiled output for the named source file. Choose your source file location to produce the dist/ path you want in the export entry.
Steps
-
Create the entry point source file under
src/(e.g.,src/utils/new-util.ts) -
Add the subpath to
package.jsonexports, mirroring the source path:// source: src/utils/new-util.ts → dist: dist/utils/new-util.js "./newutil": { "types": "./dist/utils/new-util.d.ts", "import": "./dist/utils/new-util.js" } -
Update the exports catalog in both
CLAUDE.mdandAGENTS.md— add a row to the table. These files must stay byte-identical; the simplest approach iscp CLAUDE.md AGENTS.mdafter editing -
Build with
bun run buildto generatedist/output -
Verify the export resolves through the package's
exportsmap:# Confirm the compiled file exists at the expected dist path ls dist/utils/new-util.js # Confirm the subpath export resolves correctly (tests the exports map, not just the dist file) bun -e "import('@cyanheads/mcp-ts-core/newutil').then(m => console.log(Object.keys(m)))" -
Run
bun run devcheckto verify
Naming conventions
| Convention | Rule |
|---|---|
| Subpath | all-lowercase, no underscores (e.g., utils, storage/types, testing/fuzz) |
| Source file | kebab-case (e.g., error-handler.ts) |
| Export name | camelCase for values, PascalCase for types |
Checklist
- Source entry point file created with JSDoc header
- Subpath added to
package.jsonexportswithtypesandimportconditions - Exports catalog updated in both
CLAUDE.mdandAGENTS.md(must be byte-identical) - If the new export has optional peer dependencies: entries added to both
peerDependenciesandpeerDependenciesMetainpackage.json -
bun run buildsucceeds - Compiled file exists at expected
dist/path and subpath import resolves correctly - Integration test at
tests/integration/package-consumer.int.test.tsupdated: new subpath added to the import spec list andtoHaveLengthcount incremented -
bun run devcheckpasses
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 63 lines · 50 tokens per session scan A 8e515f380b9f
add-export is a skill published in the GitHub repository cyanheads/workflows-mcp-server (31 stars, last pushed 13d ago), licensed Apache-2.0. It adds 50 tokens to every session and 791 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to add-export, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
test-workflow
Universal n8n workflow testing via webhook or sub-workflow pattern.
dagster-docs
Expert guidance for writing documentation for the Dagster docs website. ALWAYS use before creating or updating documentation in the docs directory.
basic-inline-skill
A minimal instruction-only skill with inline content and the function builder alternative.
add-export
Add a new subpath export to the @cyanheads/mcp-ts-core package. Use when creating a new public API surface that consumers import from a dedicated subpath (e.g., @cyanheads/mcp-ts-core/newutil).
sofagent-fde
前线部署与知识工程专家。梳理企业业务流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。 不写应用代码——把企业业务规则、组织架构、系统边界转译成 sofagent 的数据层和约束层。.
typescript-strict-patterns
TypeScript strict mode patterns, branded types, discriminated unions, and type-safe architecture for MCP servers.