Logo: Openclaw Workspace

Openclaw Workspace

Communautéit
win4r
openclaw-workspace

Use when maintaining or optimizing OpenClaw workspace files — AGENTS.md, TOOLS.md, SOUL.md, USER.md, IDENTITY.md, HEARTBEAT.md, BOOT.md, MEMORY.md, and related checklists and memory files. Covers workspace auditing, token budget analysis, new agent workspace setup from scratch, memory distillation, and cross-file consistency reviews.

Iwwersiicht

Editeurwin4r
Repositoryopenclaw-workspace
Skill-Nummopenclaw-workspace
Stären
288
Forks
32
Matgeliwwert Dateien
3
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    win4r huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Openclaw Workspace an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/win4r/openclaw-workspace/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/win4r/openclaw-workspace.git \
  .claude/skills/openclaw-workspace
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Openclaw Workspace an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Openclaw Workspace automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Openclaw Workspace net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

OpenClaw Workspace Skill

Overview

OpenClaw workspace files form the agent's "soul and memory" — they are injected into the system prompt on every turn (or on relevant turns), giving the agent its identity, behavioral rules, environmental knowledge, and long-term memory. Managing these files well is critical: bloat wastes tokens, redundancy creates confusion, and stale content leads to bad decisions.

Token budget: 20,000 chars per file, ~150,000 chars total across all bootstrap files.

File Inventory

