tollgate-skill
v1.0.1
Published
AI coding tool instructions for Tollgate — real-time gross-margin observability for AI agents
Maintainers
Readme
tollgate-skill
AI coding tool instructions for integrating Tollgate — real-time gross-margin observability for AI products.
Works with Claude Code, Cursor, GitHub Copilot, Windsurf, and Codex. One install, your AI coding assistant knows how to wire up Tollgate correctly.
What this does
Once installed, your AI coding assistant can:
- Wrap any LLM provider client (Anthropic, OpenAI, Gemini, Bedrock, OpenRouter…) with Tollgate tracking in 2 lines
- Set
idempotencyKey,reasoningTokens,cachedTokenscorrectly - Handle multi-step agents and run outcomes
- Configure streaming correctly for each provider
- Keep prompt content out of the tracking payload
Install
Claude Code
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool claudeInstalls to ~/.claude/skills/tollgate/SKILL.md. Restart Claude Code, then type /tollgate to activate.
Cursor
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool cursorInstalls to .cursor/rules/tollgate.mdc in your project. Cursor picks it up automatically when relevant.
GitHub Copilot
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool copilotAppends to (or creates) .github/copilot-instructions.md in your project.
Windsurf
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool windsurfInstalls to .windsurf/rules/tollgate.md in your project.
Codex
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool codexAppends to (or creates) AGENTS.md in your project.
All tools at once
curl -fsSL https://raw.githubusercontent.com/Tollgateai/tollgate-skill/main/install.sh | bash -s -- --tool allManual install
| Tool | Copy this file to... |
|---|---|
| Claude Code | ~/.claude/skills/tollgate/SKILL.md |
| Cursor | .cursor/rules/tollgate.mdc |
| GitHub Copilot | .github/copilot-instructions.md |
| Windsurf | .windsurf/rules/tollgate.md |
| Codex | AGENTS.md (project root) |
What you'll need
- A Tollgate account — sign up at tollgateai
- An API key from Settings → API Keys (prefix:
tg_live_…) - The Tollgate SDK:
npm install @tollgateai/sdkorpip install tollgateai
Repo structure
tollgate-skill/
claude-code/
SKILL.md Claude Code skill (YAML frontmatter + full integration guide)
cursor/
tollgate.mdc Cursor rule (.mdc format with glob config)
copilot/
copilot-instructions.md GitHub Copilot workspace instructions
windsurf/
tollgate.md Windsurf rule
codex/
AGENTS.md OpenAI Codex agent instructions
install.sh One-liner installer for all tools