Skip to content
Back to skills

01 Teach Yourself Protocol

ASecurity

Structured protocol for an OpenClaw agent to learn new skills, APIs, and business processes — reads all files in a skill folder in declared order, extracts key facts, and stores them correctly so knowledge persists across sessions.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
documentationgobashapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add trevorotts1/openclaw-onboarding --skill 01-teach-yourself-protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 01 Teach Yourself Protocol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 01 Teach Yourself Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trevorotts1-01-teach-yourself-protocol/badge)](https://www.skillsdirectory.com/skills/trevorotts1-01-teach-yourself-protocol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: teach-yourself-protocol
description: Structured protocol for an OpenClaw agent to learn new skills, APIs, and business processes — reads all files in a skill folder in declared order, extracts key facts, and stores them correctly so knowledge persists across sessions.
---

# Teach Yourself Protocol (TYP)

## What This Skill Is About

The Teach Yourself Protocol is the foundation of how every OpenClaw agent learns new
things. It is a structured, step-by-step process for taking in new knowledge - whether
it is an API reference, a business process, a client preference, or a tool guide - and
storing it in the right place so the agent can find it and use it in future sessions.

Without this protocol, agents either dump everything into their core workspace files
(which makes them bloated and slow) or forget what they learned entirely (because AI
agents start fresh every session with no built-in memory). TYP solves both problems.

## When This Skill Triggers

**Explicit triggers** - the user says things like:
- "Teach yourself this"
- "Learn this"
- "Train yourself on this"
- "Memorize this"
- "Save this for future reference"

**Implicit triggers** - the agent should auto-detect these:
- User shares a large document (50+ lines of structured reference material)
- User provides corrections or updated information about a tool or process
- User explains how something works in detail
- User shares credentials, account structures, or system architecture
- User shares a file saying "here you go" or "use this" without further instructions

**Important:** Every time TYP activates, the agent MUST announce it to the user before
doing any TYP work. Never run TYP silently.

## What It Covers

- **Three-Layer Knowledge Architecture** - one-to-two-sentence pointers in core files (Layer 1),
  deep reference files in the master files folder (Layer 2), and organized folder
  structures for large topics like APIs (Layer 3)
- **The Decision Tree** - a step-by-step process: understand the knowledge, assess its
  size, check for conflicts with existing knowledge, create the right files, write
  core-file pointers, and confirm to the user
- **Conflict Resolution** - what to do when new knowledge replaces, expands, or
  contradicts something the agent already knows
- **Priority Tagging** - CRITICAL, HIGH, STANDARD, or REFERENCE, so the agent knows
  what matters most
- **API Documentation** - special handling for APIs including folder structures,
  README indexes, and endpoint organization
- **Skills and Instruction Files** - every skill must have a matching instruction file
- **Versioning** - tracking when knowledge was learned and when it was last verified
- **Cross-Referencing** - linking related deep files to each other
- **Anti-Bloat Rules** - keeping core files lean and preventing duplicated content
- **Common Mistakes** - 10 real mistakes agents make and how to avoid them
- **Self-Installation** - how the protocol installs itself using its own rules

## Files in This Folder

Read them in this order:

1. **SKILL.md** (this file) - overview and orientation
2. **teach-yourself-protocol-full.md** - the complete protocol with all 19 sections,
   decision trees, examples, and checklists. This is the authoritative reference.
3. **INSTRUCTIONS.md** - step-by-step guide for executing TYP
4. **INSTALL.md** - how to install TYP into a new agent's workspace
5. **EXAMPLES.md** - worked examples showing TYP in action
6. **CORE_UPDATES.md** - the pointers and short always-on rules to add to each core workspace file
7. **MIGRATION-TYP.md** - self-heal migration procedure for existing clients with bloat
8. **teach-yourself-protocol.skill** - the skill definition file

## Self-Heal Migration (for Existing Clients)

If an existing client workspace was set up before v10.15.37 (Mac) / v10.16.36 (VPS),
it may have bootstrap file bloat or documents stored in wrong locations. Run the
migration script to detect and fix:

```bash
bash scripts/typ-migrate.sh --dry-run    # preview what would change
bash scripts/typ-migrate.sh              # apply remediation
```

See **MIGRATION-TYP.md** for the full procedure and platform-detection logic.

## Prerequisites

None. This is the very first skill installed for any OpenClaw agent. All other skills
depend on it. If TYP is not installed, the agent has no structured way to learn or
store anything.

## Key Things the Agent Needs to Know

1. **Core files stay lightweight.** Never dump full API docs or long SOPs into
   AGENTS.md, TOOLS.md, or MEMORY.md. Write a pointer of one line, at most two
   sentences, that says WHAT it is, WHERE the deep file lives, and WHEN to read it.
   Always-on rules (safety rules, never-do rules, identity essentials, hard
   constraints) stay inline in the core file, shortened. Skill 70 (Lean Core
   File System, folder 70-lean-core-file-system) owns core-file size and the
   weekly core-file audit.

2. **The pointer test.** A good pointer names WHAT it is, gives the exact WHERE
   (full path), and lists concrete WHEN trigger words a user would say. If the WHEN
   is vague, the agent never opens the file, so the pointer is too thin. Example:
   "QuickBooks Online: rules and playbook live at <master-files>/playbooks/quickbooks-online.md.
   Read it whenever the user mentions QuickBooks, invoices, or bookkeeping."

3. **Deep files go in ~/Downloads/openclaw-master-files/.** This folder (or whatever
   the user has named it) holds the complete, untruncated knowledge organized into
   subfolders: apis/, skills/, processes/, references/.

4. **Always check for conflicts first.** Before writing anything new, search all core
   files and the master files folder for existing knowledge on the same topic. Never
   create duplicates. Never leave contradictory instructions in different files.

5. **Update multiple core files.** Learning something usually affects more than one
   file. An API reference might need entries in TOOLS.md (how to use it), MEMORY.md
   (that it was learned), and AGENTS.md (rules about when to use it). Check every
   core file independently.

6. **Always confirm to the user.** After completing TYP, tell the user what you
   learned, where you stored it, which core files were updated, and demonstrate your
   working knowledge by summarizing the key points.

7. **User override always wins.** If the user says "put it all in TOOLS.md" even if
   it is 200 lines, do it. Note the tradeoff but follow their instruction.

Files in this skill

  • CHANGELOG.md3.8 KB
  • CORE_UPDATES.md2.3 KB
  • EXAMPLES.md3.1 KB
  • INSTALL.md4 KB
  • INSTRUCTIONS.md8.2 KB
  • MIGRATION-TYP.md7.9 KB
  • QC.md6.4 KB
  • SKILL.md6.3 KB
  • qc-teach-yourself-protocol.sh2.5 KB
  • skill-version.txt7 B
  • teach-yourself-protocol-full.md57.7 KB
  • teach-yourself-protocol.skill26.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.