@alexandrealvaro/agentic 0.9.4-beta.1 → 0.10.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 +3 -0
- package/package.json +1 -1
- package/src/commands/init.js +1 -0
- package/src/lib/profiles.js +4 -1
- package/src/lib/rootdoc.js +2 -0
- package/src/skills/claude-code/agentic-next/SKILL.md +119 -0
- package/src/skills/codex/agentic-next/SKILL.md +84 -0
- package/src/skills/codex/agentic-next/agents/openai.yaml +5 -0
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ Two categories ([ADR-0007](doc/adr/0007-workflow-operational-skills.md)) and two
|
|
|
39
39
|
| `agentic-philosophy` | workflow-operational | universal | Universal agent guardrails — auto-loads on non-trivial work | implicit |
|
|
40
40
|
| `agentic-review` | workflow-operational | universal | Fresh-context code review per WORKFLOW §10; structured findings, no "approve" | `/agentic-review <range>` |
|
|
41
41
|
| `agentic-ground` | workflow-operational | universal | Four-source pre-implementation research (docs / OSS / in-repo / git history) + happy-path synthesis + deviation gate per WORKFLOW §4 + §5 | `/agentic-ground` |
|
|
42
|
+
| `agentic-next` | workflow-operational | universal | State-aware navigation aid (`flutter doctor` pattern) — surveys the four-layer artifact stack and recommends prioritized next actions; complements `agentic-audit` (drift) | `/agentic-next` |
|
|
42
43
|
| `agentic-design` | spec-driven | auto if frontend detected | Bootstrap `DESIGN.md` from existing tokens (Figma, tailwind.config, tokens.json, CSS custom props) | `/agentic-design` |
|
|
43
44
|
| `agentic-subagent` | spec-driven | auto if installing for Claude Code | Drafts `.claude/agents/<name>.md` (Claude Code only — Codex has no subagent primitive) | `/agentic-subagent` |
|
|
44
45
|
| `agentic-skill` | spec-driven | opt-in only | Drafts a new Claude Code or Codex skill at the appropriate path | `/agentic-skill` |
|
|
@@ -152,6 +153,8 @@ The kit ships nine universal skills plus three conditional ones — twelve discr
|
|
|
152
153
|
|
|
153
154
|
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 and additionally invoke `/agentic-hooks` once to scaffold the deterministic gates per WORKFLOW §11 (pre-commit lint / format / secret-scan; pre-push build / unit / integration). Project maturity profiles that automate the recommendation by stack are deferred — see the next planned release.
|
|
154
155
|
|
|
156
|
+
**Lost mid-flow?** Invoke `/agentic-next` at any time to survey the project's state across the four-layer artifact stack (Constitution → Spec → Plan/Decisions → Code) and get prioritized next-action recommendations. Read-only; complements `/agentic-audit` (drift detection — different question).
|
|
157
|
+
|
|
155
158
|
## Manual prompts
|
|
156
159
|
|
|
157
160
|
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:
|
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -340,6 +340,7 @@ export async function initCommand(opts) {
|
|
|
340
340
|
'/agentic-audit',
|
|
341
341
|
'/agentic-review (WORKFLOW §10)',
|
|
342
342
|
'/agentic-ground (WORKFLOW §4 + §5)',
|
|
343
|
+
'/agentic-next (state survey + recommendations)',
|
|
343
344
|
...(optedSkills.includes('agentic-design') ? ['/agentic-design (DESIGN.md)'] : []),
|
|
344
345
|
...(optedSkills.includes('agentic-subagent') && agents.includes('claude-code')
|
|
345
346
|
? ['/agentic-subagent']
|
package/src/lib/profiles.js
CHANGED
|
@@ -20,7 +20,7 @@ export const PROFILE_NAMES = ['poc', 'solo', 'team', 'mature'];
|
|
|
20
20
|
|
|
21
21
|
export const PROFILES = {
|
|
22
22
|
poc: {
|
|
23
|
-
universal: ['agentic-philosophy', 'agentic-ground', 'agentic-audit'],
|
|
23
|
+
universal: ['agentic-philosophy', 'agentic-ground', 'agentic-audit', 'agentic-next'],
|
|
24
24
|
conditional: {
|
|
25
25
|
'agentic-design': 'blocked',
|
|
26
26
|
'agentic-subagent': 'blocked',
|
|
@@ -34,6 +34,7 @@ export const PROFILES = {
|
|
|
34
34
|
'agentic-philosophy',
|
|
35
35
|
'agentic-ground',
|
|
36
36
|
'agentic-audit',
|
|
37
|
+
'agentic-next',
|
|
37
38
|
'agentic-bootstrap',
|
|
38
39
|
'agentic-spec',
|
|
39
40
|
'agentic-task',
|
|
@@ -60,6 +61,7 @@ export const PROFILES = {
|
|
|
60
61
|
'agentic-audit',
|
|
61
62
|
'agentic-review',
|
|
62
63
|
'agentic-ground',
|
|
64
|
+
'agentic-next',
|
|
63
65
|
],
|
|
64
66
|
conditional: {
|
|
65
67
|
'agentic-design': 'frontend',
|
|
@@ -80,6 +82,7 @@ export const PROFILES = {
|
|
|
80
82
|
'agentic-audit',
|
|
81
83
|
'agentic-review',
|
|
82
84
|
'agentic-ground',
|
|
85
|
+
'agentic-next',
|
|
83
86
|
],
|
|
84
87
|
conditional: {
|
|
85
88
|
'agentic-design': 'frontend',
|
package/src/lib/rootdoc.js
CHANGED
|
@@ -26,6 +26,8 @@ export const SKILL_DESCRIPTIONS = {
|
|
|
26
26
|
'Fresh-context code review per WORKFLOW §10 — assemble handoff, return structured findings.',
|
|
27
27
|
'agentic-ground':
|
|
28
28
|
'Four-source pre-implementation research (docs / OSS / in-repo / git history) + happy-path synthesis + deviation gate. WORKFLOW §4 + §5.',
|
|
29
|
+
'agentic-next':
|
|
30
|
+
'State survey + prioritized next-action recommendations across the four-layer artifact stack. Read-only navigation aid (`flutter doctor` pattern).',
|
|
29
31
|
'agentic-design': 'Bootstrap `DESIGN.md` from existing tokens (frontend projects).',
|
|
30
32
|
'agentic-subagent': 'Draft a new Claude Code subagent at `.claude/agents/<name>.md`.',
|
|
31
33
|
'agentic-skill': 'Draft a new Claude Code or Codex skill at the appropriate path.',
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentic-next
|
|
3
|
+
description: Survey the project's state across the four-layer artifact stack and recommend prioritized next actions, modeled on `flutter doctor`. Use when the user asks "what's next", "next step", "where am I", "project status", "doctor", "what should I do", "audit my workflow", or whenever a navigation aid is needed mid-flow. Read-only; complements `agentic-audit` (drift detection, a different question). Profile-aware — `poc` suppresses Layer 2 / 3 noise, `team` / `mature` run the full survey.
|
|
4
|
+
allowed-tools: Read, Glob, Grep, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# /agentic-next
|
|
8
|
+
|
|
9
|
+
Read-only state survey + prioritized next-action recommendations. Mirrors `flutter doctor` shape: layer-by-layer status + concrete fix per finding. Complements `agentic-audit` — audit answers "is anything wrong?", next answers "what should I do?".
|
|
10
|
+
|
|
11
|
+
The skill writes nothing. Output is recommendations the user copies into the next conversation turn or the next CLI invocation.
|
|
12
|
+
|
|
13
|
+
## Step 0 — Read state
|
|
14
|
+
|
|
15
|
+
Detect baseline:
|
|
16
|
+
|
|
17
|
+
* Profile + kit version: read `.claude/agentic-state.json` and `.agents/agentic-state.json` if present. Profile defaults to `team` per ADR-0013 when state file missing or no profile field.
|
|
18
|
+
* Filesystem signals at the repo root: `AGENTS.md` / `CLAUDE.md`, `ARCHITECTURE.md`, `DESIGN.md`, `WORKFLOW.md`, `README.md`, `package.json` / `pyproject.toml` / `Cargo.toml` / `go.mod`, `.husky/` / `lefthook.yml` / `.pre-commit-config.yaml`, `.github/workflows/`, `.git/HEAD` (current branch).
|
|
19
|
+
* Per-artifact directories: list `doc/specs/`, `doc/adr/`, `doc/tasks/`. Read each file's frontmatter (`Status:`, `Created:`, `Spec ref:` for tasks) but **not** the full body — survey is fast and broad.
|
|
20
|
+
* Git state: current branch, commits ahead of `main` (`git rev-list --count main..HEAD`), unpushed commits, working-tree dirtiness.
|
|
21
|
+
|
|
22
|
+
Do not parse skill bodies. Do not run tests. Do not invoke other skills. The survey is shallow by design.
|
|
23
|
+
|
|
24
|
+
## Step 1 — Layer-by-layer status
|
|
25
|
+
|
|
26
|
+
Render four sections in this exact order. For each section, list what is present, what is in flight, what is missing or stale. Use words for status (`present`, `in flight`, `missing`, `stale`) — no emoji.
|
|
27
|
+
|
|
28
|
+
**Layer 1 — Constitution.**
|
|
29
|
+
- `AGENTS.md` (or `CLAUDE.md`) present?
|
|
30
|
+
- `WORKFLOW.md` present? (kit-shipped — should always be there)
|
|
31
|
+
- `ARCHITECTURE.md` present?
|
|
32
|
+
- `DESIGN.md` present? (frontend projects only)
|
|
33
|
+
|
|
34
|
+
**Layer 2 — Specs (`doc/specs/`).**
|
|
35
|
+
|
|
36
|
+
For each spec file, report `Status` and the count of tasks whose `Spec ref` field points at it:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
0001-auth-flow.md (accepted, 0 implementing tasks)
|
|
40
|
+
0002-onboarding.md (shipped, 3 tasks done)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Flag specs with `Status: accepted` and zero implementing tasks — that is the most common stuck state.
|
|
44
|
+
|
|
45
|
+
**Layer 3 — Plans / Decisions.**
|
|
46
|
+
|
|
47
|
+
`doc/adr/` — count by status: `proposed`, `accepted`, `deprecated`, `superseded`. Flag any `proposed` ADRs explicitly with their slug — they need a decision.
|
|
48
|
+
|
|
49
|
+
`doc/tasks/` — count by status: `proposed`, `in-progress`, `blocked`, `done`. List in-progress and blocked tasks with their slugs and `Spec ref`. Flag tasks with no `Spec ref` and no `Board ref` as orphans (no clear scope tie).
|
|
50
|
+
|
|
51
|
+
**Layer 4 — Code.**
|
|
52
|
+
- Branch: `<name>` (`<n>` commits ahead of `main` if applicable).
|
|
53
|
+
- Tests: wired? (presence of `npm test` script / `pytest` / `cargo test` / `go test ./...`).
|
|
54
|
+
- Hooks: wired? (presence of `.husky/`, `lefthook.yml`, `.pre-commit-config.yaml`, or active `.git/hooks/` scripts).
|
|
55
|
+
- CI: wired? (presence of `.github/workflows/`, `.gitlab-ci.yml`, `.circleci/`).
|
|
56
|
+
|
|
57
|
+
## Step 2 — Cross-cut signals
|
|
58
|
+
|
|
59
|
+
A few signals do not belong to one layer:
|
|
60
|
+
|
|
61
|
+
- **Pending fresh-context review.** If branch is ≥1 commits ahead of `main` and no `.agentic/reviews/<ts>-*.md` exists for the current range, flag `agentic-review` as a recommendation.
|
|
62
|
+
- **Spec ↔ task reciprocity.** Tasks with non-empty `Spec ref` whose target spec does not exist → orphan task. Specs with `Status: accepted` or `shipped` and zero entries in their `Related → Tasks` list → spec without implementing tasks.
|
|
63
|
+
- **Profile vs install state.** Profile says one set of skills; state file lists another. Surface the divergence and recommend `agentic update` or `agentic profile set <name>`.
|
|
64
|
+
- **Stale state file.** `kitVersion` in state file ≠ currently-running kit. Recommend `agentic update`.
|
|
65
|
+
|
|
66
|
+
## Step 3 — Prioritize next actions
|
|
67
|
+
|
|
68
|
+
Rank findings by leverage. Return 3–5 concrete invocations, each as a one-line "do X next" with the slug or path that makes the action unambiguous.
|
|
69
|
+
|
|
70
|
+
Priority heuristic:
|
|
71
|
+
|
|
72
|
+
1. **Decisions blocking work.** Proposed ADRs awaiting acceptance, accepted specs without tasks. These unblock everyone downstream.
|
|
73
|
+
2. **Quality gates the profile expects.** `mature` profile + hooks not wired → recommend `/agentic-hooks`. `team` profile + hooks not wired → recommend.
|
|
74
|
+
3. **In-flight work needing review.** Branch ahead of `main` without a fresh-context review → recommend `/agentic-review`.
|
|
75
|
+
4. **Drift / hygiene.** Orphan tasks, state-file staleness, spec ↔ task gaps → recommend `/agentic-audit` or `agentic update`.
|
|
76
|
+
5. **Greenfield gaps.** Missing `AGENTS.md` → `/agentic-bootstrap`. Missing `ARCHITECTURE.md` → `/agentic-architecture` (skip in `poc` and `solo`).
|
|
77
|
+
|
|
78
|
+
If nothing actionable surfaces, say so explicitly — empty output is real signal, not a gap. Phrase: "No urgent next action. Continue current work or invoke `/agentic-audit` for a full drift check."
|
|
79
|
+
|
|
80
|
+
## Step 4 — Profile-aware filtering
|
|
81
|
+
|
|
82
|
+
Apply per-profile rules at the end so the user sees output matched to their maturity:
|
|
83
|
+
|
|
84
|
+
- **`poc`:** suppress Layer 2 (specs) and Layer 3 (ADRs / tasks) sections entirely if those directories do not exist. Show Layer 1 + Layer 4 only. Recommendation set: `/agentic-ground` for research, `/agentic-audit` for drift, `/agentic-update` for staleness.
|
|
85
|
+
- **`solo`:** Layer 2 / Layer 3 render but ADR / `ARCHITECTURE.md` absence is informational — no "needs action" flag. Specs are universal at this profile; spec-without-tasks remains a real finding.
|
|
86
|
+
- **`team`:** full survey. Default profile.
|
|
87
|
+
- **`mature`:** additionally flag hooks-not-wired louder ("WORKFLOW §11 binding for `mature` profile — `/agentic-hooks` recommended").
|
|
88
|
+
|
|
89
|
+
## Output contract
|
|
90
|
+
|
|
91
|
+
A single Markdown message structured as:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
## agentic-next
|
|
95
|
+
|
|
96
|
+
**Profile:** <name> (kit v<X.Y.Z>)
|
|
97
|
+
**Branch:** <name> (<n> commits ahead of main)
|
|
98
|
+
|
|
99
|
+
### Layer 1 — Constitution
|
|
100
|
+
<one-line status per artifact>
|
|
101
|
+
|
|
102
|
+
### Layer 2 — Specs (doc/specs/)
|
|
103
|
+
<spec list with status + task count, or "no specs">
|
|
104
|
+
|
|
105
|
+
### Layer 3 — Plans / Decisions
|
|
106
|
+
<ADR + task summaries with explicit flags>
|
|
107
|
+
|
|
108
|
+
### Layer 4 — Code
|
|
109
|
+
<branch / tests / hooks / CI status>
|
|
110
|
+
|
|
111
|
+
### Recommended next (priority)
|
|
112
|
+
1. <action> — <one-line reason>
|
|
113
|
+
2. <action> — <one-line reason>
|
|
114
|
+
...
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
No file written. No state mutation. Recommendations are advisory; the user decides whether to invoke. Cross-references `agentic-audit` (drift detection), `agentic-update` (kit drift), `agentic-profile` (profile changes) where they apply.
|
|
118
|
+
|
|
119
|
+
When the host exposes `AskUserQuestion` (per ADR-0014) and the user follows up with a confirmation question after seeing the recommendations, prefer the structured prompt over inline text.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentic-next
|
|
3
|
+
description: Survey the project's state across the four-layer artifact stack and recommend prioritized next actions, modeled on `flutter doctor`. Use when the user asks "what's next", "next step", "where am I", "project status", "doctor", "what should I do", "audit my workflow". Read-only; complements `agentic-audit` (drift detection, a different question). Profile-aware — `poc` suppresses Layer 2/3 noise, `team`/`mature` run the full survey.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<background_information>
|
|
7
|
+
Read-only state survey + prioritized next-action recommendations. Mirrors `flutter doctor` shape: layer-by-layer status + concrete fix per finding. Complements `agentic-audit` — audit answers "is anything wrong?", next answers "what should I do?".
|
|
8
|
+
|
|
9
|
+
The skill writes nothing. Output is recommendations the user copies into the next conversation turn or the next CLI invocation.
|
|
10
|
+
|
|
11
|
+
Codex auto-trigger on description keywords is less mature than Claude Code's. If auto-invocation does not fire when the user asks about workflow status, invoke this skill manually.
|
|
12
|
+
</background_information>
|
|
13
|
+
|
|
14
|
+
<instructions>
|
|
15
|
+
Step 0 — read state. Detect baseline:
|
|
16
|
+
- Profile + kit version: read `.claude/agentic-state.json` and `.agents/agentic-state.json` if present. Profile defaults to `team` per ADR-0013 when state file missing or no profile field.
|
|
17
|
+
- Filesystem signals: `AGENTS.md` / `CLAUDE.md`, `ARCHITECTURE.md`, `DESIGN.md`, `WORKFLOW.md`, `README.md`, `package.json` / `pyproject.toml` / `Cargo.toml` / `go.mod`, `.husky/` / `lefthook.yml` / `.pre-commit-config.yaml`, `.github/workflows/`, current git branch.
|
|
18
|
+
- Per-artifact directories: list `doc/specs/`, `doc/adr/`, `doc/tasks/`. Read each file's frontmatter (`Status:`, `Created:`, `Spec ref:` for tasks) but NOT the full body.
|
|
19
|
+
- Git state: current branch, commits ahead of `main` (`git rev-list --count main..HEAD`), unpushed commits, working-tree dirtiness.
|
|
20
|
+
|
|
21
|
+
Do not parse skill bodies. Do not run tests. Do not invoke other skills.
|
|
22
|
+
|
|
23
|
+
Step 1 — layer-by-layer status. Render four sections in this exact order. Use words for status (`present`, `in flight`, `missing`, `stale`) — no emoji.
|
|
24
|
+
|
|
25
|
+
Layer 1 — Constitution: AGENTS.md / CLAUDE.md, WORKFLOW.md, ARCHITECTURE.md, DESIGN.md (frontend only).
|
|
26
|
+
|
|
27
|
+
Layer 2 — Specs (doc/specs/): for each file, report Status + count of tasks whose Spec ref points at it. Flag specs with Status: accepted and zero implementing tasks.
|
|
28
|
+
|
|
29
|
+
Layer 3 — Plans / Decisions: doc/adr/ counts by status, flag proposed ADRs with their slug. doc/tasks/ counts by status, list in-progress + blocked with slug and Spec ref. Flag tasks with no Spec ref and no Board ref as orphans.
|
|
30
|
+
|
|
31
|
+
Layer 4 — Code: branch + ahead count, tests wired? (npm test / pytest / cargo test / go test), hooks wired? (.husky / lefthook.yml / .pre-commit-config.yaml / .git/hooks/), CI wired? (.github/workflows / .gitlab-ci.yml / .circleci/).
|
|
32
|
+
|
|
33
|
+
Step 2 — cross-cut signals:
|
|
34
|
+
- Pending fresh-context review: branch ≥1 commits ahead of main with no .agentic/reviews/<ts>-*.md for the current range → recommend agentic-review.
|
|
35
|
+
- Spec ↔ task reciprocity: tasks with non-empty Spec ref whose target spec is missing → orphan; accepted/shipped specs with zero Related → Tasks → spec without implementing tasks.
|
|
36
|
+
- Profile vs install state: profile-declared skill set ≠ on-disk skill set → recommend `agentic update` or `agentic profile set <name>`.
|
|
37
|
+
- Stale state file: kitVersion in state file ≠ currently-running kit → recommend `agentic update`.
|
|
38
|
+
|
|
39
|
+
Step 3 — prioritize next actions. Rank by leverage. Return 3–5 concrete invocations, each as one-line "do X next" with slug / path.
|
|
40
|
+
|
|
41
|
+
Priority heuristic:
|
|
42
|
+
1. Decisions blocking work (proposed ADRs, accepted specs without tasks).
|
|
43
|
+
2. Quality gates the profile expects (mature + hooks not wired).
|
|
44
|
+
3. In-flight work needing review (branch ahead without fresh-context review).
|
|
45
|
+
4. Drift / hygiene (orphan tasks, state-file staleness, spec ↔ task gaps).
|
|
46
|
+
5. Greenfield gaps (missing AGENTS.md, missing ARCHITECTURE.md — skip in poc / solo).
|
|
47
|
+
|
|
48
|
+
If nothing actionable surfaces, say so: "No urgent next action. Continue current work or invoke `/agentic-audit` for a full drift check."
|
|
49
|
+
|
|
50
|
+
Step 4 — profile-aware filtering. Apply at the end:
|
|
51
|
+
- poc: suppress Layer 2/3 sections if those directories do not exist. Show Layer 1 + Layer 4 only. Recommendation set: `/agentic-ground`, `/agentic-audit`, `agentic update`.
|
|
52
|
+
- solo: Layer 2/3 render; ADR / ARCHITECTURE.md absence is informational, not a flag. Specs are universal; spec-without-tasks remains a real finding.
|
|
53
|
+
- team: full survey (default).
|
|
54
|
+
- mature: additionally flag hooks-not-wired louder (WORKFLOW §11 binding for mature profile).
|
|
55
|
+
</instructions>
|
|
56
|
+
|
|
57
|
+
<output_contract>
|
|
58
|
+
A single Markdown message structured as:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
## agentic-next
|
|
62
|
+
|
|
63
|
+
**Profile:** <name> (kit v<X.Y.Z>)
|
|
64
|
+
**Branch:** <name> (<n> commits ahead of main)
|
|
65
|
+
|
|
66
|
+
### Layer 1 — Constitution
|
|
67
|
+
<one-line status per artifact>
|
|
68
|
+
|
|
69
|
+
### Layer 2 — Specs (doc/specs/)
|
|
70
|
+
<spec list with status + task count, or "no specs">
|
|
71
|
+
|
|
72
|
+
### Layer 3 — Plans / Decisions
|
|
73
|
+
<ADR + task summaries with explicit flags>
|
|
74
|
+
|
|
75
|
+
### Layer 4 — Code
|
|
76
|
+
<branch / tests / hooks / CI status>
|
|
77
|
+
|
|
78
|
+
### Recommended next (priority)
|
|
79
|
+
1. <action> — <one-line reason>
|
|
80
|
+
2. <action> — <one-line reason>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
No file written. No state mutation. Recommendations are advisory; the user decides whether to invoke. Cross-references `agentic-audit` (drift detection), `agentic-update` (kit drift), `agentic-profile` (profile changes) where they apply.
|
|
84
|
+
</output_contract>
|