OpenClaw: A Practical Guide to Running a Local Autonomous AI Agent — Part 3: Skills
The secret of getting ahead is getting started. — Mark Twain
Success is the sum of small efforts, repeated day in and day out. — Robert Collier
Important Skills for OpenClaw
OpenClaw becomes genuinely useful not because of the base model it routes to, but because of the skills you layer on top. Three skill families matter disproportionately for engineering work: Context7 for grounding the agent in current documentation, Agent Skills for imposing a disciplined development lifecycle, and Superpowers for a mandatory, subagent-driven build pipeline. They solve different problems and are complementary — Context7 fixes knowledge, Agent Skills fix process, and Superpowers fixes execution discipline.
1. Context7 — Up-to-Date Documentation for AI Agents
Context7 is an MCP server from Upstash that retrieves version-specific library documentation and code examples from the source and injects them directly into the agent’s context before it answers. It addresses the most common failure mode in coding agents: confidently writing code against an outdated or hallucinated API.
Context7 exposes two core MCP tools:
resolve-library-id— identifies the correct library from a human-readable name.query-docs— retrieves the relevant documentation for a specific question.
When installed through OpenClaw’s MCP plugin, these appear as mcp_context7_resolve_library_id and mcp_context7_query_docs.
Why it matters in practice
An agent without Context7 will answer a question about the Ollama Python library based on whatever was in its training data. An agent with Context7 will first resolve the library ID, then query the current docs, and only then write the script. The difference is not stylistic — it is the difference between code that runs and code that fails on the first import.
# Installation
# This mcp add operation requires the Gateway to be stopped so the CLI can safely update its state.
openclaw gateway status
openclaw gateway stop
# Context7 supports OAuth for remote HTTP connections. The OAuth endpoint is `/mcp/oauth`, not `/mcp`:
openclaw mcp add context7 \
--url https://mcp.context7.com/mcp/oauth \
--transport streamable-http \
--auth oauthcc
Saved MCP server "context7" to /Users/nmaximo7/.openclaw/openclaw.json.
Run openclaw mcp login context7 to authorize this MCP server.
# The remaining step is to authorize Context7’s OAuth connection.
openclaw mcp login context7
openclaw gateway start
Verification
After adding the server, verify that OpenClaw can reach it and see its tools:
openclaw mcp status
openclaw mcp probe context7
openclaw mcp tools context7
probe confirms that the server starts and exposes tools; tools lists the tool surface. If status shows the server but probe fails, the OAuth token is the usual culprit — run openclaw mcp login context7 again.
Using Context7 correctly
Context7 is most valuable when the prompt forces a documentation lookup rather than allowing the agent to answer from memory. A well-formed request looks like this:
Use the Context7 tool to look up the current official documentation for the Ollama Python library. Then write a small Python script that sends a prompt to a locally running Ollama model using the ollama package and prints the response. Use the documented API, state any setup requirements, and tell me whether Context7 was actually called. If Context7 is unavailable, say so instead of pretending you used it.
The last sentence is the critical one: it makes the tool call observable. Without it, the agent may produce plausible code and never call Context7 at all.
Limits and caveats
- Context7 is free for basic use; no API key is required for the basic tier.
- The catalog route (
--from-catalog) is the lowest-friction path, but it depends on theopenclaw-plugin-mcpplugin being installed and enabled. - The OAuth route requires a browser callback.
2. Agent Skills — A Production-Grade Engineering Lifecycle
Agent Skills (often associated with Addy Osmani’s agent-skills collection) is a phase-organized skill pack rather than a flat list of tricks. It structures development into six phases — Define → Plan → Build → Verify → Review → Ship — with a human checkpoint at each step and the relevant skills loading automatically for the current phase.
The six phases map to commands:
DEFINE PLAN BUILD VERIFY REVIEW SHIP
┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐
│ Idea │───▶│ Spec │───▶│ Code │───▶│ Test │───▶│ QA │───▶│ Go │
│Refine│ │ PRD │ │ Impl │ │Debug │ │ Gate │ │ Live │
└──────┘ └──────┘ └──────┘ └──────┘ └──────┘ └──────┘
/spec /plan /build /test /review /ship
The full command set is actually eight commands: /spec, /plan, /build, /test, /review, /webperf, /code-simplify, and /ship. The extra three are phase-specific specialists rather than lifecycle stages.
What each phase actually enforces
- /spec — Clarify what to build before a line of code is written. Spec before code.
- /plan — Break the spec into small, verifiable, ordered tasks.
- /build — Implement in thin vertical slices; each slice is tested and committed individually (it enforces modularity).
- /test — Prove it works with real runtime evidence, not assertions of correctness.
- /review — Quality, security, and performance gates before merge. The review skill uses a five-axis review with severity labels and change-size norms.
- /ship — Deploy with rollout, rollback, and observability.
The design philosophy is explicit: most skill packs are a flat list; Agent Skills is organized the way software actually gets built.
Installation
Agent Skills is installed through the skills CLI or through ClawHub. The canonical install for the meta-skill (which routes work to the right phase skill) is:
npx skills add https://github.com/addyosmani/agent-skills --skill using-agent-skills
Once installed, it is automatically configured for OpenClaw, Claude Code, and Cursor. Individual skills can also be installed directly:
openclaw skills install skills-sh:addyosmani/agent-skills/context-engineering
This form pulls a specific skill from the addyosmani/agent-skills repository.
When to reach for Agent Skills
Agent Skills is the right choice when you want structure without a mandate. It provides the phases, the commands, and the skills, but it does not force you through every gate on every task. A one-line fix can be edited directly; a feature with a spec and a review gate gets the full lifecycle. The meta-skill routes based on the task, so you do not have to remember which phase skill to load.
The trade-off is that Agent Skills assumes the agent will follow process when told to. It is a discipline layer, not an enforcement layer. If you need hard gates — “do not write code until the design is approved” — that is what Superpowers is for.
3. Superpowers — Mandatory, Subagent-Driven Development
Superpowers (adapted from obra/superpowers) is a complete software development methodology built from a set of composable SKILL.md files plus a lightweight bootstrap injected at session start. It is explicitly a mandatory workflow — not suggestions. The OpenClaw edition adds subagent dispatch through sessions_spawn, which is what distinguishes it from a generic TDD prompt pack.
The pipeline is:
Idea → Brainstorm → Plan → Subagent-Driven Build (TDD) → Code Review → Finish Branch
Every coding task follows this pipeline. The skill’s own documentation states the anti-pattern plainly: “Too simple to need a design” is always wrong.
The five phases, in detail
- Phase 1 — Brainstorming. Explore project context (files, docs, recent commits), ask clarifying questions one at a time, propose 2–3 approaches with trade-offs, present the design in sections and get approval after each, then write a design doc to
docs/plans/YYYY-MM-DD-. Hard gate: no code until the user approves the design.-design.md - Phase 2 — Writing Plans. Write a task-by-task implementation plan where each task is 2–5 minutes: write the test → watch it fail → implement → watch it pass → commit. Save the plan and offer two execution modes: subagent-driven (current session) or manual execution by the user.
- Phase 3 — Subagent-Driven Build (TDD). For each task,
sessions_spawnan implementer subagent with the task and full plan context. When it finishes, spawn a spec-reviewer subagent (must confirm the code matches the spec) and a code-quality reviewer subagent (must approve quality). Fix issues, re-review if needed, mark the task done, and move to the next. TDD is mandatory in every task. - Phase 4 — Systematic Debugging. Any bug, test failure, or unexpected behavior triggers a four-phase root-cause process: root-cause investigation → pattern analysis → hypothesis and testing → fix and verification. Hard gate: no fixes without root-cause investigation first.
- Phase 5 — Finishing a Branch. Verify all tests pass, determine the base branch, and present four options: merge locally, push and open a PR, keep the branch, or discard it. Execute the choice and clean up.
Installation
Superpowers is distributed through ClawHub. The current OpenClaw-native install is:
openclaw skills add superpowers
This pulls superpowers from ClawHub and installs it into ~/.openclaw/skills/superpowers/. The older ClawdBot-compatible form also appears in some registries:
clawdbot install wlshlad85/superpowers
Either route installs the same skill package. The pipeline requires the exec tool and sessions_spawn — without those, the subagent-driven build phase cannot function.
What makes Superpowers different from Agent Skills
Agent Skills and Superpowers overlap in spirit but differ in enforcement:
| Dimension | Agent Skills | Superpowers |
|---|---|---|
| Process | Phase-organized, human checkpoints | Mandatory pipeline, hard gates |
| Code before design | Discouraged by /spec |
Explicitly forbidden until design approval |
| Testing | TDD (test-driven development) is a skill you can load | TDD is mandatory in every task |
| Execution model | Single agent, phase by phase | Subagent dispatch via sessions_spawn |
| Review | Quality/security/performance gates | Spec-reviewer + code-quality reviewer subagents per task |
| Best for | Teams that want structure without a mandate | Work where process violations are the failure mode |
Use Agent Skills when you want the agent to know the right phases. Use Superpowers when you need the agent to not skip them.
The cost of Superpowers
Superpowers is slower than an unstructured agent. The brainstorming gate, the per-task subagent reviews, and the mandatory TDD loop add turns. The design assumption is that rework is more expensive than process. For a 10-minute feature, Superpowers may feel heavy; for a multi-day feature where a missed spec detail compounds, it is usually cheaper. The skill is explicit that one-liner fixes, code reading, and non-code tasks are not appropriate for the pipeline.
4. How the Three Fit Together
The three skills operate at different layers and are not mutually exclusive.
Context7 fixes the input. It ensures the agent is reasoning from current documentation rather than stale training data. It is useful whether or not you use a process skill.
Agent Skills fixes the workflow shape. It gives the agent a phase vocabulary (/spec, /plan, /build, /test, /review, /ship) and loads the right specialist skill for each phase. It is the lightest way to get lifecycle discipline.
Superpowers fixes execution behavior. It takes the phases and turns them into hard gates, adds subagent review, and makes TDD non-negotiable. It is the heaviest and most opinionated of the three.
A practical combination for OpenClaw is to install Context7 + Agent Skills as the default layer, and to invoke Superpowers explicitly for feature work where the pipeline’s gates justify the overhead. Installing all three at once is possible, but Superpowers’ mandatory pipeline will dominate the agent’s behavior — the agent will route through the Superpowers phases rather than the lighter Agent Skills lifecycle.