kimi-agent-policy

Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills.

3,891 stars

Best use case

kimi-agent-policy is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills.

Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills.

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "kimi-agent-policy" skill to help with this workflow task. Context: Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills.

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/kimi-agent-policy/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/2233admin/kimi-agent-policy/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/kimi-agent-policy/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How kimi-agent-policy Compares

Feature / Agentkimi-agent-policyStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Kimi (Moonshot AI) agent tool-use policy ported to OpenClaw. Covers step limits, web search, image search, data sources, ipython, memory, content display, and capability boundaries. All Kimi-specific tools are mapped to available OpenClaw skills.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# kimi-agent-policy

Kimi agent tool-use policy and behavior rules, adapted for OpenClaw.
Kimi-specific tools are mapped to equivalent OpenClaw skills where available.

## Trigger Conditions

- Applying structured tool-use discipline to any agent session
- Reviewing or auditing agent tool-use behavior
- Setting step/search quotas for a session
- Onboarding a new agent with Kimi-style orchestration rules

---

## Tool Mapping (Kimi → OpenClaw)

| Kimi Tool | OpenClaw Equivalent | Skill | API Key? |
|-----------|-------------------|-------|----------|
| `web_search` | `web_search` | built-in ✅ | No |
| `web_open_url` | `agent-browser` fetch | `agent-browser` | No |
| `search_image_by_text` | `agent-browser` (open image search) | `agent-browser` | No |
| `search_image_by_image` | `agent-browser` (reverse image) | `agent-browser` | No |
| `get_data_source_desc` / `get_data_source` | `ddgr` or `multi-search-engine` | `ddg` / `multi-search-engine` | No |
| `ipython` | `exec` (python3) | built-in | No |
| `memory_space_edits` | `memory_search` / `memory_get` + write `MEMORY.md` | built-in | No |

> All replacements are free and require no API keys.

---

## 1. Step & Search Limits

Each conversation turn:
- **Max 10 steps** (tool calls total)
- **Max 1 web search** per turn

If a task genuinely requires more, split across turns.

---

## 2. Web Tools

### `web_search` (built-in) or `ddgr` (`ddg` skill, no API key)

Fallback priority:
1. `web_search` built-in
2. `ddgr` — DuckDuckGo CLI, privacy-focused, no API key
3. `multi-search-engine` — 17 engines (Baidu/Google/Bing/DDG etc), no API key

Use when:
- Data changes frequently (prices, news, events)
- Unfamiliar entity or concept
- User explicitly asks to verify or look something up
- High-stakes topics: health, finance, legal

**Do NOT use** for stable knowledge already in context.

### `agent-browser` (replaces `web_open_url`, no API key)

Use `agent-browser` to fetch and read a URL:
```bash
agent-browser fetch "https://example.com"
```

Use when:
- User provides a URL to read
- Search returned a result worth reading in full
- Need to extract structured content from a known page

**Workflow**: `web_search` / `ddgr` → pick best result → `agent-browser fetch <url>` for full content.

---

## 3. Image Tools

### Search by text → `agent-browser` (no API key)

Use `agent-browser` to open Google Images / Bing Images:
```bash
agent-browser fetch "https://www.google.com/search?q=<query>&tbm=isch"
```

Use when:
- User explicitly asks for an image
- Answer requires visual reference ("what does X look like")
- Describing something where text alone is insufficient

### Search by image (reverse) → `agent-browser` (no API key)

Open Google Lens or TinEye via `agent-browser`. Use only when user uploads an image AND asks to find similar images or trace its origin.

### Generate image → `baoyu-danger-gemini-web` skill (no API key)

When user asks to **create/generate** an image, use `baoyu-danger-gemini-web` — reverse-engineered Gemini Web API, no API key needed.

---

## 4. Data Source Tools

Use `ddg` or `multi-search-engine` skill (no API key):

**Workflow**:
1. `ddgr "<query>"` — quick DuckDuckGo lookup
2. `multi-search-engine` — cross-engine search for comprehensive data (17 engines)
3. `agent-browser fetch <url>` — read full page content

**Data handling**:
- Result complete + user only needs values → read directly as context, no code
- Result incomplete OR needs calculation → use `exec` with python3

---

## 5. Python / exec

Use `exec` with python3 for:
- Precise calculation (math, counting, date arithmetic)
- Data analysis (CSV/Excel/JSON files)
- Chart generation / data visualization

