@sockulags/agent-os 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -16
- package/cli/index.mjs +375 -52
- package/cli/index.test.mjs +196 -38
- package/package.json +2 -2
- package/policy.md +6 -6
- package/skills/batch-work/SKILL.md +43 -0
- package/skills/batch-work/agents/openai.yaml +2 -0
- package/skills/batch-work/references/manifest.md +100 -0
- package/skills/batch-work/scripts/manifest-hash.mjs +263 -0
- package/skills/batch-work/scripts/test-manifest-hash.mjs +132 -0
- package/skills/chart-work/SKILL.md +37 -0
- package/skills/chart-work/agents/openai.yaml +2 -0
- package/skills/chart-work/references/elicitation.md +25 -0
- package/skills/chart-work/references/map.md +84 -0
- package/skills/chart-work/references/prototypes.md +21 -0
- package/skills/deliver-work/SKILL.md +12 -0
- package/skills/deliver-work/agents/openai.yaml +2 -0
- package/skills/deliver-work/workflow.md +109 -0
- package/skills/diagnose-before-fix/SKILL.md +24 -0
- package/skills/dispatch-next/SKILL.md +28 -0
- package/skills/dispatch-next/agents/openai.yaml +2 -0
- package/skills/explain-work/SKILL.md +27 -0
- package/skills/explain-work/agents/openai.yaml +2 -0
- package/skills/guide-me/SKILL.md +36 -0
- package/skills/guide-me/agents/openai.yaml +2 -0
- package/skills/init-agent-os/SKILL.md +39 -0
- package/skills/init-agent-os/agents/openai.yaml +2 -0
- package/skills/notice-lesson/SKILL.md +20 -0
- package/skills/record-lesson/SKILL.md +31 -0
- package/skills/record-lesson/agents/openai.yaml +2 -0
- package/skills/scope-guard/SKILL.md +21 -0
- package/skills/shape-work/SKILL.md +39 -0
- package/skills/shape-work/agents/openai.yaml +2 -0
- package/skills/shape-work/references/implementation-issues.md +69 -0
- package/skills/shape-work/references/mockups.md +23 -0
- package/skills/understand-work/SKILL.md +31 -0
- package/skills/understand-work/agents/openai.yaml +2 -0
- package/skills/verify-before-done/SKILL.md +29 -0
- package/skills/writing-skills/SKILL.md +68 -0
- package/skills/writing-skills/agents/openai.yaml +2 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Delivery contract
|
|
2
|
+
|
|
3
|
+
## Establish the contract
|
|
4
|
+
|
|
5
|
+
Read the request, repository policy, relevant code, and working-tree state. Preserve existing work.
|
|
6
|
+
Resolve discoverable facts yourself. Before editing, know:
|
|
7
|
+
|
|
8
|
+
- **Outcome:** the observable change requested.
|
|
9
|
+
- **Boundaries:** explicit non-goals and the smallest plausible change surface.
|
|
10
|
+
- **Ground truth:** tests or observations that can prove the outcome.
|
|
11
|
+
- **Delivery target:** local changes, commit, pull request, merge, or deployment as requested.
|
|
12
|
+
|
|
13
|
+
An implementation request authorizes in-scope repository edits. Ask one focused question only when
|
|
14
|
+
an unresolved product decision has materially different outcomes. Reversible implementation choices
|
|
15
|
+
belong to the implementer.
|
|
16
|
+
|
|
17
|
+
## Confirm one delivery unit
|
|
18
|
+
|
|
19
|
+
Before editing, verify that the target is one coherent implementation issue or an equivalently
|
|
20
|
+
bounded direct request: one observable outcome, one reviewable change boundary, explicit ground
|
|
21
|
+
truth, and satisfied dependencies. If the target contains several separately closable outcomes,
|
|
22
|
+
different delivery targets, or unresolved product choices, stop before mutation and return it for
|
|
23
|
+
shaping into implementation-ready issues. Do not choose `batch-work`; execution strategy belongs to
|
|
24
|
+
the developer.
|
|
25
|
+
|
|
26
|
+
## Work loop
|
|
27
|
+
|
|
28
|
+
1. Inspect enough of the affected system to choose a coherent change.
|
|
29
|
+
2. Classify the review gate before editing. If review is required, confirm the current tool list
|
|
30
|
+
contains a real reviewer launch tool before mutation. Re-evaluate the gate against the completed
|
|
31
|
+
diff.
|
|
32
|
+
3. Make the smallest complete implementation. Use `diagnose-before-fix` when the cause is unknown and
|
|
33
|
+
`scope-guard` when discoveries threaten the boundary.
|
|
34
|
+
4. Run fast, relevant checks while working and adapt from their results.
|
|
35
|
+
5. Review the resulting diff for correctness, unnecessary complexity, and scope.
|
|
36
|
+
6. Complete the review gate below.
|
|
37
|
+
7. Apply `verify-before-done` to the final candidate and deliver only to the requested boundary.
|
|
38
|
+
|
|
39
|
+
Ground truth governs the loop; no prescribed implementation sequence substitutes for it.
|
|
40
|
+
|
|
41
|
+
## Review gate
|
|
42
|
+
|
|
43
|
+
Independent review is required unless the final candidate is a small fix and all of these are true:
|
|
44
|
+
|
|
45
|
+
- it corrects one localized defect with a supported cause and adds no capability;
|
|
46
|
+
- it changes no public API, schema, protocol, or compatibility boundary;
|
|
47
|
+
- it touches no security, authentication, authorization, credentials, secrets, tokens, billing,
|
|
48
|
+
external writes, destructive data change, migration, or concurrency behavior;
|
|
49
|
+
- direct regression evidence covers the changed behavior.
|
|
50
|
+
|
|
51
|
+
A developer or project policy may require review for any change. Only an explicit instruction may
|
|
52
|
+
waive required review; do not solicit a waiver. When review is required:
|
|
53
|
+
|
|
54
|
+
1. Before editing, verify that the current session exposes `spawn_agent` or an equivalent reviewer
|
|
55
|
+
launch tool. A wait tool alone is not a launch mechanism. If no launch tool exists, stop before
|
|
56
|
+
mutation with a review-required handoff.
|
|
57
|
+
2. Freeze the candidate. Identify it by commit when available, otherwise by the current diff and
|
|
58
|
+
changed-file set.
|
|
59
|
+
3. Launch at least one read-only reviewer in a context that has not inherited the implementation
|
|
60
|
+
conversation. On Codex, the next review tool action after freezing the candidate must be
|
|
61
|
+
`spawn_agent`; copy its returned ID, then call `wait_agent` with that ID. If `spawn_agent` is not
|
|
62
|
+
callable or returns no ID, stop without calling a wait tool. Never call a wait tool with empty
|
|
63
|
+
receiver IDs or construct a `/root/...` reviewer label yourself. Use the host's equivalent launch
|
|
64
|
+
receipt elsewhere. Give the reviewer the outcome, boundaries, ground truth, candidate diff, and
|
|
65
|
+
verification evidence — not the implementer's reasoning.
|
|
66
|
+
4. Use one general adversarial reviewer by default. Add a focused security or compatibility reviewer
|
|
67
|
+
only when a distinct risk needs that lens; do not create a panel by default.
|
|
68
|
+
5. Accept review only when that launched identity returns a result. Record the reviewer identity and
|
|
69
|
+
role, candidate identity, reviewed scope, findings, and disposition. This is completion evidence,
|
|
70
|
+
not an approval ledger.
|
|
71
|
+
6. Fix supported in-scope findings. If the candidate changes, run targeted re-review before final
|
|
72
|
+
verification.
|
|
73
|
+
|
|
74
|
+
A reviewer label written by the implementer, a wait call with no launched receiver, a self-review,
|
|
75
|
+
or an unreturned reviewer is not independent review. If the host exposes no launch tool, launch
|
|
76
|
+
fails, or no launched reviewer returns a result, stop before delivery with a review handoff
|
|
77
|
+
containing the frozen candidate, review scope, and required ground truth. Self-review never
|
|
78
|
+
substitutes for required independent review.
|
|
79
|
+
|
|
80
|
+
## Resume only when useful
|
|
81
|
+
|
|
82
|
+
Ordinary work needs no workflow record. For work expected to span sessions, keep a compact
|
|
83
|
+
`.agent-os/work/<slug>.md`:
|
|
84
|
+
|
|
85
|
+
```yaml
|
|
86
|
+
---
|
|
87
|
+
agent_os_work: 2
|
|
88
|
+
title: <work title>
|
|
89
|
+
status: active
|
|
90
|
+
next_action: <concrete continuation>
|
|
91
|
+
---
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Record only Outcome, Boundaries, Ground truth, Decisions, and Evidence. Use `blocked`, `verified`, or
|
|
95
|
+
`delivered` when those words help the next session resume accurately. The record is working memory,
|
|
96
|
+
not an approval ledger.
|
|
97
|
+
|
|
98
|
+
## Batch workers
|
|
99
|
+
|
|
100
|
+
A batch task definition supplies the outcome, scope, dependencies, and checks. Work only in the
|
|
101
|
+
assigned task workspace, commit there, and return the head SHA, changed files, checks, and remaining
|
|
102
|
+
uncertainty to the coordinator. The coordinator owns integration, aggregate review, and aggregate
|
|
103
|
+
verification.
|
|
104
|
+
|
|
105
|
+
## Stop conditions
|
|
106
|
+
|
|
107
|
+
Stop with the exact decision or external action needed when the request does not cover it. Stop a
|
|
108
|
+
completion claim when ground truth fails or cannot be exercised. Otherwise continue until the
|
|
109
|
+
requested delivery target is reached.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: diagnose-before-fix
|
|
3
|
+
description: Finds the root cause of reproducible technical failures before code is changed. It activates when investigating a bug, regression, failing test, crash, or unexpected behavior whose cause is not yet established, before proposing or applying a fix. It skips known-cause mechanical edits, feature implementation, general review, and post-fix verification.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Diagnose before fix
|
|
7
|
+
|
|
8
|
+
Find the smallest supported explanation that accounts for the failure and predicts a useful check.
|
|
9
|
+
|
|
10
|
+
## Contract
|
|
11
|
+
|
|
12
|
+
- **Ground truth:** the narrowest reliable reproduction or observed failure.
|
|
13
|
+
- **Working surface:** tests, diagnostics, logs, and instrumentation inside the task scope.
|
|
14
|
+
- **Boundary:** do not commit a production fix whose causal story is still guesswork.
|
|
15
|
+
|
|
16
|
+
## Loop
|
|
17
|
+
|
|
18
|
+
Reproduce, reduce, trace the nearest seam, and compare plausible causes with high-information checks.
|
|
19
|
+
Use temporary instrumentation when it helps. Once evidence supports a cause, implement the smallest
|
|
20
|
+
fix and add a regression check when practical. Re-run the original failing path.
|
|
21
|
+
|
|
22
|
+
If the failure cannot be reproduced or competing explanations cannot be distinguished, report the
|
|
23
|
+
bounded uncertainty and the next discriminating check. Do not turn a plausible hypothesis into a
|
|
24
|
+
confirmed diagnosis.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dispatch-next
|
|
3
|
+
description: Reads live project state and selects one decision-ready next action. User-invoked for queue triage or dispatch. Not for an already selected task.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# dispatch-next
|
|
8
|
+
|
|
9
|
+
Choose one next action from live state. The wording of the request decides whether to report the
|
|
10
|
+
choice or dispatch it.
|
|
11
|
+
|
|
12
|
+
## Loop
|
|
13
|
+
|
|
14
|
+
Read project policy, queue conventions, issues, pull requests, and CI. Prioritize work already in
|
|
15
|
+
flight when it has an actionable review or failure. Select one target using the repository's
|
|
16
|
+
priority rules and explain why it wins.
|
|
17
|
+
|
|
18
|
+
Route broad decision work to `chart-work`, a bounded open decision to `shape-work`, and one selected
|
|
19
|
+
implementation-ready issue to `deliver-work`. Route to `batch-work` only when the developer
|
|
20
|
+
explicitly asks to execute an existing ready issue graph as an integrated batch; issue count alone
|
|
21
|
+
does not choose the workflow.
|
|
22
|
+
|
|
23
|
+
“What should I do next?” is a read-only selection request. “Dispatch the next task” authorizes the
|
|
24
|
+
project-state changes and one launch needed to dispatch the selected target. Do not infer merge,
|
|
25
|
+
closure, or unrelated tracker authority from dispatch.
|
|
26
|
+
|
|
27
|
+
If nothing is decision-ready, report the closest blocker. One invocation selects at most one target;
|
|
28
|
+
the worker or coordinator does the work.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explain-work
|
|
3
|
+
description: Explains the current task or plan in plain language with no technical vocabulary, so the developer can judge it beyond the jargon. User-invoked directly or as the closing gate of guide-me. Not a substitute for technical review or verification.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Explain work
|
|
8
|
+
|
|
9
|
+
Say what the work solves as if the reader knows no technical terms — then let the developer judge
|
|
10
|
+
it.
|
|
11
|
+
|
|
12
|
+
## The summary
|
|
13
|
+
|
|
14
|
+
Cover, in everyday language: the problem it solves, who feels that problem, what changes in their
|
|
15
|
+
day when it works, and what it deliberately will not do. No technical vocabulary at all — if the
|
|
16
|
+
summary cannot stand without a technical term, the understanding is not finished; go back and
|
|
17
|
+
understand before explaining. Keep it short enough to read in under a minute: a TLDR, not a report.
|
|
18
|
+
|
|
19
|
+
## The gate
|
|
20
|
+
|
|
21
|
+
Present the summary and ask the developer to approve or challenge it. A challenge means the
|
|
22
|
+
understanding was wrong somewhere: name what was misunderstood and reopen the questioning or the
|
|
23
|
+
plan at that point rather than defending the summary. Under guide-me, approval closes the gate and
|
|
24
|
+
the summary becomes the `## TLDR` at the top of the receiving planning artifact.
|
|
25
|
+
|
|
26
|
+
Standalone, explain-work can run against any plan, diff, or pull request; the deliverable is the
|
|
27
|
+
plain-language summary itself and the developer's verdict on it.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: guide-me
|
|
3
|
+
description: Guides the developer from a vague desire to work they did not know they wanted, through questioning and a plain-language gate, then continues into chart-work or shape-work. User-invoked when the developer cannot yet state what they want. Not for bounded choices, mapped decision work, or implementation-ready requests.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Guide me
|
|
8
|
+
|
|
9
|
+
Take a developer who cannot yet state what they want to an approved goal and into the right
|
|
10
|
+
planning workflow. Guide-me writes no product code and no implementation issues.
|
|
11
|
+
|
|
12
|
+
## Understand
|
|
13
|
+
|
|
14
|
+
Run the questioning loop in [understand-work](../understand-work/SKILL.md) until the goal stops
|
|
15
|
+
moving or the developer says it is done.
|
|
16
|
+
|
|
17
|
+
## Explain
|
|
18
|
+
|
|
19
|
+
Run the plain-language gate in [explain-work](../explain-work/SKILL.md) on the settled
|
|
20
|
+
understanding. A challenge reopens understand-work at the misunderstood point. Do not continue
|
|
21
|
+
without an approved summary.
|
|
22
|
+
|
|
23
|
+
## Continue
|
|
24
|
+
|
|
25
|
+
The approved summary decides the route:
|
|
26
|
+
|
|
27
|
+
- several independent decision threads → continue into `chart-work`;
|
|
28
|
+
- one bounded idea with material product choices left → continue into `shape-work`;
|
|
29
|
+
- something already small and clear → hand the developer a ready-to-send direct request instead of
|
|
30
|
+
a workflow.
|
|
31
|
+
|
|
32
|
+
The developer's approval at the gate is the opt-in for this continuation. Announce the route, then
|
|
33
|
+
proceed with the approved summary and the settled understanding as the handoff. Place the approved
|
|
34
|
+
summary as a `## TLDR` at the top of the artifact the next workflow creates, so the map or shape
|
|
35
|
+
opens with what the work solves in plain language. Ruled-out directions and open questions travel
|
|
36
|
+
with the handoff; nothing already answered is asked again.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: init-agent-os
|
|
3
|
+
description: Sets up agent-os globally on a machine, or initializes a repo's living project policy through an interview. User-invoked only, at machine setup or when onboarding a repo. Not for ordinary tasks.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# init-agent-os
|
|
8
|
+
|
|
9
|
+
The invocation authorizes setup writes for the named target. Use one mode per run.
|
|
10
|
+
|
|
11
|
+
## Mode: `global` (once per machine)
|
|
12
|
+
|
|
13
|
+
Invoked as `init-agent-os global`.
|
|
14
|
+
|
|
15
|
+
1. Verify the plugin is visible on this platform (skills listed under the `agent-os` namespace). Report what you find.
|
|
16
|
+
2. Run `scripts/policy-block.ps1 -Check` and report drift between `policy.md` and the managed blocks in `~/.claude/CLAUDE.md` and `~/.codex/AGENTS.md`.
|
|
17
|
+
3. Run `scripts/policy-block.ps1` to apply the managed blocks and show the resulting diff. This
|
|
18
|
+
deterministic writer shares its marker contract with the npm installer's policy writer.
|
|
19
|
+
|
|
20
|
+
## Mode: repo init (default)
|
|
21
|
+
|
|
22
|
+
Invoked in a repo working directory.
|
|
23
|
+
|
|
24
|
+
1. Read the repo first: existing `CLAUDE.md`/`AGENTS.md`, README, package/build files, CI config. Do not ask about anything the repo already answers.
|
|
25
|
+
2. Ask only about material facts the repository does not answer, with a recommendation:
|
|
26
|
+
- **Delivery defaults** — branch, PR, merge, and deploy conventions.
|
|
27
|
+
- **Verify commands** — the exact commands that prove the project works (test, build, lint, run).
|
|
28
|
+
- **Design system** — where tokens and components live.
|
|
29
|
+
- **Planning surface** — tracker or local folders, decision-ticket conventions, and
|
|
30
|
+
implementation-issue readiness states or labels.
|
|
31
|
+
- **Batch execution** — concurrency, worktree naming, retries, and integration strategy.
|
|
32
|
+
- **Conventions and gotchas** worth recording now.
|
|
33
|
+
3. Write the smallest useful policy section to the repo's existing instruction file, or a new
|
|
34
|
+
`policy.md` when none exists, and show the resulting diff.
|
|
35
|
+
|
|
36
|
+
Block handling remains deterministic: add one missing block, update only well-formed managed content,
|
|
37
|
+
and stop on duplicate or malformed markers. Global mode touches no repository files; repo mode
|
|
38
|
+
touches one repository. The direct request or recorded delivery defaults govern merge and deploy
|
|
39
|
+
actions.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: notice-lesson
|
|
3
|
+
description: Treats a developer interruption, correction, or challenge as a misunderstanding signal worth examining. It activates when the developer stops the agent, contradicts its direction, or questions its output mid-task. It skips ordinary clarifying questions, requested iteration rounds, and disagreements the developer resolves in the same breath.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Notice lesson
|
|
7
|
+
|
|
8
|
+
An interruption is information: the agent's model of the task and the developer's intent just
|
|
9
|
+
diverged.
|
|
10
|
+
|
|
11
|
+
When it happens, name the divergence in one sentence — what was assumed, what was actually wanted —
|
|
12
|
+
and correct course first. Then judge whether the divergence is durable: would the next session, or
|
|
13
|
+
an agent in a repository that has never seen this conversation, make the same mistake?
|
|
14
|
+
|
|
15
|
+
- A one-off — missing context, an ambiguous word, a changed mind — needs no record; continue.
|
|
16
|
+
- A durable lesson — a convention, a preference, a gotcha that will recur — deserves recording.
|
|
17
|
+
Offer `record-lesson` with the candidate lesson already phrased.
|
|
18
|
+
|
|
19
|
+
Noticing never argues with the correction and never edits policy itself; recording is the
|
|
20
|
+
developer's call through `record-lesson`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: record-lesson
|
|
3
|
+
description: Records one durable lesson where it applies — the repo's project policy or the global agent-os policy. User-invoked when a session produced a lesson worth keeping, often after notice-lesson offers it. Not for session-specific details or facts the repository already records.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Record lesson
|
|
8
|
+
|
|
9
|
+
Capture the lesson while its evidence is fresh, at the narrowest level where it holds.
|
|
10
|
+
|
|
11
|
+
## Choose the level
|
|
12
|
+
|
|
13
|
+
- **Repo:** conventions, gotchas, verify commands, and delivery defaults that hold only in this
|
|
14
|
+
repository go to the project policy section that `init-agent-os` seeds.
|
|
15
|
+
- **Global:** lessons about how the developer works that would hold in a repository that has never
|
|
16
|
+
seen them go to `policy.md` in the agent-os repository — the source of truth behind the managed
|
|
17
|
+
blocks. After that edit, remind the developer to run `init-agent-os global` to reinstall the
|
|
18
|
+
blocks. Never edit an installed managed block directly; if the agent-os repository is not
|
|
19
|
+
reachable, stop with the exact lesson text as a handoff.
|
|
20
|
+
|
|
21
|
+
Default to repo level.
|
|
22
|
+
|
|
23
|
+
## Write the lesson
|
|
24
|
+
|
|
25
|
+
State the smallest rule the next agent can act on, with the observed failure or insight that
|
|
26
|
+
motivates it. Search the target for an existing line with the same meaning: update it rather than
|
|
27
|
+
duplicating, and delete a line the lesson proves wrong. Show the resulting diff.
|
|
28
|
+
|
|
29
|
+
A machine-checkable lesson belongs in a test, script, or validator per the
|
|
30
|
+
[writing-skills enforcement ladder](../writing-skills/SKILL.md); route it there and record at most
|
|
31
|
+
a pointer in policy prose.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scope-guard
|
|
3
|
+
description: Detects and contains task drift while implementation or review is already in progress. It activates when unrelated work, opportunistic cleanup, extra dependencies, or broadened requirements appear beyond the agreed request or spec, before adding them to the diff. It skips initial scoping and planning, root-cause diagnosis, and verification of work already inside scope.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Guard scope
|
|
7
|
+
|
|
8
|
+
Keep the active change aligned with the developer's requested outcome.
|
|
9
|
+
|
|
10
|
+
The direct request, accepted spec, and project policy define the boundary. When new work appears,
|
|
11
|
+
classify it:
|
|
12
|
+
|
|
13
|
+
- **Required:** the requested outcome cannot work or be verified without it. Include it and explain
|
|
14
|
+
the dependency.
|
|
15
|
+
- **Adjacent:** useful cleanup or hardening that is not needed now. Leave it out and mention it only
|
|
16
|
+
when it is actionable.
|
|
17
|
+
- **Conflicting:** it changes product behavior, architecture, dependencies, a public interface, or
|
|
18
|
+
delivery risk. Ask the developer before crossing that boundary.
|
|
19
|
+
|
|
20
|
+
Before delivery, inspect the diff for unrelated edits. Preserve pre-existing developer work; scope
|
|
21
|
+
control never grants permission to revert it.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shape-work
|
|
3
|
+
description: Shapes a bounded idea into implementation-ready issues backed by settled product decisions. User-invoked while material product choices remain. Not for small fixes or work whose outcome is already clear.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# shape-work
|
|
8
|
+
|
|
9
|
+
Produce the smallest set of implementation-ready issues that lets delivery proceed without inventing
|
|
10
|
+
product intent.
|
|
11
|
+
|
|
12
|
+
Read [references/implementation-issues.md](references/implementation-issues.md) before shaping.
|
|
13
|
+
|
|
14
|
+
## Loop
|
|
15
|
+
|
|
16
|
+
Read the repository, project policy, and any linked chart-work decisions before asking questions.
|
|
17
|
+
Resolve facts from those sources. For each remaining material choice, recommend an answer, explain
|
|
18
|
+
the consequence, and ask only what the developer must decide.
|
|
19
|
+
|
|
20
|
+
Use a diagram or mockup when it makes behavior, layout, states, or boundaries materially easier to
|
|
21
|
+
judge. Frontend proposals follow [references/mockups.md](references/mockups.md). Do not create a
|
|
22
|
+
visualization merely to satisfy the workflow.
|
|
23
|
+
|
|
24
|
+
Deliver the coherent product shape: outcome, boundaries, acceptance examples, affected seams,
|
|
25
|
+
ground truth, settled decisions, and open risks. Then create or reuse its implementation issues on
|
|
26
|
+
the configured planning surface. With no configured tracker, use the local-file fallback in the
|
|
27
|
+
reference. Link dependencies and expose the first claimable delivery frontier.
|
|
28
|
+
|
|
29
|
+
One shape may produce one or several sequential or parallel issues. Multiple issues do not imply
|
|
30
|
+
`batch-work`: each ready issue can be delivered with `deliver-work`, while `batch-work` remains an
|
|
31
|
+
explicit developer choice for integrated parallel execution. Do not start either workflow unless
|
|
32
|
+
the request includes implementation.
|
|
33
|
+
|
|
34
|
+
When shaping started from a chart-work handoff, reconcile the issue links and readiness back into
|
|
35
|
+
the origin handoff and map. A handoff alone is not delivery-ready. Shape-work is complete only when
|
|
36
|
+
every selected branch points to implementation-ready issues or is explicitly parked or rejected.
|
|
37
|
+
|
|
38
|
+
The invocation authorizes planning artifacts, not product code. A deferred product choice remains
|
|
39
|
+
explicit; a reversible implementation choice does not need to become a question.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Implementation issues
|
|
2
|
+
|
|
3
|
+
The configured planning surface owns implementation issues. Research, grilling, and prototypes are
|
|
4
|
+
decision evidence; the durable output of shaping is the issue set that a developer can choose to
|
|
5
|
+
run with `deliver-work` or `batch-work`.
|
|
6
|
+
|
|
7
|
+
With no project convention, use:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
planning/<shape-slug>/implementation/<unit-key>.md
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
When the shape originates from `guide-me`, place the approved plain-language summary as a `## TLDR`
|
|
14
|
+
at the top of the shape's origin document, so the shape opens with what it solves before any
|
|
15
|
+
technical detail.
|
|
16
|
+
|
|
17
|
+
## Completion invariant
|
|
18
|
+
|
|
19
|
+
A selected product branch is not `delivery-ready`, and shape-work is not complete, until one or
|
|
20
|
+
more implementation issues have been created or reused. A parked or rejected branch needs no issue.
|
|
21
|
+
|
|
22
|
+
Each issue represents one coherent delivery unit: one observable outcome with a reviewable change
|
|
23
|
+
boundary and ground truth that can verify it. The unit may depend on earlier units, but it must not
|
|
24
|
+
contain an unresolved product decision or several separately closable delivery targets.
|
|
25
|
+
|
|
26
|
+
## Issue contract
|
|
27
|
+
|
|
28
|
+
Identity is `(origin, unit key)`. Search the configured planning surface before creating anything so
|
|
29
|
+
retrying the same shape updates existing issues instead of duplicating them.
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
## Implementation issue
|
|
33
|
+
Origin: <shape-work handoff, planning artifact, or request link>
|
|
34
|
+
Unit key: <stable key>
|
|
35
|
+
Status: ready | blocked
|
|
36
|
+
|
|
37
|
+
## Outcome
|
|
38
|
+
## Boundaries
|
|
39
|
+
## Acceptance
|
|
40
|
+
## Ground truth
|
|
41
|
+
## Dependencies
|
|
42
|
+
## Evidence and settled decisions
|
|
43
|
+
## Delivery target
|
|
44
|
+
## Open risks
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Use dependencies to distinguish order from execution strategy. An issue is `ready` when its product
|
|
48
|
+
decisions are settled and its dependencies are satisfied; otherwise record the exact blocker. The
|
|
49
|
+
delivery frontier is the set of ready, unblocked implementation issues. Use the planning surface's
|
|
50
|
+
existing status and label conventions rather than inventing a parallel queue vocabulary.
|
|
51
|
+
|
|
52
|
+
## Routing belongs to the developer
|
|
53
|
+
|
|
54
|
+
Expose the frontier without choosing an execution workflow:
|
|
55
|
+
|
|
56
|
+
- `deliver-work` can deliver any one ready issue, including issues from a larger sequential graph;
|
|
57
|
+
- `batch-work` consumes an existing dependency-mapped issue set only when the developer explicitly
|
|
58
|
+
requests integrated parallel execution;
|
|
59
|
+
- the existence of several issues never invokes or recommends batch-work by itself.
|
|
60
|
+
|
|
61
|
+
Issue creation is a planning write, not implementation authority. Do not edit product code, start a
|
|
62
|
+
batch, merge, deploy, or perform external delivery effects under a shape-work invocation.
|
|
63
|
+
|
|
64
|
+
## Chart-work reconciliation
|
|
65
|
+
|
|
66
|
+
When the origin is a chart-work handoff, update the handoff and map idempotently after materializing
|
|
67
|
+
the issues. Link every implementation issue, record the ready or blocked frontier, and move the
|
|
68
|
+
branch from shaping to `delivery-ready` only when the completion invariant holds. Preserve
|
|
69
|
+
concurrent map entries and keep decision tickets canonical for their evidence.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Frontend mockups
|
|
2
|
+
|
|
3
|
+
Use a mockup only when seeing the behavior will improve a decision.
|
|
4
|
+
|
|
5
|
+
## Grounding
|
|
6
|
+
|
|
7
|
+
Inspect the project's tokens, components, and nearby views. Reuse established patterns. When the
|
|
8
|
+
system lacks a needed pattern, label the proposal as new instead of presenting it as existing.
|
|
9
|
+
|
|
10
|
+
## Fidelity scaling
|
|
11
|
+
|
|
12
|
+
- **Sketch or wireframe:** enough to compare structure, states, or flow.
|
|
13
|
+
- **Renderable proposal:** useful when visual hierarchy or interaction behavior cannot be judged
|
|
14
|
+
from a sketch.
|
|
15
|
+
|
|
16
|
+
Build only the fidelity needed for the open decision.
|
|
17
|
+
|
|
18
|
+
## Evidence
|
|
19
|
+
|
|
20
|
+
Show the states and viewport sizes relevant to the decision, including keyboard or failure behavior
|
|
21
|
+
when those are in scope. Keep the artifact inspectable and capture the developer's decision and the
|
|
22
|
+
reason behind it. Implementation authority comes from the later implementation request, not from a
|
|
23
|
+
separate mockup approval state.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: understand-work
|
|
3
|
+
description: Questions out what the developer actually needs behind a stated wish, one load-bearing question at a time. User-invoked directly or as the questioning stage of guide-me. Not for requests whose goal is already articulated or for facts the repository answers.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Understand work
|
|
8
|
+
|
|
9
|
+
Find the need behind the stated wish. The deliverable is a settled understanding — what the
|
|
10
|
+
developer wants, why now, and what was ruled out — not a plan or a solution.
|
|
11
|
+
|
|
12
|
+
## Questioning loop
|
|
13
|
+
|
|
14
|
+
Resolve everything the repository, project policy, and conversation already answer before asking
|
|
15
|
+
anything. Then, for each open point that materially changes the goal:
|
|
16
|
+
|
|
17
|
+
- Present the concrete tension with materially different alternatives.
|
|
18
|
+
- Recommend one and name its consequence.
|
|
19
|
+
- Ask one load-bearing question at a time and wait for the answer.
|
|
20
|
+
- Record the choice, the reason, and every ruled-out direction with its reason.
|
|
21
|
+
|
|
22
|
+
Dig beneath the stated wish: what becomes possible when this exists, who feels the difference, and
|
|
23
|
+
why it matters now. Do not treat silence, momentum, or approval of a larger bundle as an answer to
|
|
24
|
+
a specific question. Do not propose a technical solution while the goal is still moving.
|
|
25
|
+
|
|
26
|
+
## Exit
|
|
27
|
+
|
|
28
|
+
Questioning ends when the developer says it is done or when further answers stop changing the goal.
|
|
29
|
+
Deliver the settled understanding: the goal, its motivation, the choices made with their reasons,
|
|
30
|
+
the ruled-out directions, and the questions that remain open. Under guide-me this feeds the
|
|
31
|
+
plain-language gate in explain-work; standalone, report it directly.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-before-done
|
|
3
|
+
description: Requires fresh execution evidence before an agent states that implemented work is complete, fixed, passing, or ready to ship. It activates at the completion-claim boundary after changes or validation, including requests to mark work done or report test status. It skips diagnosis, planning, speculative review, and status reports that make no completion claim.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verify before done
|
|
7
|
+
|
|
8
|
+
Match each material completion claim to fresh evidence from the final candidate.
|
|
9
|
+
|
|
10
|
+
## Loop
|
|
11
|
+
|
|
12
|
+
Identify the material outcomes the final response will claim. Choose the closest practical checks,
|
|
13
|
+
prefer the project's documented acceptance path, and run them against the final state. Inspect what
|
|
14
|
+
the result actually proves. Fix failures and rerun affected checks.
|
|
15
|
+
|
|
16
|
+
## Evidence strength
|
|
17
|
+
|
|
18
|
+
Use the strongest practical layer:
|
|
19
|
+
|
|
20
|
+
1. Acceptance-path observation or end-to-end test.
|
|
21
|
+
2. Focused automated test that exercises the changed behavior.
|
|
22
|
+
3. Broader build, lint, typecheck, or suite result.
|
|
23
|
+
4. Static inspection only when execution is impossible and the limitation is explicit.
|
|
24
|
+
|
|
25
|
+
Passing a weaker layer does not prove a stronger claim. Stale or second-hand results are context, not
|
|
26
|
+
verification.
|
|
27
|
+
|
|
28
|
+
Lead with the outcome and cite the decisive checks compactly. If a material check cannot run, name
|
|
29
|
+
the unverified claim and its impact instead of calling the whole result complete.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-skills
|
|
3
|
+
description: Doctrine for writing and validating agent-os skills, loaded before creating or editing any SKILL.md, description, or eval case in this framework. Not for ordinary coding tasks that do not touch skill files.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Writing skills
|
|
8
|
+
|
|
9
|
+
Write a skill as a compact program for an agent, not a transcript of how one successful run happened.
|
|
10
|
+
|
|
11
|
+
## Contract
|
|
12
|
+
|
|
13
|
+
Make these elements discoverable without forcing headings when prose is clearer:
|
|
14
|
+
|
|
15
|
+
- **Objective:** the observable result.
|
|
16
|
+
- **Inputs:** the minimum context and tools to inspect.
|
|
17
|
+
- **Working surface:** what the agent may create or change when the request authorizes it.
|
|
18
|
+
- **Boundaries:** product decisions, destructive actions, or external effects the request does not cover.
|
|
19
|
+
- **Ground truth:** the checks or observations that decide success.
|
|
20
|
+
- **Loop:** inspect, act, evaluate, and adapt.
|
|
21
|
+
- **Exit:** the delivered artifact, evidence, or precise blocker.
|
|
22
|
+
|
|
23
|
+
The description says what the skill does, when it applies, and when it does not. Keep execution detail
|
|
24
|
+
in the body.
|
|
25
|
+
|
|
26
|
+
## Freedom and control
|
|
27
|
+
|
|
28
|
+
- Lock objectives, boundaries, ground truth, and stop conditions. Let the agent choose local tactics.
|
|
29
|
+
- The developer's request is the authority boundary. Do not add a second approval ceremony for work
|
|
30
|
+
the request already asks the agent to perform.
|
|
31
|
+
- Ask the developer only when an unresolved product choice would materially change the outcome.
|
|
32
|
+
- Use prose for judgment, examples for preferred shapes, and scripts for exact transformations.
|
|
33
|
+
- Add ordering only where changing the order causes a demonstrated failure.
|
|
34
|
+
- Keep references one hop away and load them only when the task needs them.
|
|
35
|
+
|
|
36
|
+
## Enforcement ladder
|
|
37
|
+
|
|
38
|
+
Choose the lowest layer that can reliably stop the failure:
|
|
39
|
+
|
|
40
|
+
1. **Deterministic invariant → test or lint.** Machine-checkable repository facts belong in an
|
|
41
|
+
executable validator with a red case.
|
|
42
|
+
2. **Fragile operation → script, hook, or CI.** Put parsing, identity, idempotency, and exact writes
|
|
43
|
+
behind one deterministic operation.
|
|
44
|
+
3. **Semantic judgment → skill plus eval.** Use prose for reasoning that depends on meaning, then
|
|
45
|
+
test it with trigger cases and blind forward tests.
|
|
46
|
+
4. **Context or preference → policy.** Record project-specific defaults where the agent reads them
|
|
47
|
+
at decision time.
|
|
48
|
+
5. **Product intent → developer decision.** Ask only for the unresolved choice, with a recommendation.
|
|
49
|
+
|
|
50
|
+
Start from observed failure evidence and recurrence risk. Do not promote a preference into
|
|
51
|
+
infrastructure or leave a deterministic invariant as a reminder.
|
|
52
|
+
|
|
53
|
+
## Anti-patterns (delete on sight)
|
|
54
|
+
|
|
55
|
+
- **No-ops**: lines the agent already does by default.
|
|
56
|
+
- **Tactic locks**: prescribing the method when several methods can satisfy the contract.
|
|
57
|
+
- **Duplication**: one source of truth per meaning; link, do not restate.
|
|
58
|
+
- **Sediment**: stale layers from old iterations; prune when editing.
|
|
59
|
+
- **Audit theater**: receipts, states, or logs that do not protect recovery, correctness, or trust.
|
|
60
|
+
- **Authority theater**: asking again for permission already granted by the direct request.
|
|
61
|
+
|
|
62
|
+
## Definition of done — a skill is not finished until
|
|
63
|
+
|
|
64
|
+
1. Structural validation passes: folder name equals `name`, frontmatter has `name` + `description`, manual skills (all workflows and this meta-skill) have `disable-model-invocation: true` and `agents/openai.yaml` with `policy.allow_implicit_invocation: false`.
|
|
65
|
+
2. At least two positive and two negative trigger cases describe the intended boundary.
|
|
66
|
+
3. Risky or complex behavior has a blind forward test against the observable contract, not the
|
|
67
|
+
preferred reasoning trace.
|
|
68
|
+
4. Retired skills move to root `deprecated/`, never get deleted, and re-enter `skills/` only through this definition of done again.
|