setup-trunk

setup-trunk is a skill for Claude Code from AndrewDongminYoo/cc-agents-kit. It costs 44 tokens per session (5,186 once invoked), scanned C, original, Apache-2.0.

A setup workflow for adding Trunk.io to an existing repository. Trunk.io combines multiple code-quality checks and Git hooks, while its hold-the-line approach blocks new violations without requiring old ones to be fixed first.

In plain words
What is it for?
Use it for first-time Trunk integration, selecting and configuring linters, setting up Git hooks, and adding validation to a legacy codebase.
Why use it?
It lets a project adopt linting gradually, even when the codebase already contains errors. The setup is based on the repository’s actual languages, files, scripts, and CI checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the repo-gate plugin — 6 skills shipped together

Good fit Use it for first-time Trunk integration, selecting and configuring linters, setting up Git hooks, and adding validation to a legacy codebase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewdongminyoo/cc-agents-kit/setup-trunk
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 AndrewDongminYoo/cc-agents-kit --skill setup-trunk
Clone the repo
git clone --depth 1 https://github.com/AndrewDongminYoo/cc-agents-kit

Made for: Claude Code.

Or install repo-gate, the plugin that ships this one along with the rest of its 6 skills.

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 setup-trunk

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/setup-trunk"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/setup-trunk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00044 $0.05186
Opus 5.5 $0.00018 $0.02074
Sonnet 5.5 $0.00009 $0.01037
Haiku 4.5 $0.00004 $0.00519

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

Security

Grade C, and why

setup-trunk scanned grade C with 1 finding 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 2d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- trunk-ignore-all(trunk/ignore-unknown-linter) -->
plugins/repo-gate/skills/setup-trunk/SKILL.md · 462 lines

How it starts

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

Setup Trunk

Overview

Trunk.io is a meta-linter and git hook manager. Its core principle is "hold-the-line": existing violations are acknowledged and ignored initially, but new violations on changed files are blocked. This lets teams adopt linting incrementally without a big-bang cleanup. This skill covers first-time integration and configuration. Running trunk day to day is a different job — trunk check / trunk fmt at milestones, cache corruption, aligning trunk-pinned linter versions with the workspace, vulnerability triage — and is out of scope here.

Initialization Flow

1. Inspect the repository before selecting linters

Do not start from a memorized linter bundle. First inspect the repository's manifests and lockfiles, existing CI workflows, declared package scripts, language and generated-file layout, and any existing linter configuration. Use that evidence to identify tools the project already runs, file types that actually exist, and checks CI already owns.

git ls-files | grep -E '(^|/)(package.json|pubspec.yaml|pyproject.toml|Cargo.toml|go.mod|Podfile)$'
git ls-files '.github/**'
git ls-files | grep -Ei '(^|/)([^/]*(eslint|prettier|ruff|markdownlint|shellcheck)[^/]*)$'

Read the files found, including scripts in manifests and the commands used by CI, before proposing lint.enabled. Enable a linter only when a repository artifact or an explicit user requirement supports it; do not infer that mobile, web, infrastructure, and documentation checks all belong in the same repository.

2. Run trunk init

trunk init

The wizard prompts for:

  1. Account connection (optional for local-only use)
  2. Linter auto-detection based on files in the repo
  3. Git hooks setup (built-in actions)
  4. Initial full-repo scan to snapshot existing violations

For open-source repos where you contribute a PR to someone else's codebase and don't want to commit trunk config:

trunk init  # then: trunk config hide

trunk config hide adds .trunk/ to .gitignore, keeping the config local. Alternatively, trunk init --single-player-mode does both in one step (verified in trunk init --help: "initialize trunk with a gitignored config, run 'trunk config share' to undo").

Read the full file on GitHub · 462 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. 2d ago Changed · +46 lines 67ffab529cf8
  2. 1mo ago Changed · +21 lines 1988416702c3
  3. 1mo ago First seen · 395 lines · 44 tokens per session scan C b0d356a43a69

Subscribe to this mod's changes

setup-trunk is a skill published in the GitHub repository AndrewDongminYoo/cc-agents-kit (3 stars, last pushed 3d ago), licensed Apache-2.0. It adds 44 tokens to every session and 5,186 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr-grooming

Use when the user wants to groom, triage, or clean up the open pull requests of a repo: "groom the PRs", "review the open PRs", "which drafts are stale", "close old draft PRs", "rebase the dependabot PRs", "are the open PRs still mergeable", "refresh that old bugfix PR", or a periodic PR review — even when they do not…

sfc-gh-eraigosa/dotfiles · 147 tokens

review

Review a change with what this repository knows about it — who depends on the file, which tests cover it, what broke here before, and what the repo has written down. Use before approving a diff, opening a PR, or when asked to review.

ArcticFox2029/chamnan · 51 tokens

review-pr

Review and merge GitHub pull requests for Spatie packages. Use when asked to review a PR, review a pull request, merge a PR, or when given a GitHub PR URL to review. Also triggers on 'review this PR,' 'check this pull request,' 'merge this,' or '/review-pr'. Uses gh CLI for all GitHub operations.

freekmurze/dotfiles · 75 tokens

git

Git and code hosting platform management — GitHub, GitLab, Codeberg, Forgejo. Zero barrier — install x-cmd and manage repos from the terminal. Use for "git", "github", "gitlab", "repo", "pull request", "code hosting".

x-cmd/x-cmd · 58 tokens

verify-behavior

Verify or reproduce visible product behavior by driving the real UI with pi-computer-use's checked tools, requiring verified expect postconditions and durable state evidence for meaningful UI flows. Use when triage needs visual reproduction, implementation needs behavioral proof, review needs interactive confirmation…

nicknisi/dotfiles · 68 tokens

release

Cut a brooks-lint release: set the version in package.json, propagate it across all four plugin manifests and every version-bearing text file (README badges, docs site metadata), write the CHANGELOG entry, validate, then commit, push, tag, and publish the GitHub release. Triggers when the maintainer asks to "release"…

hyhmrright/brooks-lint · 135 tokens