trailhead

Reviewed at commit b447962 New version, not yet reviewed

Sends data to GitHub Issues of your repository (github.com via gh); when you enable them: Google Stitch (stitch.googleapis.com) and the AI CLIs you pick for plan review (Gemini, Codex, ...)

Start and drive large projects as a map of tickets on GitHub Issues, resolving one at a time. Map-based onboarding + a discuss→plan→execute→verify engine with…

Made by
Marco Migozzi
What we checked

Runs a project as a map of tickets on your repository's GitHub Issues and works them through discuss, plan, execute and verify with small local commits; /trailhead:auto can work a whole map alone, merging finished branches locally but never pushing. A band, a Map pane and the session title show progress through the gh CLI. Its hooks apply in every repository: commit rules, .env read blocking, install gating, secret and label checks.

Review details

Static review of the source at the pinned commit; not run. Full re-review (the diff since b676495 was too large for a delta review, mostly tests), with every changed code file read in full in the diff: register.tsx, map-pane.tsx, the new press-title.ts, session-title.ts and text-flat.ts, work-state-locate.ts, work-state-prompt.ts, trailhead-secret-read-guard.js and the new lib/secret-read-exempt.js and lib/git-globals.js, the new lib/wrappers.js and its use in unmodelled.js, trailhead-secret-guard.js and trailhead-install-guard.js, trailhead-commit-guard.js and templates/trailhead-report-status.js; the changed skill files were read as diffs; the rest carries over from the review at b676495 and was checked by targeted search (hooks registered, network hosts, fetch, $.fs writes, permissions, allowed-tools, bypassPermissions, npx, curl, reviewer-directed text in the 76 prompt files). Mod hooks are as before (session.start, session.end, session.compact, session.attach, classic.SessionStart, turn.start, turn.complete, prompt.compose adding a short 'trailhead work state' system-prompt section, prompt.submit adding a one-line context note when the ticket changed, tool.call on Bash that only refreshes and never blocks, command.run for /trailhead:panel, ui.render for the band and Map pane, ui.close) plus new classic.UserPromptSubmit and classic.SessionStart handlers that return a sessionTitle naming the ticket and step in play; the prompt is now read only to match a leading /trailhead command, whose argument (flattened, invisible characters removed, cut to 80 characters) can become the title; any error leaves the hook result untouched. The mod also reads the main checkout's .gitmodules to find per-ticket submodule clones beside it. It still writes nothing to disk and every git and gh spawn drops inherited GIT_DIR-style variables. Command hooks are unchanged in shape (PreToolUse Bash guards, PreToolUse Read|Bash secret-read guard, AskUserQuestion mockup-link guard, PostToolUse issue-injection scanner, SessionStart update check caching in ~/.cache/trailhead and gh api user only when GH_TOKEN or GITHUB_TOKEN is set). New: the secret-read guard lets jq filter text such as .env through and honours an opt-in secretRead.exempt list in the project's own .trailhead/config.json, exempting a path only when it is a tracked, unmodified, non-ignored regular file without symlinks and the Bash command is a single plain read; it checks this with read-only git calls (ls-files, ls-tree, check-ignore, hash-object without -w) and never reads the global config. The command-wrapper flag tables of the secret, install and unmodelled guards were merged into one shared table (also covering doas and env -S payloads), and the commit guard shares git's global-option list. Skill changes are process rules: a verify claim only the human can do (reason human-pending) keeps the ticket open and parks it needs-you; decisions record Ruled out and Revisit if lines; the audit adds a read-only revisit pass that proposes a new decision ticket only on an explicit yes. As before: the autonomous run commits locally and merges verified branches with git merge, never push, --force or reset --hard; skills install a commit-msg hook and offer a label-guard workflow, copy configured gitignored files such as .env into per-ticket workspaces and run project-configured preflight and UAT commands. No skill or agent pre-approves tools or bypasses permissions; the npm update path suggests npx -y @marcomigozzi/trailhead@latest as a command Claude would ask to run. Opt-in only: the status line (copied to the Claude config dir and set in settings.json on request) reads the OAuth token from .credentials.json to fetch plan usage from api.anthropic.com; design 'stitch' offers Google's Stitch MCP; plan_review (off by default) sends the ticket question and plan to external AI CLIs. The npm installer and external CLIs were not reviewed. No obfuscated or remotely loaded code; Node built-ins only.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of trailhead

Start and drive large projects as a map of tickets on GitHub Issues, resolving one at a time. Map-based onboarding + a discuss→plan→execute→verify engine with atomic commits, all on the Issues. Ships as a dispatcher plus cohesion-clustered skills over a shared core; depends on nothing beyond an authenticated gh CLI.

Made this mod? Add a badge to your README

modsforClaude badge for trailhead

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/trailhead.svg)](https://modsforclaude.com/mods/trailhead/)

← All mods