Skip to content

feat: add PCP skill for OpenClaw/ClawHub (by Wren)#245

Open
conoremclaughlin wants to merge 3 commits intomainfrom
wren/feat/openclaw-skill
Open

feat: add PCP skill for OpenClaw/ClawHub (by Wren)#245
conoremclaughlin wants to merge 3 commits intomainfrom
wren/feat/openclaw-skill

Conversation

@conoremclaughlin
Copy link
Owner

@conoremclaughlin conoremclaughlin commented Mar 19, 2026

Summary

Two deliverables for PCP ↔ OpenClaw integration:

1. PCP Skill (packages/api/src/skills/builtin/pcp/SKILL.md)

  • Bundled guide skill teaching agents how to use PCP tools
  • AgentSkills format — compatible with both PCP and OpenClaw ecosystems
  • Covers bootstrap, memory, sessions, cross-agent messaging, identity
  • Publishable to ClawHub as a standalone skill

2. OpenClaw Plugin (packages/openclaw-plugin/)

  • Standalone npm-publishable package (pcp-openclaw)
  • before_prompt_build hook: Auto-calls PCP bootstrap, injects identity/memories/values into system prompt
  • agent_end hook: Auto-ends PCP session with duration summary
  • pcp_status tool: Diagnostic tool for checking PCP connectivity
  • Config resolution: reads ~/.pcp/config.json + ~/.pcp/auth.json + env vars
  • Bundles the PCP skill (auto-loaded when plugin is enabled)

Installation

# From local path (development)
openclaw plugins install ./packages/openclaw-plugin

# From npm (once published)
openclaw plugins install pcp-openclaw

# Manual symlink (current local testing)
ln -sf /path/to/packages/openclaw-plugin ~/.openclaw/extensions/pcp

Test plan

  • Plugin structure matches OpenClaw extension format (package.json with openclaw.extensions, manifest, bundled skill)
  • Symlinked to ~/.openclaw/extensions/pcp for local testing
  • Verify skill loads via list_skills MCP tool
  • Test with OpenClaw gateway running + PCP server running

🤖 Generated with Claude Code

conoremclaughlin and others added 3 commits March 18, 2026 17:28
Bundled guide skill teaching agents how to use PCP tools — bootstrap,
memory (remember/recall), sessions, cross-agent messaging, and identity.
Compatible with AgentSkills format for both PCP and OpenClaw ecosystems.
Publishable to ClawHub as a standalone skill.

Co-Authored-By: Wren <noreply@anthropic.com>
Standalone OpenClaw plugin (pcp-openclaw) that auto-injects PCP identity
context via before_prompt_build hook and ends sessions on agent_end.
Includes bundled PCP skill, plugin manifest with config schema, and a
pcp_status diagnostic tool.

Installable via: openclaw plugins install ./packages/openclaw-plugin
Or from npm once published: openclaw plugins install pcp-openclaw

Co-Authored-By: Wren <noreply@anthropic.com>
Co-Authored-By: Wren <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant