Install
openclaw skills install init-rulesInteractively generate personalized agent rules. Asks about tech stack, work style, and preferences, then writes customized rule files. Use when user says "init rules", "set up my rules", or "configure agent rules".
openclaw skills install init-rulesRequires Skill Genie. This skill generates rule files for the skill-genie
rules/directory. Install skill-genie first, then run this skill.
Generate personalized agent rule files through a short interview.
Ask the user these questions ONE AT A TIME. After each answer, move to the next. Skip questions the user says aren't relevant.
any, max file length, test required, specific linter)"Before writing, if rules/ already contains .md files:
mv rules/ rules.bak.$(date +%Y%m%d%H%M)/ && mkdir rules/After collecting answers, generate these files in the skill-genie rules/ directory:
rules/router.md — Universal top-level rulesrules/session-sync.md — Session start behaviorrules/workflow-tools.md — Tool and workflow preferencesrules/stack-and-deployment.md — Tech stack and deployment (skip if "none")rules/external-tools.md — Skills and external tool usageThen run setup.sh to apply them.
Each file should be concise Markdown, under 30 lines. Use bullet points. No fluff. Example:
# Workflow and tools
- Prefer CLI over MCP when both can do the job.
- Batch independent operations.
- Verify feature doesn't already exist before creating it.
rules.example/