FilePurposeLoaded WhenSub-agents?
AGENTS.mdBoot sequence, checklists, behavioral rulesEvery turn (all agents)Yes
SOUL.mdPersona, tone, values, continuity philosophyEvery turn (all agents)Yes
TOOLS.mdEnv-specific notes (SSH, TTS, cameras, devices)On-demand reference (part of bootstrap set)Yes
USER.mdHuman profile, preferences, relationship contextEvery turn (all agents)Yes
IDENTITY.mdName, emoji, avatar, self-descriptionEvery turnYes
HEARTBEAT.mdPeriodic check tasks and health routinesEvery heartbeat turnDepends
BOOT.mdStartup actions (requires hooks.internal.enabled)On gateway startupNo
BOOTSTRAP.mdFirst-time onboarding script — delete after useNew workspaces onlyNo
MEMORY.mdLong-term curated facts and iron-law rulesMain sessions onlyNo
memory/YYYY-MM-DD.mdDaily session logsLoaded per AGENTS.md boot sequenceNo
checklists/*.mdStep-by-step ops guidesReferenced in AGENTS.md, loaded on demandNo

Security rule: MEMORY.md must NEVER be loaded in group chats or sub-agent sessions — it contains private context that should not leak.

For full details on each file's design, anti-patterns, and section structure, see references/workspace-files.md.

Workspace Paths

PathPurpose
~/.openclaw/workspace/Default workspace for main agent
~/.openclaw/workspace-<profile>/Per-profile workspace (multiple agents)
~/.openclaw/workspace/vendor/OpenClaw-Memory/Vendor-managed base files (synced from upstream)
~/.openclaw/workspace/checklists/Checklist files referenced from AGENTS.md
~/.openclaw/workspace/memory/Daily session logs
~/.openclaw/workspace/docs/On-demand documentation (NOT auto-loaded)

Config key: agents.defaults.workspace or per-agent agents.list[].workspace.

Workflow: Audit Existing Workspace

Use when workspace files may be bloated, stale, or redundant.

  1. Read all active files — AGENTS.md, SOUL.md, TOOLS.md, USER.md, IDENTITY.md, HEARTBEAT.md, BOOT.md, MEMORY.md
  2. Check character counts:
    bash
    wc -c ~/.openclaw/workspace/AGENTS.md
    wc -c ~/.openclaw/workspace/SOUL.md
    wc -c ~/.openclaw/workspace/TOOLS.md
    wc -c ~/.openclaw/workspace/USER.md
    wc -c ~/.openclaw/workspace/IDENTITY.md
    wc -c ~/.openclaw/workspace/MEMORY.md
    # Or all at once:
    wc -c ~/.openclaw/workspace/*.md
  3. Flag files over 10,000 chars — prime candidates for trimming or offloading to docs/
  4. Check for redundancy — same fact in SOUL.md and AGENTS.md? Same tool note in TOOLS.md and MEMORY.md?
  5. Check for staleness — outdated SSH hosts, old tool names, deprecated rules, historical context that's no longer needed
  6. Check MEMORY.md discipline — should contain curated facts, lessons learned, decisions, and critical rules — not raw session summaries or task-specific notes
  7. Propose targeted edits — trim, move to docs/, or restructure

See references/optimization-guide.md for specific optimization strategies.

Workflow: Set Up New Workspace

Use when creating a workspace for a new agent from scratch.

File creation order (matters for boot sequence to work):

  1. SOUL.md — persona and values first; everything else follows from identity
  2. AGENTS.md — boot sequence, safety rules, checklist table
  3. IDENTITY.md — name, emoji, avatar
  4. USER.md — human profile and preferences (main agent only)
  5. TOOLS.md — environment-specific notes (add as you discover env details)
  6. MEMORY.md — start minimal; only truly universal iron laws
  7. HEARTBEAT.md — periodic health checks (optional, add when needed)
  8. BOOT.md — startup hooks (optional, only if hooks.internal.enabled = true)
  9. BOOTSTRAP.md — first-run onboarding (optional; delete after first successful startup)

Minimal viable workspace: AGENTS.md + SOUL.md + TOOLS.md. Everything else is optional.

BOOTSTRAP.md note: If creating a BOOTSTRAP.md, include a self-deletion instruction at the end:

## Final Step
Delete this file: exec `rm ~/.openclaw/workspace/BOOTSTRAP.md`

Workflow: Memory Distillation

Use periodically (weekly or monthly) to keep MEMORY.md lean.

  1. Read all recent daily logs: memory/YYYY-MM-DD.md files from the past period
  2. Identify candidates for promotion to MEMORY.md:
    • Rules violated more than once (recurring mistakes)
    • Hard-won discoveries that aren't in skills docs
    • Env-specific facts that should always be in context (not left to memory_search recall)
  3. Check what's already in MEMORY.md — avoid duplicates
  4. Draft additions — use iron-law format: concise, action-oriented, unambiguous
  5. Archive old daily logs — move files older than 30 days to memory/archive/ or delete
  6. Check MEMORY.md total size — keep under 10,000 chars; if larger, review for rules that are now stable enough to move to a skill's SKILL.md instead

Do NOT put in MEMORY.md:

  • Long narratives or session summaries
  • Things already covered in skill docs
  • Anything specific to a single past task
  • Episodic or task-specific memories (store those via memory_search/SQLite instead)

Workflow: Add or Update a Checklist

Use when adding a new high-risk operation type or updating an existing checklist.

  1. Create or edit checklists/<operation-name>.md
  2. Structure:
    markdown
    # Checklist: <Operation Name>
    
    ## Pre-flight
    - [ ] Step 1
    - [ ] Step 2
    
    ## Execution
    - [ ] Step 3
    
    ## Verification
    - [ ] Confirm outcome
    - [ ] Log result in memory
  3. Register in AGENTS.md — add a row to the checklists table:
    markdown
    | <Operation description> | `checklists/<filename>.md` |
  4. Keep checklists short — if a checklist exceeds ~50 lines, it's probably trying to be documentation; move narrative content to docs/ and keep only the actionable steps

Workflow: Update TOOLS.md

Use when adding a new tool, device, or environment capability.

TOOLS.md = environment-specific cheat sheet. It should contain:

  • SSH hosts and common commands for this specific machine
  • TTS provider, voice IDs, and any quirks
  • Camera IDs or device names for this setup
  • Node device IDs or names
  • Any local aliases or shortcuts that aren't obvious

Do NOT put in TOOLS.md:

  • General skill documentation (use skill SKILL.md files)
  • Things that are the same across all environments
  • Installation instructions (use docs/)

Format conventions:

markdown
# TOOLS.md - Local Notes

## SSH
- Main server: `ssh user@hostname`

## TTS
- Provider: Edge
- Voice: zh-CN-XiaoxiaoNeural

## Cameras
- Living room: node-id `abc123`, device `camera-0`

Common Issues

File exceeds token limit

Symptom: File is over 20,000 chars; OpenClaw may truncate it. Fix: Audit for content that belongs in docs/ (loaded on demand) instead of the bootstrap file. Move detailed references, historical context, and long examples out. Keep only what needs to be on every turn.

MEMORY.md leaking to groups

Symptom: Agent shares private context in group chats or Discord. Fix: Ensure MEMORY.md boot step in AGENTS.md is gated: "Main session only: Read MEMORY.md". Verify the agent's boot sequence explicitly checks session type before loading.

Boot sequence not loading files

Symptom: Agent doesn't know about content in SOUL.md, USER.md, or MEMORY.md at session start. Fix: Check that AGENTS.md boot sequence explicitly names each file to read. The agent won't auto-load files — it follows the boot sequence instructions in AGENTS.md. Verify hooks.internal.enabled = true in config if using BOOT.md.

MEMORY.md growing too large

Symptom: File approaches or exceeds 10,000 chars; reading it on every turn wastes significant context. Fix: Run memory distillation workflow. Move stable rules that have been incident-free for months into relevant skill SKILL.md files. Delete rules that are no longer relevant.

Workspace changes not taking effect

Symptom: Agent still uses old content after editing a workspace file. Fix: Workspace files are read at session start per the boot sequence. Restart the gateway or start a new session for changes to take effect.

Reference Files

ReferenceCoverage
workspace-files.mdDeep-dive on each file: purpose, design principles, anti-patterns, section structure
optimization-guide.mdToken efficiency strategies, audit commands, distillation process

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Openclaw Workspace?

Use when maintaining or optimizing OpenClaw workspace files — AGENTS.md, TOOLS.md, SOUL.md, USER.md, IDENTITY.md, HEARTBEAT.md, BOOT.md, MEMORY.md, and related checklists and memory files. Covers workspace auditing, token budget analysis, new agent workspace setup from scratch, memory distillation, and cross-file consistency reviews.

Firwat Openclaw Workspace op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Openclaw Workspace besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Openclaw Workspace an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/win4r/openclaw-workspace/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Openclaw Workspace benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Openclaw Workspace benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Openclaw Workspace domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Openclaw Workspace gratis?

win4r huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