Logo van Goal

Goal

Community
coco-research
goal

Persistent project goal that survives across sessions and tools, with continuous-execution loop semantics. Use when someone asks to "set a goal", "what is my goal", "goal status", "keep working on X until done", "resume the goal", or wants work to continue across sessions until an objective is achieved. File-backed (.goal.md at project root); shared by every Coco-installed tool working in that repository.

Add to TypingMind

Overzicht

Uitgevercoco-research
Repositorycoco
Skillnaamgoal
Sterren
550
Forks
12
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door coco-research op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Goal in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/coco-research/coco/tree/main/skills/goal
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coco-research/coco.git /tmp/coco
mkdir -p .claude/skills
cp -r /tmp/coco/skills/goal .claude/skills/goal
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Goal in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Goal automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Goal niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Goal — persistent project objective

A goal is a single objective the agent keeps pursuing across turns and sessions until it is marked done. Inspired by Prime Agent's thread goal: state lives outside any one conversation, so any tool with this skill installed (Claude Code, Cursor, Codex, ...) picks up where another left off.

State file

One file per project: .goal.md in the repository root. Human-readable and human-editable on purpose — pause, resume, edit, and clear are controlled by the user editing the file directly.

markdown
---
objective: Ship release notes for v2.3
status: active        # active | paused | done
created: 2026-08-22
---

## Progress
- 2026-08-22 14:02 — drafted changelog from git log

Optional sections the loop reads if present: ## Queue (ordered work items), ## Standing constraints (owner-set rules that bind every session), ## Decisions (recorded owner calls — binding, never re-litigated), ## Done criteria.

API

  • get — read .goal.md. No file means no goal is set. Report the objective, status, and latest progress entries when asked about goal status.
  • create(objective) — write .goal.md with status: active and today's date. If an active goal already exists, do NOT silently replace it; show it and ask whether to complete, pause, or replace. Only create a goal when the user explicitly asks for a persistent goal; do not infer goals from ordinary tasks.
  • update(note) — append one dated line to ## Progress after each meaningful work session toward the goal. Keep notes short and factual.
  • complete() — set status: done. Only when the objective has actually been achieved and no required work remains — not because the session is ending or momentum ran out.

Session behavior

At the start of a session in a repo containing .goal.md:

  • status: active — surface the objective to the user, then ENTER THE WORK LOOP below before starting unrelated work.
  • status: paused — mention it exists; resume only if the user asks.
  • status: done — leave it as history; offer to archive or replace.

Work loop (continuous execution)

An active goal with remaining actionable items means you run a LOOP, not a single pass. One iteration:

  1. Resume — read .goal.md plus the newest handoff document it references (typically under docs/plans/). Verify recorded receipts against reality (HEAD sha, merged PRs, live state) before trusting them.
  2. Pick the highest-priority item that is actionable right now — from the Queue, the referenced workorder, or the handoff's "exact next action".
  3. Journal before acting — append TODO <task> to ## Progress. If the session dies here, a successor knows precisely what was attempted.
  4. Execute — do the work. Run the real gates. Commit/PR per whatever authority the goal grants (e.g., self-review-and-merge if so recorded).
  5. Journal after — append DONE <task> — <receipt> immediately. Receipt = commit sha, PR number, test counts, or posted artifact. No receipt, not done.
  6. Repeat from step 2 while an actionable item remains and no STOP condition applies.

Never end a turn with actionable items outstanding unless a STOP condition fired. "Momentum ran out" is not a stop condition.

Failure resilience

  • Transient LLM/API/tool failures — timeouts, 429/5xx, dropped connections — are NEVER stop conditions. Retry with backoff (≈30s → 60s → 120s, cap ~5 attempts). If one dependency stays down, journal BLOCKED <item> — <reason>, switch to the next non-dependent actionable item, and circle back.
  • Crash/interrupt safety: because TODO precedes work and DONE follows it, an interrupted session loses nothing. On resume, a task with TODO and no DONE is simply not started yet — verify no half-committed debris, then restart it.
  • Tool/environment failure ≠ task failure. A failing gate gets diagnosed; a failing external service gets routed around; neither ends the loop.
  • Flaky tests fail-then-pass-isolated are recorded as known-flaky, not treated as regressions — but always rerun isolated before concluding that.

Stop conditions (the ONLY reasons to end the loop)

  1. Done — goal achieved; call complete().
  2. Blocked on owner — every remaining item needs an answer only the owner can give. Post the questions (one line each), mark items BLOCKED/DEFERRED, update .goal.md, stop with a clear summary of what you need.
  3. Context limit approaching — write the handoff document (see Handoff), append the final Progress line, stop cleanly.
  4. Repeated hard failure — ≥3 consecutive unrecoverable failures across DIFFERENT items (not retries of one) → write an incident note into Progress and the handoff, stop, report to owner.

Everything else — API flakiness, slow builds, flaky tests, waiting on a local service — is worked through or routed around.

Handoff (graceful exit)

If the repo keeps committed plan/handoff documents (e.g., docs/plans/), the graceful exit is: write/update the handoff file containing exact HEAD sha, PRs landed this session, current queue position, receipts, known gotchas, and the exact next action — then append the final Progress line to .goal.md, then stop. Ending a session without those two writes is a defect: the successor must be able to resume from .goal.md + the latest handoff alone.

Rules

  • One active goal per repository. The file is the source of truth — never keep goal state only in conversation memory.
  • Never delete or rewrite past progress lines; append.
  • Completion must reflect reality. An agent that marks a half-finished goal done defeats the entire mechanism.
  • Standing constraints and recorded decisions inside .goal.md bind every session and outrank this skill's defaults.
  • Journal honestly: a TODO line without a matching DONE line is expected and safe; a DONE line without receipts is a lie.

Harness note (out of skill scope)

This skill makes the AGENT persistent within a session and recoverable across sessions. Fully automatic relaunch after a dead session requires harness-level scheduling (cron/gateway/watchdog) outside any skill's control. If the owner wants unattended overnight loops, pair this skill with a scheduler that re-invokes the agent with "resume the goal".

Veelgestelde vragen

Wat doet de AI-skill Goal?

Persistent project goal that survives across sessions and tools, with continuous-execution loop semantics. Use when someone asks to "set a goal", "what is my goal", "goal status", "keep working on X until done", "resume the goal", or wants work to continue across sessions until an objective is achieved. File-backed (.goal.md at project root); shared by every Coco-installed tool working in that repository.

Waarom Goal gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Goal bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Goal in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/coco-research/coco/tree/main/skills/goal. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Goal gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Goal gebruiken?

Zoveel als je wilt. Je kunt Goal gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Goal gratis?

Deze skill is door coco-research op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