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 skills add treasure-data/td-skills --skill llm-workflowgit clone --depth 1 https://github.com/treasure-data/td-skillsWrote 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/treasure-data/td-skills/llm-workflow)<a href="https://agentmods.dev/skills/treasure-data/td-skills/llm-workflow"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/llm-workflow/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/treasure-data/td-skills/llm-workflow"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/llm-workflow.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00095 | $0.02679 |
| Opus 5.5 | $0.00038 | $0.01072 |
| Sonnet 5.5 | $0.00019 | $0.00536 |
| Haiku 4.5 | $0.00010 | $0.00268 |
Grade A, and why
llm-workflow 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LLM Workflow
Build TD workflows that chain data queries, LLM processing, and notifications into end-to-end automation.
[td> / py> pipeline] → [LLM summarize] → [Slack / Mail notify]
For digdag syntax and operator reference, see the digdag skill.
End-to-End Template
Steps 1-4 are shared. Step 5 depends on notification channel — Slack (requires Bot App) or Mail (no setup needed on TD).
Steps 1-4: Pipeline + LLM (shared)
timezone: Asia/Tokyo
schedule:
daily>: "07:00:00"
_export:
td:
database: my_database
engine: presto
output_db: my_analytics
llm_endpoint: "https://llm-proxy.us01.treasuredata.com/v1/messages"
# 1. Setup
+setup:
td_ddl>:
create_databases: ["${output_db}"]
# 2. Build tables
+build_tables:
_parallel: true
+summary_a:
td>: queries/summary_a.sql
database: ${output_db}
create_table: summary_a
+summary_b:
td>: queries/summary_b.sql
database: ${output_db}
create_table: summary_b
# 3. Extract KPIs (single row for LLM context)
+extract_kpis:
td>: queries/kpi_snapshot.sql
store_last_results: true
# 4. LLM summarize
+llm_summarize:
http>: ${llm_endpoint}
method: POST
timeout: 300
headers:
- x-api-key: ${secret:td.apikey}
- anthropic-version: 2023-06-01
content:
model: claude-haiku-4-5-20251001
max_tokens: 1024
messages:
- role: user
content: |
Summarize this daily KPI snapshot. Be concise (under 300 chars).
Date: ${session_date}
Metric A: ${td.last_results.metric_a}
Metric B: ${td.last_results.metric_b}
content_format: json
store_content: true
Step 5a: Notify via Slack (Bot API)
Requires Slack Bot App with chat:write scope. Add after step 4:
_export:
slack:
post_url: "https://slack.com/api/chat.postMessage"
channel: "C0XXXXXXXXX"
# 5. Post to Slack — JSON.parse extracts LLM text inline (no py> needed)
+post_to_slack:
http>: ${slack.post_url}
method: POST
headers:
- content-type: "application/json"
- Authorization: "Bearer ${secret:slack.bot_user_oauth_token}"
content:
channel: ${slack.channel}
text: ${JSON.parse(http.last_content).content[0].text}
store_content: true
_error:
+notify_failure:
http>: ${slack.post_url}
method: POST
headers:
- content-type: "application/json"
- Authorization: "Bearer ${secret:slack.bot_user_oauth_token}"
content:
channel: ${slack.channel}
text: "Workflow failed for ${session_date}"
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · +1 lines · +95 tokens per session 5f9e0ec37213
- 3mo ago First seen · 325 lines · 0 tokens per session scan A 94d6d18b2571
llm-workflow is a skill published in the GitHub repository treasure-data/td-skills (23 stars, last pushed today), licensed Apache-2.0. It adds 95 tokens to every session and 2,679 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
llm-workflow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| llm-workflowtreasure-data/td-skills | Skill | 23 | today | Apache-2.0 | A | 95 | Claude Code |
| prompt-librarydavila7/claude-code-templates | Skill | 35k | yesterday | MIT | A | 57 | Claude Code, Codex |
| Assaydanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 222 | Claude Code, Codex |
| Fabricdanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 193 | Claude Code, Codex |
| Promptingdanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 111 | Claude Code, Codex |
| voice-extractorelvisun/newsjack | Skill | 1.7k | 9d ago | MIT | A | 90 | Claude Code |
| cost-aware-llm-pipelinehashgraph-online/awesome-codex-plugins | Skill | 1.6k | yesterday | Apache-2.0 | A | 42 | Claude Code, Codex |