create-goal

GitHub

用于在EvoNexus系统中创建任务层级中的目标、项目或使命。引导用户定义可测量的指标(如数量、货币、百分比),并通过API写入SQLite数据库,支持将工作链接到具体目标以追踪进度。

.claude/skills/create-goal/SKILL.md evolution-foundation/evo-nexus

Trigger Scenarios

用户想要设定一个可衡量的结果 用户需要添加新项目或使命 用户希望追踪特定指标的变化

Install

npx skills add evolution-foundation/evo-nexus --skill create-goal -g -y
More Options

Non-standard path

npx skills add https://github.com/evolution-foundation/evo-nexus/tree/main/.claude/skills/create-goal -g -y

Use without installing

npx skills use evolution-foundation/evo-nexus@create-goal

指定 Agent (Claude Code)

npx skills add evolution-foundation/evo-nexus --skill create-goal -a claude-code -g -y

安装 repo 全部 skill

npx skills add evolution-foundation/evo-nexus --all -g -y

预览 repo 内 skill

npx skills add evolution-foundation/evo-nexus --list

SKILL.md

Frontmatter
{
    "name": "create-goal",
    "description": "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."
}

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.

Version History

  • 7f5dd76 Current 2026-07-25 04:52

Same Skill Collection

.claude/skills/create-agent/SKILL.md
.claude/skills/create-command/SKILL.md
.claude/skills/create-heartbeat/SKILL.md
.claude/skills/create-integration/SKILL.md
.claude/skills/create-routine/SKILL.md
.claude/skills/create-ticket/SKILL.md
.claude/skills/cs-ticket-triage/SKILL.md
.claude/skills/data-build-dashboard/SKILL.md
.claude/skills/data-create-viz/SKILL.md
.claude/skills/data-explore/SKILL.md
.claude/skills/data-statistical-analysis/SKILL.md
.claude/skills/data-validate/SKILL.md
.claude/skills/db-mongo/SKILL.md
.claude/skills/db-mysql/SKILL.md
.claude/skills/db-postgres/SKILL.md
.claude/skills/db-redis/SKILL.md
.claude/skills/dev-ai-slop-cleaner/SKILL.md
.claude/skills/dev-ask/SKILL.md
.claude/skills/dev-autopilot/SKILL.md
.claude/skills/dev-cancel/SKILL.md
.claude/skills/dev-ccg/SKILL.md
.claude/skills/dev-configure-notifications/SKILL.md
.claude/skills/dev-deep-dive/SKILL.md
.claude/skills/dev-deep-interview/SKILL.md
.claude/skills/dev-deepinit/SKILL.md
.claude/skills/dev-external-context/SKILL.md
.claude/skills/dev-learner/SKILL.md
.claude/skills/dev-mcp-setup/SKILL.md
.claude/skills/dev-plan/SKILL.md
.claude/skills/dev-project-session-manager/SKILL.md
.claude/skills/dev-ralph/SKILL.md
.claude/skills/dev-ralplan/SKILL.md
.claude/skills/dev-release/SKILL.md
.claude/skills/dev-remember/SKILL.md
.claude/skills/dev-sciomc/SKILL.md
.claude/skills/dev-skillify/SKILL.md
.claude/skills/dev-team/SKILL.md
.claude/skills/dev-trace/SKILL.md
.claude/skills/dev-ultraqa/SKILL.md
.claude/skills/dev-verify/SKILL.md
.claude/skills/dev-visual-verdict/SKILL.md
.claude/skills/discord-create-channel/SKILL.md
.claude/skills/discord-get-messages/SKILL.md
.claude/skills/discord-list-channels/SKILL.md
.claude/skills/discord-manage-channel/SKILL.md
.claude/skills/discord-send-message/SKILL.md
.claude/skills/fin-audit-support/SKILL.md
.claude/skills/fin-close-management/SKILL.md
.claude/skills/fin-daily-pulse/SKILL.md

Metadata

Files
0
Version
7f5dd76
Hash
862697d9
Indexed
2026-07-25 04:52

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 01:03
浙ICP备14020137号-1 $mapa de visitantes$