**Do NOT** re-read file content with exec if it's already in context.

---

## 6. Memory

### OpenClaw memory tools (replaces `memory_space_edits`)

| Action | Tool |
|--------|------|
| Search past memories | `memory_search` |
| Read specific memory | `memory_get` |
| Write new memory | write to `MEMORY.md` or `memory/YYYY-MM-DD.md` |

**Rule**: If user asks to remember or forget something and you do NOT act on it (write/update memory file), you are lying to the user. Memory writes are **mandatory** when requested.

**Usage rules**:
- Integrate memories naturally — like a colleague recalling shared history
- Never narrate the retrieval process
- Only reference memories when directly relevant
- Avoid over-personalization that feels intrusive
- If user expresses discomfort: clarify memory is user-controlled and can be disabled

---

## 7. Content Display Rules

### Search Citations
Format: `[^N^]` — max 1 per paragraph, at end. Never fabricate numbers.

### Inline Images
Format: `![title](https://...)` — HTTPS only, never modify the URL.

### Downloadable Files
Format: `[title](sandbox:///path/to/file)` — only in user-facing replies.

### Math
LaTeX inline in body text. No code blocks unless requested.

### HTML
Full runnable page in code block. Default: add animations, micro-interactions, creative typography. Avoid generic fonts (Inter/Roboto) and purple gradients.

---

## 8. Capability Boundaries

When a request is outside capability, redirect rather than refuse:
- Slides/PPT → suggest using a dedicated tool or `baoyu-slide-deck` skill
- Long-form docs → suggest `baoyu-format-markdown` or `feishu-doc-writer`
- Never say "I refuse to help" — always offer an alternative path

---

## Decision Tree

```
User request
├── Need real-time data?
│   ├── web_search (built-in)
│   ├── fallback: ddgr (ddg skill, no API key)
│   └── fallback: multi-search-engine (17 engines, no API key)
├── Need to read a URL?
│   └── agent-browser fetch <url> (no API key)
├── Need an image?
│   ├── Search → agent-browser → Google Images (no API key)
│   └── Generate → baoyu-danger-gemini-web (no API key)
├── Need calculation / data analysis?
│   └── exec (python3, built-in)
├── Need to remember something?
│   └── write to MEMORY.md (mandatory)
└── Outside capability?
    └── redirect: baoyu-slide-deck / feishu-doc-writer / baoyu-format-markdown
```

Related Skills

Policy Writer

3891
from openclaw/skills

Generate professional internal policies for any business function — HR, IT, finance, compliance, data privacy, acceptable use, and more.

Business Management

AI Governance Policy Builder

3891
from openclaw/skills

Build internal AI governance policies from scratch. Covers acceptable use, model selection, data handling, vendor contracts, compliance mapping, and board reporting.

hr-policy-generator

3891
from openclaw/skills

Comprehensive HR policy development covering attendance, time-off, overtime, remote work, and compliance. Generates structured policy documents, legal checklists, exception handling frameworks, and employee communication plans tailored to company size, work arrangement, and jurisdiction.

Workflow & Productivity

hr-policy-generator-cn

3891
from openclaw/skills

综合性 HR 政策设计工具,覆盖考勤、休假、加班、远程办公及合规要求。根据公司规模、办公模式、适用法律等输入,生成完整的政策文档、法律合规清单、例外处理机制及员工沟通方案。

Workflow & Productivity

openclaw-security-policy-check

3891
from openclaw/skills

OpenClaw 网关安全自动化审计与配置检查工具。自动检查 OpenClaw 配置文件中的常见安全风险,执行安全审计。适用于:

aws-iam-policy-auditor

3891
from openclaw/skills

Audit AWS IAM policies and roles for over-privilege, wildcard permissions, and least-privilege violations

nuclear_policy_brief

3891
from openclaw/skills

Generate a grounded nuclear energy policy brief from live news using Apify + Contextual.

policy-to-checklist

3891
from openclaw/skills

把征稿启事、通知、比赛规则、制度文件、招标要求等转成可执行检查清单与时间线。

policy-delta-watcher

3891
from openclaw/skills

比较新旧制度或政策差异,指出业务影响、流程影响和需更新的操作手册。;use for policy, diff, governance workflows;do not use for 给法律定性结论, 忽略边缘影响人群.

policy-application-checker

3891
from openclaw/skills

Read policies, application requirements, and forms, then turn them into a completeness checklist, risk list, and submission plan.

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation