@punks/cli 2.3.2 → 2.4.0
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/dist/BASELINE_CHANGELOG.md +50 -0
- package/dist/CHANGELOG.md +50 -0
- package/dist/index.js +216 -221
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +1 -12
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +22 -18
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +15 -19
- package/dist/skills/agnostic/planning/wayfinder/SKILL.md +42 -0
- package/dist/skills/agnostic/quality/review/SKILL.md +89 -0
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +22 -0
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +110 -23
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +30 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +74 -7
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +108 -2
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +29 -3
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +43 -7
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +25 -3
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +63 -14
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +5 -2
- package/dist/skills/frameworks/expo/add-app-clip/SKILL.md +280 -0
- package/dist/skills/frameworks/expo/add-app-clip/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/add-app-clip/references/native-module.md +96 -0
- package/dist/skills/frameworks/expo/building-native-ui/SKILL.md +377 -0
- package/dist/skills/frameworks/expo/building-native-ui/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/animations.md +220 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/controls.md +270 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/form-sheet.md +253 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/gradients.md +106 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/icons.md +213 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/media.md +198 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/route-structure.md +229 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/search.md +248 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/storage.md +121 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/tabs.md +433 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/toolbar-and-headers.md +284 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/visual-effects.md +197 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/webgpu-three.md +605 -0
- package/dist/skills/frameworks/expo/building-native-ui/references/zoom-transitions.md +158 -0
- package/dist/skills/frameworks/expo/eas-simulator/SKILL.md +154 -0
- package/dist/skills/frameworks/expo/eas-simulator/references/controllers.md +67 -0
- package/dist/skills/frameworks/expo/eas-simulator/references/run-your-app.md +185 -0
- package/dist/skills/frameworks/expo/eas-simulator/references/troubleshooting.md +38 -0
- package/dist/skills/frameworks/expo/eas-update-insights/SKILL.md +228 -0
- package/dist/skills/frameworks/expo/eas-update-insights/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/eas-update-insights/references/channel-insights-schema.md +47 -0
- package/dist/skills/frameworks/expo/eas-update-insights/references/update-insights-schema.md +69 -0
- package/dist/skills/frameworks/expo/expo-api-routes/SKILL.md +368 -0
- package/dist/skills/frameworks/expo/expo-api-routes/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-brownfield/SKILL.md +54 -0
- package/dist/skills/frameworks/expo/expo-brownfield/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-brownfield/references/brownfield-integrated.md +526 -0
- package/dist/skills/frameworks/expo/expo-brownfield/references/brownfield-isolated.md +402 -0
- package/dist/skills/frameworks/expo/expo-brownfield/references/comparison.md +63 -0
- package/dist/skills/frameworks/expo/expo-brownfield/references/troubleshooting.md +88 -0
- package/dist/skills/frameworks/expo/expo-cicd-workflows/SKILL.md +92 -0
- package/dist/skills/frameworks/expo/expo-cicd-workflows/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/fetch.js +109 -0
- package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/package.json +11 -0
- package/dist/skills/frameworks/expo/expo-cicd-workflows/scripts/validate.js +84 -0
- package/dist/skills/frameworks/expo/expo-deployment/SKILL.md +167 -0
- package/dist/skills/frameworks/expo/expo-deployment/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-deployment/references/app-store-metadata.md +497 -0
- package/dist/skills/frameworks/expo/expo-deployment/references/ios-app-store.md +371 -0
- package/dist/skills/frameworks/expo/expo-deployment/references/play-store.md +246 -0
- package/dist/skills/frameworks/expo/expo-deployment/references/testflight.md +58 -0
- package/dist/skills/frameworks/expo/expo-deployment/references/workflows.md +160 -0
- package/dist/skills/frameworks/expo/expo-dev-client/SKILL.md +172 -0
- package/dist/skills/frameworks/expo/expo-dev-client/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-examples/SKILL.md +97 -0
- package/dist/skills/frameworks/expo/expo-examples/references/catalog.md +105 -0
- package/dist/skills/frameworks/expo/expo-module/SKILL.md +141 -0
- package/dist/skills/frameworks/expo/expo-module/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-module/references/config-plugin.md +90 -0
- package/dist/skills/frameworks/expo/expo-module/references/create-expo-module.md +206 -0
- package/dist/skills/frameworks/expo/expo-module/references/lifecycle.md +127 -0
- package/dist/skills/frameworks/expo/expo-module/references/module-config.md +48 -0
- package/dist/skills/frameworks/expo/expo-module/references/native-module.md +286 -0
- package/dist/skills/frameworks/expo/expo-module/references/native-view.md +171 -0
- package/dist/skills/frameworks/expo/expo-observe/SKILL.md +29 -0
- package/dist/skills/frameworks/expo/expo-observe/references/metrics.md +47 -0
- package/dist/skills/frameworks/expo/expo-observe/references/queries.md +342 -0
- package/dist/skills/frameworks/expo/expo-observe/references/setup.md +255 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/SKILL.md +314 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/agents/visual-grader.md +52 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/references/design-rubric.md +45 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/references/runtime-matrix.md +33 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/check-static.sh +64 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/clean-fixture.sh +56 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/generate_viewer.py +450 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/latest-sdk.sh +46 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/make-fixture.sh +95 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/make-workspace.sh +31 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-android.sh +284 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-ios.sh +132 -0
- package/dist/skills/frameworks/expo/expo-skill-eval/scripts/snapshot-web.sh +61 -0
- package/dist/skills/frameworks/expo/expo-tailwind-setup/SKILL.md +480 -0
- package/dist/skills/frameworks/expo/expo-tailwind-setup/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-ui/SKILL.md +47 -0
- package/dist/skills/frameworks/expo/expo-ui/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/expo-ui/references/drop-in-replacements.md +27 -0
- package/dist/skills/frameworks/expo/expo-ui/references/jetpack-compose.md +73 -0
- package/dist/skills/frameworks/expo/expo-ui/references/swift-ui.md +73 -0
- package/dist/skills/frameworks/expo/expo-ui/references/universal.md +73 -0
- package/dist/skills/frameworks/expo/expo-ui/scripts/list-components.js +193 -0
- package/dist/skills/frameworks/expo/native-data-fetching/SKILL.md +505 -0
- package/dist/skills/frameworks/expo/native-data-fetching/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/native-data-fetching/references/expo-router-loaders.md +341 -0
- package/dist/skills/frameworks/expo/upgrading-expo/SKILL.md +134 -0
- package/dist/skills/frameworks/expo/upgrading-expo/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/expo-av-to-audio.md +132 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/expo-av-to-video.md +160 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/native-tabs.md +124 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/new-architecture.md +79 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/react-19.md +79 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/react-compiler.md +59 -0
- package/dist/skills/frameworks/expo/upgrading-expo/references/react-navigation-to-expo-router.md +61 -0
- package/dist/skills/frameworks/expo/use-dom/SKILL.md +417 -0
- package/dist/skills/frameworks/expo/use-dom/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/expo/web-to-native/SKILL.md +83 -0
- package/dist/skills/frameworks/expo/web-to-native/references/false-friends.md +119 -0
- package/dist/skills/frameworks/expo/web-to-native/references/native-patterns.md +39 -0
- package/dist/skills/frameworks/expo/web-to-native/references/run-as-goal.md +48 -0
- package/dist/skills/frameworks/expo/web-to-native/references/verify-on-device.md +45 -0
- package/dist/skills/phases/finder-phase/SKILL.md +52 -0
- package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +70 -0
- package/dist/skills/phases/finder-phase/references/root-routing.md +29 -0
- package/dist/skills/phases/goalify/SKILL.md +10 -7
- package/dist/skills/phases/review-phase/REFERENCE.md +36 -3
- package/dist/skills/phases/review-phase/SKILL.md +18 -11
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Run the migration as a goal loop
|
|
2
|
+
|
|
3
|
+
Disclosed reference for [`web-to-native`](../SKILL.md) — the recommended way to drive the whole migration. The migration is a repeat-until-done loop (assess → nativize each screen → verify → check off), which is exactly the shape of a **goal loop**: a single objective re-injected every turn until the worklist is empty. This file carries a ready-shaped, migration-specific objective — and, crucially, the objective **re-reads this skill every iteration**, so the loop keeps following the playbook (and self-bootstraps the assess step if no worklist exists yet).
|
|
4
|
+
|
|
5
|
+
Use it in one of two modes depending on the agent you're running.
|
|
6
|
+
|
|
7
|
+
## Mode A — the agent can run a goal loop
|
|
8
|
+
|
|
9
|
+
Harnesses with a goal/loop command (Claude Code `/goal`, Codex CLI, or any harness of the same shape) can drive this themselves. Fill the template below and hand it to that command — the loop re-runs it until `migration-progress.md` has no unchecked nativize-now items.
|
|
10
|
+
|
|
11
|
+
## Mode B — the agent can't loop itself
|
|
12
|
+
|
|
13
|
+
Write the filled-in objective to `migration-goal.md` in the project, then give the user the one-line instruction to launch it (e.g. *"run your agent's goal loop with the objective in `migration-goal.md`"*). The objective is plain text and portable, so the user runs it in whatever harness they have.
|
|
14
|
+
|
|
15
|
+
## The objective (template)
|
|
16
|
+
|
|
17
|
+
Fill the two `<…>` slots, then run or hand off verbatim. It is written to survive re-injection — it restates its own worklist, direction, and stop condition every turn.
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Goal: migrate <APP NAME> from web to a native Expo app by following the web-to-native skill, one screen per iteration, until done.
|
|
21
|
+
|
|
22
|
+
Each iteration, FIRST re-read the playbook — plugins/expo/skills/web-to-native/SKILL.md (and its references) — then:
|
|
23
|
+
1. If migration-progress.md doesn't exist yet, do the skill's step 1 (Assess) to
|
|
24
|
+
create the worklist, then stop. Otherwise open it and take the top unchecked
|
|
25
|
+
item under "nativize-now"; if none are left unresolved (every nativize-now is
|
|
26
|
+
done or blocked), STOP and summarize what shipped + what's blocked and why.
|
|
27
|
+
2. Redesign that screen native per the skill's step 4 — reach for @expo/ui FIRST
|
|
28
|
+
(real SwiftUI/Compose), then building-native-ui (NativeTabs, large titles);
|
|
29
|
+
RN primitives only for custom layouts. NEVER a webview port.
|
|
30
|
+
Use references/native-patterns.md (UX patterns) and references/false-friends.md
|
|
31
|
+
(idioms). Match the web screen's content and behavior.
|
|
32
|
+
3. Verify per references/verify-on-device.md: compare the running web original
|
|
33
|
+
(browser agent) against the native screen (simulator / argent) — content and
|
|
34
|
+
behavior parity, NOT pixels (it should look more native). If it's off for reasons
|
|
35
|
+
IN the code, fix it this iteration. If it's blocked by something OUTSIDE the code
|
|
36
|
+
(missing backend/auth/data, or a secret you can't supply), don't loop — mark it
|
|
37
|
+
blocked in step 4 and move on.
|
|
38
|
+
4. Check the item off in migration-progress.md, appending one line:
|
|
39
|
+
"<screen> — done", or "<screen> — blocked: <reason> — needs <what would unlock>".
|
|
40
|
+
Either way the item is resolved; never revisit a blocked one.
|
|
41
|
+
|
|
42
|
+
Rules: one screen per pass; the app builds green each iteration; @expo/ui before RN primitives; never touch "nativize-later" items.
|
|
43
|
+
Base API URL for native (no relative paths): <EXPO_PUBLIC_API_URL>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Why a pre-shaped objective
|
|
47
|
+
|
|
48
|
+
The objective is filled in for this migration — worklist, redesign rules, and self-verification path already wired to the skill's references — so you can launch the loop without authoring one from scratch. Tailor the `<…>` slots and direction when a specific migration needs more than the template covers.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Verify a migrated screen against the running web app
|
|
2
|
+
|
|
3
|
+
Disclosed reference for [`web-to-native`](../SKILL.md), steps 3–4. Verification means **running both apps and comparing the same screen** — the native port beside the web original. A clean compile or a green `expo export` proves nothing — a screen can build and still render blank or mis-render. This parity check is the gate the strangle loop runs each iteration.
|
|
4
|
+
|
|
5
|
+
Two agents drive it, and this skill is **opinionated**: it requires both and installs them rather than falling back to manual screenshots.
|
|
6
|
+
|
|
7
|
+
- **Web side — `agent-browser`** (vercel-labs, a Rust browser CLI): `open <url>`, `snapshot --json` (accessibility tree with refs), `screenshot <path>`, `read` (rendered DOM/text).
|
|
8
|
+
- **Native side — `argent`** (`@swmansion/argent`): drives the simulator — `describe` (a11y tree), `debugger-component-tree` (RN tree), `gesture-tap`/`keyboard`, `flow` to record a check and replay it each pass. Invoke as `argent run <tool> --udid <udid>` (get the udid from `argent run list-devices`).
|
|
9
|
+
|
|
10
|
+
## Setup — install if missing (don't skip, don't fall back to manual)
|
|
11
|
+
|
|
12
|
+
Check both are on PATH; if either is absent, ask the user, then install before proceeding:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
which agent-browser || (npm i -g agent-browser && agent-browser install) # web agent (+ its Chrome)
|
|
16
|
+
which argent || npm i -g @swmansion/argent # device agent
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## The workflow
|
|
20
|
+
|
|
21
|
+
**A. Capture the web original** with agent-browser — the source of truth for parity. Run the web app (its `pnpm dev` server, or the **deployed URL** if local setup needs DB/auth env), then:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
agent-browser open "<web-url>/<route>?<params>"
|
|
25
|
+
agent-browser snapshot --json # structure to diff
|
|
26
|
+
agent-browser screenshot web.png # visual reference
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Tip:** capture web baselines for every screen once, up front, then diff against them instead of re-opening the web app each iteration.
|
|
30
|
+
|
|
31
|
+
**B. Capture the native screen** (iOS shown via `simctl`; Android note below):
|
|
32
|
+
1. Run the app: `npx expo start --ios` (Expo Go). On **SDK 56+ both `@expo/ui` and DOM components run in Expo Go** — no dev build, no `react-native-webview` to install; reach for a dev build (the `expo-dev-client` skill) only for *custom* native modules. Stale-bundle trap: a CI-mode Metro + cached Expo Go can show an old build — terminate Expo Go and add `--clear` if a change doesn't appear.
|
|
33
|
+
2. Boot a sim: `xcrun simctl boot <udid>` (`xcrun simctl list devices available`); `open -a Simulator`.
|
|
34
|
+
3. Open the route: deep-link `xcrun simctl openurl booted "exp://<lan-ip>:8081/--/<route>?<params>"`, or argent `launch-app` + `gesture-tap`.
|
|
35
|
+
4. Capture: `xcrun simctl io booted screenshot native.png`, or `argent run describe --udid <udid>` for structure.
|
|
36
|
+
|
|
37
|
+
> **Android:** `simctl` / `expo run:ios` are iOS-only. Use an Android emulator + `adb` — `adb exec-out screencap -p > native.png`, `adb shell am start -a android.intent.action.VIEW -d "<deep-link>"`, `adb shell screenrecord` for motion — or `npx expo run:android` for a dev build.
|
|
38
|
+
|
|
39
|
+
**C. Compare** the two for the same route — layout, content, behavior. Diff the structures (agent-browser `snapshot` against argent `describe` / `debugger-component-tree`), not just pixels. Pass only on parity: same data, and params passed into a DOM webview must produce the same result.
|
|
40
|
+
|
|
41
|
+
**Feel needs motion, not a still.** For a nativized screen with transitions, gestures, or haptics, a screenshot can't catch a janky push or wrong easing — capture a short recording (iOS `xcrun simctl io booted recordVideo feel.mov`; Android `adb shell screenrecord`; or an argent flow) and confirm it moves like a native app (see `native-patterns.md` → Feel).
|
|
42
|
+
|
|
43
|
+
## What "pass" looks like
|
|
44
|
+
- **DOM-shelled screen (step 3):** the web UI renders inside the native header/shell; params from the native route drive it the same as on web.
|
|
45
|
+
- **Nativized screen (step 4):** native primitives only, no webview; matches the web original screen.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finder-phase
|
|
3
|
+
description: Route loose oversized foggy work before requirements or delivery. Use when an idea is too large for one agent session, wrapped in fog, or needs backlog-native frontier shaping before requirements-phase.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Finder Phase
|
|
7
|
+
|
|
8
|
+
Harness phase wrapper for backlog-native frontier routing.
|
|
9
|
+
|
|
10
|
+
Use this before `requirements-phase` when the work is too big and too foggy to grill directly. Compose the lean `wayfinder` primitive, then delegate backlog materialization to `write-backlog`.
|
|
11
|
+
|
|
12
|
+
## Core Loop
|
|
13
|
+
|
|
14
|
+
1. Establish the frontier.
|
|
15
|
+
- Name the loose idea, known evidence, backlog root, and any current fog or learning tickets.
|
|
16
|
+
- If the living backlog is unavailable, say so and use docs only as temporary evidence.
|
|
17
|
+
|
|
18
|
+
2. Run route selection.
|
|
19
|
+
- Use `wayfinder` to classify the next kind: `fog`, `grilling`, `research`, `prototype`, `epic`, or `story`.
|
|
20
|
+
- Keep provider payload rules out of this phase.
|
|
21
|
+
|
|
22
|
+
3. Place the route.
|
|
23
|
+
- Keep `fog` at the backlog root.
|
|
24
|
+
- For concrete non-fog work, choose or propose a module/milestone before backlog writing.
|
|
25
|
+
- Preserve epic/story delivery semantics.
|
|
26
|
+
|
|
27
|
+
4. Materialize only when asked or already in scope.
|
|
28
|
+
- Use `write-backlog` for backlog taxonomy and provider payloads.
|
|
29
|
+
- Do not create provider tickets when the user asked only for routing.
|
|
30
|
+
|
|
31
|
+
5. Close the frontier pass.
|
|
32
|
+
- Produce the updated frontier, selected route, evidence, open questions, and concise handoff.
|
|
33
|
+
|
|
34
|
+
## Always-Needed Rules
|
|
35
|
+
|
|
36
|
+
- The backlog root is the living map; wiki and grill artifacts are evidence.
|
|
37
|
+
- `fog` is not delivery-eligible and is not a `SPEC.md` anchor.
|
|
38
|
+
- `grilling`, `research`, and `prototype` must close into accepted decisions before they create or update implementation epics or stories.
|
|
39
|
+
- `finder-phase` owns frontier lifecycle and root routing; `write-backlog` owns provider materialization.
|
|
40
|
+
|
|
41
|
+
## References
|
|
42
|
+
|
|
43
|
+
- Frontier lifecycle: [references/frontier-lifecycle.md](references/frontier-lifecycle.md)
|
|
44
|
+
- Root routing: [references/root-routing.md](references/root-routing.md)
|
|
45
|
+
- Backlog taxonomy and provider materialization: use the `write-backlog` skill.
|
|
46
|
+
|
|
47
|
+
## Completion Criteria
|
|
48
|
+
|
|
49
|
+
- The frontier is represented as backlog-root state or as a temporary evidence-backed handoff when provider state is unavailable.
|
|
50
|
+
- The next route is selected and placed.
|
|
51
|
+
- Any backlog writes were delegated to `write-backlog`.
|
|
52
|
+
- The final handoff names the next skill or phase and any unresolved blocker.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Frontier Lifecycle
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
The frontier is the visible set of unresolved uncertainty that must be routed before delivery scope is accepted.
|
|
6
|
+
|
|
7
|
+
The backlog root is the living map. Docs, specs, grill logs, and notes are evidence for updating that map.
|
|
8
|
+
|
|
9
|
+
## States
|
|
10
|
+
|
|
11
|
+
### Fog
|
|
12
|
+
|
|
13
|
+
- Root-level only.
|
|
14
|
+
- Tracks a real but not-yet-sharp area of uncertainty.
|
|
15
|
+
- Anticipates future modules, tickets, epics, and stories.
|
|
16
|
+
- Is not delivery-eligible.
|
|
17
|
+
- Is not a `SPEC.md` anchor.
|
|
18
|
+
- Does not own child tickets by default.
|
|
19
|
+
|
|
20
|
+
### Grilling
|
|
21
|
+
|
|
22
|
+
- Module/milestone-scoped.
|
|
23
|
+
- Used when a human decision must close ambiguity.
|
|
24
|
+
- Closes with an accepted decision note before implementation scope changes.
|
|
25
|
+
|
|
26
|
+
### Research
|
|
27
|
+
|
|
28
|
+
- Module/milestone-scoped.
|
|
29
|
+
- Used when readonly investigation can answer the unknown.
|
|
30
|
+
- Closes with answer, evidence, accepted direction, and created or updated implementation items when applicable.
|
|
31
|
+
|
|
32
|
+
### Prototype
|
|
33
|
+
|
|
34
|
+
- Module/milestone-scoped.
|
|
35
|
+
- Used when learning needs an artifact, experiment, or throwaway proof.
|
|
36
|
+
- Closes with produced artifacts, accepted direction, and created or updated implementation items when applicable.
|
|
37
|
+
|
|
38
|
+
### Epic
|
|
39
|
+
|
|
40
|
+
- Module/milestone-scoped.
|
|
41
|
+
- Accepted implementation capability.
|
|
42
|
+
- Anchors one future `SPEC.md`.
|
|
43
|
+
|
|
44
|
+
### Story
|
|
45
|
+
|
|
46
|
+
- Child of one epic.
|
|
47
|
+
- Accepted product-facing implementation slice.
|
|
48
|
+
- Must not become a plan task or file chore.
|
|
49
|
+
|
|
50
|
+
## Transition Rules
|
|
51
|
+
|
|
52
|
+
- Sharpening `fog` first chooses or creates a module/milestone, then creates concrete non-fog items there.
|
|
53
|
+
- `grilling`, `research`, and `prototype` do not become implementation scope silently.
|
|
54
|
+
- Closure notes for `grilling`, `research`, and `prototype` must include:
|
|
55
|
+
- answer
|
|
56
|
+
- accepted direction
|
|
57
|
+
- artifacts or evidence
|
|
58
|
+
- created or updated epics/stories
|
|
59
|
+
- Epic/story semantics stay strict even beside learning and uncertainty items.
|
|
60
|
+
|
|
61
|
+
## Handoff Shape
|
|
62
|
+
|
|
63
|
+
Return:
|
|
64
|
+
|
|
65
|
+
- current frontier
|
|
66
|
+
- selected next kind
|
|
67
|
+
- chosen or proposed placement
|
|
68
|
+
- evidence used
|
|
69
|
+
- open blockers
|
|
70
|
+
- next skill or phase
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Root Routing
|
|
2
|
+
|
|
3
|
+
## Trigger
|
|
4
|
+
|
|
5
|
+
Route to `finder-phase` before `requirements-phase` when a loose idea is too large for one agent session and still wrapped in fog.
|
|
6
|
+
|
|
7
|
+
Use this route when the first question is not "which requirement is unclear?" but "what kind of work is this frontier?"
|
|
8
|
+
|
|
9
|
+
## Placement In Root Guidance
|
|
10
|
+
|
|
11
|
+
Keep root prompt guidance short:
|
|
12
|
+
|
|
13
|
+
- Foggy oversized work routes to `finder-phase` first.
|
|
14
|
+
- Unclear requirements inside a bounded topic route to `requirements-phase`.
|
|
15
|
+
- Accepted specs, issues, or plans route to `delivery-phase`.
|
|
16
|
+
- Runtime failures route to `debugging-phase`.
|
|
17
|
+
- Reviews route to `review-phase`.
|
|
18
|
+
- Docs learning after proven changes routes to `docs-ingest-phase`.
|
|
19
|
+
|
|
20
|
+
## Boundary
|
|
21
|
+
|
|
22
|
+
`finder-phase` should not replace:
|
|
23
|
+
|
|
24
|
+
- `requirements-phase` for human decision closure inside a known topic.
|
|
25
|
+
- `parallel-research` for split-friendly readonly investigation.
|
|
26
|
+
- `prototype` for artifact-driven learning.
|
|
27
|
+
- `create-spec`, `create-plan`, or `delivery-phase` after implementation scope is accepted.
|
|
28
|
+
|
|
29
|
+
It chooses the route and updates the frontier handoff.
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: goalify
|
|
3
|
-
description: Goalify messy intent
|
|
3
|
+
description: Goalify messy intent by writing a very lean `/goal`, activating it immediately with the available goal tool, and continuing the user's task under that active goal.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Goalify
|
|
7
7
|
|
|
8
8
|
`goalify` writes the smallest operating contract a goal-running Codex can adopt,
|
|
9
|
-
|
|
10
|
-
dump.
|
|
9
|
+
activates it immediately, then keeps working. It is a compiler, not a spec,
|
|
10
|
+
handoff, or plan dump.
|
|
11
|
+
|
|
12
|
+
Invocation is permission to activate now. Do not stop at printing a `/goal`
|
|
13
|
+
prompt or reporting the contract when a goal tool is available.
|
|
11
14
|
|
|
12
15
|
Be very lean. Target the shortest contract that can run without re-asking.
|
|
13
16
|
Hard limit: text after `/goal` must be non-empty and <= 4,000 characters. If
|
|
@@ -15,8 +18,8 @@ detail will not fit, point at a file instead of pasting overflow.
|
|
|
15
18
|
|
|
16
19
|
## Activation
|
|
17
20
|
|
|
18
|
-
- Always activate spot on: write the goal,
|
|
19
|
-
tool, then continue
|
|
21
|
+
- Always activate spot on: write the goal, call the available goal activation
|
|
22
|
+
tool immediately, then continue the user's task under that active goal.
|
|
20
23
|
- If the task is tiny, unresolved, or lacks one objective, proof signal, and
|
|
21
24
|
stop condition, ask one clarifying question.
|
|
22
25
|
- If activation is unavailable, return the ready `/goal ...` prompt and name
|
|
@@ -46,8 +49,8 @@ paths, commands, ids, URLs, artifacts, and invariants.
|
|
|
46
49
|
only if structure is needed.
|
|
47
50
|
4. Check: one objective, explicit proof, stop/blocker conditions, no secrets, no
|
|
48
51
|
vague "make it work", <= 4,000 characters.
|
|
49
|
-
5. Activate immediately.
|
|
50
|
-
|
|
52
|
+
5. Activate immediately. After activation succeeds, continue execution; report
|
|
53
|
+
only what helps the active task move forward.
|
|
51
54
|
|
|
52
55
|
## Fallback Output
|
|
53
56
|
|
|
@@ -35,12 +35,19 @@ For PR review, use the actual PR base branch. Do not assume trunk.
|
|
|
35
35
|
|
|
36
36
|
## Runtime And Lenses
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
and
|
|
40
|
-
|
|
38
|
+
Start review flow with `review`. It pins the fixed point, discovers
|
|
39
|
+
Spec and Standards sources, carries baseline code smells, and keeps Standards
|
|
40
|
+
findings separate from Spec findings. Use that frame for delegated review
|
|
41
|
+
prompts, `autoreview` context, and final aggregation.
|
|
42
|
+
|
|
43
|
+
`autoreview` remains the core structured review runtime. Capture the exact
|
|
44
|
+
command and manually verify accepted findings against source, docs, scoped
|
|
45
|
+
skills, and dependency contracts.
|
|
41
46
|
|
|
42
47
|
Mandatory lenses:
|
|
43
48
|
|
|
49
|
+
- `review`: two-axis Standards versus Spec wrapper, fixed diff, and
|
|
50
|
+
separate aggregation.
|
|
44
51
|
- `simplify`: clarity, avoidable complexity, unnecessary abstraction, derivable
|
|
45
52
|
state, naming, and scope creep.
|
|
46
53
|
- `improve-codebase-architecture`: boundary friction, shallow modules, module
|
|
@@ -68,6 +75,31 @@ a blocking finding unless the task has an explicit valid `reason_not_testable`.
|
|
|
68
75
|
Reject `reason_not_testable` when the only reason is forgotten RED; the delivery
|
|
69
76
|
owner must recover with public-result RED and GREEN evidence.
|
|
70
77
|
|
|
78
|
+
## Requirements Grill Wrapper Review
|
|
79
|
+
|
|
80
|
+
When reviewed spec, plan, phase, or wrapper claims to use
|
|
81
|
+
`requirements-grill` or design-phase grill, review that wrapper against
|
|
82
|
+
the `requirements-grill` inner flow, not just its outer handoff.
|
|
83
|
+
|
|
84
|
+
Check:
|
|
85
|
+
|
|
86
|
+
- Serious grill sessions pair `references/grilling-flow.md` with
|
|
87
|
+
`references/artifact-output.md`.
|
|
88
|
+
- Routed grill log/status artifacts are created or updated when grilling
|
|
89
|
+
decisions, branches, parked scope, percentages, glossary, axioms, or
|
|
90
|
+
ambiguities change.
|
|
91
|
+
- Glossary, axiom, and status updates preserve current meaning while the
|
|
92
|
+
log records accepted decisions and superseded decisions.
|
|
93
|
+
- Added or renamed wiki grill artifacts update routed metadata/bookkeeping:
|
|
94
|
+
`content/docs/project/grilling/meta.json`, section index when missing,
|
|
95
|
+
and wiki `log.md` when the repo maintains one.
|
|
96
|
+
- Downstream handoff evidence exists as applicable: wiki synthesis,
|
|
97
|
+
backlog/user stories, spec, or phase handoff carrying closed decisions
|
|
98
|
+
and parked/open branches.
|
|
99
|
+
|
|
100
|
+
Missing inner-flow or durable-artifact evidence is a review finding when
|
|
101
|
+
the wrapper promised grill behavior.
|
|
102
|
+
|
|
71
103
|
## Findings Policy
|
|
72
104
|
|
|
73
105
|
Prioritize bugs, regressions, broken contracts, missing validation, unsafe
|
|
@@ -98,6 +130,7 @@ Then include:
|
|
|
98
130
|
- open questions or assumptions
|
|
99
131
|
- validation run and result
|
|
100
132
|
- exact `autoreview` command and clean/accepted-findings result
|
|
133
|
+
- fixed point, Spec source or skipped reason, Standards sources
|
|
101
134
|
- scoped `AGENTS.md` files and mandatory scoped skills checked
|
|
102
135
|
- short summary after findings
|
|
103
136
|
- mode: standalone readonly review or delivery-owned review
|
|
@@ -3,8 +3,8 @@ name: review-phase
|
|
|
3
3
|
description: >-
|
|
4
4
|
Run a findings-first readonly review phase with explicit entry gates,
|
|
5
5
|
delegated lenses, artifacts, and validation. Use for review-only goals,
|
|
6
|
-
manual reviews, PRs, merged branches, external edits, suspicious code, or
|
|
7
|
-
|
|
6
|
+
manual reviews, PRs, merged branches, external edits, suspicious code, or the
|
|
7
|
+
mandatory review wrapper inside delivery-phase.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Review Phase
|
|
@@ -12,7 +12,8 @@ description: >-
|
|
|
12
12
|
Readonly findings-first review. Standalone mode reports findings only; delivery
|
|
13
13
|
mode hands findings back to the owning phase for fixes.
|
|
14
14
|
|
|
15
|
-
Load [REFERENCE.md](REFERENCE.md) before running review tools.
|
|
15
|
+
Load [REFERENCE.md](REFERENCE.md) before running review tools. Start with
|
|
16
|
+
`review` to frame fixed-point diff, Standards axis, and Spec axis.
|
|
16
17
|
|
|
17
18
|
## Contract
|
|
18
19
|
|
|
@@ -21,10 +22,13 @@ Load [REFERENCE.md](REFERENCE.md) before running review tools.
|
|
|
21
22
|
- Default scope is PR changes, highlighted diffs, supplied code portions, or
|
|
22
23
|
certain paths/domains. Full-codebase scan only when no PR is open and no
|
|
23
24
|
certain scope exists, or when the user explicitly asks.
|
|
24
|
-
- Pass
|
|
25
|
+
- Pass bounded scope to inner `autoreview`, ClawPatch-backed review, and
|
|
25
26
|
delegated readonly checks.
|
|
26
27
|
- Apply relevant `AGENTS.md` guidance and scoped skills for reviewed paths.
|
|
28
|
+
- Use `review` as the review-flow wrapper; keep axes separate.
|
|
27
29
|
- Use `autoreview` as the core structured review runtime.
|
|
30
|
+
- If target claims `requirements-grill` or design-phase grill, inspect
|
|
31
|
+
`requirements-grill` inner flow and durable-artifact evidence.
|
|
28
32
|
|
|
29
33
|
## Steps
|
|
30
34
|
|
|
@@ -32,15 +36,18 @@ Load [REFERENCE.md](REFERENCE.md) before running review tools.
|
|
|
32
36
|
2. If scope is ambiguous, ask one clarifying question.
|
|
33
37
|
3. Gather evidence: status, diff/range/PR metadata, tests, docs, local guidance,
|
|
34
38
|
and exact files/commands consulted.
|
|
35
|
-
4.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
6.
|
|
39
|
-
|
|
39
|
+
4. Apply `review`: pin fixed point, find Spec and Standards sources,
|
|
40
|
+
and prepare separate Standards/Spec review prompts.
|
|
41
|
+
5. Run `autoreview` on the bounded target and manually verify accepted findings.
|
|
42
|
+
6. Apply mandatory lenses: `simplify`, `improve-codebase-architecture`, and
|
|
43
|
+
applicable scoped skills, claimed grill-wrapper checks.
|
|
44
|
+
7. Run safe readonly validation that matches the target.
|
|
45
|
+
8. Report findings-first; standalone mode stops, delivery mode returns findings
|
|
40
46
|
to the owning phase.
|
|
41
47
|
|
|
42
48
|
## Output
|
|
43
49
|
|
|
44
50
|
Lead with findings by severity. Include references, impact, evidence,
|
|
45
|
-
recommended action, validation, exact review command,
|
|
46
|
-
residual risk,
|
|
51
|
+
recommended action, validation, exact review command, fixed point, Spec source
|
|
52
|
+
or skipped reason, Standards sources, scoped guidance checked, residual risk,
|
|
53
|
+
and mode.
|