@bonesofspring/ai-rules 0.2.46 → 0.2.48
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/CHANGELOG.md +28 -0
- package/package.json +1 -1
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +6 -0
- package/presets/_shared/core/agent-team/task-framing.md +4 -0
- package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +11 -0
- package/presets/_shared/core/review/code-review-mr.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/android-kotlin/team/README.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/go/team/README.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/ios-swift/team/README.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/java/team/README.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/mcp-ts/team/README.md +1 -0
- package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/next/agents/solution-architect.md +1 -0
- package/presets/claude/next/agents/task-analyst.md +1 -0
- package/presets/claude/next/agents/tech-writer.md +2 -1
- package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +1 -0
- package/presets/claude/next/team/README.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/nuxt/team/README.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/php-hexagonal/team/README.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +2 -0
- package/presets/claude/php-laravel/team/README.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +11 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +2 -0
- package/presets/claude/svelte/team/README.md +1 -0
- package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/android-kotlin/team/README.md +1 -0
- package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/go/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/go/team/README.md +1 -0
- package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/ios-swift/team/README.md +1 -0
- package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/java/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/java/team/README.md +1 -0
- package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/mcp-ts/team/README.md +1 -0
- package/presets/cursor/next/agents/accessibility-reviewer.md +1 -0
- package/presets/cursor/next/agents/solution-architect.md +1 -0
- package/presets/cursor/next/agents/task-analyst.md +1 -0
- package/presets/cursor/next/agents/tech-writer.md +2 -1
- package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/next/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/next/rules/react-a11y-coding.mdc +1 -0
- package/presets/cursor/next/team/README.md +1 -0
- package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/nuxt/team/README.md +1 -0
- package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/php-hexagonal/team/README.md +1 -0
- package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/php-laravel/team/README.md +1 -0
- package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +11 -0
- package/presets/cursor/svelte/rules/code-review-mr.mdc +2 -0
- package/presets/cursor/svelte/team/README.md +1 -0
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +2 -0
- package/presets/mavis/android-kotlin/team/README.md +1 -0
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/go/rules/code-review-mr.md +2 -0
- package/presets/mavis/go/team/README.md +1 -0
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +2 -0
- package/presets/mavis/ios-swift/team/README.md +1 -0
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/java/rules/code-review-mr.md +2 -0
- package/presets/mavis/java/team/README.md +1 -0
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +2 -0
- package/presets/mavis/mcp-ts/team/README.md +1 -0
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/accessibility-reviewer.md +1 -0
- package/presets/mavis/next/agents/solution-architect.md +1 -0
- package/presets/mavis/next/agents/task-analyst.md +1 -0
- package/presets/mavis/next/agents/tech-writer.md +2 -1
- package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/next/rules/code-review-mr.md +2 -0
- package/presets/mavis/next/rules/react-a11y-coding.md +1 -0
- package/presets/mavis/next/team/README.md +1 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +2 -0
- package/presets/mavis/nuxt/team/README.md +1 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +2 -0
- package/presets/mavis/php-hexagonal/team/README.md +1 -0
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +2 -0
- package/presets/mavis/php-laravel/team/README.md +1 -0
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +11 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +2 -0
- package/presets/mavis/svelte/team/README.md +1 -0
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/tech-writer.md +6 -1
- package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +2 -0
- package/presets/opencode/android-kotlin/team/README.md +1 -0
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/tech-writer.md +6 -1
- package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/go/rules/code-review-mr.md +2 -0
- package/presets/opencode/go/team/README.md +1 -0
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/tech-writer.md +6 -1
- package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +2 -0
- package/presets/opencode/ios-swift/team/README.md +1 -0
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/tech-writer.md +6 -1
- package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/java/rules/code-review-mr.md +2 -0
- package/presets/opencode/java/team/README.md +1 -0
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +2 -0
- package/presets/opencode/mcp-ts/team/README.md +1 -0
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/accessibility-reviewer.md +1 -0
- package/presets/opencode/next/agents/solution-architect.md +1 -0
- package/presets/opencode/next/agents/task-analyst.md +1 -0
- package/presets/opencode/next/agents/tech-writer.md +8 -2
- package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/next/rules/code-review-mr.md +2 -0
- package/presets/opencode/next/rules/react-a11y-coding.md +1 -0
- package/presets/opencode/next/team/README.md +1 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/tech-writer.md +6 -1
- package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +2 -0
- package/presets/opencode/nuxt/team/README.md +1 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/tech-writer.md +6 -1
- package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +2 -0
- package/presets/opencode/php-hexagonal/team/README.md +1 -0
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/tech-writer.md +6 -1
- package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +2 -0
- package/presets/opencode/php-laravel/team/README.md +1 -0
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/tech-writer.md +6 -1
- package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +11 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +2 -0
- package/presets/opencode/svelte/team/README.md +1 -0
|
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
20
20
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
21
21
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
22
22
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
23
|
+
- **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
|
|
24
|
+
- **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
|
|
23
25
|
|
|
24
26
|
Concrete rule stems — in **Stack notes**.
|
|
25
27
|
|
|
@@ -19,6 +19,7 @@ The reviewer (`accessibility-reviewer`) checks the diff; these rules apply **whi
|
|
|
19
19
|
- All interactive elements are **reachable via Tab** and activatable with Enter/Space where expected.
|
|
20
20
|
- **Modals/drawers** — focus trap, return focus to trigger on close, Esc closes (if UX allows).
|
|
21
21
|
- Do not remove visible **focus outline** without an accessible custom focus style.
|
|
22
|
+
- **Async loading must not drop focus.** Never pass `disabled` to the control that triggered an in-flight request; keep it focusable and put `aria-busy` on the results region. Keep pagination metadata stable so the pager does not unmount. When the triggering control unmounts (for example a retry button while loading), move focus to the block heading; do not autofocus on initial mount.
|
|
22
23
|
|
|
23
24
|
## Content
|
|
24
25
|
|
|
@@ -72,6 +72,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
|
72
72
|
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
73
73
|
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
74
74
|
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
75
|
+
- **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
|
|
75
76
|
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
76
77
|
|
|
77
78
|
## Commands
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "nuxt",
|
|
5
5
|
"semanticSource": "cursor/nuxt",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "cc49119dc4296ffa9e9339bc33117b48ca179ddb4e67256f8825b20624b460b8",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -7,9 +7,14 @@ permission:
|
|
|
7
7
|
"*": deny
|
|
8
8
|
".ai.local/team/**": allow
|
|
9
9
|
"docs/**": allow
|
|
10
|
+
"README.md": allow
|
|
11
|
+
"**/README.md": allow
|
|
12
|
+
"CHANGELOG.md": allow
|
|
13
|
+
"**/CHANGELOG.md": allow
|
|
14
|
+
"openspec/changes/**/tasks.md": allow
|
|
10
15
|
---
|
|
11
16
|
|
|
12
|
-
Write team artifacts under `.ai.local/team/**` and scoped files (`docs
|
|
17
|
+
Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
|
|
13
18
|
|
|
14
19
|
## Rules to load (subagent context)
|
|
15
20
|
|
|
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
14
14
|
|
|
15
15
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
16
16
|
|
|
17
|
+
A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
|
|
18
|
+
|
|
17
19
|
For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
|
|
18
20
|
|
|
19
21
|
Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
|
|
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
60
60
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
61
61
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
62
62
|
|
|
63
|
+
## Questions to the user
|
|
64
|
+
|
|
65
|
+
**Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
|
|
66
|
+
|
|
67
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
68
|
+
- Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
|
|
69
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
70
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
71
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
72
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
73
|
+
|
|
63
74
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
64
75
|
|
|
65
76
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
20
20
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
21
21
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
22
22
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
23
|
+
- **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
|
|
24
|
+
- **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
|
|
23
25
|
|
|
24
26
|
Concrete rule stems — in **Stack notes**.
|
|
25
27
|
|
|
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
|
71
71
|
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
72
|
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
73
|
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
|
|
74
75
|
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
76
|
|
|
76
77
|
## Commands
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "php-hexagonal",
|
|
5
5
|
"semanticSource": "cursor/php-hexagonal",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "7029e5a5c1d169894ce46986d62333fa37df2e4e69a4d575d489d154e0bfa082",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -7,9 +7,14 @@ permission:
|
|
|
7
7
|
"*": deny
|
|
8
8
|
".ai.local/team/**": allow
|
|
9
9
|
"docs/**": allow
|
|
10
|
+
"README.md": allow
|
|
11
|
+
"**/README.md": allow
|
|
12
|
+
"CHANGELOG.md": allow
|
|
13
|
+
"**/CHANGELOG.md": allow
|
|
14
|
+
"openspec/changes/**/tasks.md": allow
|
|
10
15
|
---
|
|
11
16
|
|
|
12
|
-
Write team artifacts under `.ai.local/team/**` and scoped files (`docs
|
|
17
|
+
Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
|
|
13
18
|
|
|
14
19
|
## Rules to load (subagent context)
|
|
15
20
|
|
|
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
14
14
|
|
|
15
15
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
16
16
|
|
|
17
|
+
A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
|
|
18
|
+
|
|
17
19
|
For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
|
|
18
20
|
|
|
19
21
|
Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
|
|
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
60
60
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
61
61
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
62
62
|
|
|
63
|
+
## Questions to the user
|
|
64
|
+
|
|
65
|
+
**Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
|
|
66
|
+
|
|
67
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
68
|
+
- Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
|
|
69
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
70
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
71
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
72
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
73
|
+
|
|
63
74
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
64
75
|
|
|
65
76
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
20
20
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
21
21
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
22
22
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
23
|
+
- **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
|
|
24
|
+
- **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
|
|
23
25
|
|
|
24
26
|
Concrete rule stems — in **Stack notes**.
|
|
25
27
|
|
|
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
|
71
71
|
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
72
|
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
73
|
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
|
|
74
75
|
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
76
|
|
|
76
77
|
## Commands
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "php-laravel",
|
|
5
5
|
"semanticSource": "cursor/php-laravel",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "6ffa9e81b5428b97f9a79fad0f5702c06d3f32c059ee564e1ed68fe5515d5238",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -7,9 +7,14 @@ permission:
|
|
|
7
7
|
"*": deny
|
|
8
8
|
".ai.local/team/**": allow
|
|
9
9
|
"docs/**": allow
|
|
10
|
+
"README.md": allow
|
|
11
|
+
"**/README.md": allow
|
|
12
|
+
"CHANGELOG.md": allow
|
|
13
|
+
"**/CHANGELOG.md": allow
|
|
14
|
+
"openspec/changes/**/tasks.md": allow
|
|
10
15
|
---
|
|
11
16
|
|
|
12
|
-
Write team artifacts under `.ai.local/team/**` and scoped files (`docs
|
|
17
|
+
Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
|
|
13
18
|
|
|
14
19
|
## Rules to load (subagent context)
|
|
15
20
|
|
|
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
14
14
|
|
|
15
15
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
16
16
|
|
|
17
|
+
A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
|
|
18
|
+
|
|
17
19
|
For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
|
|
18
20
|
|
|
19
21
|
Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
|
|
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
60
60
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
61
61
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
62
62
|
|
|
63
|
+
## Questions to the user
|
|
64
|
+
|
|
65
|
+
**Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
|
|
66
|
+
|
|
67
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
68
|
+
- Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
|
|
69
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
70
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
71
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
72
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
73
|
+
|
|
63
74
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
64
75
|
|
|
65
76
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
20
20
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
21
21
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
22
22
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
23
|
+
- **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
|
|
24
|
+
- **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
|
|
23
25
|
|
|
24
26
|
Concrete rule stems — in **Stack notes**.
|
|
25
27
|
|
|
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
|
71
71
|
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
72
|
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
73
|
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
|
|
74
75
|
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
76
|
|
|
76
77
|
## Commands
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "svelte",
|
|
5
5
|
"semanticSource": "cursor/svelte",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "7ad3f6d97484acc1c1f5fb1575b8b39ad06590d3eb1923255a5235b750b27461",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -7,9 +7,14 @@ permission:
|
|
|
7
7
|
"*": deny
|
|
8
8
|
".ai.local/team/**": allow
|
|
9
9
|
"docs/**": allow
|
|
10
|
+
"README.md": allow
|
|
11
|
+
"**/README.md": allow
|
|
12
|
+
"CHANGELOG.md": allow
|
|
13
|
+
"**/CHANGELOG.md": allow
|
|
14
|
+
"openspec/changes/**/tasks.md": allow
|
|
10
15
|
---
|
|
11
16
|
|
|
12
|
-
Write team artifacts under `.ai.local/team/**` and scoped files (`docs
|
|
17
|
+
Write team artifacts under `.ai.local/team/**` and scoped files (`docs/**`, `README.md`, `**/README.md`, `CHANGELOG.md`, `**/CHANGELOG.md`, `openspec/changes/**/tasks.md`). Do not edit production code.
|
|
13
18
|
|
|
14
19
|
## Rules to load (subagent context)
|
|
15
20
|
|
|
@@ -14,6 +14,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
|
|
|
14
14
|
|
|
15
15
|
`// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
|
|
16
16
|
|
|
17
|
+
A fact already measured in this run is not uncertain. When the orchestrator or another role probed a live system, reuse the measured value and cite the probe. Reserve `[verify]` for unmeasured facts, with an owner and the effect if the value is wrong; do not downgrade a measurement back to a marker.
|
|
18
|
+
|
|
17
19
|
For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
|
|
18
20
|
|
|
19
21
|
Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
|
|
@@ -60,6 +60,17 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
60
60
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
61
61
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
62
62
|
|
|
63
|
+
## Questions to the user
|
|
64
|
+
|
|
65
|
+
**Interactive first.** When the answer is a decision only the user can make, ask through the host’s interactive question tool (OpenCode `question`, Claude Code `AskUserQuestion`, a client dialog) and structure the question for that tool. Plain prose is the **fallback** for a host without one, a headless run, or an answer that cannot be enumerated.
|
|
66
|
+
|
|
67
|
+
- One decision per question; put independent decisions in separate entries so the host walks them as steps.
|
|
68
|
+
- Header → a short label (≤30 characters); option label → 1–5 words in the user’s terms; option description → the consequence or trade-off, not a restatement of the label.
|
|
69
|
+
- Two to five options; enable multi-select only when the choices are not mutually exclusive.
|
|
70
|
+
- Never add an “other”/free-form option — the host adds it, and the user can always type an answer.
|
|
71
|
+
- Put the option you would recommend first and justify it in its description; do not pad the list with options you cannot defend.
|
|
72
|
+
- Ask once, before the work that depends on the answer — not a screening question per option, and not a question the repository already answers.
|
|
73
|
+
|
|
63
74
|
Style enforcement (formatter / linter / post-change gate) lives in the **stack toolchain** — see each adapter’s **Stack notes**.
|
|
64
75
|
|
|
65
76
|
> Stack-specific lint gates, examples, and toolchain — in the preset adapter **Stack notes** section.
|
|
@@ -20,6 +20,8 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
|
|
|
20
20
|
- Design smells **in MR diff scope** — load `design-guidance`; do not expand the full Fowler catalog outside the diff
|
|
21
21
|
- Pattern name (GoF) — only if the repository already uses that shape or the match is minimal
|
|
22
22
|
- Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — via always-on `code-quality-and-refactoring`, do not duplicate the essay in review
|
|
23
|
+
- **Contract seams** — every frozen external mapping has a named test: sort key ↔ rendered column, command parameter ↔ ingestion call, nullable DTO ↔ UI formatter. A seam that exists only in prose is a finding.
|
|
24
|
+
- **Multi-phase flags** — a CLI or config flag honored by only one phase of a two-phase flow states its scope in the design and has a test; an undocumented partial scope is a finding.
|
|
23
25
|
|
|
24
26
|
Concrete rule stems — in **Stack notes**.
|
|
25
27
|
|
|
@@ -71,6 +71,7 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
|
|
|
71
71
|
- Merge or parse error → re-read and merge again, at most twice, then report `blocked` with the error. Never leave the file truncated.
|
|
72
72
|
- Parallel wave → the writer holds `.manifest.lock` in the task directory, so concurrent producers serialize; a hand-written merge must take the same lock.
|
|
73
73
|
- Plan closure → tick (`- [ ]` → `- [x]`) every `tasks.md` row this receipt closes, in the same turn. An unticked row makes `openspec list` report stale progress and hides the exit criteria from the next agent.
|
|
74
|
+
- **Closeout:** run `manifest.mjs check --slug <slug>` before the terminal receipt. If the hook moved a producer body to `archive/<date>/` and the entry still points at the root, restore the root copy and repoint the entry; do not leave a deleted root file plus an untracked archive copy for the human commit.
|
|
74
75
|
- Schema and completion conventions: `agent-team/agent-artifact-contracts.md`.
|
|
75
76
|
|
|
76
77
|
## Commands
|