tma1-setup

tma1-setup is a skill for Claude Code, Codex from tma1-ai/tma1. It costs 64 tokens per session (3,336 once invoked), scanned D, original, Apache-2.0.

A setup guide for TMA1, a local tool that records and displays what AI coding agents do, including their telemetry and token usage.

In plain words
What is it for?
Use it to install TMA1, start its local server, check its health, and set up observability for Claude Code, Codex, GitHub Copilot CLI, OpenClaw, or OpenTelemetry-based agents.
Why use it?
It provides a defined process for checking whether TMA1 is running, installing it when needed, and waiting for its local data service to become ready.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the tma1 plugin — 4 skills, 2 commands shipped together

Good fit Use it to install TMA1, start its local server, check its health, and set up observability for Claude Code, Codex, GitHub Copilot CLI, OpenClaw, or OpenTelemetry-based agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tma1-ai/tma1/tma1-setup
Install

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.

Any agent
npx skills add tma1-ai/tma1 --skill tma1-setup
Clone the repo
git clone --depth 1 https://github.com/tma1-ai/tma1

Made for: Claude Code, Codex.

Or install tma1, the plugin that ships this one along with the rest of its 4 skills, 2 commands.

Wrote 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.

agentmods badge for tma1-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/tma1-ai/tma1/tma1-setup/github.svg)](https://agentmods.dev/skills/tma1-ai/tma1/tma1-setup)
Your own site
<a href="https://agentmods.dev/skills/tma1-ai/tma1/tma1-setup"><img src="https://agentmods.dev/badge/skills/tma1-ai/tma1/tma1-setup/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.

agentmods 80×15 button for tma1-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/tma1-ai/tma1/tma1-setup"><img src="https://agentmods.dev/badge/skills/tma1-ai/tma1/tma1-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.03336
Opus 5 $0.00032 $0.01668
Sonnet 5 $0.00013 $0.00667
Haiku 4.5 $0.00006 $0.00334

Measured 10d ago against content hash fa727f59a6d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade D, and why

tma1-setup scanned grade D with 3 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 10d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://tma1.ai/install.sh | bash

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Claude Code** — merge into `~/.claude/settings.json` (Windows: `%USERPROFILE%\.claude\settings.json`):

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf http://localhost:14318/health
claude-plugin/skills/tma1-setup/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TMA1 Setup

You are helping the user install and configure TMA1, a local-first LLM agent observability tool.

Step 1: Check if TMA1 is already running

curl -sf http://localhost:14318/health

If this returns {"status":"ok"}, TMA1 is already running. Skip to Step 4.

Step 2: Install TMA1

Download and install the tma1-server binary:

# macOS / Linux
curl -fsSL https://tma1.ai/install.sh | bash
# Windows (PowerShell)
irm https://tma1.ai/install.ps1 | iex

This installs the binary to ~/.tma1/bin/tma1-server (or %USERPROFILE%\.tma1\bin\tma1-server.exe on Windows).

Step 3: Start TMA1

On macOS/Linux the installer registers a service that auto-starts. On Windows the installer registers a Scheduled Task that auto-starts.

If TMA1 is not running, start it manually:

# macOS / Linux
~/.tma1/bin/tma1-server &
# Windows (PowerShell)
Start-Process "$env:USERPROFILE\.tma1\bin\tma1-server.exe"

Wait for GreptimeDB to become healthy:

# macOS / Linux
for i in $(seq 1 30); do
  if curl -sf http://localhost:14318/health > /dev/null 2>&1; then
    echo "TMA1 is ready."
    break
  fi
  sleep 1
done
# Windows (PowerShell)
for ($i = 0; $i -lt 30; $i++) {
  try { if ((Invoke-WebRequest -Uri http://localhost:14318/health -UseBasicParsing).StatusCode -eq 200) { Write-Host "TMA1 is ready."; break } } catch {}
  Start-Sleep -Seconds 1
}

If it does not become healthy after 30 seconds, check the logs and report the error.

Step 4: Verify OTel endpoint

Confirm GreptimeDB is accepting OTLP data:

curl -sf http://localhost:14318/status

This should return {"status":"ok","greptimedb":"running",...}.

Step 5: Configure the agent

Tell the user to set the OTel exporter endpoint. The exact method depends on their agent:

Claude Code — merge into ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json):

CRITICAL: You MUST read the existing settings.json first and MERGE — NEVER overwrite.

  • For "env": add/update only the keys shown below. Keep all existing env vars intact.
  • For "hooks": for each event type, append the TMA1 hook entry to the existing array. Do NOT replace the array or remove other hooks.
  • For all other top-level keys (permissions, mcpServers, enabledPlugins, etc.): do NOT touch them.

Example merge for a hook event that already has entries:

"PreToolUse": [
  { "hooks": [{ "type": "command", "command": "existing-hook.sh" }] },
  { "hooks": [{ "type": "command", "command": "~/.tma1/hooks/tma1-hook.sh", "timeout": 3 }] }
]

Read the full file on GitHub · 264 lines

Changes

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.

  1. 10d ago First seen · 264 lines · 64 tokens per session scan D fa727f59a6d9

Subscribe to this mod's changes

tma1-setup is a skill published in the GitHub repository tma1-ai/tma1 (117 stars, last pushed 6d ago), licensed Apache-2.0. It adds 64 tokens to every session and 3,336 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 3 findings (downloads and executes remote code, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clawmetry-selfcheck

Read your own agent telemetry from ClawMetry (waste, progress, cost) and act on it before finishing a task. Use when ClawMetry is installed on this machine and you want to check whether you are re-reading files, spinning in loops, or burning budget.

vivekchand/clawmetry · 64 tokens

clawmetry

Real-time observability for OpenClaw agents — local dashboard + optional encrypted cloud sync. Tracks costs, tokens, sessions, tool calls, memory, crons, and system health. Access from anywhere via ClawMetry Cloud.

vivekchand/clawmetry · 51 tokens

agent-kill-switch

Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry. Use when the user asks to stop or kill a runaway agent, see what an agent is doing or spending, cap agent spend, gate risky tool calls behind approval, or "set up a kill switch" for Claude Code, Codex, Cursor, Gemini…

vivekchand/clawmetry · 95 tokens

douyin-skills

A local automation toolkit for Douyin, the Chinese short-video platform, and its creator center. It uses the computer’s Chrome browser to handle account access, content search, publishing, and basic interactions.

zJay26/douyin-skills · 73 tokens

douyin-env

An environment setup and troubleshooting guide for the Douyin automation toolkit. It checks the computer’s Python, Node.js, browser, dependencies, graphics support, and local browser profile.

zJay26/douyin-skills · 76 tokens

douyin-publish

A browser workflow for preparing and publishing image posts or videos on Douyin, a Chinese short-video social platform. It uploads local media, fills the post details, checks the page, and publishes only after confirmation.

zJay26/douyin-skills · 72 tokens