agentleFS
oil-oiloil-oil/kimi/SKILL.md

kimi

Skill23 starsChanged 2 months agoMITView on GitHub

将 UI/UX 设计、前端实现、代码探索、评审和本地媒体分析委托给 Kimi CLI,支持新建或继续会话。仅在用户明确要求 Kimi 或选择本 Skill 时调用;不因普通编码或设计请求自动委托,不用于图片生成与编辑。

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. fergus/claude-kimi-delegate★ 0same name
    2. rrva/claude-code-kimi-agent★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use scripts/ask_kimi.sh instead of invoking kimi -p directly.

    line 10
  2. Very specific:

    Run the wrapper once per task.

    line 11
  3. Very specific:

    Treat Kimi as a design-strong coding Agent.

    line 14
  4. Distinctive:

    Do not mention this Skill or its wrapper implementation in the delegated prompt.

    line 17
  5. Distinctive:

    Run a task in the current workspace:

    line 37
  6. Distinctive:

    Add priority files and an explicit workspace:

    line 43
  7. Very specific:

    Use Kimi's design judgment with a screenshot reference:

    line 52
  8. Distinctive:

    Use a locally configured model alias:

    line 62
  9. Distinctive:

    Read enough local context to state the actual goal and important constraints.

    line 85
  10. Distinctive:

    Run the wrapper with one focused prompt.

    line 87
  11. Very specific:

    Read the Markdown file printed as output_path.

    line 88
  12. Very specific:

    Use --session only for a true follow-up that benefits from Kimi's prior context.

    line 90
  13. Very specific:

    If kimi is unavailable, run kimi --version and check the local installation.

    line 118
  14. Very specific:

    If authentication or configuration fails, run kimi doctor.

    line 119
  15. Very specific:

    If a flag stops working after an upgrade, inspect kimi --help and update the wrapper rather than assuming compatibility with another Agent …

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kimi

Core rules

  • Use scripts/ask_kimi.sh instead of invoking kimi -p directly. The wrapper captures Kimi's JSONL, streams compact progress, records the session ID, and writes a Markdown result.
  • Run the wrapper once per task. After success, read the reported output_path and inspect the workspace before deciding whether a follow-up is needed.
  • Give Kimi the goal, completion criteria, constraints, and non-obvious context. Keep delegated prompts focused, normally under 500 words.
  • Pass 1-4 useful entry points with --file; Kimi can discover the rest. File hints may point to code, images, or videos that Kimi can inspect with its local tools.
  • Treat Kimi as a design-strong coding Agent. Prefer it for UI/UX critique, visual direction, layout and typography decisions, design-system work, and polished frontend implementation.
  • Do not ask Kimi to generate or edit image assets. It can analyze screenshots, images, and videos and then express its design decisions as specifications or frontend code, but it cannot create the image itself. Use an image-generation or image-editing tool when the requested deliverable is an image.
  • Quote paths containing spaces, brackets, or shell metacharacters.
  • Do not mention this Skill or its wrapper implementation in the delegated prompt.

Host compatibility

Use this Skill from any Agent that can load SKILL.md instructions and execute a local shell command. The wrapper is host-agnostic: it communicates with Kimi Code through its CLI and does not call a host-specific API. agents/openai.yaml is optional metadata for OpenAI hosts; other Agents may ignore it.

Safety boundary

Kimi's non-interactive prompt mode uses its automatic permission policy and may edit files or run commands. Use it only in a trusted workspace and only when the user's request authorizes those changes.

kimi -p cannot be combined with Kimi's --plan flag and provides no filesystem sandbox for non-interactive prompt mode. Therefore, this wrapper intentionally has no --read-only option. For enforced no-write exploration, use interactive kimi --plan in the user's terminal or another sandboxed mechanism; do not describe a prompt-only instruction as a read-only guarantee.

Wrapper path

<skill-directory>/scripts/ask_kimi.sh

Usage

Run a task in the current workspace:

./scripts/ask_kimi.sh "Implement the requested change"

Add priority files and an explicit workspace:

./scripts/ask_kimi.sh "Refactor these components to use the new API" \
  --workspace "/path/to/repo" \
  --file "src/components/UserList.tsx" \
  --file "src/components/UserDetail.tsx"

Use Kimi's design judgment with a screenshot reference:

./scripts/ask_kimi.sh "Review this interface and implement a more polished layout" \
  --file "references/current-ui.png" \
  --file "src/App.tsx"

This asks Kimi to inspect the screenshot and improve the implementation; it does not ask Kimi to generate an image.

Use a locally configured model alias:

./scripts/ask_kimi.sh "Review the active request path" \
  --model "kimi-code/kimi-for-coding"

Resume a previous session:

./scripts/ask_kimi.sh "Also add the missing regression test" \
  --session <session_id>

Allow Kimi to access another directory:

./scripts/ask_kimi.sh "Compare the app with the shared package" \
  --add-dir "/path/to/shared-package"

Workflow

  1. Read enough local context to state the actual goal and important constraints.
  2. Choose the workspace, optional model, and 1-4 priority files.
  3. Run the wrapper with one focused prompt.
  4. Read the Markdown file printed as output_path.
  5. Review workspace changes and run verification proportional to risk.
  6. Use --session only for a true follow-up that benefits from Kimi's prior context.

Output

Successful runs print:

session_id=<kimi_session_id>
output_path=<absolute_markdown_path>
elapsed=<seconds>s

The Markdown file contains Kimi's final response, a compact list of tools used, and elapsed time. Raw tool results and arguments are intentionally omitted to keep the handoff concise and reduce accidental secret exposure.

Options

  • --workspace <path>: working directory; defaults to the current directory.
  • --file <path>: priority file or media hint; repeatable.
  • --session <id>: resume a previous Kimi session.
  • --model <alias>: model alias configured in Kimi Code.
  • --add-dir <path>: add an accessible workspace directory; repeatable.
  • --skills-dir <path>: replace Kimi's auto-discovered Skill directories for this run; repeatable.
  • --output <path>: choose the Markdown result path.

Task text may be passed as the first positional argument, with --task, or through stdin.

Failure handling

  • If kimi is unavailable, run kimi --version and check the local installation.
  • If authentication or configuration fails, run kimi doctor; use kimi login when authentication is missing.
  • If a flag stops working after an upgrade, inspect kimi --help and update the wrapper rather than assuming compatibility with another Agent CLI.
  • A non-zero Kimi exit is treated as failure. Exit code 3 means a goal blocked and 6 means a goal paused on versions that support goal mode.
  • Kimi warnings remain captured for diagnostics; failure output is truncated and common token patterns are redacted.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.