Skip to content
Back to skills

Goal

BSecurity

Add, list, rerank, and update Mukul's ranked goals at ~/.claude/assistant-goals.json — the Keel goals control loop the deterministic planner (bin/plan-next-actions.py) reads once turned on. Use when the user types /goal, asks to "add a goal", "list goals", "rerank goals", "pause the planner", or wants to change a goal's outcome/links/status. Mutations go through the local todo-server routes (POST-only, localhost) so goals.json stays flock'd and atomically written. Automation NEVER edits goals...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentspythongoshellbashrailsgitapi

Works with

  • api

Security analysis

B88/100
  • criticalSends environment variables or credentials to an external URL

Pro shows the line behind each finding and how to fix it

Scanned November 24, 2026

npx -y skills add elitecoder/assistant --skill goal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Goal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Goal
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/elitecoder-goal/badge)](https://www.skillsdirectory.com/skills/elitecoder-goal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: goal
description: Add, list, rerank, and update Mukul's ranked goals at ~/.claude/assistant-goals.json — the Keel goals control loop the deterministic planner (bin/plan-next-actions.py) reads once turned on. Use when the user types /goal, asks to "add a goal", "list goals", "rerank goals", "pause the planner", or wants to change a goal's outcome/links/status. Mutations go through the local todo-server routes (POST-only, localhost) so goals.json stays flock'd and atomically written. Automation NEVER edits goals directly — it files a confirmation-gated goal_update proposal; only a human (this skill) edits in place.
---

# /goal — ranked goals + planner control loop

Ranked goal store for the Assistant. File: `~/.claude/assistant-goals.json` (schema in the `_schema` field). The planner is off by default: nothing acts on a goal or records its progress until `"jobs": {"planner": true}` is in `~/.assistant/config.json`. Once it is on, the deterministic planner reads the store at every check, stamps mechanical progress, and stages the next playbook step for stalled goals. This skill is the **human** edit path; it drives the todo-server's `/goal/*` routes (localhost `http://127.0.0.1:9876`), which own the flock'd atomic writes.

## Subcommands

```
/goal                              list goals in rank order
/goal list                         same
/goal add "<title>" --outcome "<measurable outcome>" [flags]
/goal update goal-N --status done|active|paused
/goal update goal-N --outcome "<text>"
/goal rerank goal-3 goal-1 goal-2  set that as ranks 1,2,3
/goal pause | /goal resume         flip the _paused kill switch
```

### Add flags

- `--outcome "<text>"` — **required**, must be measurable
- `--horizon "<text>"` — e.g. `Q3`, `2wk`
- `--repo <owner/name>` (repeatable), `--pr <num>` (repeatable), `--todo td-NNN` (repeatable), `--channel <id>`, `--sender <addr>`, `--jql "<query>"` — the mechanical `links` the progress-linker matches on
- `--rank N` — insert at a rank (default: appended last)

## Execution

All mutations are POST to the local todo-server. Read-only `list` is also POST (mirrors `/decision/list`). The server re-renders the dashboard after each write.

Every call sends the per-install token from `~/.assistant/api-token` as the
`X-Assistant-Token` header. The token must not appear on curl's command line,
where other users can see it in `ps`, so the helper below hands curl the header
on standard input. Each block that follows is complete on its own, because each
one may run in a fresh shell: it repeats the two definition lines.

On a fresh install the token file doesn't exist yet. The first call then
answers `Refused. This request needs the token in ~/.assistant/api-token, sent
as the X-Assistant-Token header.` and the server creates the file; run the same
block again. An answer that starts with `Refused.` is never goal data, so don't
pipe it into a JSON tool.

```bash
BASE=http://127.0.0.1:9876
goal_post() { curl -s -X POST "$BASE$1" -H @- "${@:2}" <<<"X-Assistant-Token: $(cat ~/.assistant/api-token)"; }

# list (a JSON answer; if it starts with "Refused." run the block again)
goal_post /goal/list
```

```bash
BASE=http://127.0.0.1:9876
goal_post() { curl -s -X POST "$BASE$1" -H @- "${@:2}" <<<"X-Assistant-Token: $(cat ~/.assistant/api-token)"; }

# add  (body = JSON)
goal_post /goal/add -H 'Content-Type: application/json' \
  -d '{"title":"Ship Keel M5 connectors","outcome":"GitHub+Gmail connectors green in prod, mis-lane <10%","horizon":"Q3","links":{"repos":["elitecoder/assistant"]}}'

# update  (body = changes)
goal_post /goal/update/goal-1 -H 'Content-Type: application/json' \
  -d '{"status":"done"}'

# rerank
goal_post /goal/rerank -H 'Content-Type: application/json' \
  -d '{"order":["goal-3","goal-1","goal-2"]}'
```

`pause`/`resume` hit their OWN routes, which actually flip `_paused` (the
planner then no-ops, ledgered). This is the REAL kill switch — the old
`/goal/update -d '{}'` "no-op ping" only stamped `updatedAt` and never paused:

```bash
BASE=http://127.0.0.1:9876
goal_post() { curl -s -X POST "$BASE$1" -H @- "${@:2}" <<<"X-Assistant-Token: $(cat ~/.assistant/api-token)"; }

goal_post /goal/pause     # sets _paused:true  → planner no-ops
goal_post /goal/resume    # sets _paused:false
# If the server is down, edit the store root directly via the goals module:
#   python3 -c "import sys;sys.path.insert(0,'$HOME/dev/assistant/src');from assistant import goals;goals.set_paused(True)"
```

### Automation vs human on `/goal/update`

Editing a goal's **status / links / playbook** is confirmation-gated (m18): the
dashboard sends an `X-Assistant-Human: 1` header on those edits and they apply
in place. A request WITHOUT that header (i.e. any automation, including the
assistant's own LLM sessions curling localhost) does NOT apply the change — it
files a `goal_update` proposal in `~/.assistant/comms/proposals.jsonl` for you to confirm. Cross-origin
mutations are refused outright (403). So automation can never flip a goal to
`done` or repoint its links directly; it can only propose.

## Guardrails

- **Outcome is mandatory and measurable** — the store rejects a goal with no outcome. "Make progress on X" is not an outcome; "X shipped to prod with test coverage ≥80%" is.
- **`lastProgressAt` is mechanical** — never set it by hand; the planner stamps it from the ledger/PRs/decisions/TODOs. This skill cannot edit it.
- **Rank is unique** — `rerank` reassigns 1..N; unlisted goals keep their relative order after the listed ones.
- **Automation is confirmation-gated** — if a pulse decides a goal "looks done" or should be reranked, it files a `goal_update` proposal (type=`goal_update` in `proposals.jsonl`) in `~/.assistant/comms/proposals.jsonl` for you to confirm. It never edits the store. Only this human skill edits directly.
- **`_paused:true` is the kill switch** — the planner no-ops (ledgered) until resumed.

## Failure handling

- **Server down** (connection refused) → tell the user the todo-server LaunchAgent isn't running; the store can still be inspected at `~/.claude/assistant-goals.json`.
- **Validation error** (400) → surface the message (missing outcome, unknown field, goal not found) and stop; don't retry.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.