Skip to content
Agentmart
Submit a tool

purpose-tree

The purpose-tree method — how to read, write, and check a project's tree of purposes (why each part exists) separately from its implementations (what…

Skill by JavanC

IndexedMIT★ 15
Write a review

Chalk Labs

Need help deploying purpose-tree?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/javanc-purpose-tree

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The purpose-tree method — how to read, write, and check a project's tree of purposes (why each part exists) separately from its implementations (what currently realizes them). Use when creating, reading, editing, or validating purpose-tree.yaml or architecture.yaml, or when deciding whether a change serves a project's purposes.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/purpose-tree

What's inside

Skill name
purpose-tree
Description
The purpose-tree method — how to read, write, and check a project's tree of purposes (why each part exists) separately from its implementations (what currently realizes them). Use when creating, reading, editing, or validating purpose-tree.yaml or architecture.yaml, or when deciding whether a change serves a project's purposes.
License
MIT
Instructions
83 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (13)

  • SKILL.md
  • schema.md · references/
  • tree.cjs · scripts/
  • validate.cjs · scripts/
  • purpose-tree.yaml · templates/
  • bad-duplicate-id.yaml · tests/fixtures/
  • bad-object-without-purpose.yaml · tests/fixtures/
  • bad-planned-no-reason.yaml · tests/fixtures/
  • bad-sub-no-id.yaml · tests/fixtures/
  • bad-weak-check.yaml · tests/fixtures/
  • legacy-goals.yaml · tests/fixtures/
  • valid.yaml · tests/fixtures/
  • validate.test.cjs · tests/

SKILL.md (first lines)

A project's **purpose tree** records *why* each part of the project exists. Implementations
change often; purposes rarely do. Keeping them apart lets you replace any implementation
without losing sight of what it was for.

## Where the tree lives

- In the project, never in this skill: `purpose-tree.yaml` at the project root.
- If it is missing, look for the legacy name `architecture.yaml`. Read and update whichever
  exists; do not rename it unless asked.
- Create the file lazily: only when the human states the first (root) purpose.

## Purpose, metric, realization

Each node separates three things that change at different speeds:

| Question | Field | Example | Changes |
|---|---|---|---|
| **Why** | `purpose` | "The user never drops a commitment, without having to remember it." | rarely |
| **What to achieve** | `metrics[].healthy` | "0 dropped commitments per week" | sometimes |
| **How, right now** | `realized_by` | "a morning brief at 08:00" | often |

If a `purpose` names a number or target, move it to `metrics`. If it names a tool, file, or
schedule, move it to `realized_by`. Then ask what it is *for*.

## Node format (v3.0)

A purpose is realized by a list of means. A means is either a **concrete implementation**
(a string) or a **sub-purpose** (an object with `purpose`). One list, two kinds — an item
with a `purpose` field is a sub-purpose; anything else is an implementation.

```yaml
version: "3.0"
root:
  id:            root
  purpose:       Why this exists (one sentence)
  status:        active | paused | planned   # default active; retired nodes are deleted
  status_note:   Current state, known gaps
  paused_reason: Required when paused or planned: why, and how to resume
  metrics:                                   # list of block mappings, not {...}
    - name: …
      source: …
      healthy: …
  tests:         [test file patterns]
  health_check:                              # exit 0 = healthy
    command: …
    expected: …
  realized_by:
    - scripts/capture.js                     # implementation
    - id: daily_awareness                    # sub-purpose: same node format, recursive
      purpose: Know what matters before the day starts
      realized_by:
        - morning brief job
```

- Every sub-purpose needs a unique `id` so it can be referenced.
- All items in `realized_by` are needed together (AND). Alternatives (OR) are not modeled yet.
- If a sub-purpose is later replaced by a single tool, swap the object for a string.
- **Legacy trees:** a `goals:` map (key = id, value = node) is read as sub-purposes
  appended to `realized_by`. Do not convert unless asked.

Field details and examples: [references/schema.md](references/schema.md).
Blank starting tree: [templates/purpose-tree.yaml](templates/purpose-tree.yaml).

## Top-down rule

Two kinds of node, two kinds of authority:

1. **Purposes** (the root and every sub-purpose, at any depth) belong to the human. You may
   draft one — its wording, or a new, split, merged or removed purpose — with each line labeled
   by its source (a doc line or "inferred from code"). The human confirms each by an explicit
   answer. Never write or reword a purpose the human has not confirmed.
2. **Implementations** (the strings in `realized_by`) are yours to propose; the human accepts
   or rejects, and "accept all" covers them.
3. A child must serve its parent. If you cannot say how, it does not belong there.
4. Purposes change only in an explicit review — never as a side effect of daily work.

## Health rules

- **No false greens.** A `health_check` must fail when the data it judges does not exist.
  `test -f`, `ls | head`, `wc -l`, or a `jq` that passes on an empty array are not checks.
- **No empty husks.** A `paused` or `planned` node must have a `paused_reason`.
- **No orphans.** Every node except root sits under a parent purpose.

## Validate

```bash
node <this-skill>/scripts/validate.cjs [path-to-tree]
```

Exit 0 = valid; exit 1 prints each problem. Run it after every edit to the tree.

From JavanC/Homunculus, MIT.

Signals

Stars
15
Forks
2
Open issues
0
Last commit (this folder)
Oct 21, 2026 (10 days ago)
Last release
Jun 2, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JavanC

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get purpose-tree running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying purpose-tree?

CallGet help
Cite this page

purpose-tree skill. Agent Mart. https://agentmart.dev/skills/javanc-purpose-tree (last updated 2026-10-24)