openclaw-agent-authoring
SKILL.md
OpenClaw Agent Authoring
Use this skill when the job is designing or repairing OpenClaw behavioral markdown, not runtime config or generic documentation.
This skill is intentionally self-contained. Use the references in this folder, not repo-only notes, while doing the runtime work.
Install
npx skills add https://github.com/aelaguiz/authoring-skills.git -g -a codex -a openclaw --skill openclaw-agent-authoring -y
When to use
- The user wants a new OpenClaw agent workspace from scratch.
- An existing OpenClaw agent needs better file boundaries across
AGENTS.md,SOUL.md,TOOLS.md,IDENTITY.md,USER.md,MEMORY.md,HEARTBEAT.md,BOOTSTRAP.md, orBOOT.md. - The user wants to decide what belongs in always-read bootstrap files versus lifecycle files, memory files, skills, or hooks.
- The user wants a findings-first audit of an OpenClaw agent's file layering, session-kind behavior, or memory layout.
- The user wants to refactor a bloated OpenClaw workspace so each file type does one job well.
When not to use
- The task is ordinary copy editing, summarization, or README writing rather than OpenClaw agent design.
- The job is only a reusable skill package or hook package divorced from a larger agent workspace; use
skill-authoringunless the workspace-behavior boundary itself is the point. - The work is runtime config, workspace routing, tool policy, or fleet shaping rather than behavioral markdown.
- The work is only live gateway operations or incident triage, not authoring.
- The existing workspace files cannot be inspected.
Non-negotiables
- Follow native OpenClaw semantics first and repo-local overlays second.
- Keep always-read injected files lean; if a procedure is specialized or optional, move it to a skill or hook.
- Give each surface one primary job. Do not collapse identity, operating contract, tool caveats, user profile, memory, and scheduling into one blob.
- Do not treat prose as enforcement. If the need is runtime policy rather than behavior markdown, it is out of scope for this skill.
- Never store secrets or the only copy of live workflow truth in behavior files.
- Author with session kind in mind: main session, subagent, cron/lightweight, heartbeat, and gateway startup do not behave the same way.
- Distinguish workspace-local files from shared layers and managed skills/hooks.
- If vendor source and public docs drift, prefer the stronger local reference pack bundled with this skill.
First move
- Classify the job as
author,edit,refactor, oraudit. - Read
references/agent-workspace-model.md. - Read the smallest additional references that match the surfaces in play:
references/core-bootstrap-files.mdforAGENTS.md,SOUL.md, andTOOLS.mdreferences/identity-and-user-files.mdforIDENTITY.mdandUSER.mdreferences/lifecycle-and-scheduling-files.mdforBOOTSTRAP.md,BOOT.md, andHEARTBEAT.mdreferences/memory-files.mdforMEMORY.md,memory.md, andmemory/YYYY-MM-DD.mdreferences/skills-hooks-and-on-demand-surfaces.mdforSKILL.mdandHOOK.mdreferences/examples-and-anti-patterns.mdwhen you need grounded examples or want to sanity-check file placement
Workflow
- Lock the agent's job, users, session kinds, and ownership boundaries before touching wording.
- Decide which behavior belongs in always-read bootstrap, lifecycle files, memory files, and on-demand skills or hooks.
- Establish the always-read core first:
SOUL.md,AGENTS.md, andTOOLS.md. - Add profile, lifecycle, memory, and on-demand surfaces only where they change execution quality.
- Keep each file pointed at its own job and cut text that belongs in another surface.
- Validate both file-level quality and cross-file composition before shipping.
Output expectations
author: return or create the behavioral markdown package with the leanest viable file set and clear file boundaries.edit: patch the existing workspace markdown and briefly explain which surfaces changed and why.refactor: preserve useful behavior while redistributing content into the correct behavioral files.audit: return findings first. For each finding, state the problem, why it matters, and which file should change.
Reference map
references/agent-workspace-model.md- native file catalog, load model, layering, and reading orderreferences/core-bootstrap-files.md-AGENTS.md,SOUL.md, andTOOLS.mdreferences/identity-and-user-files.md-IDENTITY.mdandUSER.mdreferences/lifecycle-and-scheduling-files.md-BOOTSTRAP.md,BOOT.md, andHEARTBEAT.mdreferences/memory-files.md-MEMORY.md,memory.md, and daily memory filesreferences/skills-hooks-and-on-demand-surfaces.md-SKILL.mdandHOOK.mdreferences/examples-and-anti-patterns.md- grounded examples and misplacement patterns
Weekly Installs
3
Repository
aelaguiz/author…g-skillsGitHub Stars
1
First Seen
4 days ago
Security Audits
Installed on
openclaw3
codex3
mcpjam1
claude-code1
windsurf1
zencoder1