<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenClaw Integration——模具行业从业者必备知识手册]]></title><description><![CDATA[<p dir="auto">&lt;h2&gt;OpenClaw Integration&lt;/h2&gt;</p>
<p dir="auto">&lt;p&gt;Complete setup and usage guide for integrating the self-improvement skill with OpenClaw.&lt;/p&gt;</p>
<p dir="auto">&lt;h3&gt;Overview&lt;/h3&gt;</p>
<p dir="auto">&lt;p&gt;OpenClaw uses workspace-based prompt injection combined with event-driven hooks. Context is injected from workspace files at session start, and hooks can trigger on lifecycle events.&lt;/p&gt;</p>
<p dir="auto">&lt;h3&gt;Workspace Structure&lt;/h3&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
~/.openclaw/<br />
├── workspace/                   # Working directory<br />
│   ├── <a href="http://AGENTS.md" rel="nofollow ugc">AGENTS.md</a>               # Multi-agent coordination patterns<br />
│   ├── <a href="http://SOUL.md" rel="nofollow ugc">SOUL.md</a>                 # Behavioral guidelines and personality<br />
│   ├── <a href="http://TOOLS.md" rel="nofollow ugc">TOOLS.md</a>                # Tool capabilities and gotchas<br />
│   ├── <a href="http://MEMORY.md" rel="nofollow ugc">MEMORY.md</a>               # Long-term memory (main session only)<br />
│   └── memory/                 # Daily memory files<br />
│       └── <a href="http://YYYY-MM-DD.md" rel="nofollow ugc">YYYY-MM-DD.md</a><br />
├── skills/                      # Installed skills<br />
│   └── &lt;skill-name&gt;/<br />
│       └── <a href="http://SKILL.md" rel="nofollow ugc">SKILL.md</a><br />
└── hooks/                       # Custom hooks<br />
└── &lt;hook-name&gt;/<br />
├── <a href="http://HOOK.md" rel="nofollow ugc">HOOK.md</a><br />
└── handler.ts<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h3&gt;Quick Setup&lt;/h3&gt;</p>
<p dir="auto">&lt;h4&gt;1. Install the Skill&lt;/h4&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
clawdhub install self-improving-agent<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;p&gt;Or copy manually:&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
cp -r self-improving-agent ~/.openclaw/skills/<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h4&gt;2. Install the Hook (Optional)&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Copy the hook to OpenClaw's hooks directory:&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;p&gt;Enable the hook:&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
openclaw hooks enable self-improvement<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h4&gt;3. Create Learning Files&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Create the &lt;code&gt;.learnings/&lt;/code&gt; directory in your workspace:&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
mkdir -p ~/.openclaw/workspace/.learnings<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;p&gt;Or in the skill directory:&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
mkdir -p ~/.openclaw/skills/self-improving-agent/.learnings<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h3&gt;Injected Prompt Files&lt;/h3&gt;</p>
<p dir="auto">&lt;h4&gt;AGENTS.md&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Purpose: Multi-agent workflows and delegation patterns.&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;</p>
<h1>Agent Coordination</h1>
<h2>Delegation Rules</h2>
<ul>
<li>Use explore agent for open-ended codebase questions</li>
<li>Spawn sub-agents for long-running tasks</li>
<li>Use sessions_send for cross-session communication</li>
</ul>
<h2>Session Handoff</h2>
<p dir="auto">When delegating to another session:</p>
<ol>
<li>Provide full context in the handoff message</li>
<li>Include relevant file paths</li>
<li>Specify expected output format<br />
&lt;/code&gt;&lt;/pre&gt;</li>
</ol>
<p dir="auto">&lt;h4&gt;SOUL.md&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Purpose: Behavioral guidelines and communication style.&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;</p>
<h1>Behavioral Guidelines</h1>
<h2>Communication Style</h2>
<ul>
<li>Be direct and concise</li>
<li>Avoid unnecessary caveats and disclaimers</li>
<li>Use technical language appropriate to context</li>
</ul>
<h2>Error Handling</h2>
<ul>
<li>Admit mistakes promptly</li>
<li>Provide corrected information immediately</li>
<li>Log significant errors to learnings<br />
&lt;/code&gt;&lt;/pre&gt;</li>
</ul>
<p dir="auto">&lt;h4&gt;TOOLS.md&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Purpose: Tool capabilities, integration gotchas, local configuration.&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;</p>
<h1>Tool Knowledge</h1>
<h2>Self-Improvement Skill</h2>
<p dir="auto">Log learnings to <code>.learnings/</code> for continuous improvement.</p>
<h2>Local Tools</h2>
<ul>
<li>Document tool-specific gotchas here</li>
<li>Note authentication requirements</li>
<li>Track integration quirks<br />
&lt;/code&gt;&lt;/pre&gt;</li>
</ul>
<p dir="auto">&lt;h3&gt;Learning Workflow&lt;/h3&gt;</p>
<p dir="auto">&lt;h4&gt;Capturing Learnings&lt;/h4&gt;</p>
<p dir="auto">&lt;ol&gt;<br />
&lt;li&gt;&lt;strong&gt;In-session&lt;/strong&gt;: Log to &lt;code&gt;.learnings/&lt;/code&gt; as usual&lt;/li&gt;<br />
&lt;li&gt;&lt;strong&gt;Cross-session&lt;/strong&gt;: Promote to workspace files&lt;/li&gt;<br />
&lt;/ol&gt;</p>
<p dir="auto">&lt;h4&gt;Promotion Decision Tree&lt;/h4&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
Is the learning project-specific?<br />
├── Yes → Keep in .learnings/<br />
└── No → Is it behavioral/style-related?<br />
├── Yes → Promote to <a href="http://SOUL.md" rel="nofollow ugc">SOUL.md</a><br />
└── No → Is it tool-related?<br />
├── Yes → Promote to <a href="http://TOOLS.md" rel="nofollow ugc">TOOLS.md</a><br />
└── No → Promote to <a href="http://AGENTS.md" rel="nofollow ugc">AGENTS.md</a> (workflow)<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h4&gt;Promotion Format Examples&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;&lt;strong&gt;From learning:&lt;/strong&gt;&lt;/p&gt;<br />
&lt;blockquote&gt;<br />
&lt;p&gt;Git push to GitHub fails without auth configured - triggers desktop prompt&lt;/p&gt;<br />
&lt;/blockquote&gt;</p>
<p dir="auto">&lt;p&gt;&lt;strong&gt;To <a href="http://TOOLS.md" rel="nofollow ugc">TOOLS.md</a>:&lt;/strong&gt;&lt;/p&gt;<br />
&lt;pre&gt;&lt;code&gt;</p>
<h2>Git</h2>
<ul>
<li>Don't push without confirming auth is configured</li>
<li>Use <code>gh auth status</code> to check GitHub CLI a</li>
</ul>
<hr />
<p dir="auto">你在实际生产中遇到过类似问题吗？欢迎留言讨论。<br />
&lt;/code&gt;&lt;/pre&gt;</p>
]]></description><link>https://forum.mj7.cn/topic/7128/openclaw-integration-模具行业从业者必备知识手册</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 14:03:08 GMT</lastBuildDate><atom:link href="https://forum.mj7.cn/topic/7128.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Apr 2026 21:35:30 GMT</pubDate><ttl>60</ttl></channel></rss>