aiblueprint-cli 1.4.104 → 1.4.106
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 +0 -7
- package/package.json +1 -1
- package/agents-config/skills/audit/SKILL.md +0 -126
- package/agents-config/skills/audit/agents/openai.yaml +0 -10
- package/agents-config/skills/audit/assets/codex-icon.svg +0 -20
- package/agents-config/skills/commit/SKILL.md +0 -44
- package/agents-config/skills/commit/agents/openai.yaml +0 -10
- package/agents-config/skills/commit/assets/codex-icon.svg +0 -17
- package/agents-config/skills/create-pr/SKILL.md +0 -55
- package/agents-config/skills/create-pr/agents/openai.yaml +0 -10
- package/agents-config/skills/create-pr/assets/codex-icon.svg +0 -17
- package/agents-config/skills/oneshot/SKILL.md +0 -44
- package/agents-config/skills/oneshot/agents/openai.yaml +0 -10
- package/agents-config/skills/oneshot/assets/codex-icon.svg +0 -18
- package/agents-config/skills/tools/SKILL.md +0 -149
- package/agents-config/skills/use-artifacts/SKILL.md +0 -211
- package/agents-config/skills/use-artifacts/agents/openai.yaml +0 -7
- package/agents-config/skills/use-artifacts/assets/codex-icon.svg +0 -18
- package/agents-config/skills/use-artifacts/assets/local-runtime.js +0 -299
- package/agents-config/skills/use-artifacts/scripts/create_artifact.py +0 -317
- package/agents-config/skills/use-delegate/SKILL.md +0 -97
- package/agents-config/skills/use-delegate/agents/openai.yaml +0 -10
- package/agents-config/skills/use-delegate/assets/codex-icon.svg +0 -20
- package/agents-config/skills/use-delegate/references/models.md +0 -32
- package/agents-config/skills/use-goal/SKILL.md +0 -121
- package/agents-config/skills/use-goal/agents/openai.yaml +0 -7
- package/agents-config/skills/use-goal/assets/codex-icon.svg +0 -18
- package/agents-config/skills/use-goal/references/claude-code-goal.md +0 -65
- package/agents-config/skills/use-goal/references/codex-goal.md +0 -70
- package/agents-config/skills/use-goal/references/verification-harnesses.md +0 -108
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Claude Code Goal Reference
|
|
2
|
-
|
|
3
|
-
Use this reference when the active agent is Claude Code.
|
|
4
|
-
|
|
5
|
-
Official reference:
|
|
6
|
-
|
|
7
|
-
- https://code.claude.com/docs/en/goal
|
|
8
|
-
|
|
9
|
-
## Manual Activation
|
|
10
|
-
|
|
11
|
-
Claude Code has `/goal`, but the model cannot launch it unless the harness exposes a slash-command dispatch tool. If no dispatch tool is available, output the exact `/goal ...` command, ask the user to paste/run it manually, and wait for confirmation before continuing Goal-driven work.
|
|
12
|
-
|
|
13
|
-
Do not say Claude Code lacks `/goal`. Do not call `/goal` Codex-only. Do not replace `/goal` with a task list, TODO list, or goal file and describe it as equivalent. Those can be supporting artifacts only when the user asks for them or when they are useful after the manual `/goal` command has been provided.
|
|
14
|
-
|
|
15
|
-
If the user asks to continue without manually pasting the command, continue normal work only after acknowledging that no Claude Code Goal is active.
|
|
16
|
-
|
|
17
|
-
## Command Surface
|
|
18
|
-
|
|
19
|
-
Claude Code uses `/goal` to set a completion condition for the current session.
|
|
20
|
-
|
|
21
|
-
- `/goal <condition>` sets the Goal and immediately starts a turn using the condition as the directive.
|
|
22
|
-
- `/goal` with no argument shows the current state, evaluated turns, token spend, and latest evaluator reason.
|
|
23
|
-
- `/goal clear` removes the active Goal before it is met.
|
|
24
|
-
- `stop`, `off`, `reset`, `none`, and `cancel` are aliases for `clear`.
|
|
25
|
-
- `/clear` starts a new conversation and removes any active Goal.
|
|
26
|
-
- `claude -p "/goal <condition>"` can run a Goal non-interactively until the condition is met or the process is interrupted.
|
|
27
|
-
|
|
28
|
-
Only one Goal can be active per Claude Code session. Setting a new `/goal <condition>` replaces the active Goal. Do not overwrite an existing Goal unless the user explicitly asks to replace it.
|
|
29
|
-
|
|
30
|
-
If an active Goal existed when a Claude Code session ended, it is restored on `--resume` or `--continue`; the condition carries over, but the timer, turn count, and token-spend baseline reset.
|
|
31
|
-
|
|
32
|
-
## Requirements
|
|
33
|
-
|
|
34
|
-
Claude Code `/goal` requires Claude Code v2.1.139 or later.
|
|
35
|
-
|
|
36
|
-
It only runs in trusted workspaces because it uses the hooks system. It is unavailable when hooks are disabled through `disableAllHooks` or restricted through `allowManagedHooksOnly`; Claude Code should explain that condition when the command fails.
|
|
37
|
-
|
|
38
|
-
## Evaluator Behavior
|
|
39
|
-
|
|
40
|
-
Claude Code evaluates the Goal after each turn with a separate small fast model. A "no" result starts another turn and passes the evaluator reason as guidance. A "yes" result clears the Goal and records the achieved condition in the transcript.
|
|
41
|
-
|
|
42
|
-
The evaluator does not call tools, read files, or run commands independently. It judges only the condition and what Claude has surfaced in the conversation so far. Therefore the Goal must require Claude to put the proof in the transcript.
|
|
43
|
-
|
|
44
|
-
Good Claude Code Goal conditions include:
|
|
45
|
-
|
|
46
|
-
- one measurable end state, such as a passing test, clean build, target count, or empty queue
|
|
47
|
-
- a stated check, such as a command exiting `0`, a generated report, or a reviewed artifact
|
|
48
|
-
- constraints that matter, such as files not to modify or behavior not to regress
|
|
49
|
-
- a bounded stop clause when useful, such as "or stop after 20 turns with the remaining blocker"
|
|
50
|
-
|
|
51
|
-
Goal conditions can be up to 4,000 characters. If the instructions are longer, put details in a file and make the Goal point to that file.
|
|
52
|
-
|
|
53
|
-
## Claude Code Draft Pattern
|
|
54
|
-
|
|
55
|
-
Prefer this pattern:
|
|
56
|
-
|
|
57
|
-
```text
|
|
58
|
-
/goal <desired end state>, verified by <proof Claude must surface in the transcript>, while preserving <constraints>. First inspect <files/docs/logs>. After each turn, report the current checkpoint, command/artifact result, remaining gap, and next smallest step. Stop when the proof is in the transcript, or after <bound> with attempted paths, evidence, blocker, and needed input.
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
For test or build work:
|
|
62
|
-
|
|
63
|
-
```text
|
|
64
|
-
/goal <desired end state>, verified by `<test/build command>` exiting 0 with the relevant output included in the transcript, while preserving <constraints>. First inspect <files/logs>. After each turn, rerun the narrowest relevant check and summarize the result. Stop only when the command output proves success, or stop after <bound> with the failing output, attempted fixes, and missing input.
|
|
65
|
-
```
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Codex Goal Reference
|
|
2
|
-
|
|
3
|
-
Use this reference when the active agent is OpenAI Codex, including the Codex app, IDE extension, or CLI.
|
|
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
|
-
## Command Surface
|
|
12
|
-
|
|
13
|
-
`/goal <objective>` starts Goal mode. `/goal` views the current Goal. `/goal pause`, `/goal resume`, and `/goal clear` manage lifecycle.
|
|
14
|
-
|
|
15
|
-
Goal objectives must be non-empty and at most 4,000 characters. For longer instructions, create or point to a file and make the Goal refer to that file.
|
|
16
|
-
|
|
17
|
-
If `/goal` is missing, tell the user to enable Goals with:
|
|
18
|
-
|
|
19
|
-
```toml
|
|
20
|
-
[features]
|
|
21
|
-
goals = true
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
They can also run:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
codex features enable goals
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Tool Contract
|
|
31
|
-
|
|
32
|
-
When Codex Goal tools are available, use the tools instead of printing a slash command for activation:
|
|
33
|
-
|
|
34
|
-
1. Call `get_goal` before any lifecycle action.
|
|
35
|
-
2. If the user asked to create, set, start, activate, or use a new Goal and no active Goal exists, call `create_goal` with the refined objective.
|
|
36
|
-
3. Pass `token_budget` only when the user explicitly provided a budget.
|
|
37
|
-
4. If a Goal already exists, do not overwrite, clear, pause, resume, mark complete, or mark blocked unless the user explicitly asked for that lifecycle action or the active Goal's stated status condition is actually met.
|
|
38
|
-
|
|
39
|
-
Use slash-command text only when the user asks for a draft, the tool surface is unavailable, or the target is a separate Codex session.
|
|
40
|
-
|
|
41
|
-
## Codex Goal Shape
|
|
42
|
-
|
|
43
|
-
A strong Codex Goal should define:
|
|
44
|
-
|
|
45
|
-
- one objective and one stopping condition
|
|
46
|
-
- the files, docs, issue, logs, or plan Codex should inspect first
|
|
47
|
-
- the commands, artifacts, screenshots, benchmarks, reports, or manual checks that prove progress
|
|
48
|
-
- constraints that must not regress
|
|
49
|
-
- checkpoint behavior and compact progress logging
|
|
50
|
-
- the exact blocked stop condition and what evidence to report
|
|
51
|
-
|
|
52
|
-
Prefer this pattern:
|
|
53
|
-
|
|
54
|
-
```text
|
|
55
|
-
<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>.
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
For implementation Goals, include exact commands when known:
|
|
59
|
-
|
|
60
|
-
```text
|
|
61
|
-
<desired end state>, verified by `<test or build command>` and <artifact/manual check>, while preserving <constraints>. First inspect <files/docs/logs>. Work in checkpoints: after each change, run the narrowest relevant verification, record the result, and choose the next smallest defensible step. Stop only when the verification passes, or stop blocked with the failed command output, attempted paths, and the missing input needed.
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Completion And Blocking
|
|
65
|
-
|
|
66
|
-
Completion must be evidence-based. Compare the active Goal to concrete evidence in the thread: changed files, command output, tests, benchmarks, generated artifacts, logs, screenshots, or source-backed research findings.
|
|
67
|
-
|
|
68
|
-
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.
|
|
69
|
-
|
|
70
|
-
Only mark a Goal blocked when the stated blocker has repeated enough that no meaningful progress is possible without user input or an external change. Report the attempted paths, gathered evidence, exact blocker, and input needed.
|
|
@@ -1,108 +0,0 @@
|
|
|
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. The core tactic is to create a small measurable harness before the main work, then make the Goal continue until the harness reaches the target.
|
|
4
|
-
|
|
5
|
-
## Principle
|
|
6
|
-
|
|
7
|
-
For broad changes, do not rely only on subjective review. Convert the desired end state into a number, list, or deterministic command result.
|
|
8
|
-
|
|
9
|
-
Examples:
|
|
10
|
-
|
|
11
|
-
- Remove all explicit TypeScript `any` -> count explicit `any` occurrences and require `0`.
|
|
12
|
-
- Delete dead files -> scan imports/references and require no references to removed paths.
|
|
13
|
-
- Move a module -> scan imports and require all imports use the new path.
|
|
14
|
-
- Rename an API -> count old symbol references and require `0`, then run tests/typecheck.
|
|
15
|
-
- Remove a dependency -> scan package manifests and lockfiles, then run install/typecheck/test.
|
|
16
|
-
- Split a large file -> check file size or exported symbol boundaries, then run typecheck/test.
|
|
17
|
-
|
|
18
|
-
The harness should make progress visible after every iteration.
|
|
19
|
-
|
|
20
|
-
## Harness Rules
|
|
21
|
-
|
|
22
|
-
1. First establish the baseline count or failure list before editing.
|
|
23
|
-
2. Prefer existing repo tooling: tests, lint rules, typecheck, dependency analyzers, codemods, static analyzers.
|
|
24
|
-
3. If no existing command measures the target, create a narrow validation script.
|
|
25
|
-
4. Make the script deterministic and fast enough to run repeatedly.
|
|
26
|
-
5. Exclude generated, vendored, build output, lockfiles, snapshots, and irrelevant binary assets unless the task explicitly includes them.
|
|
27
|
-
6. Print actionable output: total count, grouped files, and the top remaining offenders.
|
|
28
|
-
7. Exit with code `0` only when the target condition is met. Exit non-zero while work remains.
|
|
29
|
-
8. Keep the harness scoped to the Goal. Remove temporary harnesses before completion unless they are useful project validation and the user or repo conventions support keeping them.
|
|
30
|
-
|
|
31
|
-
## Goal Pattern
|
|
32
|
-
|
|
33
|
-
Use this shape for count-based refactor Goals:
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
<desired refactor>, verified by `<validation command>` returning success with <target count/list condition>, while preserving <tests/typecheck/public behavior>. First establish the baseline with `<validation command>` and inspect the highest-signal offenders. Work in checkpoints: after each batch, rerun `<validation command>`, record the count/list delta, run the narrowest relevant tests, and continue until the validation command exits 0. If the target cannot be reached safely, stop with the remaining offenders, attempted paths, failing output, and the decision needed.
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Example:
|
|
40
|
-
|
|
41
|
-
```text
|
|
42
|
-
Remove all explicit TypeScript `any` from the codebase, verified by `node scripts/check-explicit-any.mjs` exiting 0 with count 0, while keeping `pnpm typecheck` and relevant tests green. First run the checker to record the baseline and prioritize files with the most occurrences. Work in checkpoints: after each batch, rerun the checker, record the remaining count, and run the narrowest relevant typecheck/tests. Continue until the checker exits 0. If some `any` cannot be removed safely, stop with the remaining locations, attempted replacements, compiler/test output, and the type information needed.
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Script Patterns
|
|
46
|
-
|
|
47
|
-
Use structured parsers when reasonable. For TypeScript, prefer the TypeScript compiler API, `ts-morph`, ESLint, or an existing lint rule over raw text search when false positives matter.
|
|
48
|
-
|
|
49
|
-
For a quick bootstrap harness, a text scanner is acceptable if the Goal explicitly treats it as an approximate first pass and follows up with typecheck/lint.
|
|
50
|
-
|
|
51
|
-
Example quick scanner:
|
|
52
|
-
|
|
53
|
-
```js
|
|
54
|
-
#!/usr/bin/env node
|
|
55
|
-
import { readdirSync, readFileSync, statSync } from "node:fs";
|
|
56
|
-
import { join } from "node:path";
|
|
57
|
-
|
|
58
|
-
const root = process.cwd();
|
|
59
|
-
const ignoredDirs = new Set([".git", "node_modules", "dist", "build", ".next", "coverage"]);
|
|
60
|
-
const extensions = new Set([".ts", ".tsx"]);
|
|
61
|
-
const matches = [];
|
|
62
|
-
|
|
63
|
-
function walk(dir) {
|
|
64
|
-
for (const entry of readdirSync(dir)) {
|
|
65
|
-
const path = join(dir, entry);
|
|
66
|
-
const stat = statSync(path);
|
|
67
|
-
if (stat.isDirectory()) {
|
|
68
|
-
if (!ignoredDirs.has(entry)) walk(path);
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
if (![...extensions].some((ext) => path.endsWith(ext))) continue;
|
|
72
|
-
const text = readFileSync(path, "utf8");
|
|
73
|
-
const lines = text.split("\n");
|
|
74
|
-
lines.forEach((line, index) => {
|
|
75
|
-
if (/\bany\b/.test(line)) matches.push(`${path.replace(`${root}/`, "")}:${index + 1}: ${line.trim()}`);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
walk(root);
|
|
81
|
-
|
|
82
|
-
console.log(`explicit_any_count=${matches.length}`);
|
|
83
|
-
for (const match of matches.slice(0, 50)) console.log(match);
|
|
84
|
-
if (matches.length > 50) console.log(`...and ${matches.length - 50} more`);
|
|
85
|
-
process.exit(matches.length === 0 ? 0 : 1);
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Refactor Targets
|
|
89
|
-
|
|
90
|
-
For deletion Goals, verify both absence and behavior:
|
|
91
|
-
|
|
92
|
-
- target files or symbols are gone
|
|
93
|
-
- no imports, string references, routes, config entries, docs links, or tests point to them
|
|
94
|
-
- typecheck/build/test still passes
|
|
95
|
-
|
|
96
|
-
For moving Goals, verify all call sites:
|
|
97
|
-
|
|
98
|
-
- old import path count is `0`
|
|
99
|
-
- new import path exists where expected
|
|
100
|
-
- public exports remain compatible unless changing them is part of the Goal
|
|
101
|
-
- typecheck/build/test still passes
|
|
102
|
-
|
|
103
|
-
For migration Goals, verify old surface removal and new surface behavior:
|
|
104
|
-
|
|
105
|
-
- old package/API/pattern count reaches `0` or the explicitly allowed exception list
|
|
106
|
-
- new package/API/pattern is used consistently
|
|
107
|
-
- tests/typecheck/build pass
|
|
108
|
-
- manual or browser verification is included when behavior is visual or interactive
|