npx skills add https://github.com/boshu2/agentops --skill goals维护 GOALS.yaml 和 GOALS.md 健身规范。使用
ao goalsCLI 进行所有操作。
你必须执行此工作流。不要仅仅描述它。
/goals # 测量健身度(默认)
/goals init # 交互式引导创建 GOALS.md
/goals steer # 管理指令
/goals add # 添加新目标
/goals drift # 比较快照以检测回归
/goals history # 显示测量历史
/goals export # 将快照导出为 JSON 供 CI 使用
/goals meta # 仅运行元目标
/goals validate # 验证结构
/goals prune # 移除过时的门限
/goals migrate # 将 YAML 迁移到 Markdown
| 格式 | 文件 | 版本 | 功能 |
|---|---|---|---|
| YAML | GOALS.yaml | 1-3 | 包含检查、权重、支柱的目标 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Markdown |
| GOALS.md |
| 4 |
| 目标 + 使命 + 北极星/反北极星 + 指令 |
当两个文件都存在时,GOALS.md 优先。
解析用户的输入:
| 输入 | 模式 | CLI 命令 |
|---|---|---|
/goals, /goals measure, "goal status" | measure | ao goals measure |
/goals init, "bootstrap goals" | init | ao goals init |
/goals steer, "manage directives" | steer | ao goals steer |
/goals add, "add goal" | add | ao goals add |
/goals drift, "goal drift" | drift | ao goals drift |
/goals history, "goal history" | history | ao goals history |
/goals export, "export goals" | export | ao goals export |
/goals meta, "meta goals" | meta | ao goals meta |
/goals validate, "validate goals" | validate | ao goals validate |
/goals prune, "prune goals", "clean goals" | prune | ao goals prune |
/goals migrate, "migrate goals" | migrate | ao goals migrate |
ao goals measure --json
解析 JSON 输出。提取每个目标的通过/失败状态、整体健身度分数。
如果目标文件是 GOALS.md 格式:
ao goals measure --directives
对于每个指令,评估近期工作是否已解决它:
呈现健身度仪表板:
Fitness: 5/7 passing (71%)
Gates:
[PASS] build-passing (weight 8)
[FAIL] test-passing (weight 7)
└─ 3 test failures in pool_test.go
Directives:
1. Expand Test Coverage — gap (no recent test additions)
2. Reduce Complexity — partially-addressed (2 refactors this week)
ao goals init
或使用默认值:
ao goals init --non-interactive
创建一个包含使命、北极星/反北极星、第一条指令和自动检测门限的新 GOALS.md 文件。如果文件已存在则报错。
首先运行测量模式以显示当前健身度和指令状态。
基于测量结果:
使用 CLI 命令:
ao goals steer add "Title" --description="..." --steer=increase
ao goals steer remove 3
ao goals steer prioritize 2 1
向目标文件添加单个目标。格式感知 — 根据检测到的格式写入 GOALS.yaml 或 GOALS.md。
ao goals add <id> <check-command> --weight=5 --description="..." --type=health
| 标志 | 默认值 | 描述 |
|---|---|---|
--weight | 5 | 目标权重 (1-10) |
--description | — | 人类可读的描述 |
--type | — | 目标类型 (health, architecture, quality, meta) |
示例:
ao goals add go-coverage-floor "bash scripts/check-coverage.sh" --weight=3 --description="Go test coverage above 60%"
将最新的测量快照与之前的快照进行比较,以检测回归。
ao goals drift # 比较最新快照与上一个快照
报告哪些目标有所改进、出现回归或保持不变。
显示所有目标或特定目标随时间变化的测量历史。
ao goals history # 所有目标,所有时间
ao goals history --goal go-coverage # 单个目标
ao goals history --since 2026-02-01 # 自特定日期起
ao goals history --goal go-coverage --since 2026-02-01 # 组合使用
有助于发现趋势和识别波动的目标。
将最新的健身度快照导出为 JSON,供 CI 或外部工具使用。
ao goals export
将快照以健身度快照模式输出到 stdout(参见 references/goals-schema.md)。
仅运行元目标(验证验证系统本身的目标)。用于检查允许列表的卫生状况、跳过列表的新鲜度以及其他自引用检查。
ao goals meta --json
有关元目标模式,请参见 references/goals-schema.md。
ao goals validate --json
报告:目标数量、版本、格式、指令数量、任何结构错误或警告。
ao goals prune --dry-run # 列出过时的门限
ao goals prune # 移除过时的门限
识别那些检查命令引用了不存在路径的门限。移除它们并重新渲染文件。
在目标文件格式之间进行转换。
ao goals migrate --to-md # 转换 GOALS.yaml → GOALS.md
ao goals migrate # 将 GOALS.yaml 迁移到最新的 YAML 版本
--to-md 标志会创建一个包含使命、北极星/反北极星部分的 GOALS.md,并将现有目标转换为门限表格式。原始的 YAML 文件会被备份。
用户说: /goals
会发生什么:
ao goals measure --json 以获取门限结果ao goals measure --directives 以获取指令列表结果: 显示门限通过率和指令进度的仪表板。
用户说: /goals init
会发生什么:
ao goals init,它会提示输入使命、北极星、指令,并自动检测门限结果: 新的 GOALS.md 已准备好供 /evolve 使用。
用户说: /goals add go-parser-fuzz "cd cli && go test -fuzz=. ./internal/goals/ -fuzztime=10s" --weight=3 --description="Markdown parser survives fuzz testing"
会发生什么:
ao goals add结果: 新目标已添加,可在下次运行 /goals 时进行测量。
| 问题 | 原因 | 解决方案 |
|---|---|---|
| "goals file already exists" | 在现有项目上调用 Init | 使用 /goals 进行测量,或删除文件以重新初始化 |
| "directives require GOALS.md format" | 在 YAML 文件上尝试 steer | 首先运行 ao goals migrate --to-md |
| 测量输出中没有指令 | GOALS.yaml 不支持指令 | 使用 ao goals migrate --to-md 迁移到 GOALS.md |
| 门限引用了已删除的脚本 | 脚本被重命名或移除 | 运行 /goals prune 进行清理 |
| 漂移显示无历史记录 | 没有保存先前的快照 | 首先至少运行两次 ao goals measure |
| 导出返回空结果 | 不存在快照文件 | 运行 ao goals measure 以创建初始快照 |
/evolve — 使用目标进行健身度评分的改进循环references/goals-schema.md — 两种格式的模式定义references/generation-heuristics.md — 目标质量标准每周安装次数
153
仓库
GitHub 星标数
198
首次出现
2026年2月17日
安全审计
安装于
opencode152
github-copilot148
codex148
kimi-cli148
gemini-cli148
amp148
Maintain GOALS.yaml and GOALS.md fitness specifications. Use
ao goalsCLI for all operations.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
/goals # Measure fitness (default)
/goals init # Bootstrap GOALS.md interactively
/goals steer # Manage directives
/goals add # Add a new goal
/goals drift # Compare snapshots for regressions
/goals history # Show measurement history
/goals export # Export snapshot as JSON for CI
/goals meta # Run meta-goals only
/goals validate # Validate structure
/goals prune # Remove stale gates
/goals migrate # Migrate YAML to Markdown
| Format | File | Version | Features |
|---|---|---|---|
| YAML | GOALS.yaml | 1-3 | Goals with checks, weights, pillars |
| Markdown | GOALS.md | 4 | Goals + mission + north/anti stars + directives |
When both files exist, GOALS.md takes precedence.
Parse the user's input:
| Input | Mode | CLI Command |
|---|---|---|
/goals, /goals measure, "goal status" | measure | ao goals measure |
/goals init, "bootstrap goals" | init | ao goals init |
/goals steer, "manage directives" | steer | ao goals steer |
ao goals measure --json
Parse the JSON output. Extract per-goal pass/fail, overall fitness score.
If the goals file is GOALS.md format:
ao goals measure --directives
For each directive, assess whether recent work has addressed it:
Present fitness dashboard:
Fitness: 5/7 passing (71%)
Gates:
[PASS] build-passing (weight 8)
[FAIL] test-passing (weight 7)
└─ 3 test failures in pool_test.go
Directives:
1. Expand Test Coverage — gap (no recent test additions)
2. Reduce Complexity — partially-addressed (2 refactors this week)
ao goals init
Or with defaults:
ao goals init --non-interactive
Creates a new GOALS.md with mission, north/anti stars, first directive, and auto-detected gates. Error if file already exists.
Run measure mode first to show current fitness and directive status.
Based on measurement:
Use CLI commands:
ao goals steer add "Title" --description="..." --steer=increase
ao goals steer remove 3
ao goals steer prioritize 2 1
Add a single goal to the goals file. Format-aware — writes to GOALS.yaml or GOALS.md depending on which format is detected.
ao goals add <id> <check-command> --weight=5 --description="..." --type=health
| Flag | Default | Description |
|---|---|---|
--weight | 5 | Goal weight (1-10) |
--description | — | Human-readable description |
--type | — | Goal type (health, architecture, quality, meta) |
Example:
ao goals add go-coverage-floor "bash scripts/check-coverage.sh" --weight=3 --description="Go test coverage above 60%"
Compare the latest measurement snapshot against a previous one to detect regressions.
ao goals drift # Compare latest vs previous snapshot
Reports which goals improved, regressed, or stayed unchanged.
Show measurement history over time for all goals or a specific goal.
ao goals history # All goals, all time
ao goals history --goal go-coverage # Single goal
ao goals history --since 2026-02-01 # Since a specific date
ao goals history --goal go-coverage --since 2026-02-01 # Combined
Useful for spotting trends and identifying oscillating goals.
Export the latest fitness snapshot as JSON for CI consumption or external tooling.
ao goals export
Outputs the snapshot to stdout in the fitness snapshot schema (see references/goals-schema.md).
Run only meta-goals (goals that validate the validation system itself). Useful for checking allowlist hygiene, skip-list freshness, and other self-referential checks.
ao goals meta --json
See references/goals-schema.md for the meta-goal pattern.
ao goals validate --json
Reports: goal count, version, format, directive count, any structural errors or warnings.
ao goals prune --dry-run # List stale gates
ao goals prune # Remove stale gates
Identifies gates whose check commands reference nonexistent paths. Removes them and re-renders the file.
Convert between goal file formats.
ao goals migrate --to-md # Convert GOALS.yaml → GOALS.md
ao goals migrate # Migrate GOALS.yaml to latest YAML version
The --to-md flag creates a GOALS.md with mission, north/anti stars sections, and converts existing goals into the Gates table format. The original YAML file is backed up.
User says: /goals
What happens:
ao goals measure --json to get gate resultsao goals measure --directives to get directive listResult: Dashboard showing gate pass rates and directive progress.
User says: /goals init
What happens:
ao goals init which prompts for mission, stars, directives, and auto-detects gatesResult: New GOALS.md ready for /evolve consumption.
User says: /goals add go-parser-fuzz "cd cli && go test -fuzz=. ./internal/goals/ -fuzztime=10s" --weight=3 --description="Markdown parser survives fuzz testing"
What happens:
ao goals add with the provided argumentsResult: New goal added, measurable on next /goals run.
| Problem | Cause | Solution |
|---|---|---|
| "goals file already exists" | Init called on existing project | Use /goals to measure, or delete file to re-init |
| "directives require GOALS.md format" | Tried steer on YAML file | Run ao goals migrate --to-md first |
| No directives in measure output | GOALS.yaml doesn't support directives | Migrate to GOALS.md with ao goals migrate --to-md |
| Gates referencing deleted scripts | Scripts were renamed or removed | Run /goals prune to clean up |
| Drift shows no history | No prior snapshots saved |
/evolve — consumes goals for fitness-scored improvement loopsreferences/goals-schema.md — schema definition for both formatsreferences/generation-heuristics.md — goal quality criteriaWeekly Installs
153
Repository
GitHub Stars
198
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode152
github-copilot148
codex148
kimi-cli148
gemini-cli148
amp148
Canvas Design 技能:AI驱动视觉哲学创作与画布设计工具 | 艺术生成与美学设计
1,200 周安装
agent-memory 技能 - AI 助手记忆管理工具 | 提升开发效率与代码协作
1,100 周安装
AI技能开发:session-wrap与multi-agent分析实战指南 | 技能创建与验证流程
1,100 周安装
持续代理循环 (continuous-agent-loop) - Claude AI 自动化开发工作流与代理循环管理
1,200 周安装
Flutter布局指南:构建响应式UI的约束规则与自适应设计模式
1,200 周安装
CTF Web漏洞利用速查手册 - SQL注入、SSTI、XXE、反序列化、XSS等攻防技术大全
1,200 周安装
/goals add, "add goal" | add | ao goals add |
/goals drift, "goal drift" | drift | ao goals drift |
/goals history, "goal history" | history | ao goals history |
/goals export, "export goals" | export | ao goals export |
/goals meta, "meta goals" | meta | ao goals meta |
/goals validate, "validate goals" | validate | ao goals validate |
/goals prune, "prune goals", "clean goals" | prune | ao goals prune |
/goals migrate, "migrate goals" | migrate | ao goals migrate |
Run ao goals measure at least twice first |
| Export returns empty | No snapshot file exists | Run ao goals measure to create initial snapshot |