first-tree-seed

first-tree-seed is a skill for Claude Code, Codex from first-tree-ai/first-tree. It costs 142 tokens per session (15,423 once invoked), scanned A, original, Apache-2.0.

A bootstrap tool for creating the first structure in a team’s Context Tree from readable source repositories. A Context Tree is an organized collection of project knowledge for an agent or team.

In plain words
What is it for?
For initializing an absent tree or filling a bound-but-empty one with top-level sections, second-level sections, and initial leaf nodes from source repositories.
Why use it?
It gives a new or empty tree an initial hierarchy and source-based content, so later updates have an existing structure to build on.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/first-tree-ai/first-tree/first-tree-seed
Any agent
npx skills add first-tree-ai/first-tree --skill first-tree-seed
Clone the repo
git clone --depth 1 https://github.com/first-tree-ai/first-tree

Made for: Claude Code, 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-seed

README.md
[![agentmods](https://agentmods.dev/badge/skills/first-tree-ai/first-tree/first-tree-seed.svg)](https://agentmods.dev/skills/first-tree-ai/first-tree/first-tree-seed)
Your own site
<a href="https://agentmods.dev/skills/first-tree-ai/first-tree/first-tree-seed"><img src="https://agentmods.dev/badge/skills/first-tree-ai/first-tree/first-tree-seed.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,423 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00142 $0.15423
Opus 5 $0.00071 $0.07711
Sonnet 5 $0.00028 $0.03085
Haiku 4.5 $0.00014 $0.01542

Measured 5d ago against content hash 880a8e9a0750, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

first-tree-seed 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 5d 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.

skills/first-tree-seed/SKILL.md · 1,229 lines

How it starts

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

First Tree — Seed

Read this skill before drafting the first content into a Context Tree that has no domain structure yet. It owns the bootstrap from "the tree has no domain structure — either none exists, or a bound-but-empty one" to "the tree has real top + second level structure plus initial leaf nodes drawn from readable source repos". It first resolves the tree's state, then — for a tree that needs building — creates the repo with first-tree tree init when none exists (see Resolve the tree's state). Every subsequent write — one PR/MR at a time, one decision at a time — belongs to first-tree-write, not here.

When To Use This Skill

Use first-tree-seed Use a different skill
The team has no tree yet, or a bound tree with no normal domain structure per the generated policy's content classes The tree already has a normal domain structure → first-tree-write (incremental source-driven write)
First content pass on resolved readable sources Broad maintenance or drift-audit work on an existing tree
Invoked by name — by a human, an agent, or an onboarding kickoff prompt (see Resolve the tree's state) Not an org admin, or the selected provider's local gh / glab identity is unauthenticated, and the team has no tree

The skill is single-shot per tree setup: once the tree has domain structure, a new or unrelated seed request refuses and routes further work through first-tree-write or a focused maintenance task. The one exception is a verified Phase 2 continuation recovered from the merged Tree's durable Seed progress and exact source ledger. It may run in a new process, agent, or chat; it is completion of the same seed, not a second seed.

Read the full file on GitHub · 1,229 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. 5d ago First seen · 1,229 lines · 142 tokens per session scan A 880a8e9a0750

Subscribe to this mod's changes

first-tree-seed is a skill published in the GitHub repository first-tree-ai/first-tree (141 stars, last pushed yesterday), licensed Apache-2.0. It adds 142 tokens to every session and 15,423 once invoked, about $0.0007 per session on Opus 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-30.

Related

Other skills, from other repositories

first-tree-sync

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…

first-tree-ai/first-tree-legacy · 137 tokens

first-tree-write

Write Context Tree updates from explicit source material — code PRs, design docs, meeting notes, raw text. Use when the user gives you a concrete source and wants the right durable tree change drafted, linked, and reviewed. This skill is source-driven and targeted; use first-tree-sync instead for broad drift audits…

first-tree-ai/first-tree-legacy · 73 tokens

first-tree

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…

first-tree-ai/first-tree-legacy · 90 tokens

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens