@alexandrealvaro/agentic 0.5.0-beta.1 → 0.6.0-beta.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 +35 -3
- package/WORKFLOW.md +17 -27
- package/package.json +1 -1
- package/src/skills/claude-code/agentic-audit/SKILL.md +12 -2
- package/src/skills/claude-code/agentic-ground/SKILL.md +6 -6
- package/src/skills/claude-code/agentic-philosophy/SKILL.md +2 -5
- package/src/skills/codex/agentic-audit/SKILL.md +7 -0
- package/src/skills/codex/agentic-ground/SKILL.md +5 -5
- package/src/skills/codex/agentic-philosophy/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Agentic Development
|
|
2
2
|
|
|
3
|
-
A starter kit for engineering production code with LLMs. Lean templates and init prompts grounded in established standards: [Anthropic Skills](https://code.claude.com/docs/en/skills), [Claude Code subagents](https://code.claude.com/docs/en/sub-agents), [agents.md](https://agents.md), Nygard ADRs, and [Google Labs DESIGN.md](https://github.com/google-labs-code/design.md).
|
|
3
|
+
A starter kit for engineering production code with LLMs. Lean templates and init prompts grounded in established standards: [Anthropic Skills](https://code.claude.com/docs/en/skills), [Claude Code subagents](https://code.claude.com/docs/en/sub-agents), [agents.md](https://agents.md), Nygard ADRs, [GitHub Spec Kit](https://github.com/github/spec-kit), and [Google Labs DESIGN.md](https://github.com/google-labs-code/design.md).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The CLI installs nine universal skills (`agentic-bootstrap`, `agentic-philosophy`, `agentic-architecture`, `agentic-adr`, `agentic-spec`, `agentic-task`, `agentic-audit`, `agentic-review`, `agentic-ground`) plus three conditional ones (`agentic-design` for frontend, `agentic-subagent` for Claude Code, `agentic-skill` opt-in) into the agent's native location. Each skill produces its artifact or runs its operation via the agent's native conversational UI; `agentic update` keeps installed skills in sync with upstream kit changes via a state-aware three-way diff. Report rough edges via [GitHub Issues](https://github.com/alexandremendoncaalvaro/agentic-development/issues); current releases live under [GitHub Releases](https://github.com/alexandremendoncaalvaro/agentic-development/releases).
|
|
6
6
|
|
|
7
7
|
## Prerequisites
|
|
8
8
|
|
|
@@ -88,6 +88,38 @@ npm install -g @alexandrealvaro/agentic@beta
|
|
|
88
88
|
agentic init
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
+
## Recommended daily sequence
|
|
92
|
+
|
|
93
|
+
The kit ships nine universal skills plus three conditional ones — twelve discrete capabilities. The sequence below is a happy path through them for the three flows that cover most daily work. Skip steps that don't apply; the kit never enforces order.
|
|
94
|
+
|
|
95
|
+
**Greenfield project, first non-trivial feature:**
|
|
96
|
+
|
|
97
|
+
1. `agentic init` — install skills.
|
|
98
|
+
2. `/agentic-bootstrap` — produce `AGENTS.md` (operational guide).
|
|
99
|
+
3. `/agentic-architecture` — produce `ARCHITECTURE.md` once load-bearing patterns emerge.
|
|
100
|
+
4. `/agentic-spec` — feature-level spec at `doc/specs/NNNN-<slug>.md` (User Scenarios, Requirements, Success Criteria).
|
|
101
|
+
5. `/agentic-adr` — only when the feature forces a binding architectural decision worth recording for posterity.
|
|
102
|
+
6. `/agentic-task` — work-unit decomposition; reference the spec via `Spec ref`.
|
|
103
|
+
7. `/agentic-ground` — four-source research before code (`agentic-philosophy` auto-loads in parallel).
|
|
104
|
+
8. Implement.
|
|
105
|
+
9. `/agentic-review main..HEAD` — fresh-context §10 review before merge.
|
|
106
|
+
10. `/agentic-audit` — periodic drift check across operational docs and specs.
|
|
107
|
+
|
|
108
|
+
**Brownfield project, quick fix:**
|
|
109
|
+
|
|
110
|
+
1. `agentic update` (only if you want upstream kit changes).
|
|
111
|
+
2. Fix. `agentic-philosophy` auto-loads if the change is non-trivial.
|
|
112
|
+
3. `/agentic-review` only if the fix is non-trivial. Trivial diffs skip the review.
|
|
113
|
+
4. Commit.
|
|
114
|
+
|
|
115
|
+
**Brownfield project, research-only ("what's the best way to add X?"):**
|
|
116
|
+
|
|
117
|
+
1. `/agentic-ground` — runs the four-source research pass and surfaces the happy path with citations.
|
|
118
|
+
2. Decide whether the answer becomes a spec (`/agentic-spec`) or a one-off task (`/agentic-task`).
|
|
119
|
+
3. Continue from step 6 of the greenfield flow.
|
|
120
|
+
|
|
121
|
+
The kit's discipline scales with the project's maturity. A solo PoC may legitimately skip `/agentic-spec` and `/agentic-adr` (the WORKFLOW §1 prune principle applies — don't add an artifact that wouldn't change agent behavior). A team product running on this kit is expected to use the full sequence; CI + hooks (deferred — see Task 0013) will eventually enforce the gates that today are advisory.
|
|
122
|
+
|
|
91
123
|
## Manual prompts
|
|
92
124
|
|
|
93
125
|
If you prefer to skip the installer, the same artifacts can be generated by pasting prompts directly into your agent. Each prompt file has the literal text to copy, plus the matching template structure:
|
|
@@ -121,7 +153,7 @@ Prompts reference templates by relative path. Two ways to give your agent access
|
|
|
121
153
|
|
|
122
154
|
**Reviewing your own diff.** Run `/agentic-review <range>` (e.g. `/agentic-review main..HEAD` or `/agentic-review PR#42`). The skill assembles the diff, the relevant spec slice (`AGENTS.md`, applicable ADRs, the task's Acceptance Criteria), and delegates to a fresh-context reviewer subagent — no inherited bias from the session that wrote the code (WORKFLOW §10). Returns structured findings grouped Blocker / Concern / Note. Codex variant uses `/clear` + paste handoff since Codex has no subagent primitive.
|
|
123
155
|
|
|
124
|
-
**Researching before implementation.** Run `/agentic-ground` (or let it auto-trigger on non-trivial work). The skill runs a four-source
|
|
156
|
+
**Researching before implementation.** Run `/agentic-ground` (or let it auto-trigger on non-trivial work). The skill runs a four-source research pass — official docs, validated open-source examples, in-repo patterns, and git history — synthesizes a happy path with citations from each source, and gates any deviation behind an irrefutable justification before code is written (WORKFLOW §4 + §5). Output is the input to whatever produces the implementation plan; the skill does not write code.
|
|
125
157
|
|
|
126
158
|
**Specifying a feature.** Run `/agentic-spec` (or `/agentic-spec` with a feature name). The skill scaffolds `doc/specs/NNNN-<slug>.md` with industry-aligned mandatory sections (User Scenarios, Functional / Non-functional Requirements, Success Criteria, Edge Cases, Out of Scope, Open Questions, Related). Specs are layer 2 of the four-layer artifact stack — Constitution → Spec → Plan/Decisions → Code. One spec per feature; multiple tasks (`/agentic-task`) implement one spec; the task template carries a `Spec ref` field linking back to the spec.
|
|
127
159
|
|
package/WORKFLOW.md
CHANGED
|
@@ -62,16 +62,18 @@ Comments are exceptions. They justify *why* a non-obvious choice was made — ne
|
|
|
62
62
|
|
|
63
63
|
### Documentation Discipline
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
The agent's authoritative copy of the eight-rule documentation discipline lives in the `agentic-philosophy` skill (`Documentation Discipline` section). The rules are summarized below for reference; the skill carries the full text agents read at session time. ADR-0008 records the canonical decision and the reconciliations against ADR-0004 (file-based task tracking) and ADR-0005 (universal agent behavior as a skill).
|
|
66
66
|
|
|
67
|
-
1. **Definitions and decisions only.**
|
|
68
|
-
2. **No dates, version stamps, `DRAFT` markers, or changelogs in narrative documents.**
|
|
69
|
-
3. **No emoji anywhere.**
|
|
70
|
-
4. **Business context first.**
|
|
71
|
-
5. **One scope per document. No duplication.**
|
|
72
|
-
6. **Code is the primary documentation of behavior.**
|
|
73
|
-
7. **No commented-out code; no orphan `TODO` / `FIXME` in source.** Every deferred item references a
|
|
74
|
-
8. **Tests are living documentation of behavior.**
|
|
67
|
+
1. **Definitions and decisions only.** No speculation, history, or unfounded plans.
|
|
68
|
+
2. **No dates, version stamps, `DRAFT` markers, or changelogs in narrative documents.** Decision-record artifacts under `doc/adr/`, `doc/tasks/`, `doc/specs/` are exempt — their lifecycle fields are the auditability primitive.
|
|
69
|
+
3. **No emoji anywhere.**
|
|
70
|
+
4. **Business context first.**
|
|
71
|
+
5. **One scope per document. No duplication.**
|
|
72
|
+
6. **Code is the primary documentation of behavior.**
|
|
73
|
+
7. **No commented-out code; no orphan `TODO` / `FIXME` in source.** Every deferred item references a GitHub Issue or a `doc/tasks/NNNN-*.md` task.
|
|
74
|
+
8. **Tests are living documentation of behavior.**
|
|
75
|
+
|
|
76
|
+
The skill body explains the rationale per rule, lists the failure modes the rules counter (bloated `AGENTS.md`, README pages drifting into changelogs, decision artifacts diluted by speculation), and walks through the reconciliations. Generator skills (`agentic-bootstrap`, `agentic-architecture`, `agentic-spec`, `agentic-task`, `agentic-adr`, `agentic-design`) reject violations of these rules at write time; `agentic-audit` flags drift across narrative docs and decision-record artifacts on demand.
|
|
75
77
|
|
|
76
78
|
## 3. Format by Evidence
|
|
77
79
|
|
|
@@ -86,29 +88,17 @@ Use XML when the prompt mixes instructions, retrieved context, examples, user in
|
|
|
86
88
|
|
|
87
89
|
No format is universally best. **An observation from my practice, not benchmarked:** I've seen consistent gains when shifting prompts to XML — most noticeably with autonomous agents, where the prompt has to land alone without conversational refinement. Direct interactive use (Claude Code, Codex) tolerates loose Markdown; unattended agents don't. Claude in particular seems to respond well to XML, which I attribute to its training, but I haven't benchmarked it. Treat this as a starting hypothesis worth testing on your own target model and task before standardizing.
|
|
88
90
|
|
|
89
|
-
## 4.
|
|
90
|
-
|
|
91
|
-
Before implementing, ask:
|
|
92
|
-
|
|
93
|
-
> *"What is the canonical, idiomatic way to implement [X] in [stack]? Cite official docs. List common deviations and why people take them."*
|
|
94
|
-
|
|
95
|
-
Then check continuously, especially mid-implementation:
|
|
96
|
-
|
|
97
|
-
> *"We are at step Y. Are we still on the happy path? If we deviated, was it deliberate?"*
|
|
98
|
-
|
|
99
|
-
Sometimes you can't follow the happy path — that's fine. But always know where it is and why you left it.
|
|
100
|
-
|
|
101
|
-
The kit ships `agentic-ground` (workflow-operational skill) as the bound implementation of §4 + §5: it runs a four-source research pass (official docs, validated open-source examples, in-repo patterns, git history), synthesizes the happy path with citations, and gates any deviation behind an irrefutable justification before code is written.
|
|
91
|
+
## 4–5. Research Before Implementation
|
|
102
92
|
|
|
103
|
-
|
|
93
|
+
Combines Find the Happy Path (canonical / idiomatic baseline) and Ground in Real Patterns (anchoring in project-specific examples). The kit treats both as one indivisible flow via `agentic-ground`; two prose sections would frame one operation as two separate practices.
|
|
104
94
|
|
|
105
|
-
|
|
95
|
+
Two sub-practices, joined into one indivisible pass.
|
|
106
96
|
|
|
107
|
-
|
|
97
|
+
**Find the happy path.** Before implementing, ask: *"What is the canonical, idiomatic way to implement [X] in [stack]? Cite official docs. List common deviations and why people take them."* Mid-implementation: *"Are we still on the happy path? If we deviated, was it deliberate?"* Sometimes you can't follow the happy path — that's fine. Always know where it is and why you left it.
|
|
108
98
|
|
|
109
|
-
Cite specific files, not "the codebase." Use just-in-time retrieval
|
|
99
|
+
**Ground in real patterns.** Don't dump the codebase into context. Anchor the model in a specific, project-relevant example: *"Find an existing example of [similar feature]; use that exact structure."* Cite specific files, not "the codebase." Use just-in-time retrieval — pass paths or IDs and let the agent fetch via tools.
|
|
110
100
|
|
|
111
|
-
`agentic-ground`
|
|
101
|
+
The kit ships `agentic-ground` as the workflow-operational implementation of both. It runs a four-source research pass — official docs, validated open-source examples, in-repo patterns, git history — joined by AND not OR, synthesizes the happy path with citations from each source, and gates any deviation behind an irrefutable justification before code is written. Splitting the two sub-practices into separate skills would force two invocations with overlapping research outputs and fragment the synthesis context (ADR-0010).
|
|
112
102
|
|
|
113
103
|
## 6. Explore → Plan → Implement → Commit
|
|
114
104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentic-audit
|
|
3
|
-
description: Read-only drift audit — compare AGENTS.md, ARCHITECTURE.md,
|
|
3
|
+
description: Read-only drift audit — compare AGENTS.md, ARCHITECTURE.md, ADR statuses, feature specs in doc/specs/, and documentation discipline against what the code actually does. Outputs a drift list, never writes files. Use when the user wants to audit, review for drift, sanity-check, or report inconsistencies between the repo's docs and its code.
|
|
4
4
|
allowed-tools: Read, Glob, Grep, Bash
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Read-only. Produces a drift list comparing the repo's operational docs against w
|
|
|
10
10
|
|
|
11
11
|
## Step 1 — Decide what to audit
|
|
12
12
|
|
|
13
|
-
If the user names an artifact (`AGENTS.md`, `ARCHITECTURE.md`, ADRs), audit only that. Otherwise audit all
|
|
13
|
+
If the user names an artifact (`AGENTS.md`, `ARCHITECTURE.md`, ADRs, specs), audit only that. Otherwise audit all categories below.
|
|
14
14
|
|
|
15
15
|
## Step 2 — Run checks
|
|
16
16
|
|
|
@@ -34,6 +34,16 @@ If the user names an artifact (`AGENTS.md`, `ARCHITECTURE.md`, ADRs), audit only
|
|
|
34
34
|
* Status field — every ADR has one of `proposed | accepted | deprecated | superseded by ADR-NNNN`.
|
|
35
35
|
* Superseded chains — every "superseded by ADR-NNNN" target exists.
|
|
36
36
|
|
|
37
|
+
### Spec drift (if `doc/specs/` exists)
|
|
38
|
+
|
|
39
|
+
Structural integrity only — does **not** deep-audit spec text against shipped code (deferred per [ADR-0011](../../doc/adr/0011-agentic-spec-skill.md) Consequences).
|
|
40
|
+
|
|
41
|
+
* Numbering — gaps or duplicates in `doc/specs/NNNN-*.md`?
|
|
42
|
+
* Status field — every spec has one of `draft | accepted | shipped | superseded by SPEC-NNNN`.
|
|
43
|
+
* Superseded chains — every "superseded by SPEC-NNNN" target exists.
|
|
44
|
+
* Reciprocity — every task under `doc/tasks/NNNN-*.md` whose `Spec ref` field is non-empty points to a spec that exists. And every spec with `Status: accepted` or `shipped` has at least one entry in its `Related → Tasks` list (an accepted spec with no implementing task is a smell).
|
|
45
|
+
* Success Criteria coverage — when every task that references a spec is `done`, the spec's Success Criteria checkboxes should all be checked. A spec with all tasks `done` but unchecked Success Criteria boxes is drift between work-unit completion and feature-level claim.
|
|
46
|
+
|
|
37
47
|
### Documentation discipline drift (`WORKFLOW.md` §2 / ADR-0008)
|
|
38
48
|
|
|
39
49
|
Audit narrative documents — `README.md`, `AGENTS.md` / `CLAUDE.md`, `ARCHITECTURE.md`, `DESIGN.md`, any prose page under `doc/` that is not a decision-record artifact under `doc/adr/` or `doc/tasks/`:
|
|
@@ -6,15 +6,15 @@ allowed-tools: Read, Glob, Grep, Bash, WebFetch, WebSearch
|
|
|
6
6
|
|
|
7
7
|
# /agentic-ground
|
|
8
8
|
|
|
9
|
-
Implements WORKFLOW §4 + §5 end-to-end as a single research pass. The four sources are joined by **AND**, not OR — every non-trivial change runs the full
|
|
9
|
+
Implements WORKFLOW §4 + §5 end-to-end as a single research pass. The four sources are joined by **AND**, not OR — every non-trivial change runs the full research pass, then synthesizes a happy path, then justifies any deviation. Output is the input to whatever skill or freeform turn produces the implementation plan; this skill does not write code.
|
|
10
10
|
|
|
11
|
-
## Step 0 — Scope the
|
|
11
|
+
## Step 0 — Scope the research scope
|
|
12
12
|
|
|
13
|
-
Confirm what is being researched. The
|
|
13
|
+
Confirm what is being researched. The research scope is the smallest verifiable surface that captures the change: a function to add, a library to pick, a pattern to apply. State it in one sentence before research starts. If the surface is broader than one sentence captures, ask the user to narrow it; broad research scopes produce diluted research.
|
|
14
14
|
|
|
15
15
|
If the change is genuinely trivial (rename, typo, one-line refactor on a tested path), skip this skill.
|
|
16
16
|
|
|
17
|
-
## Step 1 — Four-source
|
|
17
|
+
## Step 1 — Four-source research pass (all four required)
|
|
18
18
|
|
|
19
19
|
### Source A — official documentation
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ For each language and library in scope, cite the canonical doc URL and version.
|
|
|
22
22
|
|
|
23
23
|
### Source B — validated open-source examples
|
|
24
24
|
|
|
25
|
-
Find ≥1 (prefer 2–3) public repository solving the same *technical*
|
|
25
|
+
Find ≥1 (prefer 2–3) public repository solving the same *technical* research scope with similar techniques. The match is technical, not domain — a CRUD-app-with-auth and a CLI-with-auth both hit "auth flow", and either is valid for the auth research scope. Use `WebSearch` (e.g. `site:github.com <research scope> language:<lang>`) and follow up with `WebFetch` of the specific file. Cite `<repo>:<path>:<line-range>` and quote the relevant block — never paraphrase code from training memory. If search is inconclusive, ask the user for a known reference.
|
|
26
26
|
|
|
27
27
|
### Source C — in-repo examples
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ Run `git log --all --oneline -- <relevant-paths>`, `git log --all --grep=<keywor
|
|
|
34
34
|
|
|
35
35
|
## Step 2 — Happy path synthesis
|
|
36
36
|
|
|
37
|
-
In one paragraph, name the most-grounded approach for the
|
|
37
|
+
In one paragraph, name the most-grounded approach for the research scope and cite at least one source per Source A / B / C. Source D is included when it produced a hit; otherwise mark "no prior attempt found." The paragraph is the canonical answer the engineer would give if asked "what is the canonical, idiomatic way to solve this here?" — the question WORKFLOW.md §4 frames.
|
|
38
38
|
|
|
39
39
|
## Step 3 — Deviation gate
|
|
40
40
|
|
|
@@ -20,12 +20,9 @@ Before implementing:
|
|
|
20
20
|
|
|
21
21
|
## Ground Before Coding
|
|
22
22
|
|
|
23
|
-
**Anchor in real patterns
|
|
23
|
+
**Anchor in real patterns before writing code.**
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
- Find an existing example in the codebase; reuse its structure.
|
|
27
|
-
- Cite specific files, not "the codebase". Fetch via tools — don't dump code into context.
|
|
28
|
-
- For non-trivial changes, explore (read-only) → plan → implement → commit. Skip for diffs you can describe in one sentence.
|
|
25
|
+
For non-trivial changes, invoke `/agentic-ground` — the workflow-operational skill that runs the four-source research pass (official docs, validated open-source examples, in-repo patterns, git history) and synthesizes a happy path with citations. The skill carries the prescriptive deviation gate; this section carries the posture only. Skip for diffs you can describe in one sentence.
|
|
29
26
|
|
|
30
27
|
## Simplicity First
|
|
31
28
|
|
|
@@ -29,6 +29,13 @@ ADR drift (if `doc/adr/` exists):
|
|
|
29
29
|
- Status field — every ADR has one of `proposed | accepted | deprecated | superseded by ADR-NNNN`.
|
|
30
30
|
- Superseded chains — every "superseded by ADR-NNNN" target exists.
|
|
31
31
|
|
|
32
|
+
Spec drift (if `doc/specs/` exists; structural integrity only — does NOT deep-audit spec text against code, deferred per ADR-0011):
|
|
33
|
+
- Numbering — gaps or duplicates in `doc/specs/NNNN-*.md`?
|
|
34
|
+
- Status field — every spec has one of `draft | accepted | shipped | superseded by SPEC-NNNN`.
|
|
35
|
+
- Superseded chains — every "superseded by SPEC-NNNN" target exists.
|
|
36
|
+
- Reciprocity — every task with non-empty `Spec ref` points to a spec that exists; every accepted/shipped spec has at least one entry in its Related → Tasks list.
|
|
37
|
+
- Success Criteria coverage — when every task referencing a spec is done, the spec's Success Criteria checkboxes should all be checked.
|
|
38
|
+
|
|
32
39
|
Documentation discipline drift (`WORKFLOW.md` §2 / ADR-0008). Audit narrative documents — `README.md`, `AGENTS.md` / `CLAUDE.md`, `ARCHITECTURE.md`, `DESIGN.md`, any prose page under `doc/` that is not a decision-record artifact under `doc/adr/` or `doc/tasks/`:
|
|
33
40
|
- Emoji — any present? Rule 3 forbids emoji anywhere (docs, code, comments, commits, skill outputs).
|
|
34
41
|
- Dates / version stamps / `DRAFT` markers / changelog blocks in narrative documents — Rule 2 forbids these. Decision-record artifacts under `doc/adr/` and `doc/tasks/` are exempt.
|
|
@@ -4,25 +4,25 @@ description: Four-source pre-implementation research — official docs, validate
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<background_information>
|
|
7
|
-
Implements WORKFLOW §4 + §5 end-to-end as one research pass. The four sources are joined by AND, not OR — every non-trivial change runs the full
|
|
7
|
+
Implements WORKFLOW §4 + §5 end-to-end as one research pass. The four sources are joined by AND, not OR — every non-trivial change runs the full research pass, then synthesizes a happy path, then justifies any deviation. Output is the input to whatever skill or freeform turn produces the implementation plan; this skill does not write code.
|
|
8
8
|
|
|
9
9
|
Codex auto-trigger on description keywords is less mature than Claude Code's. If auto-invocation does not fire on a non-trivial change, invoke this skill manually before implementing.
|
|
10
10
|
</background_information>
|
|
11
11
|
|
|
12
12
|
<instructions>
|
|
13
|
-
Step 0 — scope the
|
|
13
|
+
Step 0 — scope the research scope. Confirm what is being researched in one sentence. The research scope is the smallest verifiable surface that captures the change: a function to add, a library to pick, a pattern to apply. If broader than one sentence, ask the user to narrow. Skip the skill on genuinely trivial diffs (rename, typo, one-line refactor on a tested path).
|
|
14
14
|
|
|
15
|
-
Step 1 — four-source
|
|
15
|
+
Step 1 — four-source research pass, all four required:
|
|
16
16
|
|
|
17
17
|
Source A — official documentation. For each language and library in scope, cite the canonical doc URL and version. Read the relevant section. Ask the user for a known-good link rather than fabricating one. Output: bulleted citations, one per language/library, each with URL plus a one-line summary.
|
|
18
18
|
|
|
19
|
-
Source B — validated open-source examples. ≥1 (prefer 2–3) public repository solving the same technical
|
|
19
|
+
Source B — validated open-source examples. ≥1 (prefer 2–3) public repository solving the same technical research scope with similar techniques. Match is technical, not domain. Cite `<repo>:<path>:<line-range>` and quote the relevant block — never paraphrase from training memory. If search is inconclusive, ask the user for a known reference.
|
|
20
20
|
|
|
21
21
|
Source C — in-repo examples. Grep / glob for analogous patterns. Cite `<file>:<line>` plus a one-line description of how the existing example handles the same shape. If the codebase has no analog, state that explicitly.
|
|
22
22
|
|
|
23
23
|
Source D — git history. Run `git log --all --oneline -- <relevant-paths>`, `git log --all --grep=<keyword>`, sweep sibling active branches. Cite `<commit-sha>` plus touching file path and a one-line description. If empty, state "no prior attempt found." Narrow with `--grep` or `-S` on multi-thousand-commit repos.
|
|
24
24
|
|
|
25
|
-
Step 2 — happy path synthesis. In one paragraph, name the most-grounded approach for the
|
|
25
|
+
Step 2 — happy path synthesis. In one paragraph, name the most-grounded approach for the research scope and cite at least one source per Source A / B / C. Source D included when it produced a hit; otherwise mark "no prior attempt found." The paragraph is the canonical answer to "what is the canonical, idiomatic way to solve this here?"
|
|
26
26
|
|
|
27
27
|
Step 3 — deviation gate. If the implementation about to be written deviates from the happy path, write the justification first. Must name the specific constraint, evidence, or trade-off forcing the deviation — generic "we want it differently" is insufficient. If the justification cannot be written confidently, loop back to Step 1 and look harder; do not deviate without it. Prescriptive gate, not descriptive — write the answer down.
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@ Six behaviors apply to every non-trivial change. Bias toward caution over speed;
|
|
|
10
10
|
<instructions>
|
|
11
11
|
**Think Before Coding.** Don't assume. Don't hide confusion. Surface tradeoffs. State assumptions explicitly; ask when uncertain. If multiple interpretations exist, present them — don't pick silently. If a simpler approach exists, say so. If something is unclear, stop, name the confusion, ask.
|
|
12
12
|
|
|
13
|
-
**Ground Before Coding.** Anchor in real patterns
|
|
13
|
+
**Ground Before Coding.** Anchor in real patterns before writing code. For non-trivial changes, invoke `/agentic-ground` — the workflow-operational skill that runs the four-source research pass (official docs, validated open-source examples, in-repo patterns, git history) and synthesizes a happy path with citations. The skill carries the prescriptive deviation gate; this section carries posture only. Skip for diffs describable in one sentence.
|
|
14
14
|
|
|
15
15
|
**Simplicity First.** Minimum code that solves the problem. No features beyond what was asked. No abstractions for single-use code. No "flexibility" or "configurability" that wasn't requested. No error handling for impossible scenarios. Comments justify why, not what. No commented-out code; no orphan `TODO`/`FIXME` without an issue/ADR/follow-up reference. If 200 lines could be 50, rewrite.
|
|
16
16
|
|