定制

maya82372026-10-28查看 1779复制 922

在项目、本地或用户范围内创建、覆盖、附加或移除 MEOW 技能、代理和工作流。用于更改角色提示、工具、模型、委托、会话或工作流步骤,而无需编辑 MEOW 源代码。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md6474 chars
---
name: customize
description: Create, override, attach, or remove MEOW skills, agents, and workflows in project, local, or user scope. Use for changing role prompts, tools, models, delegates, sessions, or workflow steps without editing MEOW source.
---

# Customize MEOW

Definitions load on every run; no reinstall is needed. Use `docs/WORKFLOWS.md`
for agent/workflow formats and `docs/INTEGRATIONS.md` for configured sources,
skills, models, and permissions. Dependency or install problems: [dependencies](../_shared/dependencies.md).

## See what is customized, by scope

Show the user where each scope's customizations and configuration live (the
table below). On Windows, write user paths as `$env:USERPROFILE\.meow\...`,
not `~`. `meow agents list` and `meow workflows list` report what is in effect
and its scope. Built-ins are viewed with `list`/`show` and changed by ejecting a copy into a scope (section 2). Last, mention that `meow ui` (`--no-browser` prints the URL)
shows the same catalog visually and manages workflows and sessions.

## 1. Resolve the request and scope

Use a skill for reusable instructions, an agent definition for a role with its
own prompt/tools/model, and a workflow for a different sequence of operations.
Ask only for choices the request leaves open; use clear defaults when possible.

| Scope | Agent/workflow directories | Config |
|---|---|---|
| Project | `.meow/agents/`, `.meow/workflows/` | `.meow/config.toml` |
| Local project | `.meow/local/agents/`, `.meow/local/workflows/` | `.meow/config.local.toml` |
| User | `~/.meow/agents/`, `~/.meow/workflows/` | `~/.meow/config.toml` |

These conventional directories require no registration. Higher scopes replace
whole definitions: local > project > user > builtin. Duplicate names within
one scope fail. Share project definitions in version control; never put a
personal absolute path in shared config. Extra directories can be registered
through `[custom]` using its documented scope/path rules.

## 2. Inspect before editing

Run `meow agents list` and/or `meow workflows list` with `--work-dir PATH` when
needed. Use `show NAME` to inspect the effective definition and its scope.
To customize a shipped definition, eject it:

```bash
meow agents eject reviewer --scope project
meow workflows eject quick --scope local
```

Eject copies the shipped file even when an override exists elsewhere and
refuses to overwrite. It records its shipped origin hash. Explain any override
the new file will create. Update drift is reported by `show` and workflow
`validate`; use `meow agents diff NAME` to inspect agent differences.

## 3. Write the definition

**Agent:** `<name>.toml`, with lowercase letters/digits separated by single
hyphens (at most 64 characters). `description` and `prompt` are required.

```toml
description = "Check migrations for locking and rollback safety"
model = "inherit"
tools = ["Read", "Grep", "Glob", "Write"]
skills = []
agents = []
session = "one-shot"
lint_on_edit = false
prompt = '''
Review migrations in {{active_dir}}. {{feedback}}
Write the verdict to {{output_file}}.
{{verdict_format}}
'''
```

Use `session = "persistent"` to retain a role session within a workflow loop.
Optional `[variants]` and `[fragments]` keep alternate prompts and reusable
text. Templates support variables, fragments, and conditional blocks; unknown
values fail before an agent starts. A missing dotted key is empty. Explicit
`[models].role` wins over the agent model; hyphens map to underscores in role
config. `explorer` is customizable. Markdown agents remain a Claude Code import
format, but TOML is preferred for full role definitions.

An agent's `agents` list names explicit delegates. Each delegate's tools are
capped to its parent and exclude `Agent`. Agents registered through
`[custom].agents` also retain planner/generator delegate compatibility, with
optional `roles`. Conventional definitions are used when explicitly named.
Resolved tools remain subject to `[permissions]`; prompts never bypass policy.

**Workflow:** `<name>.toml`, with `description` and a `steps` list. Choose from
`uses = "builtin.name"`, `agent`, `gate`, `loop`, `parallel`, and `call`.

```toml
description = "Review migrations and run configured checks"
[[steps]]
id = "migrations"
gate = "migration-checker"
[[steps]]
uses = "builtin.checks"
```

Blocking loops require a gate or `builtin.review`. Parallel branches must use
read-only agent/gate definitions as specified in `docs/WORKFLOWS.md`. Gates
need a verdict artifact with `SUMMARY:` and `STATUS: PASS|FAIL`; MEOW enforces
the contract even if an override omits it. Conditions can use run flags,
`round`, `steps`, and string `inputs`. Run with `--workflow NAME` and repeated
`--input name=value`, or set `[workflow].default = "NAME"`. Custom workflow
execution uses CLI mode in `/meow:run`.

**Skill:** `<dir>/<name>/SKILL.md`, with frontmatter `name` matching its
directory and `description` explaining when it applies. Supporting files may
sit beside it. Register skill directories through `[custom].skills`; optional
`roles` limits recipients. Definition `skills` and `[agent_skills]` can also
name installed skills.

Register extra directories with `[custom]` using the
[configuration example](../../docs/INTEGRATIONS.md#custom-skills-and-agents).
Workflow sources do not take `roles`.

## 4. Verify and report

Run `meow workflows validate [NAME]`, `meow agents show NAME`, and
`meow native verify` as applicable. Use `meow native workflow NAME` for expanded
JSON, `meow native prompt ROLE` for resolved role instructions, and
`meow native custom --role ROLE` for compatibility delegates and custom skills.
For project scope, confirm files are committable with `git status`.

Report paths, scope, overrides, selection/config changes, and verification.
After adding or changing a skill, tell the user to restart Claude Code so it loads.
Commit only when the user requests it. Remove a file to remove a definition;
remove a configured directory entry to unregister its contents. Follow the
chosen scope's path rules when moving definitions.

## Changing MEOW source

Editable shipped role prose lives in
`src/meow/project/custom/builtin/agents/*.toml`, shipped workflows beside them
under `builtin/workflows/`. `project/prompts.py` owns computed context and gate
contracts. Engine and permission changes belong in their owning packages.
Update the CLI/native documentation together when changing shared behavior.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