aiblueprint-cli 1.4.95 → 1.4.97

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.
Files changed (25) hide show
  1. package/README.md +14 -28
  2. package/agents-config/skills/app-icon/SKILL.md +1 -1
  3. package/agents-config/skills/use-artifacts/SKILL.md +3 -3
  4. package/agents-config/skills/use-delegate/SKILL.md +93 -0
  5. package/agents-config/skills/use-delegate/references/models.md +32 -0
  6. package/agents-config/skills/use-goal/SKILL.md +60 -0
  7. package/agents-config/skills/use-goal/agents/openai.yaml +7 -0
  8. package/agents-config/skills/use-goal/assets/codex-icon.svg +4 -0
  9. package/agents-config/skills/use-goal/references/claude-code-goal.md +17 -0
  10. package/agents-config/skills/use-goal/references/codex-goal.md +15 -0
  11. package/agents-config/skills/use-goal/references/verification-harnesses.md +7 -0
  12. package/dist/cli.js +5 -1
  13. package/package.json +1 -1
  14. package/agents-config/skills/use-fable/SKILL.md +0 -64
  15. /package/agents-config/skills/{prompt-manager → prompt-creator}/SKILL.md +0 -0
  16. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/anthropic-best-practices.md +0 -0
  17. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/anti-patterns.md +0 -0
  18. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/clarity-principles.md +0 -0
  19. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/context-management.md +0 -0
  20. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/few-shot-patterns.md +0 -0
  21. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/openai-best-practices.md +0 -0
  22. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/prompt-templates.md +0 -0
  23. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/reasoning-techniques.md +0 -0
  24. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/system-prompt-patterns.md +0 -0
  25. /package/agents-config/skills/{prompt-manager → prompt-creator}/references/xml-structure.md +0 -0
package/README.md CHANGED
@@ -102,24 +102,8 @@ npx aiblueprint-cli@latest agents config unify sessions
102
102
 
103
103
  ### Workflow Skills
104
104
 
105
- **Development:**
106
- - `commit` - Fast conventional commits
107
- - `create-pr` - Auto-generated PRs
108
- - `fix-pr-comments` - Resolve PR comments
109
- - `merge` - Context-aware branch merging
110
-
111
- **Project setup:**
112
- - `nextjs-setup-project` - Scaffold the preferred Next.js stack
113
- - `nextjs-add-prisma-db` - Add Prisma and PostgreSQL
114
- - `nextjs-setup-better-auth` - Wire Better Auth with email OTP
115
- - `create-vitejs-app` - Create a Vite app with Tailwind and shadcn/ui
116
-
117
- **SaaS planning:**
118
- - `saas-create-prd` - Build a lean Product Requirements Document
119
- - `saas-create-architecture` - Design technical architecture
120
- - `saas-create-tasks` - Generate implementation tasks
121
- - `saas-define-pricing` - Create pricing strategy
122
- - `saas-find-domain-name` - Generate and validate domains
105
+ The free configuration ships the skills listed in the catalog below. The CLI
106
+ installs every directory under `agents-config/skills/`.
123
107
 
124
108
  ### Agents (3 Specialized)
125
109
 
@@ -154,24 +138,26 @@ npx skills add Melvynx/aiblueprint --skill skill-manager
154
138
 
155
139
  | Skill | Description |
156
140
  |-------|-------------|
141
+ | `agents-manager` | Create and orchestrate Claude Code agents |
142
+ | `apex` | Structured implementation workflow |
143
+ | `app-icon` | Generate and prepare app icons |
144
+ | `appstore-connect` | Manage App Store Connect workflows |
157
145
  | `commit` | Quick commit and push with clean messages |
158
146
  | `create-pr` | Auto-generated pull requests |
159
147
  | `fix-pr-comments` | Resolve PR review comments |
148
+ | `grill-me` | Stress-test a plan with focused questions |
160
149
  | `merge` | Context-aware branch merging |
