trailhead-manage

trailhead-manage is a skill for Claude Code from ToRvaLDz/trailhead. It costs 148 tokens per session (1,056 once invoked), scanned A, original, MIT.

A Trailhead administration skill for managing configuration and updates through GitHub Issues, the task-tracking system built into GitHub.

In plain words
What is it for?
Use it to view or change configuration and check for and install safe Trailhead updates.
Why use it?
It gives administrative commands a defined process for keeping a Trailhead installation configured and current.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the trailhead plugin — 6 skills, 24 commands, 8 agents, 3 hooks shipped together

Good fit Use it to view or change configuration and check for and install safe Trailhead updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/torvaldz/trailhead/trailhead-manage
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 ToRvaLDz/trailhead --skill trailhead-manage
Clone the repo
git clone --depth 1 https://github.com/ToRvaLDz/trailhead

Made for: Claude Code.

Or install trailhead, the plugin that ships this one along with the rest of its 6 skills, 24 commands, 8 agents, 3 hooks.

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 trailhead-manage

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/torvaldz/trailhead/trailhead-manage"><img src="https://agentmods.dev/badge/skills/torvaldz/trailhead/trailhead-manage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00148 $0.01056
Opus 5.5 $0.00059 $0.00422
Sonnet 5.5 $0.00030 $0.00211
Haiku 4.5 $0.00015 $0.00106

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

Security

Grade A, and why

trailhead-manage 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 11d 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.

plugins/trailhead/skills/trailhead-manage/SKILL.md · 26 lines

How it starts

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

trailhead-manage is the manage cluster of the trailhead skill: the admin verbs that keep a trailhead install healthy. config shows the effective config or changes it (a guided menu, or get / set <key> <value>); update checks for a newer trailhead and installs it where that is safe; prune reclaims a map's native sub-issue slots under GitHub's 100-cap; audit checks closed tickets for regressions against today's code and finds duplicate or groupable open ones. Everything lives on the GitHub Issues; the repo holds code only.

Load first, in order

Before doing anything, load <skill base>/../_shared/load-first.md and follow it: the shared-core load contract (the six core files, in order, then the effective config). <skill base> is this skill's base directory (Claude Code prints it as Base directory for this skill: when the skill loads; on another host, the directory holding this SKILL.md): resolve the path to an absolute path and open it with the Read tool on that absolute path. Never cd into a skills directory and never read a relative path from the shell (a cd compound followed by a read is denied by the search guard). The same rule covers every later ../_shared/... or references/... path in this skill: resolve it against the base directory to an absolute path before reading. _shared/ is a sibling of this cluster's own directory (at ../_shared/), never a child of it; its absence from a listing of the cluster dir is expected, not a missing core.

These admin verbs resolve no ticket and set up no isolation workspace.

Routing: verb to engine

The first word of the arguments is the verb (config, update, prune, or audit); the rest is that verb's argument (get, set <key> <value>, a map, --all, or empty).

  • config [get|set …] to ../_shared/configuration-reference.md: the config keys, their semantics, and the guided menu setup. With no argument it runs the guided setup; config get prints the merged config read-only (project .trailhead/config.json over global over defaults, showing which source wins each key); config set <key> <value> writes one key directly (to the project .trailhead/config.json, or to ~/.claude/trailhead/config.json with --global). Read that file and follow it.
  • update to references/updating.md: the update protocol (detect the install channel, compare the installed version with the latest from the matching source, install the newer one where it is safe). Read that file and follow it.
  • prune [map] to references/pruning.md: reclaim native sub-issue slots on a map near or at GitHub's 100 sub-issue cap by dropping the edges of closed and orphan tickets and re-adding missing ones, keeping every reference (Parent line, Decisions-so-far pointer, map label). With no argument it prunes the active map. Read that file and follow it.
  • audit [map] [--all] to references/auditing.md: audit the closed tickets since the last audit (or all of them with --all) for regressions against the current code (a fast no-agent path for unchanged code), classing each as implemented, unchanged, evolved, implemented wrong, or not implemented, and compare the open tickets for duplicates and groupable clusters; every fix is a proposal applied only on an explicit yes. With no argument it covers every open map plus the whiteboard; with a map it covers that map only. Read that file and follow it.

Read the full file on GitHub · 26 lines

Files

What ships with it

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

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. 11d ago Changed 3ec80814f4c3
  2. 17d ago Changed · +1 lines · +18 tokens per session e319cb29ac16
  3. 1mo ago Changed · +1 lines · +23 tokens per session 0db68a99e235
  4. 1mo ago Changed · -7 lines f0f1a6f90dfd
  5. 1mo ago First seen · 31 lines · 107 tokens per session scan A 1d1927be41da

Subscribe to this mod's changes

trailhead-manage is a skill published in the GitHub repository ToRvaLDz/trailhead (30 stars, last pushed 2d ago), licensed MIT. It adds 148 tokens to every session and 1,056 once invoked, about $0.0006 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-08-31.