Agent部署
- 作者仓库星标 374
- 作者更新于 实时读取
- 作者仓库 skills
- 领域
- 通用
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @pedronauck · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill-load-tips
description: >- Refactor pattern for SKILL.md files where the body is the only thing the agent ever reads. Th…
category: 通用
runtime: 无特殊运行时
---
# skill-load-tips 输出预览
## PART A: 任务判断
- 适用问题:通用任务拆解、检查和交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“The Failure Mode / Symptoms (how to spot it) / The Four Fixes (apply in order)”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于通用任务拆解、检查和交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“The Failure Mode / Symptoms (how to spot it) / The Four Fixes (apply in order)”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件。
先用一个小任务确认它会围绕“The Failure Mode / Symptoms (how to spot it) / The Four Fixes (apply in order)”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: skill-load-tips
description: >- Refactor pattern for SKILL.md files where the body is the only thing the agent ever reads. Th…
category: 通用
source: pedronauck/skills
---
# skill-load-tips
## 什么时候使用
- 把通用方向的常用动作沉淀成 Agent 可调用的技能 适合处理通用任务拆解、检查、交付和复盘,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需要额外…
- 面向通用任务拆解、检查和交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「The Failure Mode / Symptoms (how to spot it) / The Four Fixes (apply in order)」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "skill-load-tips" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> The Failure Mode / Symptoms (how to spot it) / The Four Fixes (apply in order)
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Skill Load Tips
Refactor pattern for SKILL.md files where the body is the only thing the agent ever reads. The references/ folder might as well not exist.
The Failure Mode
Large skills frequently ship with rich reference files (references/*.md) that contain the load-bearing detail — full ARIA patterns, banned-vocab lists, before/after examples, archetypes — and a SKILL.md body that summarizes them. The agent reads the body, feels it has "enough," and never fans out. The reference files become dead weight.
This is the inline-substitutes-for-reference antipattern. It is the single most common reason a well-organized skill underperforms.
Symptoms (how to spot it)
A SKILL.md likely has this problem if two or more apply:
- Body is over 250 lines and inlines checklists, tables, or banned-word lists that also live in a referenced file.
- The "Reference Index" / "Files" section is at the bottom, after the operating loop.
- References are introduced with hedged phrases: "For depth, read X", "see X for details", "X has more".
- No upfront "router" mapping task → mandatory file.
- Reference files are linked from other reference files (deep nesting), not directly from SKILL.md.
- Reference files over 100 lines have no table of contents at the top.
The Four Fixes (apply in order)
Fix 1 — Add a Required Reading Router at the top
Insert a table immediately after the skill's opening paragraph (before any "Operating Loop" / "Steps" section). The table maps task type → file(s) that MUST be read for that task.
Template:
## Required Reading Router
Match your task to the row. Read the listed files **in full before** producing output. They are not appendices — they are load-bearing. Inline content in this SKILL.md is a pointer, not a substitute.
| Task | MUST read |
| --------------------------------------------- | ------------------------------------------------------------ |
| [Task type A] | `references/file-a.md` |
| [Task type B] | `references/file-b.md` + `references/file-c.md` |
| [Task type C] | `references/file-d.md` |
Pair the router with a Reference Index directly below it: one-line descriptions of what each file contains, so the router tells the agent when to load and the index tells what they get.
Fix 2 — Use hard STOP directives in operating steps
Every step that has a corresponding reference file gets a forced-read directive at the end. Replace soft phrasing with imperative.
Before:
For ARIA component patterns and verification recipes, read `references/accessibility-floor.md`.
After:
**STOP. Read `references/accessibility-floor.md` in full before implementing or reviewing any interactive widget.** That file contains the complete ARIA patterns (dialog, combobox, menu, tabs, slider, listbox) and the verification recipes. The inline summary above is a tripwire, not the contract.
Three rules for STOP directives:
- Bold the word STOP. It is a visual interrupt.
- Name the trigger condition ("when implementing an interactive widget", "when extending tokens"). Not just "if you want depth."
- State that the inline content is a tripwire, not the source of truth.
Fix 3 — Trim duplicated inline content to gist tripwires
When a SKILL.md step contains a 10-bullet checklist that is also in a reference file, the agent reads the checklist and skips the reference. Cut the inline to a 2-3 line "tripwire" — enough for the agent to detect violations during scanning, but obviously incomplete.
Before (inline 10-bullet WCAG checklist):
- Text contrast ≥ 4.5:1 (≥ 3:1 for large text)
- Non-text indicators contrast ≥ 3:1
- Focus visible (2px minimum)
- Keyboard reachable
- Target size ≥ 24×24
- prefers-reduced-motion honored
- Semantic landmarks
- Headings in order
- Form controls labeled
- Errors associated via aria-describedby
After (3-line tripwire + forced read):
Gist tripwires — the floor items that catch most slop:
- Text contrast ≥ 4.5:1; focus-visible ≥ 2px on every interactive element.
- Full keyboard reachability; `prefers-reduced-motion` honored.
- Semantic landmarks + heading order; form controls programmatically labeled.
**STOP. Read `references/accessibility-floor.md` in full before implementing or reviewing any interactive widget.** The three bullets above are tripwires, not the contract.
Trim aggressively. If the inline list and the reference cover the same ground, the reference always wins.
Fix 4 — Flatten reference depth to one level
Per Anthropic's docs: when references link to references, the agent uses partial reads (head -100) and misses content. All references/*.md files must be linked directly from SKILL.md, not from each other.
Bad:
SKILL.md → references/advanced.md → references/details.md
Good:
SKILL.md → references/advanced.md
SKILL.md → references/details.md
Also: any reference file over 100 lines needs a ## Contents section at the top, so partial reads still surface the scope.
Anti-Patterns
Things that look like fixes but aren't:
- Adding "(important)" or emoji to existing trigger lines. The agent reads tone, not decoration. Mandatory phrasing requires verbs (
STOP. Read…), not adjectives. - Making references shorter so the body can stay inline. The opposite of the goal. References should grow as the body shrinks.
- Adding a "TL;DR" at the top of every reference file. The agent reads the TL;DR and skips the body. Use a Contents TOC instead — names of sections, not summaries.
- Renaming references to suggest urgency (
URGENT-read-this.md,MUST-READ.md). The filename does not change the read decision; the trigger phrasing in SKILL.md does. - Splitting SKILL.md into many small files at the same level. SKILL.md is the single entry point. Multiple top-level skill files break discovery.
Refactor Checklist
Before declaring a refactor done, verify against the rewritten SKILL.md:
- Required Reading Router exists in the first 50 lines (after intro/philosophy).
- Reference Index sits next to the Router.
- Every operating step that has a corresponding reference file ends with a
**STOP. Read references/X.md …**directive. - Inline checklists that duplicate reference content have been trimmed to ≤ 3 bullets, labeled as "tripwires" or "gist."
- No reference file links to another reference file (one level deep only).
- Reference files > 100 lines have a
## ContentsTOC at the top. - SKILL.md body is under 500 lines (Anthropic's recommended ceiling).
- No
For depth, see XorRead X for morephrasing remains — every reference mention is either router/index (descriptive) or a STOP directive (mandatory).
How To Run a Refactor Pass
- Open SKILL.md and the
references/directory side by side. - Inventory: list every reference file and what it covers.
- Diagnose: walk the Symptoms list above; mark each hit.
- Apply Fix 1 (Router + Index), then Fix 2 (STOPs), then Fix 3 (trim inline), then Fix 4 (flatten depth + add TOCs).
- Run the checklist. If any item is unchecked, the refactor is not done.
- Test by asking a fresh agent instance to perform a task that requires a reference file. Observe whether it actually reads the file. If it doesn't, the STOP directive for that file is too weak — strengthen the trigger condition.
When NOT To Use
- Authoring a new skill from scratch — use
skill-best-practices. - Editing reference files themselves without touching SKILL.md.
- Skills under 150 lines with no reference files (nothing to route).
- AGENTS.md / CLAUDE.md refactors — those follow different rules; use
agent-md-refactor.
Bottom Line
A reference file the agent never loads is a reference file that does not exist.
The body of SKILL.md is a dispatcher, not an encyclopedia.
Trim the inline. Force the load. Flatten the depth.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核