PTENES
MODULE 6.2

🧬 Taproot: skills tree (meta-skill)

Not a skill that performs a task, but one that teaches the agent to improve over time. A CLAUDE.md file that gives your agent a name, class, level, XP, and a skill tree you can open in your browser. Let’s explore the three benefits, the workflow, and the vision for the future.

6
Topics
55
Minutes
Advanced
Level
Concept
Type
🧬 Meta-skill (CLAUDE.md) — governs the ecosystem skill · Lv2Common skill · Lv5Rare skill · Lv3Uncommon skill · Lv8Legendary Agent XP—increases when skills are created and used

Illustrative diagram · the meta-skill is the box that contains and connects an ecosystem of skills; each skill has a level and rarity, and the collection accumulates XP.

1

🧬 What is a meta-skill

So far, you’ve built skills that do things. One meta-skill is different: it doesn’t perform a domain task—it governs how other skills come about, gain weight, and connect. Taproot is exactly that: a CLAUDE.md that teaches the agent to improve over time.

🎮 The agent becomes a character

Taproot gives your agent RPG attributes — and this isn't decoration; it's incentive mechanics:

  • •Name and class — an identity that persists across sessions.
  • •Level and XP — measurable progress that grows as skills are created and used.
  • •Skills tree — an interconnected ecosystem you open in your browser.

💡 Why CLAUDE.md, not SKILL.md

A common skill (SKILL.md) is discovered and triggered by context. A meta-skill lives in the CLAUDE.md — the file that is always in the agent’s context for that project. It’s the right place for rules that should govern all behavior, not just one task. That’s why it “governs” instead of “executes.”

Governs

Doesn’t execute tasks.

CLAUDE.md

Always in context.

RPG

Level, XP, class.

Tree

Visible in the browser.

2

⚡ Benefit 1: auto-generated skills

The first benefit is at the heart of the concept: self-generating skills. When the agent encounters the same error twice, it creates a permanent fix. When it notices a recurring pattern, it formalizes it as a reusable skill. Skills earn XP, have rarity levels (from Common to Legendary), and branch out into a connected ecosystem.

1

Error caught twice → permanent fix

The first time, it’s an accident. The second time, the agent recognizes it as a pattern and creates a permanent rule to never make that mistake again.

2

Recurring pattern → formalized skill

Something you do repeatedly becomes a skill with a name, description, and triggers—part of your toolkit.

3

XP creates weights that incentivize the loop

XP scores generate weights that encourage the skill-building cycle — the system is designed to feed itself.

RarityWhat it usually means
CommonSmall fix, used early and often.
Uncommon / RareA domain pattern that proved useful across several cases.
LegendaryCore skill, widely used and connected to several others.

💡 The golden rule: "twice"

The threshold of “hitting the same error twice” is deliberate. Once may be noise; twice is a signal. Use this same trigger in your meta-skill—it prevents creating a skill for everything (noise) and ensures that anything turned into a skill is genuinely recurring.

3

📐 Benefit 2: plans before building

The second benefit combats the most common agent habit: jumping into coding based on false assumptions. Taproot runs a gap analysis on its own assumptions and proposes a build plan before writing a single line of code. It asks what it doesn’t know instead of guessing.

✓ Agent that plans

  • ✓Does a gap analysis of its own assumptions.
  • ✓Propose a build plan before coding.
  • ✓Asks explicitly about what it doesn't know.
  • ✓You fix the direction in the plan, at a low cost.

✗ Agent that guesses

  • ✗Assumes requirements and starts writing code.
  • ✗Only discovers the gaps when the build breaks.
  • ✗You fix the direction in the finished code, at a high cost.
  • ✗Rework becomes the norm.

🔎 Gap analysis in practice

The agent lists what it needs to know, marks what it already knows, identifies what’s missing, and turns the gaps into specific questions. Only then does it propose a plan. It’s the same principle as “measure twice, cut once”—applied to software.

Assumptions

Listed, not hidden.

Gaps

They become questions.

Plan

Before the code.

Fix

Cheap, within budget.

4

🌳 Benefit 3: a tree you can see

The third benefit is what grabs your attention: a skills tree you can actually see. Open the generated HTML and follow the agent’s growth—a profile card, an arsenal of skills, and a network graph showing how the skills connect. Levels, XP, class progression, all visual.

Illustrative recreation of the Skill Tree page (not a real screenshot):

