Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add synaptiai/synapti-marketplace --skill goal-contract-capturegit clone --depth 1 https://github.com/synaptiai/synapti-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/synaptiai/synapti-marketplace/goal-contract-capture)<a href="https://agentmods.dev/skills/synaptiai/synapti-marketplace/goal-contract-capture"><img src="https://agentmods.dev/badge/skills/synaptiai/synapti-marketplace/goal-contract-capture/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/synaptiai/synapti-marketplace/goal-contract-capture"><img src="https://agentmods.dev/badge/skills/synaptiai/synapti-marketplace/goal-contract-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00111 | $0.01458 |
| Opus 5.5 | $0.00044 | $0.00583 |
| Sonnet 5.5 | $0.00022 | $0.00292 |
| Haiku 4.5 | $0.00011 | $0.00146 |
Grade A, and why
goal-contract-capture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Goal Contract Capture
Contract
Iron law: no goal file without an evaluator binding, and no contract element invented: every specification element is lifted from the journal or escalated. Invoked by /flow:start (Phase 1, after the Spec Validation Gate), /flow:goal create, and /flow:debug (after the confirmed hypothesis) with a goal id, scope, source, and invocation reason (start | goal-create | review | address | debug). Returns the written goal path, in draft; the caller then invokes goal-lifecycle for draft → active, which records the goal-created journal artifact. Permitted skips: review and address invocations skip the specification block (they inherit the issue's capture). Nothing else may be skipped.
Inputs
- Goal id:
issue-{N},pr-{N}-review,pr-{N}-address, or an ad-hoc slug matching^[a-z0-9][a-z0-9-]{0,63}$. - Scope:
repo,branch, optionalissue/pr, optionaljournalpath (<journal dir>/issue-{N}.md;bin/journal-dir.shprints the dir). - Source: issue body, PR description, or user-supplied outcome.
- Invocation reason: selects the outcome template and
evaluator.type.
Outputs
<runtime dir>/goals/<id>.goal.yaml at the repository top (bin/flow-runtime-dir.sh --goals prints its path from the working directory; steps 1 and 10 read it there), conforming to plugins/flow/schemas/v1/goal.schema.json, written only through bin/flow-goal-record.sh --create --goal-file <composed.yaml> (atomic, O_NOFOLLOW-defended, schema-validated). This skill writes no journal artifact: goal-lifecycle records goal-created on draft → active, in the session journal when the goal has no linked issue.
Workflow
- [ask: decision] Pre-flight: if the goal file exists with
lifecycle.statusoutside{cancelled, failed}, stop and raise the six-field escalation (flow:decision,references/escalation-format.md). Never overwrite an active goal. metadata:id,created_at(ISO-8601 UTC),created_by(invoking command),owner(gituser.emailor@me).scope: from inputs; leaverun_idunset (run-state-management fills it).- [ask: decision]
objective:outcomeby reason:start: "Issue #{N} is implemented and verified.";review: "PR #{N} review completed with findings posted or no-finding evidence recorded.";address: "All unresolved findings on PR #{N} are resolved, commented, or escalated.";goal-create: AskUserQuestion (metadata.source:flow:decision);debug: the caller's template. Each AC comes fromcriterion-verification-mapoutput withstatus: pending,evidence_ref: null, and itsverification_commandwhen one exists. - [ask: decision]
specification: lift from the## Specificationjournal sectionspecification-capturewrote:non_goalsfrom### Non-goals,failure_modesfrom### Failure modes,interface_contractsfrom### Interface contracts, andrisk_mapfrom the### Risk maptable, where each rowArea | Plausible wrong version | Discriminating checkbecomes{area, plausible_wrong_version, discriminating_check}. When the journal has no### Risk map, omit therisk_mapkey. Never invent rows or fill an empty block with placeholders; an empty non-goals, failure-modes, or interface-contracts block is a six-field escalation (flow:decision). constraints:tdd_required,require_all_pass,no_calendar_estimates,no_tier3_without_confirmationalltrue;denied_pathsandallowed_pathsonly when the goal narrows scope.evaluator:type: flow_verdict_judge(hybridwhen fuzzy criteria exist,deterministicwhen every AC has a command),command: /flow:goal evaluate,judge_agent: goal-evaluator-judge,evidence_bundle_format: plugins/flow/references/evidence-bundle-format.md,denied_context: [implementation_rationale, self_review_findings].continuation:mode: flow_managed,on_incomplete: continue_next_activity,on_blocked: six_field_escalation,on_complete: mark_achieved,max_iterations: 20.lifecycle:status: draft,current_phaseby reason (start: explore,review: fan-out,address: categorize,debug: fix),current_activity,turns_evaluated: 0,last_evaluation: {result: incomplete, reason: "Goal created; evidence not yet collected.", at: <now>}. Neveractiveorachievedat creation.- Write and verify: run the helper, surface any non-zero exit with its stderr, then read the file back and confirm it parses and matches the schema.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago Changed 22dc6ba73ed9
- 1mo ago Changed · +2 tokens per session 2d59a2241189
- 1mo ago Changed · -6 lines de3a8d4aa516
- 2mo ago Changed 579af4f585f0
- 2mo ago Changed · -83 lines · -38 tokens per session deb4713799c3
- 3mo ago First seen · 130 lines · 147 tokens per session scan A 591ab5e86ddc
goal-contract-capture is a skill published in the GitHub repository synaptiai/synapti-marketplace (9 stars, last pushed today), licensed Apache-2.0. It adds 111 tokens to every session and 1,458 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
goal-contract-capture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| goal-contract-capturesynaptiai/synapti-marketplace | Skill | 9 | today | Apache-2.0 | A | 111 | Claude Code |
| create-or-update-conceptsCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 46 | Claude Code |
| step2-scope-tasksCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 20 | Claude Code |
| step1-write-specCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 20 | Claude Code |
| plan-productCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 32 | Claude Code |
| plan-roadmapCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 25 | Claude Code |
| create-prCaptainMe-AI/lead-dev-os | Skill | 2 | 24d ago | MIT | A | 70 | Claude Code |