feat: add OpenClaw agent adapter (Clawdbot rebrand)#86
feat: add OpenClaw agent adapter (Clawdbot rebrand)#86austinmao wants to merge 2 commits intorohitg00:mainfrom
Conversation
OpenClaw (formerly Clawdbot) is a local-first AI agent framework with a
persistent gateway daemon. This adds first-class OpenClaw support:
- New `openclaw` agent type in AgentType enum and all Record types
- New `OpenClawAdapter` class with detection for `~/.openclaw/` + `openclaw.json`
- OpenClaw agent config: `skills/` dir (not `.clawdbot/skills/`), CLAUDE.md config
- Extended frontmatter fields: permissions, triggers, metadata, version, scan_exempt
- Agent dirs: `agents/` and `~/.openclaw/agents/`
- Command format: `.claude/commands/` directory
- Translator format map: `openclaw` → `skill-md`
- Simplified clawdbot adapter detection (legacy paths only)
OpenClaw SKILL.md files use an extended YAML frontmatter schema:
- permissions: { filesystem: none|read|write, network: true|false }
- triggers: [{ command: /skill-name }]
- metadata.openclaw.requires: { bins: [], env: [], os: [] }
This enables `skillkit translate <skill> --to openclaw` producing
SKILL.md files compatible with the OpenClaw gateway runtime.
Ref: https://docs.openclaw.ai
|
Someone is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughA new OpenClaw adapter and agent type were added and registered across the codebase. Clawdbot's workspace detection logic was narrowed to omit the project-local Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add first-class OpenClaw support to the build system. OpenClaw is a local-first AI agent framework whose SKILL.md files use an extended YAML frontmatter schema (permissions, triggers, version, metadata). Changes: - New `openclaw` provider in PROVIDERS config - New `frontmatterEnrich` hook on transformer factory — lets any provider post-process frontmatter before YAML serialization - Extended `generateYamlFrontmatter` with recursive serializer for nested objects and arrays (backward-compatible) - Model-agnostic placeholder config (uses 'the model' since OpenClaw operators configure their own LLM backend) - Pre-built skills output to `.openclaw/skills/` Complements rohitg00/skillkit#86 which adds the OpenClaw adapter to SkillKit's translate command — both produce the same output format.
- Remove legacy clawdbot path checks from OpenClawAdapter.isDetected() so pure clawdbot workspaces are not hijacked by OpenClaw detection - Add '.openclaw/agents' to ALL_AGENT_DISCOVERY_PATHS so agent discovery works for OpenClaw agent directories
Summary
OpenClaw (formerly Clawdbot) is a local-first AI agent framework with a persistent gateway daemon. Clawdbot was rebranded to OpenClaw, but the existing
clawdbotadapter still uses the legacy.clawdbot/paths and doesn't support OpenClaw's extended SKILL.md frontmatter schema.This PR adds first-class
openclawas a new agent type with correct paths and extended frontmatter support.Changes
openclawagent type inAgentTypeenum and allRecord<AgentType, ...>typesOpenClawAdapter(packages/agents/src/openclaw.ts) with detection for~/.openclaw/+openclaw.jsonagent-config.ts:skills/dir (workspace root),~/.openclaw/skills/global,CLAUDE.mdconfig filepermissions,triggers,metadata,version,scan_exemptagents/and~/.openclaw/agents/.claude/commands/openclaw→skill-mdclawdbotadapter: legacy.clawdbot/detection only (no longer falsely detects OpenClaw workspaces as clawdbot)OpenClaw SKILL.md Frontmatter
OpenClaw skills use an extended YAML frontmatter schema beyond the standard
name+description:This enables
skillkit translate <skill> --to openclawto produce SKILL.md files compatible with the OpenClaw gateway runtime.Build verification
@skillkit/corebuilds successfully@skillkit/agentsbuilds successfullymain(not caused by this PR)Test plan
skillkit doctordetectsopenclawwhen~/.openclaw/existsskillkit translate <skill> --to openclawproduces output inskills/(not.clawdbot/skills/)skillkit translate <skill> --to clawdbotstill works for legacy usersopenclawchecked beforeclawdbot(prevents false positive)Summary by CodeRabbit
New Features
Improvements