pansclaw-code

Use the PansClaw Code CLI (Rust reimplementation of Claude Code) for AI-assisted coding. Triggers when: user wants to run coding tasks via pansclaw code, delegate code writing/refactoring to pansclaw code, or use it interactively. Handles auto-build if binary is missing/outdated. Prerequisites: MINIMAX_API_KEY, ANTHROPIC_API_KEY, or local Ollama models.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pansclaw-code" with this command: npx skills add dashiming/pansclaw-code

PansClaw Code Skill

Rust reimplementation of Claude Code CLI — an AI-powered coding assistant that runs locally.

When to Use

USE this skill when:

  • User asks to use pansclaw code for a coding task
  • User wants to delegate code writing/refactoring/debugging to pansclaw code
  • User wants interactive pansclaw code REPL mode
  • User explicitly mentions "pansclaw code"

DON'T use this skill when:

  • User wants me to directly implement code (use my native tools instead)
  • Simple file operations that don't need AI assistance
  • Tasks requiring OpenClaw tool/memory integration

Prerequisites

1. Build the binary (first time only)

cd "/Users/dashi/Documents/claude code source /claw-code-main/rust"
cargo build -p claw-cli --release

Binary location: ~/.local/bin/claw (symlinked to release build)

2. API Keys (choose one)

Option A: Local Ollama (recommended - no API key needed)

# Ensure Ollama is running
ollama list
# Available models: mistral-small:24b, qwen3, llama3, codellama

Option B: Cloud APIs

export MINIMAX_API_KEY="your-key"
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="your-key"

Commands

Run a single task (local Ollama)

~/.local/bin/claw --provider ollama --model mistral-small:24b --dangerously-skip-permissions "Your coding task"

Run with cloud model

~/.local/bin/claw --provider minimax --model MiniMax-Text-01 --dangerously-skip-permissions "Your task"

Interactive REPL

~/.local/bin/claw --provider ollama --model qwen3

Useful flags

FlagDescription
--provider <name>Provider: ollama (local), minimax, openai, anthropic
--model <name>Model name (provider-specific)
--dangerously-skip-permissionsSkip permission prompts
--printNon-interactive, print result only

Available Models

ProviderModelAPI Key NeededNotes
ollamamistral-small:24b❌ NoneDefault local model
ollamaqwen3❌ NoneChinese-optimized
ollamallama3❌ NoneGeneral purpose
ollamacodellama❌ NoneCode-specialized
minimaxMiniMax-Text-01✅ MINIMAX_API_KEYCloud
anthropicclaude-opus-4-6✅ ANTHROPIC_API_KEYCloud

Auto-Build Check

Before calling claw, verify the binary exists and is up-to-date:

if [ ! -f "/Users/dashi/Documents/claude code source /claw-code-main/rust/target/release/claw" ]; then
    cd "/Users/dashi/Documents/claude code source /claw-code-main/rust"
    cargo build -p claw-cli --release
fi

Execution Pattern

  1. Check binary — verify release build exists
  2. Build if needed — run cargo build -p claw-cli --release if missing
  3. Select provider — prefer local Ollama, fall back to cloud
  4. Execute — run claw with appropriate flags
  5. Return output — report results to user

Usage Examples

User: "用 claw 写一个冒泡排序"

Assistant:

~/.local/bin/claw --provider ollama --model mistral-small:24b --dangerously-skip-permissions "写一个冒泡排序算法"

User: "用 claw 重构 api 模块"

Assistant:

~/.local/bin/claw --provider minimax --model MiniMax-Text-01 --dangerously-skip-permissions "重构 api 模块使用 async/await"

User: "用 claw 解释 Rust 生命周期"

Assistant:

~/.local/bin/claw --provider ollama --model qwen3 --dangerously-skip-permissions "解释 Rust 的生命周期"

Notes

  • claw is a CLI tool — runs once per command, exits after completion
  • Local Ollama models work offline and are fast
  • Cloud models may have better quality but require API keys
  • Does NOT have access to OpenClaw's tools/memory by default

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Moss Skill-9

Give your AI agent eyes to see the entire internet. Install and configure upstream tools for Twitter/X, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu, Douyi...

Registry SourceRecently Updated
Coding

Codex Deep Search

Deep web search using Codex CLI for complex queries that need multi-source synthesis. Use when web_search (Brave) returns insufficient results, when the user...

Registry SourceRecently Updated
Coding

Matz Swarm

Orchestrate OpenClaw Agent Swarm workflows for multi-project coding automation with Obsidian task intake, Claude coding, Codex review, GitLab MR flow, merge+...

Registry SourceRecently Updated
4610matzoh
Coding

xfetch

Use xfetch CLI to fetch X/Twitter data - tweets, user profiles, search results, timelines, lists, DMs, and notifications. Use this skill whenever you need to...

Registry SourceRecently Updated