← Back to Skills Marketplace
mr-11even

Claude Code Openclaw Skill

by mr-11even · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
191
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install claude-code-openclaw-skill
Description
Integrate OpenClaw with Claude Code CLI to read, edit, run commands, review, and automate workflows on your codebase using AI assistance.
README (SKILL.md)

Claude Code Skill for OpenClaw

Call Claude Code CLI from OpenClaw to read codebase, edit files, run commands, and automate coding tasks.

Overview

This skill provides integration with Claude Code CLI, allowing OpenClaw to leverage Claude Code's powerful coding capabilities including:

  • Reading and understanding codebases
  • Editing files with AI assistance
  • Running terminal commands
  • Creating commits and PRs
  • Code review and debugging
  • Running sub-agents for parallel tasks

Prerequisites

  1. Install Claude Code CLI:

    curl -fsSL https://claude.ai/install.sh | bash
    
  2. Authenticate:

    claude auth login
    
  3. Verify installation:

    claude --version
    

Usage

Basic Query

Ask Claude Code a question about your codebase:

/claude-code What does the auth module do?

Run a Task

Execute a coding task:

/claude-code write tests for the login function

Continue Previous Session

Resume the most recent conversation:

/claude-code --continue

Resume Specific Session

Resume a session by name or ID:

/claude-code --resume auth-fix

Code Review

Review code changes:

/claude-code review the recent changes

Create Commit

Commit changes with a descriptive message:

/claude-code commit my changes

Run with Custom Model

Use a specific model:

/claude-code --model opus explain this code

JSON Output

Get structured JSON output for scripting:

/claude-code --output-format json --print "list all functions"

CLI Reference

Common Commands

Command Description
claude -p "query" Query via SDK, then exit
claude -c Continue most recent conversation
claude -r "session" "query" Resume session by ID or name
claude --print "query" Print response without interactive mode
claude update Update to latest version
claude auth status Show authentication status

Useful Flags

Flag Description Example
--print, -p Non-interactive mode claude -p "query"
--continue, -c Continue session claude -c
--resume, -r Resume specific session claude -r session-id "task"
--model Specify model claude --model opus "task"
--output-format Output format (text/json/stream-json) claude -p --output-format json "task"
--max-turns Limit agentic turns claude -p --max-turns 3 "task"
--max-budget-usd Max API spend claude -p --max-budget-usd 5 "task"
--add-dir Additional directories claude --add-dir ../lib "task"
--mcp-config Load MCP servers claude --mcp-config ./mcp.json

Environment Variables

Variable Description
ANTHROPIC_API_KEY API key for authentication
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD Enable CLAUDE.md from additional dirs

Integration with OpenClaw

This skill is designed to work with OpenClaw's exec tool. Here's how it integrates:

Method 1: Direct CLI Execution

Use OpenClaw's exec tool to run Claude Code commands:

claude -p "What files were changed in the last commit?"

Method 2: Session Management

Manage Claude Code sessions through OpenClaw:

# Continue last session
claude -c

# Resume specific session
claude -r my-session "Continue working on the feature"

Method 3: MCP Integration

For advanced integration, configure MCP servers:

claude mcp add \x3Cserver-name> \x3Cconfig>

Examples

Example 1: Explore a New Codebase

/claude-code Explore the project structure and tell me what the main components are

Example 2: Fix a Bug

/claude-code Find and fix the login bug - users can't log in with correct credentials

Example 3: Write Tests

/claude-code Write unit tests for the payment module

Example 4: Refactor Code

/claude-code Refactor the auth middleware to use async/await

Example 5: Code Review

/claude-code Review this PR for security issues

Example 6: Batch Operations

/claude-code /batch migrate all API endpoints to use the new error handler

Troubleshooting

Authentication Issues

# Check auth status
claude auth status

# Re-authenticate
claude auth login

Permission Issues

# Run with specific permission mode
claude --permission-mode plan "task"

Session Issues

# List available sessions
claude --resume

# Fork a session (create new)
claude -r old-session --fork-session "new task"

Advanced Features

Sub-agents

Run multiple Claude Code instances in parallel:

claude --agents '{
  "reviewer": {
    "description": "Code reviewer",
    "prompt": "You are a senior code reviewer",
    "tools": ["Read", "Grep", "Bash"]
  }
}'

Hooks

Automate actions before/after Claude Code runs:

See Hooks documentation

