‹ 首页

create-goal

@evolution-foundation · 收录于 5 天前 · 上游提交 2 个月前

Create a Mission, Project, or Goal (Mission → Project → Goal → Task hierarchy) in EvoNexus. Guides the user through picking a mission, choosing or creating a project, defining a measurable goal with metric_type and target_value. Writes to the SQLite goals tables via POST /api/goals. Use when the user says 'create a goal', 'add a mission', 'set a target', 'measure X', 'track Y towards Z', or wants to link work to a measurable outcome.

适合你,如果使用 EvoNexus 管理项目并需要将任务与可衡量目标关联。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add evolution-foundation/evo-nexus/create-goal
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- evolution-foundation/evo-nexus/create-goal
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify evolution-foundation/evo-nexus/create-goal
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
509GitHub stars
~890上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 7f5dd76 · 表述以原文为准
它做什么

当你想创建目标时,Claude会引导你选择使命(mission)、项目(project),再定义可衡量的目标(goal),包括度量类型(如计数、金额)和目标值,最后自动将目标写入EvoNexus数据库。

什么时候触发

当你说“create a goal”、“add a mission”、“set a target”等关键词,或想要关联可衡量结果时触发。

装好后可以这样说
引导选择项目和度量类型
需指定货币类型
目标完成时状态改为achieved
技能原文 SKILL.md作者撰写 · Apache-2.0 · 7f5dd76

Create Goal

Create a Goal in the Mission → Project → Goal → Task hierarchy.

When to use

Use this skill when the user wants to:

  • Declare a new measurable outcome ("100 paying customers by June")
  • Add a project under a mission ("Evo AI is a project under our revenue mission")
  • Create the mission itself (rare — usually 1 mission)
Step 1: Identify the level

Ask the user:

  • Mission — top-level purpose (usually already exists; check with GET /api/missions). v1 assumes 1 active mission.
  • Project — major initiative (Evo AI, Evolution Summit, Academy). Creates under a mission.
  • Goal — measurable target within a project (100 customers, $50k MRR, ship billing v2).

Start with the most common: a new Goal under an existing Project.

Step 2: Collect fields

For a Goal:

  • Title — what's being measured ("100 paying customers")
  • Description — context (optional)
  • Project — which existing project (fetch list via GET /api/projects)
  • metric_type — one of:
  • count — integer (customers, tickets sold, users)
  • currency — USD or BRL value ($50k MRR)
  • percentage — 0.0 to 100.0 (retention rate)
  • boolean — yes/no (ship billing v2 → target_value=1)
  • target_value — the number to reach
  • due_date — ISO date (YYYY-MM-DD) — when the goal is expected to hit
  • target_metric — short label to display on UI (e.g., "paying customers")

For a Project:

  • Slug — unique kebab-case id (e.g., evo-ai)
  • Title — display name
  • Description
  • Mission — parent mission slug
  • workspace_folder_path — optional, points to workspace/project/<slug>.md

For a Mission:

  • Slug, title, description, target_metric, target_value, due_date, status — same pattern
Step 3: Call the API

Use from dashboard.backend.sdk_client import evo — auto-handles URL + auth.

from dashboard.backend.sdk_client import evo

# Goal:
goal = evo.post("/api/goals", {
    "slug": "evo-ai-100-customers",
    "project_id": project_id,
    "title": "100 paying customers by Jun 30",
    "metric_type": "count",
    "target_metric": "paying customers",
    "target_value": 100,
    "due_date": "2026-06-30",
})

# Same shape for /api/projects and /api/missions.

Response includes id and slug.

Step 4: Show the user how to link work

Return the slug and show how to attach it to a routine, heartbeat, or ticket:

# routines.yaml
- name: my-routine
  goal_id: evo-ai-100-customers
  ...

# heartbeats.yaml
- id: flux-6h
  goal_id: evo-ai-100-customers
  ...

# ticket
evo.post("/api/tickets", {"title": "...", "goal_id": goal["id"]})

When linked, the agent running the work receives Mission → Project → Goal chain automatically in its prompt.

Step 5: Show the progress view

Direct the user to /goals in the UI to see the new goal in the tree with 0% progress. As tasks complete (status='done'), the SQLite trigger increments current_value automatically. When current_value >= target_value, the goal status flips to achieved.

Notes
  • Drift: if current_value and SELECT COUNT(*) FROM goal_tasks WHERE status='done' disagree, call POST /api/goals/<id>/recalculate to rebuild.
  • Target changes: PATCH /api/goals/<id> accepts target_value updates.
  • Cancelling: set status='cancelled' to hide from active views without deleting.

Related: .claude/rules/goals.md, .claude/rules/heartbeats.md, .claude/rules/tickets.md.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。