技能 编写
- 作者仓库星标 198
- 作者仓库 siclaw
Skill Authoring Guide
Read this guide before creating a new skill or improving an existing one.
SKILL.md Format
---
name: <kebab-case-name>
description: >-
One-line summary. Mention the execution tool if the skill uses scripts.
---
Followed by markdown body:
# <Title>
## Purpose
What problem this skill solves and when to use it.
## Tool
<execution tool invocation — required for script-based skills>
Example: local_script: skill="check-pod-oom", script="check.sh", args="<ns> <pod>"
## Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `<arg1>` | Yes | ... |
## Procedure
Step-by-step actions with concrete commands.
## Examples
Concrete tool invocations with realistic parameters.
Script Execution Modes
| Tool | Runs where | When to use |
|---|---|---|
local_script |
AgentBox (local) | kubectl commands from outside the cluster — most common |
node_script |
K8s node (host) | Needs host tools, /proc, /sys, devices, nsenter |
pod_script |
Inside a pod | Diagnostics inside a running container |
node_script + netns |
Node + pod's network ns | Host tools + pod's network view (call resolve_pod_netns first) |
Best Practices
- One skill, one purpose — don't make Swiss army knives
- Script over inline commands — if the procedure has more than 3 steps, write a script
- Idempotent and read-only — skills are for diagnosis, not remediation
- Description is critical — the agent uses it to decide whether to use this skill
- Concrete examples — at least 2 examples with realistic parameters
- Explain expected output — describe what normal vs abnormal output looks like
- Severity thresholds — when checking error counters, give thresholds so the agent can judge
Common Mistakes
- Too much raw output — dump kubectl describe without filtering. Grep for relevant lines
- Missing Tool section — without it, the agent doesn't know which execution tool to use
- Wrong execution mode — using
local_scriptfor host-level tools (usenode_script) - Hardcoded values — node names, namespaces should be parameters
- No severity guidance — e.g., CRC errors: 0 = normal, 1-100 = minor, >1000 = critical
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @scitix · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- Node.js
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 SKILL.md Format
Followed by markdown body:
Purpose
What problem this skill solves and when to use it.
Tool
<execution tool invocation — required for script-based skills> Example: localscript: skill="check-pod-oom", script="check.sh", args="<ns> <pod>"
Parameters
Parameter · Required · Description <arg1> · Yes · ...
Procedure
Step-by-step actions with concrete commands.
Examples
Concrete tool invocations with realistic parameters.
# Skill Authoring Guide
Read this guide before creating a new skill or improving an existing one.
## SKILL.md Format
```yaml
---
name: <kebab-case-name>
description: >-
One-line summary. Mention the execution tool if the skill uses scripts.
---
```
Followed by markdown body:
```markdown
# <Title>
## Purpose
What problem this skill solves and when to use it.
## Tool
<execution tool invocation — required for script-based skills>
Example: local_script: skill="check-pod-oom", script="check.sh", args="<ns> <pod>"
## Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `<arg1>` | Yes | ... |
## Procedure
Step-by-step actions with concrete commands.
## Examples
Concrete tool invocations with realistic parameters.
```
## Script Execution Modes
| Tool | Runs where | When to use |
|------|-----------|-------------|
| `local_script` | AgentBox (local) | kubectl commands from outside the cluster — **most common** |
| `node_script` | K8s node (host) | Needs host tools, /proc, /sys, devices, nsenter |
| `pod_script` | Inside a pod | Diagnostics inside a running container |
| `node_script` + `netns` | Node + pod's network ns | Host tools + pod's network view (call `resolve_pod_netns` first) |
## Best Practices
- **One skill, one purpose** — don't make Swiss army knives
- **Script over inline commands** — if the procedure has more than 3 steps, write a script
- **Idempotent and read-only** — skills are for diagnosis, not remediation
- **Description is critical** — the agent uses it to decide whether to use this skill
- **Concrete examples** — at least 2 examples with realistic parameters
- **Explain expected output** — describe what normal vs abnormal output looks like
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> SKILL.md Format → Purpose → Tool → Parameters → Procedure → Examples
要点 -> most common · One skill, one purpose · Script over inline commands · Idempotent and read-only · Description is critical · Concrete examples · Explain expected output · Severity thresholds
文件/命令 -> <arg1> · localscript · nodescript · podscript · netns · resolvepodnetns
内容 SHA-256 -> e7cf0f672919
原文结构
适用与边界
原文中的明确线索
<arg1>、localscript、nodescript、podscript、netns、resolvepodnetns