skill-tree.html
PROFILE
Morpheus · Architect
Level 7
XP 7,200 / 10,000
ARSENAL
strict-modeLegendary
null guardRare
api-paginateCommon
GRAPH

💡 Why making progress visible matters

When you see When you can see what the agent knows—and what’s missing—you make better decisions: where to invest, which skill is still weak, and which ones connect. Visibility changes behavior. It’s the same reason we have dashboards instead of raw logs.

Profile

Name, class, level.

Arsenal

Skills by rarity.

Graph

How they connect.

Visual

XP and progression.

5

📥 How to Use: From CLAUDE.md to the Tree

The adoption process is surprisingly short for something so powerful. Get the CLAUDE.md from the repository, drop it in the project root, open Claude Code, do a ~30-second onboarding, build something, and open the tree.

1

Drop the CLAUDE.md in the root

The file goes in your project’s root directory. From then on, it’s always in the agent’s context for that repository.

2

Open Claude Code and complete the onboarding

~30 seconds: the agent gets a name, class, and initial state. You don't need to configure anything manually.

3

Build something → open the skill tree

Work as usual. The agent captures patterns and earns XP. Open the visualization page and watch the tree grow.

Prompt · start the meta-skill
# Coloque o CLAUDE.md na raiz e abra o Claude Code.
# Depois, dispare o onboarding:

"Inicie o onboarding do Taproot: me dê nome e classe ao agente,
crie o estado inicial e me explique como ganho XP."

# Trabalhe normalmente. Quando quiser ver a evolução:
"Abra/atualize a árvore de skills (skill tree)."

🧩 Extras included

The repository also includes the Skill Tree preview page and one optional multi-agent orchestration add-on — what naturally connects to the next module’s topic (memory between agents).

6

🔮 The Vision for the Future

It’s worth looking at where the idea could go—not because all of this exists already, but because thinking about the vision helps you design your own meta-skill with room to grow. The proposal points in four directions.

🛒 Skills marketplace

Share and sell individual skills generated by the agent. Import/export with a single file: “this is the skill my agent created after hitting the same error 3 times.”

👤 Community profiles

Everyone gets a showcase featuring their agent’s character, arsenal, and stats. Browse other people’s agents and build on what the community learns.

⚔️ Agent comparison

Overlay skill trees side by side. Compare your agent's growth with others, in RPG-style stat cards.

🧬 Skill fusion

When two skills frequently trigger together, they merge into a composite skill. The agent doesn’t just collect skills—it synthesizes them.

💡 What to bring to your meta-skill

Even without a marketplace, three ideas are applicable today: (1) give the agent a persistent identity, (2) encourage the creation of skills with some kind of scoring, and (3) make progress visible. Start small; the big vision provides direction.

🏋️ Hands-on exercises

1

Define the "twice" rule

Write, in one sentence, the rule that will trigger skill creation in your agent. Also define what counts as the "same error" in your domain.

2

Design the XP scheme

Define how much XP each action earns (creating a skill, using an existing skill, fixing an error) and the level thresholds. List 3 rarities and the criteria for each.

3

Create a runnable meta-skill CLAUDE.md

Write a CLAUDE.md the minimum needed to give the agent an identity and the skill creation rule. Skeleton:

# Agent: {nome} · Class: {classe} · Level: 1 · XP: 0 ## Evolution rule - Hit the same error twice? Create a permanent fix in `.agent/skills/{nome-da-skill}.md` and record +50 XP. - Recurring pattern (3x)? Formalize it as a skill (+100 XP). - Before building: run a gap analysis and propose a plan. Ask about what you don't know; don't assume. ## State (update each session) - Skills: (list with level and rarity) - Total XP: (number) · Next level at: (number) ## Visualization - When asked for "skill tree", generate/update `skill-tree.html` with profile + arsenal + connection graph.

Save as CLAUDE.md at the root of a test project, open Claude Code and build anything. Then ask "open the skill tree".

📌 Module summary

✓
Meta-skill — governs how skills are created; lives in CLAUDE.md, always in context.
✓
Benefit 1 — auto-generated skills: an error repeated twice becomes a fix; a pattern becomes a skill; XP moves the loop forward.
✓
Benefit 2 — plans before building: gap analysis and a plan before the code.
✓
Benefit 3 — visible tree: profile, arsenal, and connection graph in HTML.
✓
Usage and vision — 30s onboarding; the future points to a marketplace, profiles, and skill merging.

Next module:

6.3 — 🧠 Multi-Agent Memory + /sessionend