@bonesofspring/ai-rules 0.2.46 → 0.2.47
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 +16 -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/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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-review-mr.md +2 -0
- package/presets/opencode/svelte/team/README.md +1 -0
|
@@ -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": "4f34b668a1968e684130dde8c05ca856a4154a03a3c1329fa21d6f9c819e2624",
|
|
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.
|
|
@@ -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": "27cb56d98328cfa14a841c610d09a98f90a5a1ef9a9a8584135c7b53fca6d157",
|
|
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.
|
|
@@ -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
|