Agent助手
- 作者仓库星标 4,565
- 作者更新于 实时读取
- 作者仓库 epicenter
- 领域
- AI 智能
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @EpicenterHQ · 未声明 license
- Token 消耗评级
- 中等消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: agent-goal
description: Write `/goal` prompts for long-running agent work in Codex or Claude Code. Use for slash goal, a…
category: AI 智能
runtime: 无特殊运行时
---
# agent-goal 输出预览
## PART A: 任务判断
- 适用问题:提示词、Agent 工作流、模型评估或自动化推理。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Core Shape / Rules / Distilled Pattern”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于提示词、Agent 工作流、模型评估或自动化推理,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Core Shape / Rules / Distilled Pattern”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/goal` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Core Shape / Rules / Distilled Pattern”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: agent-goal
description: Write `/goal` prompts for long-running agent work in Codex or Claude Code. Use for slash goal, a…
category: AI 智能
source: EpicenterHQ/epicenter
---
# agent-goal
## 什么时候使用
- 把 AI / Agent方向的常用动作沉淀成 Agent 可调用的技能 适合处理AI Agent、提示词、模型评估与自动化推理,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查…
- 面向提示词、Agent 工作流、模型评估或自动化推理,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Core Shape / Rules / Distilled Pattern」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "agent-goal" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Core Shape / Rules / Distilled Pattern
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Agent Goal
Write one /goal line that a coding agent can keep pursuing across turns until it can prove the work is done.
The best goal is both a directive and a completion condition:
/goal [do the work] until [observable condition is true].
Treat the goal as a contract. It should tell the agent what to do, what evidence proves it, and where to start.
The highest-signal goal answers three questions:
What should change?
How will the agent prove it changed?
Where should the agent start?
Core Shape
Use this structure unless the user needs a different format:
/goal Complete [single objective] in [lane]. First read [required context]. Work in checkpoints. After each checkpoint, surface evidence from [validation]. Continue until [verifiable end state].
Include only execution-critical details:
- Objective: one concrete outcome.
- Lane: files, package, app, branch, issue, spec, backlog label, or intended work area.
- Context: plans, docs, issue links, logs, screenshots, traces, commands, or acceptance criteria to inspect first.
- Evidence: command output, tests, build result, screenshot comparison, eval score, file count, clean git status, or reviewed artifact.
- Done condition: the exact state that means the goal is achieved.
Rules
- Start the answer with
/goalwhen the user asks for the goal text. - Name one main objective. If the request contains a backlog, make the goal "finish this named queue/spec" and define what empty or complete means.
- Make "done" observable. Prefer "
bun test packages/workspaceexits 0" over "tests pass"; prefer "all checked items inPLAN.mdare complete" over "finish the plan." - Tell the agent to surface evidence in the transcript. Goal evaluators judge what the worker has shown, not private intent.
- Put long requirements in a plan or spec, then point the goal at that file. Do not paste a huge spec into
/goal. - Ask for checkpoints when the work spans multiple turns. Each checkpoint should produce a small status note: changed, verified, remaining, questions.
- Bound runaway work with evidence. For example: "after 3 failed attempts on the same test, report the root cause and the next product or ownership question."
- Ordinary focus should not stop grounded fixes.
- Do not use
/goalfor vague wishes, unrelated chores, open-ended research, or work where the agent cannot produce evidence. - Keep the condition judgeable from the transcript. If a separate verifier read only the conversation after each turn, it should be able to tell whether the goal is met.
Distilled Pattern
Think in this order:
Outcome
What must be true?
Evidence
What command, artifact, or visible behavior proves it?
Lane
What is the intended work area?
Method
What should the agent read first, and how should it checkpoint?
Start
Where should the agent begin?
Then compress that into one goal.
Platform Notes
Codex:
- Write the goal as a durable objective attached to the active thread, with a verifiable stopping condition.
- Codex docs do not describe Claude's separate evaluator model. Do not assume Codex uses the same evaluation mechanism.
Claude Code:
/goalsets a session-scoped completion condition.- Claude uses a separate small model after each turn to decide whether the condition has been met.
- The evaluator does not run tools or read files independently.
Shared rule: the goal should not rely on hidden state. Tell the agent to run checks and surface evidence in the transcript.
Verifier Test
Before finalizing the goal, imagine a checker can see only the transcript, not the filesystem.
Good evidence:
`bun test packages/auth` exited 0.
All checklist items in `specs/auth.md` are checked.
The final screenshot shows the empty state and no overlap at 390px and 1440px.
`git diff --name-only` only lists files under `apps/api`.
Weak evidence:
The implementation looks complete.
The agent believes the migration is done.
Most tests should pass.
The UI seems better.
If the evidence is weak, rewrite the goal until completion can be judged from command output, visible artifact checks, or an explicit final status.
Templates
Plan execution:
/goal Implement `specs/[file].md` in checkpoints until every checklist item is complete, the review section is filled in, and `[final validation command]` exits 0. First read the spec and the files it names. After each checkpoint, update the checklist and surface the validation result. Continue unless the spec conflicts with current code or needs a product decision.
Failing tests:
/goal Fix the failing tests in `[lane]` until `[test command]` exits 0 and no unrelated speculative changes are present. First run the command and inspect the failures. Work from the owning boundary outward. After each fix, rerun the targeted test and report the result. Ask before deleting tests or weakening assertions.
Migration:
/goal Migrate `[old path or system]` to `[new path or system]` until all callers use the new path, parity checks pass, and `[final validation command]` exits 0. First read `[migration plan or docs]` and identify callers. Work in checkpoints with validation after each checkpoint. Ask before changing unrelated public APIs, or if compatibility, data migration, or rollback policy is ambiguous.
Prototype:
/goal Build a polished first version of `[app or feature]` inside `[lane]` until the primary flow works end to end, the app builds and runs, and `[visual or command validation]` confirms the expected behavior. First read `[plan or reference]`. Work in checkpoints and surface screenshots or command output as evidence. Ask if the data model or user flow is unclear.
Backlog or issue queue:
/goal Work through `[queue or label]` until every item is closed or has a documented reason it needs user input. First list the queue and choose the item with the clearest owner and validation path. For each item, make the correction at its owning boundary, run `[validation]`, and report the result before moving on. Stop when the queue is empty.
Eval or prompt loop:
/goal Improve `[prompt or system]` until `[eval command]` reaches `[target score]` or no further targeted improvement is justified. First run the eval and inspect failures. Make direct design corrections, rerun the eval after each change, and report score changes. Ask if improvement requires product or policy guidance.
Bad To Good
Weak:
/goal Make the app better and fix bugs.
Strong:
/goal Fix the checkout regressions tracked in `issues/checkout.md` until every listed reproduction passes, `bun test apps/storefront` exits 0, and the final status names any intentionally deferred issues. Work only in `apps/storefront` and shared checkout packages. Ask before changing payment provider contracts or deleting tests.
Weak:
/goal Finish the migration.
Strong:
/goal Complete `specs/20260514T120000 auth-migration.md` until every checklist item is checked, all auth callers compile against the new service, `bun test packages/auth apps/api` exits 0, and `git diff` shows no unrelated speculative edits. Update the spec after each checkpoint. Ask if the old API has undocumented behavior that needs a compatibility decision.
Final Check
Before handing back a goal, verify:
- It begins with
/goal. - It has one main objective.
- It names the evidence that proves completion.
- It tells the agent to surface that evidence.
- It names where to start.
- It tells the agent to continue until the evidence proves completion.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核