150
+ | `environments-manager` | Set up per-worktree agent environments |
151
+ | `oneshot` | Implement one focused change quickly |
152
+ | `prompt` | Create minimalist SVG logo variations |
161
153
  | `prompt-creator` | Expert prompt engineering |
154
+ | `rules-manager` | Create and maintain agent rule files |
162
155
  | `skill-manager` | Manage skills and rules across Claude Code, Codex, and Cursor |
163
- | `saas-create-prd` | Build a lean SaaS PRD |
164
- | `saas-create-architecture` | Design SaaS technical architecture |
165
- | `saas-create-tasks` | Generate implementation task files |
166
- | `nextjs-setup-project` | Set up a production-ready Next.js project |
167
- | `create-vitejs-app` | Create a Vite app with Tailwind and shadcn/ui |
156
+ | `tools` | AIBlueprint tools and libraries reference |
168
157
  | `use-style` | Apply named UI style guides before implementation |
169
158
  | `use-artifacts` | Create polished local HTML plans, prototypes, and visualizations |
170
- | `rules-manager` | Create and maintain AGENTS.md and agent rule files |
171
- | `agents-managers` | Manage Claude Code agents and Task-tool orchestration |
172
- | `environments-manager` | Set up per-worktree agent environments |
173
- | `grill-me` | Stress-test a plan with focused design questions |
174
- | `oneshot` | Ultra-fast feature implementation |
159
+ | `use-delegate` | Delegate heavy work to cheap executors |
160
+ | `use-goal` | Create evidence-based agent goals |
175
161
  | `ultrathink` | Deep thinking mode for elegant solutions |
176
162
 
177
163
  ## 💎 Premium
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: app-icon
3
- description: Generate a premium, vibrant, dimensional iOS + Android app icon for an Expo / React Native app with AI image generation, then post-process it to App Store / Play specs. Use for "create my app icon", "generate the iOS icon", "redo the app logo", "make the launcher icon". Works with ANY image-generation tool (Codex `image_gen`, `gemini-cli` Nano Banana, gpt-image, …).
3
+ description: Generate a vibrant dimensional iOS and Android app icon for an Expo or React Native app with AI image generation, then post-process it for store specs. Use for creating, regenerating, or polishing an app logo or launcher icon.
4
4
  argument-hint: "[app concept or brand]"
5
5
  ---
6
6
 
@@ -9,7 +9,7 @@ description: Create Claude-style local HTML artifacts under global ~/.agents/art
9
9
 
10
10
  Use this skill to simulate Claude Artifacts in agents that do not have a native artifact panel. The artifact is a small global workspace, usually a single self-contained HTML file, created at `~/.agents/artifacts/<id>/` so the user can open, inspect, and iterate on it from any repo.
11
11
 
12
- Always create artifacts in the global user directory: `/Users/melvynx/.agents/artifacts/<id>/`. Never create artifacts inside a repo-local `.agents/artifacts` directory, even when the current working directory is a product repo.
12
+ Always create artifacts in the global user directory: `~/.agents/artifacts/<id>/`. Never create artifacts inside a repo-local `.agents/artifacts` directory, even when the current working directory is a product repo.
13
13
 
14
14
  The HTML is the deliverable. It should turn the agent's public reasoning, plan, findings, examples, and tradeoffs into a polished page the user can scan, not just dump markdown into a file.
15
15
 
@@ -112,7 +112,7 @@ application style, a requested style, or the minimalist fallback.
112
112
  4. Scaffold the workspace:
113
113
 
114
114
  ```bash
115
- python3 /Users/melvynx/.agents/skills/use-artifacts/scripts/create_artifact.py "<short title>" --style "<requested, project:app-name, or fallback style>" --kind thinking
115
+ python3 "$HOME/.agents/skills/use-artifacts/scripts/create_artifact.py" "<short title>" --style "<requested, project:app-name, or fallback style>" --kind thinking
116
116
  ```