MCP Servers

Connect Claude Code to external tools:

claude mcp add github '{"github_token": "..."}'

Resources


Note: Claude Code requires authentication. Run claude auth login before first use.

Usage Guidance
This skill may be what it claims (a Claude Code CLI integration), but the README and the registry don't match and the README tells you to run a remote install script. Before installing or invoking it: 1) verify the publisher and homepage (ask for an official source or link to the vendor's documentation), 2) do not run curl | bash blindly — inspect the install script on the remote site or prefer an OS package manager or GitHub release, 3) require the skill author to declare required env vars (e.g., ANTHROPIC_API_KEY) in metadata so you can audit permissions, 4) avoid supplying unrelated credentials (GitHub tokens, other API keys) unless you trust the integration and have scoped tokens with least privilege, 5) run initial tests in an isolated environment (throwaway VM/container) where repository secrets cannot be exfiltrated, and 6) request the author to provide an explicit install spec and homepage so provenance can be validated. If the author provides an official homepage, verified install artifacts (e.g., GitHub release or package registry), and updates the metadata to list required env vars and config paths, my confidence would increase.
Capability Analysis
Type: OpenClaw Skill Name: claude-code-openclaw-skill Version: 1.0.0 The skill bundle provides integration for the Claude Code CLI, a legitimate coding assistant tool. The SKILL.md file contains standard documentation, usage examples, and installation instructions via the official claude.ai domain. Although it suggests a 'curl pipe bash' installation method and involves high-privilege operations like file editing and command execution, these behaviors are entirely consistent with the tool's stated purpose. No evidence of malicious intent, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
The SKILL.md describes reading/editing the codebase, running shell commands, creating commits/PRs, and configuring MCP servers (which can accept third‑party tokens). The registry metadata declares no required environment variables, credentials, or config paths — yet the instructions explicitly reference ANTHROPIC_API_KEY and examples that accept tokens (e.g., github token for MCP). This mismatch between claimed purpose and declared requirements is unexplained and disproportionate.
Instruction Scope
The runtime instructions instruct users/agents to install and invoke a CLI that will read and modify the repository and run arbitrary shell commands. They also recommend adding external MCP servers with tokens. The SKILL.md endorses executing a remote install script (curl https://claude.ai/install.sh | bash) and contains examples that accept sensitive tokens; these steps broaden the agent's runtime authority beyond what the registry metadata declares.
Install Mechanism
There is no formal install spec in the registry, but the SKILL.md directs users to run a remote install script via curl | bash. Download-and-execute from a remote URL is higher risk unless the URL and release provenance are verified. The registry does not provide a homepage or verified source to confirm the legitimacy of that script.
Credentials
The registry lists no required env vars, but the documentation explicitly references ANTHROPIC_API_KEY and shows examples that embed tokens for MCP (e.g., github_token). Requesting API keys and external tokens is reasonable for a CLI, but not declaring them in metadata is inconsistent and prevents automated permission checks; this raises the possibility of undisclosed credential use or exfiltration.
Persistence & Privilege
The skill is instruction-only, has no install spec in the registry, and does not set always:true. Autonomous invocation is enabled (default) which is normal for skills. The skill does not request permanent platform-level privileges in metadata.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claude-code-openclaw-skill
  3. After installation, invoke the skill by name or use /claude-code-openclaw-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
claude-code-openclaw-skill v1.0.0 - Initial release integrating Claude Code CLI with OpenClaw. - Enables AI-assisted codebase reading, file editing, code review, debugging, and automation from OpenClaw. - Supports session management, custom models, structured JSON output, and advanced batch/sub-agent workflows. - Provides clear usage examples, troubleshooting guidance, and links to official documentation.
Metadata
Slug claude-code-openclaw-skill
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Claude Code Openclaw Skill?

Integrate OpenClaw with Claude Code CLI to read, edit, run commands, review, and automate workflows on your codebase using AI assistance. It is an AI Agent Skill for Claude Code / OpenClaw, with 191 downloads so far.

How do I install Claude Code Openclaw Skill?

Run "/install claude-code-openclaw-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Claude Code Openclaw Skill free?

Yes, Claude Code Openclaw Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Claude Code Openclaw Skill support?

Claude Code Openclaw Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Claude Code Openclaw Skill?

It is built and maintained by mr-11even (@mr-11even); the current version is v1.0.0.

💬 Comments