treework-manual

treework-manual is a skill for Claude Code, Codex from Johnny-xuan/TreeWork. It costs 68 tokens per session (2,355 once invoked), scanned A, original, MIT.

A persistent Markdown tree for organizing ongoing, multi-part work. A project root maps the whole effort, while branches hold related tasks, plans, progress and findings.

In plain words
What is it for?
Use it to structure a long project, divide work into coherent branches, record decisions and findings, and track what has been completed or remains.
Why use it?
It keeps direction and useful knowledge available when work spans many requests or the conversation is interrupted. It makes each line of work easier to resume and hand off.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/johnny-xuan/treework/treework-manual
Any agent
npx skills add Johnny-xuan/TreeWork --skill treework-manual
Clone the repo
git clone --depth 1 https://github.com/Johnny-xuan/TreeWork

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 treework-manual

README.md
[![agentmods](https://agentmods.dev/badge/skills/johnny-xuan/treework/treework-manual.svg)](https://agentmods.dev/skills/johnny-xuan/treework/treework-manual)
Your own site
<a href="https://agentmods.dev/skills/johnny-xuan/treework/treework-manual"><img src="https://agentmods.dev/badge/skills/johnny-xuan/treework/treework-manual.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,355 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.1 $0.00068 $0.02355
Opus 5 $0.00034 $0.01177
Sonnet 5 $0.00014 $0.00471
Haiku 4.5 $0.00007 $0.00235

Measured 6d ago against content hash 66d0ffc5c2cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

treework-manual 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 6d 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/treework-manual/SKILL.md · 293 lines

How it starts

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

TreeWork Manual

TreeWork gives an Agent a durable sense of place in ongoing work. It externalizes the work as a Tree: the root holds the whole project, each branch owns one coherent line of effort, and documents at the root and branches preserve intent, reality, and durable knowledge. Direction no longer depends on the current conversation remaining intact.

The Agent's unit of movement is not the next message; it is the current branch. A new request is first located in the Tree. The Agent then works from the root into the branch that owns the work, leaves that branch recoverable, returns to the root, and chooses the next branch. Requests may arrive in any order, but the work still moves through the Tree.

Start at the root
-> locate the right branch
-> work within that branch
-> leave a recoverable state
-> return to the root
-> choose the next branch

The Tree provides direction; the documents provide continuity:

PROJECT shows the global map.
Plan points toward intended work.
Progress records present reality.
Findings preserve what the work has taught the Agent.

TreeWork is a working mental model rather than a prescribed sequence. A branch may be a chapter, theme, research question, note collection, deliverable, phase, module, client, or another coherent scope that fits the project. The Tree may begin shallow and grow as understanding improves. The Agent maintains this topology and its state directly in Markdown so that people and other Agents can inspect, correct, and continue the same work.

Core Mental Model

  1. Locate before acting. Route each meaningful request to the root, the current branch, another existing branch, or a genuinely new branch before doing the work.
  2. Keep global and local state separate. Keep the root concise and navigational. Keep details inside the branch that owns them.
  3. Move instead of jumping. When attention must move elsewhere, first leave the current branch in a state that can be resumed without conversation history.
  4. Let reality correct the documents. Plans express intent; Progress records what is actually true. When artifacts, user direction, and older documents disagree, investigate and synchronize them instead of preserving a stale story.
  5. Grow the Tree only as needed. Sketch enough structure to orient the work, then refine it as understanding improves. Do not invent a large branch hierarchy merely to appear organized.

Read the full file on GitHub · 293 lines

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. 6d ago First seen · 293 lines · 68 tokens per session scan A 66d0ffc5c2cb

Subscribe to this mod's changes

treework-manual is a skill published in the GitHub repository Johnny-xuan/TreeWork (14 stars, last pushed 24d ago), licensed MIT. It adds 68 tokens to every session and 2,355 once invoked, about $0.0003 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