first-tree-onboarding

first-tree-onboarding is a skill for Codex from first-tree-ai/first-tree-legacy. It costs 165 tokens per session (4,223 once invoked), scanned C, original, Apache-2.0.

An automated setup process for First Tree, a system for organising repository knowledge and agent workflows. It takes a repository or workspace from no First Tree setup to a checked, content-filled, running setup.

In plain words
What is it for?
Onboarding a repository or workspace to First Tree, creating its initial tree and organisation files, verifying them, checking skill setup, and optionally enabling GitHub scanning.
Why use it?
It removes the repeated manual work of binding the repository, creating required content, checking the setup, and confirming agent templates and optional background services.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions AGENTS.md.

Good fit Onboarding a repository or workspace to First Tree, creating its initial tree and organisation files, verifying them, checking skill setup, and optionally enabling GitHub scanning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/first-tree-ai/first-tree-legacy/first-tree-onboarding
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 first-tree-ai/first-tree-legacy --skill first-tree-onboarding
Clone the repo
git clone --depth 1 https://github.com/first-tree-ai/first-tree-legacy

Made for: Codex.

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 first-tree-onboarding

README.md
[![agentmods](https://agentmods.dev/badge/skills/first-tree-ai/first-tree-legacy/first-tree-onboarding.svg)](https://agentmods.dev/skills/first-tree-ai/first-tree-legacy/first-tree-onboarding)
Your own site
<a href="https://agentmods.dev/skills/first-tree-ai/first-tree-legacy/first-tree-onboarding"><img src="https://agentmods.dev/badge/skills/first-tree-ai/first-tree-legacy/first-tree-onboarding.svg" alt="Measured on agentmods" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,223 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.00165 $0.04223
Opus 5 $0.00082 $0.02112
Sonnet 5 $0.00033 $0.00845
Haiku 4.5 $0.00016 $0.00422

Measured 8d ago against content hash 59340874d559, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

first-tree-onboarding 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 8d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| `tree verify` fails after Phase B | Print the failures, stop. Most common cause: the sibling tree dir was created but `tree init` was interrupted mid-write. Recovery: `rm -rf <tree_root>` then re-run `tree init`. **Alw
skills/first-tree-onboarding/SKILL.md · 234 lines

How it starts

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

First Tree Onboarding (one-shot command)

When the user invokes this skill, you (the agent) drive onboarding end to end. Phases A→F below run in order. Within a phase, execute without asking unless the action is irreversible or genuinely ambiguous (see "When to ask the user"). At the end, print the wrap-up summary in Phase F.

Read first: ../first-tree/SKILL.md and ../first-tree/references/structure.md. They define the tree concepts the rest of this skill assumes.

Success criteria (do not claim done until ALL pass)

  1. first-tree tree inspect --json (from the source repo) reports role: source-repo-bound or workspace-root-bound.
  2. The bound tree exists on disk, and first-tree tree verify --tree-path <tree_root> exits 0.
  3. The tree's NODE.md, members/owner/NODE.md, and .first-tree/org.yaml contain real content (no remaining placeholder strings — see references/content-drafting.md §Detection).
  4. first-tree tree skill doctor --root <source_root> exits 0.
  5. If the user opted in to the daemon: first-tree github scan doctor exits 0.
  6. The agent has confirmed that Tier 0's validate.yml exists, explained that Tier 1 lives in first-tree-hub, and either skipped Tier 2 or run first-tree tree automation install --tier 2 --tree-path <tree_root> and recorded the returned stage.
  7. The user has explicitly confirmed which agent templates to keep in .first-tree/agent-templates/.

If any of these fails, stop and report — never silently mark onboarding complete.

When to ask the user (default = act)

Ask only before:

  • Pushing a branch or PR to a remote (always show diff first).
  • Choosing tree mode when both dedicated and shared make sense.
  • Recursing into nested repos (--recursive cascade) when the workspace contains submodules, vendored code, or private sibling repos.
  • Creating a new GitHub repo for the tree (gh repo create) — visibility (public/private) must be confirmed.
  • Deleting partial state to recover from a corrupt binding.

Read the full file on GitHub · 234 lines

Files

What ships with it

8 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. 8d ago First seen · 234 lines · 165 tokens per session scan C 59340874d559

Subscribe to this mod's changes

first-tree-onboarding is a skill published in the GitHub repository first-tree-ai/first-tree-legacy (47 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 165 tokens to every session and 4,223 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.