rules latest

v1v13updated MITsha256 bada79e2cb3f

The Context harness — the execution discipline any agent follows when a task needs a plan and runs through Context. Load first; every other Context skill inherits these rules.


Raw .mdversions.jsonPermalinkSource

Install

curl -fsSL https://agents.onecontext.me/skills/rules.md -o .claude/skills/rules/SKILL.md

Depends on

context

Files

SKILL.md

Context harness — rules

These rules govern how you work when a task runs through Context (the tracker for agent work: agents write over MCP, a human reviews and approves in the Context app or Context Web). They are host-neutral: the same rules apply in Claude Code, Codex, Cursor, ChatGPT, claude.ai or any other MCP client. This skill assumes you already know the context skill's vocabulary and tool surface (Epic/Issue/Artifact, request_review/claim_issue/verify_issue, Shared vs Private) — load context first if you have not.

The harness is not the Context app agent (on Context Web that agent is called Nomi, and it also handles health, personal space, memories and people). The harness is only the discipline for executing a task that needs a plan. When the app agent is asked to do such a task, it hands over to these rules.

0. Before any write

  1. Call start_context once per session before the first write, if you have not already — it reports account, pairing, Space state and the next action. Do not work from memory of a prior session's state.
  2. Report caller {agent, model} on every call where the schema asks for it, and workStats on every update that completes a unit of work (harness, model, role, thinking, tokens, cost, duration, skills, tools). Trace what happened; never prescribe who does what in advance.
  3. Never solicit, store or echo credential values. Refer to keys by name and scope only (OPENROUTER_API_KEY, read-only). If a value is needed, name the key and where the user keeps it; stop there.

1. Brainstorm first — wayfinder + grill-me, verbatim

Any task that needs a plan starts with a brainstorm, never a from-scratch questionnaire:

Both skills are used as published (MIT, github.com/mattpocock/skills, pinned commit recorded in their headers). Do not paraphrase them into a wrapper.

2. One Context map, one combined gate

The Context map is the wayfinder map in Context terms: one Epic whose children are the Issues, joined by blocked_by edges — the dependency graph. It is the plan.

3. Execute ticket by ticket

Two execution modes; the executor chooses:

Either way, claim before working (update_issues {ids, assignee, state: "in_progress"}), and every ticket produces three documents attached to it:

  1. Mini-spec — what exactly is being built, decisions taken, deviations from the approved spec and why.
  2. Acceptance tests — a checklist with how each item was verified. Run the build/tests/checks the change affects and report actual results; never claim a result you did not observe.
  3. Release doc — what to deploy, in which order, and how to roll back.

When a ticket claims completion, use claim_issue with real evidence, then get it independently checked with verify_issue from a different principal — a claim is not a check (context skill, reviews).

The map's overall release doc links every per-ticket release doc and summarises the whole run. Deliverables are attached (docKind: "deliverable"); everything else the reviewer needs goes back to its ticket, never left in chat.

4. Skills are the product

When a ticket produces or changes a skill, it must also ship a benchmark: fixture prompts → expected agent behaviour, with pass/fail criteria. Re-run the benchmark on every revision of that skill and record the result on the ticket.

5. Specs for code

Use spec-template.md for any ticket that changes code: code layout, non-functional requirements (scale, reliability, cost) and an operational runbook (release, rollback, traffic spikes, alerting). A section may read "N/A — " but it must exist.

6. Recurring workflows install a daily brief first

Any workflow that runs on a schedule installs the daily-brief skill and its routine before any other routine: one comment per day on a designated Issue — what published, what awaits approval, what failed, what is next. A missing brief is the outage alert. There is no server-side fallback by design.

7. Handoff before stopping

Before any interruption, milestone or hand-over to another agent, post one comment (post_comment) on the ticket: goal · repo · worktree + branch · done · key files · decisions and why · verification run · remaining · blockers · next action. Address it to "the next agent", never to a specific harness. Resuming means: read the handoff → open the worktree → git status → reconcile (Git wins) → re-run verification → continue.

8. Safety and scope

Quick reference

Moment Call
Session start start_context
Brainstorm load grill-me, then wayfinder
Chart create_epiccreate_issuesupdate_issues {blocked_by}; attach_artifact spec
Gate one request_review for map + spec
Wait get_changes {cursor, waitMs: 25000}
Work update_issues {assignee, state: "in_progress"}post_comment → attach mini-spec, acceptance tests, release doc
Complete claim_issue (evidence) → verify_issue (different principal) → complete_issues
Stop handoff comment on the ticket

Changelog