117
117
 
118
118
  5. Implement the artifact in `index.html`.
@@ -132,7 +132,7 @@ Each artifact directory should contain:
132
132
 
133
133
  Target location:
134
134
 
135
- - Always use `/Users/melvynx/.agents/artifacts/<id>/`.
135
+ - Always use `~/.agents/artifacts/<id>/`.
136
136
  - Do not use `<current-project>/.agents/artifacts/<id>/`.
137
137
  - Do not add a repo-local override unless the user explicitly updates this skill contract.
138
138
 
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: use-delegate
3
+ description: "Delegation mode: the host agent (Claude or Codex) plans and reviews while heavy work runs on cheap executors: OpenCode Kimi K3, Codex GPT-5.6 terra/sol. Use when the user invokes /use-delegate, says 'use delegate', 'delegate mode', 'orchestrator mode', or wants to save tokens/rate limits."
4
+ ---
5
+
6
+ # Use Delegate
7
+
8
+ The host agent (Claude Code or Codex, whichever is running this skill) is the thinker, never the typist. Its tokens are scarce; the executors below are cheap and steerable. The host decides **what** to do and judges **whether it was done well**: everything token-hungry runs elsewhere and reports back.
9
+
10
+ ## Core rule
11
+
12
+ The host does not execute. It may: read a few targeted files, search, inspect git state, think, plan, decompose, write specs and delegation prompts, review diffs and reports, judge outputs, and talk to the user.
13
+
14
+ The host must NOT directly do:
15
+
16
+ - Implementation, refactors, migrations, test writing (any multi-file or >~15-line change)
17
+ - Codebase-wide exploration or analysis (reading many files to "understand")
18
+ - Computer use, browser automation, UI/UX verification
19
+ - Log triage, data analysis, bulk mechanical edits
20
+ - Running long build/test loops and reading their full output
21
+
22
+ The only direct edits allowed: trivial single-file tweaks (a config value, a typo, a one-liner) where writing a delegation prompt would cost more than the edit itself.
23
+
24
+ ## Executors
25
+
26
+ | Executor | Command | Use for |
27
+ |---|---|---|
28
+ | OpenCode · Kimi K3 | `opencode run "<prompt>" -m kimi-for-coding/k3` | Default general executor: implementation, refactors, tests, bulk edits |
29
+ | Codex · GPT-5.6 terra (high) | `codex exec -m gpt-5.6-terra "<prompt>"` | Low-stakes tasks: mechanical edits, scripts, quick investigations, log triage |
30
+ | Codex · GPT-5.6 sol (high) | `codex exec "<prompt>"` (config default = sol + high) | Compute-heavy tasks: hard bugs, migrations, architecture-sensitive changes, computer use / UI verification |
31
+ | Host-native subagents | Claude `Agent` tool / Codex collab threads | Exploration summaries the host plans from; taste-sensitive work (UI, copy, API design) |
32
+
33
+ Read-only investigation: `codex exec -s read-only`, `opencode run --agent plan` (built-in read-only agent).
34
+
35
+ Model rankings move fast: current DeepSWE scores, API pricing, and the refresh protocol live in `references/models.md`. Check its `Last verified` date before planning a big batch; if older than 14 days, delegate a refresh first (DeepSWE leaderboard + pricing pages), never guess rankings from memory.
36
+
37
+ ## Invocation mechanics
38
+
39
+ Both CLIs: always end the command with `< /dev/null` and run in background (codex hangs forever on open stdin: full codex mechanics in `~/.claude/rules/launch-codex.md`).
40
+
41
+ **Codex** (background):
42
+
43
+ ```bash
44
+ codex exec -C <repo-root> -m gpt-5.6-terra \
45
+ --output-last-message <scratchpad>/codex-<task>.md \
46
+ "<self-contained prompt>" < /dev/null
47
+ ```
48
+
49
+ Effort override: `-c model_reasoning_effort=high`. Non-git dir: `--skip-git-repo-check`.
50
+
51
+ **OpenCode** (background):
52
+
53
+ ```bash
54
+ opencode run "<self-contained prompt>" \
55
+ -m kimi-for-coding/k3 --title "<task>" \
56
+ > <scratchpad>/oc-<task>.log 2>&1 < /dev/null
57
+ ```
58
+
59
+ - Final answer = tail of the log; `--format json` for machine-readable events.
60
+ - Steer or continue a session: `opencode run -s <sessionID> "<follow-up>"`.
61
+ - Standalone specialized agent: `--agent <name>`: the `~/.config/opencode/agent/` roster (worker, explore-fast, verifier, snipper, code-reviewer…) runs standalone with any `-m` model.
62
+ - Permissions are pre-allowed in the user config (build agent allows all); no interactive prompt will block a non-interactive run.
63
+
64
+ ## Batch / multi-process
65
+
66
+ - **Parallel processes** (verified): launch N independent `opencode run` / `codex exec` in background; each opencode run spins up its own server + session, results stay isolated.
67
+ - **Shared server** for large batches: `opencode serve --port <p>` once, then N × `opencode run --attach http://localhost:<p> --dir <workdir> ...`: one server, many sessions, less startup overhead. Kill the serve process when done.
68
+ - **In-executor subagents**: Kimi in opencode spawns its own task-tool subagents; codex spawns collab threads (config caps 6). Prefer one executor process per independent task over one giant prompt.
69
+
70
+ ## The loop
71
+
72
+ 1. **Think.** Understand the request. Missing context → delegate the exploration, think on the summaries.
73
+ 2. **Spec.** Write a self-contained delegation prompt: exact files, goal, constraints, and what "done" looks like (tests pass, lint clean, behavior X). The executor can't see this conversation: spell everything out.
74
+ 3. **Delegate.** Fire independent tasks in parallel in background. Stay available to steer.
75
+ 4. **Verify.** Delegate verification too: read-only pass, test run, or `verifier` agent. The host reads the report and the diff, not the whole tree.
76
+ 5. **Judge.** Output misses the bar → refine the spec and re-delegate (better prompts beat manual fixes). Escalate terra → Kimi K3 → sol → host-native only when the cheaper tier keeps failing.
77
+
78
+ ## Delegation prompt checklist
79
+
80
+ - Names exact files/paths and the repo root
81
+ - States the goal in one sentence, then constraints (style, deletion safety: `trash` not `rm -rf`, no scope creep)
82
+ - Defines done: commands to run, expected results
83
+ - Asks for a report: changed files, what was done, tests run, risks
84
+
85
+ ## Anti-patterns
86
+
87
+ - "It's faster if I just do it": beyond a trivial tweak it isn't, and it burns the budget the whole session depends on.
88
+ - Reading 10 files to plan: delegate exploration, plan from the summary.
89
+ - Fixing an executor's output by hand: refine the prompt and rerun.
90
+ - Serializing independent delegations: parallelize.
91
+ - Escalating everything to sol or the host: terra and Kimi K3 handle most well-spec'd work.
92
+
93
+ If no delegation path works (CLIs unavailable, Bash denied), say so explicitly and ask the user before falling back to direct execution: never silently drop out of the mode.
@@ -0,0 +1,32 @@
1
+ # Delegation models: current rankings and pricing
2
+
3
+ Last verified: 2026-07-20
4
+
5
+ **Refresh protocol**: if the date above is older than 14 days, refresh BEFORE planning a big delegation batch. Delegate the research (exa-search skill or a read-only executor): pull the DeepSWE leaderboard (https://deepswe.datacurve.ai/) and the provider pricing pages, then update both tables and the date. DeepSWE is the reference signal: 113 original long-horizon engineering tasks, contamination-free, cost-per-task published per model.
6
+
7
+ ## DeepSWE leaderboard (best config per model, snapshot 2026-07-17)
8
+
9
+ | Model | Pass@1 | Avg cost/task | Read |
10
+ |---|---|---|---|
11
+ | gpt-5.6-sol [max] | 73% | $8.39 | Top score, best cost among frontier |
12
+ | claude-fable-5 [max] | 70% | $21.63 | Host tier: 2.6x sol cost, never a delegation target |
13
+ | gpt-5.6-terra [max] | 70% | $4.95 | Sol-level score at 59% of the cost |
14
+ | kimi-k3 [max] | 69% | $4.65 | Within noise of terra/sol, cheapest of the top pack |
15
+ | gpt-5.6-luna [max] | 67% | $3.03 | Acceptable floor for trivial bulk work |
16
+ | gpt-5.5 [xhigh] | 67% | $7.23 | Superseded by the 5.6 family |
17
+ | claude-opus-4.8 [max] | 59% | $13.22 | Dominated: lower score, higher cost |
18
+
19
+ ## API list pricing (per 1M tokens)
20
+
21
+ | Model | Input | Cached input | Output | Context |
22
+ |---|---|---|---|---|
23
+ | Kimi K3 (Moonshot) | $3.00 | $0.30 | $15.00 | 1M |
24
+ | GPT-5.6 Sol | $5.00 | $0.50 | $30.00 | 1.05M |
25
+ | GPT-5.6 Terra | $2.50 | $0.25 | $15.00 | 1.05M |
26
+ | GPT-5.6 Luna | $1.00 | ~$0.10 | $6.00 | 1.05M |
27
+
28
+ ## Access notes (this machine)
29
+
30
+ - Kimi K3: flat-rate through the kimi-for-coding subscription in opencode (`-m kimi-for-coding/k3`), so marginal cost per delegation is ~zero. The opencode-go gateway is unfunded (insufficient balance): do not route through it. Open weights due 2026-07-27; 1M context; native vision; Terminal-Bench 88.3.
31
+ - GPT-5.6 sol/terra/luna: covered by the Codex subscription (`codex exec -m gpt-5.6-<tier>`); config default is sol + effort high.
32
+ - Current call (2026-07-20): Kimi K3 is the default executor (top-pack score, subscription-covered). Terra for low-stakes tasks. Sol for compute-heavy work. Luna only for trivial bulk edits.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: use-goal
3
+ description: Use when the user asks to create, draft, set, start, or refine a Codex or Claude Code /goal objective for persistent multi-turn work.
4
+ ---
5
+
6
+ # Use Goal
7
+
8
+ Create or draft a Codex or Claude Code Goal that follows the official `/goal` contract: one persistent objective with evidence-based completion criteria.
9
+
10
+ ## When To Use
11
+
12
+ Use this skill when the user explicitly asks to:
13
+
14
+ - create, set, start, or use a Goal
15
+ - turn a task into a strong `/goal`
16
+ - make Codex or Claude Code continue until an outcome is actually done
17
+ - define success criteria for longer debugging, optimization, migration, refactor, benchmark, flaky-test, or research work
18
+
19
+ Do not introduce a Goal for a one-off edit, short explanation, simple code review, or single answer unless the user explicitly asks for Goal mode.
20
+ Do not use a Goal for a loose backlog or unrelated task list. A good Goal is bigger than one prompt but smaller than an open-ended project.
21
+
22
+ ## Pick The Platform
23
+
24
+ Before drafting or creating a Goal, identify the active platform from the runtime and available tools:
25
+
26
+ - **Codex**: use `references/codex-goal.md`.
27
+ - **Claude Code**: use `references/claude-code-goal.md`.
28
+ - **Unknown platform**: draft a plain `/goal ...` command and state that the user should run it in the target agent.
29
+
30
+ If Goal tools are available in Codex, use them rather than only printing a slash command. If the runtime only exposes slash commands, return the exact `/goal ...` command unless the harness can dispatch it directly.
31
+
32
+ ## Goal Shape
33
+
34
+ Before writing or creating the Goal, think through the verification strategy. Inspect repository docs, package scripts, tests, CI config, benchmark scripts, failing logs, linked issue text, plans, or referenced files when the evidence surface is not obvious.
35
+
36
+ Identify which command, artifact, report, screenshot, benchmark, source document, or manual check can prove completion. Prefer existing project commands and documented workflows over invented validation. If no reliable verification surface exists, ask one concise question or make the Goal explicitly require creating one.
37
+
38
+ Write one compact objective with the outcome, verification surface, constraints, boundaries, iteration policy, and blocked stop condition. For long-running implementation work, include the files to inspect first, exact proof commands, checkpoint behavior, and a short progress log requirement.
39
+
40
+ Prefer this pattern:
41
+
42
+ ```text
43
+ <desired end state>, verified by <specific evidence>, while preserving <constraints>. Use <allowed inputs, tools, or boundaries>. Between iterations, <how to choose and record the next best action>. If blocked or no valid paths remain, stop with <attempted paths, evidence gathered, blocker, and next input needed>.
44
+ ```
45
+
46
+ ## Create Or Draft
47
+
48
+ When goal tools are available, check the current Goal first. Create a new one only when the user explicitly asks for it and no active Goal blocks it. Do not overwrite, clear, pause, or resume an existing Goal unless explicitly requested.
49
+
50
+ If the user asks only to draft, rewrite, explain, or refine a Goal, return the final `/goal ...` text instead of activating it.
51
+
52
+ ## Evidence Rules
53
+
54
+ Completion must be evidence-based. Do not mark a Goal complete because the work seems likely done, because a budget is exhausted, or because no more work is planned. Only mark it complete after verifying the stated stopping condition. If blocked, report the attempted paths, evidence gathered, blocker, and exact input or external change needed.
55
+
56
+ ## References
57
+
58
+ - `references/codex-goal.md`: Codex Goal mode, tools, lifecycle, and completion rules.
59
+ - `references/claude-code-goal.md`: Claude Code `/goal` command, evaluator, and manual activation.
60
+ - `references/verification-harnesses.md`: measurable validation for refactors, deletions, migrations, and moves.
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "Use Goal"
3
+ short_description: "Create evidence-based Codex or Claude Code goals"
4
+ icon_small: "./assets/codex-icon.svg"
5
+ icon_large: "./assets/codex-icon.svg"
6
+ brand_color: "#C70A64"
7
+ default_prompt: "Use $use-goal to help with this task."
@@ -0,0 +1,4 @@
1
+ <svg role="img" aria-label="use-goal skill icon" width="64" height="64" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="64" height="64" rx="16" fill="#C70A64"/>
3
+ <path d="M20 20h24v6H26v8h14v6H26v4h18v6H20V20Z" fill="#fff"/>
4
+ </svg>
@@ -0,0 +1,17 @@
1
+ # Claude Code Goal Reference
2
+
3
+ Use this reference when the active agent is Claude Code.
4
+
5
+ Official reference: https://code.claude.com/docs/en/goal
6
+
7
+ Claude Code uses `/goal` to set a completion condition for the current session. `/goal <condition>` starts Goal mode, `/goal` shows its state, and `/goal clear` removes it. Only one Goal can be active per session.
8
+
9
+ The condition must describe one measurable end state and the proof Claude must surface in the transcript. Include constraints, the files or logs to inspect first, checkpoint reporting, and a bounded blocked stop clause when useful. Goal conditions can be up to 4,000 characters.
10
+
11
+ If the harness cannot dispatch slash commands, output the exact `/goal ...` command and ask the user to paste it manually. Do not replace it with a task list or call `/goal` Claude-only.
12
+
13
+ Prefer:
14
+
15
+ ```text
16
+ /goal <desired end state>, verified by <proof surfaced in the transcript>, while preserving <constraints>. First inspect <files/docs/logs>. After each turn, report the checkpoint, command result, remaining gap, and next smallest step. Stop when the proof is present, or after <bound> with attempted paths, evidence, blocker, and needed input.
17
+ ```
@@ -0,0 +1,15 @@
1
+ # Codex Goal Reference
2
+
3
+ Use this reference when the active agent is OpenAI Codex.
4
+
5
+ Official references:
6
+
7
+ - https://developers.openai.com/codex/use-cases/follow-goals
8
+ - https://developers.openai.com/codex/app/commands
9
+ - https://developers.openai.com/codex/cli/slash-commands
10
+
11
+ `/goal <objective>` starts Goal mode. `/goal` views the current Goal. `/goal pause`, `/goal resume`, and `/goal clear` manage lifecycle. Objectives must be non-empty and at most 4,000 characters.
12
+
13
+ When Goal tools are available, call `get_goal` before lifecycle actions and create a new Goal only when the user explicitly asks and no active Goal exists. Do not overwrite an existing Goal without explicit permission. If Goals are unavailable, tell the user to enable `[features] goals = true` or run `codex features enable goals`.
14
+
15
+ A strong Goal defines one objective and stopping condition, initial files/docs, exact proof commands or artifacts, non-regression constraints, checkpoint behavior, and the evidence to report if blocked.
@@ -0,0 +1,7 @@
1
+ # Verification Harnesses For Refactors
2
+
3
+ Use this reference when a Goal involves refactoring, deletion, migration, moving files, eliminating a pattern, or reducing a code smell.
4
+
5
+ Convert the desired end state into a deterministic count, list, or command result. First establish the baseline before editing. Prefer existing repository tooling; otherwise create a narrow, deterministic checker that prints grouped findings and exits non-zero while work remains. Exclude generated, vendored, build, lockfile, snapshot, and binary content unless the task includes it.
6
+
7
+ For deletion or migration Goals, verify both the old surface is gone and the new surface works: no imports, string references, routes, config entries, or tests should point at removed paths, and typecheck/build/test should pass. Rerun the harness after each change and report the delta.
package/dist/cli.js CHANGED
@@ -33746,7 +33746,11 @@ async function hasContent(folderPath) {
33746
33746
  async function copyManagedFolder(source, destination) {
33747
33747
  await import_fs_extra7.default.copy(source, destination, {
33748
33748
  overwrite: true,
33749
- dereference: os10.platform() === "win32"
33749
+ dereference: os10.platform() === "win32",
33750
+ filter: async (sourcePath) => {
33751
+ const stat = await import_fs_extra7.default.lstat(sourcePath);
33752
+ return !(stat.isSocket() || stat.isFIFO() || stat.isCharacterDevice() || stat.isBlockDevice());
33753
+ }
33750
33754
  });
33751
33755
  }
33752
33756
  async function writeMetadata(snapshotPath, metadata) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.95",
3
+ "version": "1.4.97",
4
4
  "description": "AIBlueprint CLI for setting up AI coding configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",
@@ -1,64 +0,0 @@
1
- ---
2
- name: use-fable
3
- description: "Orchestrator mode for Fable: Fable thinks, plans, and reviews while Codex CLI and subagents execute all heavy work. Use when the user invokes /use-fable, says 'use fable', 'fable mode', 'orchestrator mode', or wants to save Fable tokens/rate limits."
4
- ---
5
-
6
- # Use Fable
7
-
8
- Fable is the thinker, never the typist. Its tokens are scarce and expensive; Codex (GPT-5.5) is effectively free and highly steerable. In this mode, Fable's job is deciding **what** to do and judging **whether it was done well** — everything token-hungry runs elsewhere and reports back.
9
-
10
- Model rankings, Codex mechanics, and effort settings live in `~/.claude/rules/models.md` (already in context). This skill is the enforcement layer.
11
-
12
- ## Core rule
13
-
14
- Fable does not execute. Fable may: read a few targeted files, search, inspect git state, think, plan, decompose, write specs and delegation prompts, review diffs and reports, judge outputs, and talk to the user.
15
-
16
- Fable must NOT directly do:
17
-
18
- - Implementation, refactors, migrations, test writing (any multi-file or >~15-line change)
19
- - Codebase-wide exploration or analysis (reading many files to "understand")
20
- - Computer use, browser automation, UI/UX verification
21
- - Log triage, data analysis, bulk mechanical edits
22
- - Running long build/test loops and reading their full output
23
-
24
- The only direct edits allowed: trivial single-file tweaks (a config value, a typo, a one-liner) where writing a delegation prompt would cost more than the edit itself.
25
-
26
- ## Who executes what
27
-
28
- | Task | Executor |
29
- |------|----------|
30
- | Well-spec'd implementation, refactors, migrations, bulk edits | Codex: `codex exec "<prompt>"` |
31
- | Investigation, codebase analysis, log/data triage (no writes) | Codex: `codex exec -s read-only "<prompt>"` |
32
- | Computer use, UI/UX verification, browser checks | Codex (way better at it) or `verifier`/`dev-browser` subagent |
33
- | Codebase exploration to inform a plan | `Explore` or `explore-fast` subagent — Fable reads the summary, not the files |
34
- | User-facing taste work (UI, copy, API design) | Claude subagent with `model: "opus"` |
35
- | Plan/implementation review | Fable itself (its core job), optionally + Codex as second perspective |
36
- | Inside a Workflow | thin `sonnet`/`effort: low` wrapper agent that runs `codex exec` via Bash and returns output verbatim |
37
-
38
- Claude subagents always get `model: "opus"` unless the wrapper-for-Codex pattern applies. Never Haiku.
39
-
40
- ## The loop
41
-
42
- 1. **Think.** Understand the request. If context is missing, delegate the exploration (don't read the codebase yourself) and think on the summaries.
43
- 2. **Spec.** Write a self-contained delegation prompt: exact files, goal, constraints, and what "done" looks like (tests pass, lint clean, behavior X). Codex can't see this conversation — spell everything out. See `/codex:gpt-5-4-prompting` for hard cases.
44
- 3. **Delegate.** Fire independent tasks in parallel (multiple `codex exec` in background, or multiple subagents in one message). Stay available to steer.
45
- 4. **Verify.** Delegate verification too — Codex read-only pass, test run, or `verifier` agent. Fable reads the report and the diff, not the whole tree.
46
- 5. **Judge.** If the output misses the bar: refine the spec and re-delegate (Codex is steerable — better prompts beat manual fixes), or escalate to an opus subagent for taste-sensitive work. Do not "just fix it quickly" yourself — that's how the mode dies.
47
-
48
- ## Delegation prompt checklist (for Codex)
49
-
50
- - Names exact files/paths and the repo root
51
- - States the goal in one sentence, then constraints (style, deletion safety: `trash` not `rm -rf`, no scope creep)
52
- - Defines done: commands to run, expected results
53
- - Asks for a report: changed files, what was done, tests run, risks
54
- - Non-git/untrusted dir → add `--skip-git-repo-check`
55
-
56
- ## Anti-patterns
57
-
58
- - "It's faster if I just do it" — for anything beyond a trivial tweak, it isn't: it burns the budget the whole session depends on.
59
- - Reading 10 files to plan — delegate exploration, plan from the summary.
60
- - Fixing Codex's output by hand — refine the prompt and rerun instead.
61
- - Serializing independent delegations — parallelize.
62
- - Verifying UI by taking screenshots yourself — Codex does computer use and UI verification better and cheaper.
63
-
64
- If no delegation path works (Codex unavailable, Bash denied), say so explicitly and ask the user before falling back to direct execution — never silently drop out of the mode.