create-claw
Turn this agent into a shareable Claw for a person to review.stars392722
forks82548
watches1703
updated2026-10-22 07:58:42
Create a Claw
The Control UI invokes this manual skill in the agent's existing main conversation. It prepares a private draft before sending the message and attaches that request's draftId as working context. Use the draftId attached to this turn and edit only .openclaw/claw-drafts/<draftId>.json; never search for a latest draft or use a shared pointer. The attached context is request-specific, so overlapping Claw creations stay isolated. Keep internal paths and IDs out of your reply. Work in this same conversation; the Control UI opens package review when the draft is ready and owns package assembly and publication.
- Capture the reusable agent. Read the current draft JSON. Use this conversation and the agent's durable instructions to identify its coherent reusable role, input, job, output, and authority. Preserve useful behavior and settings; leave out personal context. If the responsibilities do not form one coherent Claw, ask which responsibility to share before writing. Complete when the four scope fields describe an agent a new person can use.
- Inventory only relevant material. Select portable workspace instructions and files that implement that role. Locate this
SKILL.mdand use itsscripts/cli.mjsfor inventory so the CLI matches the running OpenClaw installation; invoke it with an absolute path when outside the skill directory. Runnode scripts/cli.mjs skills list --agent <this agent's id> --jsonandnode scripts/cli.mjs plugins list --enabled --json. Compare the results with tools actually available in this session and capabilities used in the role. Inspect a candidate withnode scripts/cli.mjs plugins inspect <id> --jsonfor its source and exact version. Declare a skill or plugin only when you can ground it in a current ClawHub package reference and exact version; plugin availability alone is not a requirement. Put package references inpackages, MCP requirements inmcpServers, and useful schedules incronJobs. Their declarations are dependencies, not files copied into the archive. Complete when every included file and declaration has a reason tied to the reusable role. - Author the proposal. Follow the draft format. Rewrite instructions for a new owner. Include input, job, output, and authority in the draft
scope, and describe the portable behavior inCLAW.md. Place only newly authored portable text infiles, mapping included workspace files bysourcein the manifest. Exclude raw conversations, memories,USER.md, credentials, secret values, private URLs, local paths, and personal facts. Never copy the source workspace tree. Complete when the JSON at this turn's draft path is valid and contains no private source material. - Hand off for review. Briefly tell the person what the Claw does, which optional files/dependencies you included, and any capability you could not port. Do not print internal draft paths or IDs, generate a review link, upload, or publish. The Control UI opens a review of the exact built archive; the person can remove optional items and explicitly publish there. Complete when the review opens.