skills/first-tree-github-scan/SKILL.md
Agent skill for handling a single GitHub notification spawned by the First Tree github-scan daemon. Use when an agent needs to decide how to tag, comment on, escalate, or hand off a PR, issue, review request, mention, or CI event, and when it needs to choose between handling on GitHub or routing to `first-tree-sync` / `first-tree-write`. This is the agent behavior spec, not the human CLI operations guide for the daemon — for that, run `first-tree github scan --help`.
npx skillsauth add agent-team-foundation/first-tree first-tree-github-scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read these first:
../first-tree/SKILL.md../first-tree/references/functions.md../first-tree/references/anti-patterns.mdThis skill is loaded by the daemon every time a new GitHub notification arrives and a per-task agent is spawned. The agent's job is to:
github-scan:* label and post any necessary commentreply / human / sync / write)GITHUB_SCAN_RESULT: line so the daemon can dispatch
downstream workThis is not the operator-facing daemon guide. Humans running
first-tree github scan install / start / doctor should use the CLI
help, not this skill.
| Use this skill | Use a different skill |
| ------------------------------------------------ | ------------------------------------------------------------------------- |
| The daemon spawned an agent for one notification | A user wants to onboard a repo → first-tree-onboarding |
| You need the tag table or comment template | A user wants to audit drift → first-tree-sync |
| You need the route taxonomy | A user wants to write tree content from a source → first-tree-write |
| You need to decide whether to involve a human | An operator is debugging the daemon — use first-tree github scan --help |
github-scan:new — initial state; daemon also restores via auto-revert
github-scan:wip — agent has started real work
github-scan:human — a human must step in
github-scan:done — finished, no further action
Exactly one github-scan:* label per item at any time. Full lifecycle
and gh calls in references/tags.md.
reply — handle on GitHub: labels / review / comments
human — set github-scan:human and stop
sync — load first-tree-sync SKILL.md and continue under that skill
write — load first-tree-write SKILL.md and continue under that skill
Pick the most specific route that fits — see references/route-taxonomy.md for the selection algorithm and worked examples. Required final-line format:
GITHUB_SCAN_RESULT: status=<handled|skipped|failed> route=<reply|human|sync|write> summary=<one-line>
sync or write
is how tree changes happen. Direct tree writes here are forbidden.github-scan:* tags. The four are the contract.
Missing-label situations route to human with a skipped status.human only on the four triggers in
references/when-human.md. Reassurance and
size are not triggers.gh invocations, auto-revert mechanic, missing-label
fallbackGITHUB_SCAN_RESULT formattools
Canonical whitepaper and routing skill for First Tree. Explains what belongs in a Context Tree, how source or workspace roots, tree repos, and bindings relate, and how the current `first-tree tree` and `first-tree github scan` surfaces fit together. Use when you need shared First Tree concepts, need to choose between onboarding, sync, write, or GitHub notification workflows, or need the high-level CLI map before acting.
tools
One-shot onboarding command for First Tree. Drives a repo or workspace from "no first-tree" all the way to "tree bound, real content drafted, daemon running, agent templates confirmed" — end to end, in one skill invocation. Trigger this skill when the user invokes `/first-tree-onboarding`, says "onboard this repo to first-tree", "set up first-tree here", "complete first-tree onboarding", or runs first-tree against an unbound repo or workspace. Also trigger when re-running on an already-bound repo to refresh skills, draft missing content, or reverify the daemon. Use this skill instead of running `first-tree tree init` from raw memory; it owns role-by-role branching, the initial-content drafting phase the CLI does NOT do, and the final doctor checks.
development
Audit and repair drift between merged code and the Context Tree in both directions — tree→code (does code still support tree facts?) and code→tree (does the tree register everything code now contains?). Use when the tree may be stale, wrong, outdated, or missing coverage for recent code changes; after a large merge; before release; on a freshly onboarded tree; or when a GitHub notification was routed `route=sync`. Sync owns broad drift discovery, structural skeleton repair, and substantive write hand-off across one tree. Use `first-tree-write` instead when the user already gave you a specific PR / doc / note to write into the tree.
tools
Operate the `first-tree github scan` CLI — the GitHub notification daemon and inbox runtime. Use whenever you need to run, start, stop, inspect, poll, or debug github-scan; view or respond to GitHub-triggered work from the terminal; or wire up the github-scan statusline hook.