Agent安装
- 作者仓库星标 435
- 作者更新于 实时读取
- 作者仓库 agr
- 领域
- 通用
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @computerlovetech · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill-debrief
description: > Capture lessons from a session into the skill that drove it. The default shape is listen → pro…
category: 通用
runtime: 无特殊运行时
---
# skill-debrief 输出预览
## PART A: 任务判断
- 适用问题:通用任务拆解、检查和交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“When to use / Step 1: Identify the skill / Step 2: Receive feedback”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于通用任务拆解、检查和交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“When to use / Step 1: Identify the skill / Step 2: Receive feedback”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/tmp` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件。
先用一个小任务确认它会围绕“When to use / Step 1: Identify the skill / Step 2: Receive feedback”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: skill-debrief
description: > Capture lessons from a session into the skill that drove it. The default shape is listen → pro…
category: 通用
source: computerlovetech/agr
---
# skill-debrief
## 什么时候使用
- 把通用方向的常用动作沉淀成 Agent 可调用的技能 适合处理通用任务拆解、检查、交付和复盘,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需要额外…
- 面向通用任务拆解、检查和交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「When to use / Step 1: Identify the skill / Step 2: Receive feedback」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "skill-debrief" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> When to use / Step 1: Identify the skill / Step 2: Receive feedback
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Skill Debrief
Capture lessons from a session into the skill that drove it. The default shape is listen → propose → align → apply → re-install.
When to use
Trigger when the user wants to debrief an existing SKILL.md based on what happened in the session. Examples:
- "debrief the X skill" / "let's debrief X"
- "retrospective on X" / "feedback on X"
- "improve the X skill" / "let's update X based on what we learned"
- "X skill should also handle …"
- "X didn't trigger when it should have"
Do NOT use this skill for:
- Greenfield skill authoring. Use
agr initto scaffold a SKILL.md and defer the body content to the user — or to a dedicated authoring skill such asanthropics/skills/skill-creator(agr add anthropics/skills/skill-creator). - Installing / syncing / removing skills. That's plain
agrCLI work (agr add,agr sync,agr upgrade,agr remove).
Step 1: Identify the skill
Ask which skill is being improved if it isn't obvious from context. Then locate the source:
agr list # see installed deps and short names
ls skills/ # in-repo source if present
cat agr.toml # see whether the dep is local-path or remote
Two cases — they have different update paths:
| Case | Source location | Update path |
|---|---|---|
In-repo ({path = "./skills/<name>", type = "skill"} in agr.toml) |
skills/<name>/ |
Edit source → commit → agr upgrade <name> |
Remote ({handle = "user/repo/<name>", …}) |
Upstream GitHub repo | Cannot edit directly — see Step 5 |
If the skill isn't installed at all but the user wants to improve it, ask whether to add it first (and which case applies).
Step 2: Receive feedback
Listen. The user invoked this skill because they have something to say — let them say it. Do not interrogate. Do not run a checklist of questions at them. Take in whatever they offer, in whatever shape they offer it.
Only ask a clarifying question if you genuinely cannot proceed without one (e.g. the user named a skill that doesn't exist, or two skills share the name and you need to disambiguate). Even then, ask the minimum.
Be dynamic. The user may surface things in any shape — a single
sentence ("the description should also fire on X"), a structured list, or a
ramble that you need to distill. They may also surface things outside the
standard buckets below (rename a section, restructure references/, change
output format, drop a deprecated workflow, fix a typo). Apply whatever the
user actually says.
The buckets below are a mental map for you when distilling what you heard, not a checklist to recite at the user:
description/ triggers — under-fired or over-fired- Gotchas / boundaries — a foot-gun the skill didn't warn about
- Workflow steps — missing, wrong, or out of order
- References — a topic kept needing more depth → new
references/<topic>.md - Examples / output format — vague where it should be concrete
- Pruning — outdated content that misled
Step 3: Propose changes
Summarize what you heard, then propose specific edits. Format:
Proposed changes to
skills/<name>/SKILL.md(and any references):
- Description — add trigger phrase "…" (because: …)
- Boundaries — add: never X (because: discovered this in session)
- New section "Y" — describes the workflow that was missing
Want me to apply these, revise, or add more?
For small edits, show the exact diff inline. For larger changes, summarize first and apply section by section.
Wait for explicit user approval before editing. "yes" / "go ahead" / similar. If the user revises, loop back to Step 2 or 3.
Step 4: Apply (in-repo case)
Edit the source file(s) under skills/<name>/. Then:
git status # confirm only the intended files changed
git add skills/<name>/
git commit -m "skill(<name>): <one-line summary>"
agr upgrade <name> # re-installs into all configured tools, refreshes agr.lock
git add agr.lock
git commit --amend --no-edit # or commit separately; match the repo's style
Do not push. Stop after the commit and let the user push when ready.
Commit message style
Use a conventional-commits-style scope:
skill(<name>): <imperative summary>
Examples:
skill(agr-cli): clarify upgrade vs sync for local paths
skill(agr-cli): add gotcha for same-repo siblings
skill(code-review): drop outdated linter pre-check
If the repo's commit style differs (check git log --oneline -20), match it.
Why agr upgrade and not agr sync?
agr sync only installs missing deps — it does NOT re-copy a local-path
skill that's already installed. agr upgrade <name> re-copies it and
refreshes agr.lock. Use agr upgrade.
(Equivalent: agr add ./skills/<name> --overwrite. Pick upgrade for
consistency — it's the same verb used to refresh remote skills.)
Step 5: Apply (remote case)
If the skill is a remote dep, the change cannot be applied directly. Ask the user which path they want:
Option A — File an issue upstream via gh
Best when the change benefits everyone (a real bug or universal improvement in someone else's published skill).
Resolve the upstream repo from the handle:
anthropics/skills/pdf→--repo anthropics/skillsuser/myrepo/skill→--repo user/myrepo
Confirm the title and body with the user, then:
gh issue create \
--repo <owner>/<repo> \
--title "[<skill-name>] <short summary>" \
--body "$(cat <<'EOF'
## What I observed
<concrete scenario from the session>
## Suggested change
<proposed wording or workflow>
## Why
<reasoning>
EOF
)"
gh issue create posts publicly — treat it the same as any other shared-
state action. Always confirm before running.
If the user has push access and a local clone, also offer to open a PR instead of (or alongside) the issue.
Option B — Fork to in-repo
Best when the change is project-specific or unlikely to be accepted
upstream. Copies the skill into skills/<name>/ so future retros work the
in-repo way.
Suggested flow:
# 1. Find the upstream commit (agr.lock has it)
agr list
# 2. Sparse-checkout or full clone, then copy the folder:
mkdir -p skills
cp -r /tmp/upstream-clone/<skill-folder> skills/<name>
# 3. Swap the dep
agr remove anthropics/skills/<name>
agr add ./skills/<name>
Tell the user this forks the skill — they're now responsible for keeping it current with upstream. Then continue from Step 3 with the in-repo flow.
Both A and B
Offer Option A first when the change is generally useful. Offer Option B when upstream is unlikely to accept, or when the user wants the change now without waiting on upstream.
Step 6: Verify
After re-installing (in-repo case):
agr list # status should be `installed`
diff skills/<name>/SKILL.md .claude/skills/<name>/SKILL.md # should be empty
For remote case (issue filed): confirm the issue URL with the user.
Tell the user what's done and what's pending (commit done, push pending; or issue filed, awaiting response).
Boundaries
- Don't edit a skill without explicit user approval of the proposed changes. Skills are user-owned content — never silently revise.
- Don't push. Commit only; the user pushes when ready.
- Don't open issues or PRs without confirming the title and body with
the user first.
gh issue createis publicly visible — treat it as shared-state. - Don't edit
agr.lockby hand —agr upgraderegenerates it. - Don't broaden the scope of the edit beyond what was discussed. If the user asked to fix one gotcha, don't also restructure the file.
- Don't write a skill from scratch — that's a separate workflow.
See also
anthropics/skills/skill-creator— canonical greenfield skill authoring (install withagr add anthropics/skills/skill-creatorif needed)
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核