Install
openclaw skills install rule-creationAuto-triggers Context Engineering compliance and Lobster enforcement when proposing, creating, or formalizing rules, policies, processes, or behavioral const...
openclaw skills install rule-creationAuto-triggers Context Engineering compliance and Lobster enforcement evaluation when proposing, creating, or formalizing new rules, policies, processes, workflows, or behavioral constraints.
Context Engineering is the practice of wiring rules into your AI's context so they're reliably followed — not just hoped for via prompting. Credit: Muratcan Koylan (@koylanai)
Use this skill any time you are:
Trigger phrases:
When this skill triggers, always execute the following steps in order. Do NOT ask permission — CE-PROCESS compliance means wire first, report after.
Extract:
no-bare-spawns, external-message-gate)HARD (non-negotiable, always enforced) or soft (guideline, use judgment)Run scripts/evaluate-enforcement-need.js or apply manually:
A rule needs Lobster enforcement if ANY of the following are true:
| Criterion | Examples |
|---|---|
| High-stakes | Sends external messages, spends money, deletes data, publishes public content, deploys to production |
| Pattern of violations | A similar rule was already stated but broken or ignored |
| Multi-step sequence | Requires multiple ordered steps (do A, then B, then C) |
| External / public action | Affects things outside the user's local files |
Scoring:
needsEnforcement: false (wire to TOOLS.md only)needsEnforcement: true (create Lobster workflow + wire)Before creating any workflow, verify Lobster is actually enabled:
Run scripts/check-lobster-available.js or check manually:
openclaw plugins list | grep -i lobster
| Output | Meaning | Action |
|---|---|---|
lobster … loaded | ✅ Available | Proceed to Step 3a |
lobster … disabled | ❌ Unavailable | Use fallback (below) |
| No lobster row | ❌ Not installed | Use fallback (below) |
Fallback when Lobster is unavailable:
⚠️ Enforcement: unavailable (Lobster not enabled)Run: openclaw plugins enable lobster to activateNever claim enforcement is wired when Lobster is disabled.
If needsEnforcement: true and Lobster preflight passed:
templates/lobster-workflow.template.lobstername, description, steps specific to rule enforcementworkflows/<rule-name>.lobsterRun scripts/wire-rule-to-docs.js or manually append to the appropriate file:
Routing:
TOOLS.mdSOUL.md or agents/identity.mdCRITICAL-RULES.md (if exists) or AGENTS.mdagents/projects.mdEntry format (from templates/tools-md-entry.template.md):
## <Rule Name> (<HARD|soft>)
<Rule description>
[If Lobster enforcement]: **Enforced by:** `workflows/<rule-name>.lobster`
Your response must include:
✅ Rule wired: <Rule Name>
📄 Location: <file where it was added>
🔒 Enforcement: <Lobster workflow path OR "TOOLS.md entry only">
📋 Type: <HARD|soft>
Never say:
Always say:
<rule> to <file>. Enforcement: <status>."| Script | Purpose |
|---|---|
scripts/check-lobster-available.js | Preflight: verify Lobster plugin is enabled in this OpenClaw instance |
scripts/evaluate-enforcement-need.js | Evaluate CR-012 criteria against rule description |
scripts/wire-rule-to-docs.js | Append rule entry to TOOLS.md or specified target file |
scripts/report-rule-creation.js | Generate user-facing summary of what was created |
| Workflow | Purpose |
|---|---|
workflows/create-rule.lobster | Full end-to-end rule creation pipeline |
This skill embodies the Context Engineering Auto-Trigger principle:
"When proposing any new rule, behavioral constraint, or policy change: Wire it first. Add the rule to the appropriate file BEFORE responding. Never ask permission to formalize a rule."
The act of recognizing a rule IS the trigger. Wire immediately. Report after.