ultra-builder-pro-cli 5.0.0 → 6.0.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/CHANGELOG.md +113 -3
- package/README.md +67 -478
- package/README.zh-CN.md +49 -422
- package/adapters/_shared/frontmatter.cjs +1 -18
- package/adapters/_shared/plugin-core.cjs +17 -83
- package/adapters/_shared/runtime-assets.cjs +6 -120
- package/adapters/claude.js +8 -24
- package/adapters/codex.js +16 -38
- package/bin/install.js +35 -57
- package/docs/PLUGIN-ISOLATION-CONTRACT.md +13 -101
- package/docs/examples/drive/claude-reviewer.sh +53 -0
- package/docs/examples/drive/claude-writer.sh +43 -0
- package/engine/FORMATS.md +1051 -0
- package/engine/checks.cjs +139 -0
- package/engine/cli.cjs +148 -0
- package/engine/completion.cjs +48 -0
- package/engine/context.cjs +94 -0
- package/engine/drive.cjs +220 -0
- package/engine/expect-worker.cjs +5 -0
- package/engine/expect.cjs +33 -0
- package/engine/formats.cjs +189 -0
- package/engine/git-state.cjs +112 -0
- package/engine/ledger.cjs +205 -0
- package/engine/loading.cjs +28 -0
- package/engine/merge.cjs +273 -0
- package/engine/milestone.cjs +89 -0
- package/engine/plan.cjs +232 -0
- package/engine/project.cjs +5 -0
- package/engine/signals.cjs +3 -0
- package/engine/states.cjs +175 -0
- package/hooks/session-start.cjs +54 -0
- package/package.json +17 -52
- package/skills/ultra/SKILL.md +395 -0
- package/.ultra-template/changes/abandoned/.gitkeep +0 -0
- package/.ultra-template/changes/active/.gitkeep +0 -1
- package/.ultra-template/changes/archive/.gitkeep +0 -1
- package/.ultra-template/contexts/TEMPLATE.md +0 -135
- package/.ultra-template/decisions/.gitkeep +0 -1
- package/.ultra-template/evidence/.gitkeep +0 -1
- package/.ultra-template/north-star.md +0 -52
- package/.ultra-template/project-brief.md +0 -28
- package/.ultra-template/research/.gitkeep +0 -1
- package/.ultra-template/specs/architecture.md +0 -81
- package/.ultra-template/specs/discovery.md +0 -74
- package/.ultra-template/specs/product.md +0 -80
- package/.ultra-template/specs/research-distillate.md +0 -57
- package/.ultra-template/tasks.json +0 -4
- package/.ultra-template/test-report.json +0 -44
- package/adapters/_shared/host-profile.cjs +0 -5
- package/adapters/grok.js +0 -242
- package/adapters/kimi.js +0 -232
- package/adapters/opencode.js +0 -408
- package/adapters/zcode.js +0 -375
- package/bin/delegate-worker.cjs +0 -5
- package/bin/delegate.cjs +0 -5
- package/docs/ARCHITECTURE.md +0 -274
- package/docs/ARTIFACT-AUTHORITY.md +0 -305
- package/docs/DECISIONS.md +0 -229
- package/docs/PHILOSOPHY.md +0 -261
- package/docs/RUNTIME-COMPAT-MATRIX.md +0 -315
- package/docs/SKILL-AUTHORING.md +0 -113
- package/docs/WORKFLOW-LIFECYCLE.md +0 -350
- package/docs/evals/adversarial-review-2026-08-14.md +0 -84
- package/docs/evals/ultra-5-0-journey-results.md +0 -62
- package/docs/evals/ultra-5-0-live-acp-conformance.md +0 -93
- package/docs/evals/ultra-5-0-route-journeys.md +0 -145
- package/docs/evals/zcode-automation-2026-08-14.md +0 -103
- package/hooks/README.md +0 -52
- package/hooks/_common.py +0 -1779
- package/hooks/adapters/codex.py +0 -295
- package/hooks/adapters/grok.py +0 -134
- package/hooks/adapters/kimi.py +0 -156
- package/hooks/adapters/zcode.py +0 -227
- package/hooks/block_dangerous_commands.py +0 -201
- package/hooks/compact_context.py +0 -224
- package/hooks/mid_workflow_recall.py +0 -47
- package/hooks/post_edit_guard.py +0 -215
- package/hooks/session_context.py +0 -741
- package/skills/ultra-change/SKILL.md +0 -165
- package/skills/ultra-change/references/change-contract.md +0 -199
- package/skills/ultra-change/references/execution-grant.md +0 -109
- package/skills/ultra-change/references/primary-transfer.md +0 -273
- package/skills/ultra-change/scripts/validate_primary_transfer.cjs +0 -1928
- package/skills/ultra-delegate/SKILL.md +0 -195
- package/skills/ultra-delegate/patches/zcode-acp-0.1.0-zcode-0.16.5.patch +0 -184
- package/skills/ultra-delegate/references/delegation-contract.md +0 -138
- package/skills/ultra-delegate/scripts/acp-conformance.cjs +0 -287
- package/skills/ultra-delegate/scripts/acp-driver.cjs +0 -762
- package/skills/ultra-delegate/scripts/agent-execution-driver.cjs +0 -320
- package/skills/ultra-delegate/scripts/cli-driver.cjs +0 -61
- package/skills/ultra-delegate/scripts/delegate-profiles/kimi-read-only.md +0 -15
- package/skills/ultra-delegate/scripts/delegate-profiles/kimi-write.md +0 -17
- package/skills/ultra-delegate/scripts/delegate-worker.cjs +0 -328
- package/skills/ultra-delegate/scripts/delegate.cjs +0 -690
- package/skills/ultra-delegate/scripts/delegate_wait.py +0 -86
- package/skills/ultra-delegate/scripts/host-profile.cjs +0 -267
- package/skills/ultra-deliver/SKILL.md +0 -194
- package/skills/ultra-deliver/references/baseline-reconciliation.md +0 -41
- package/skills/ultra-dev/SKILL.md +0 -265
- package/skills/ultra-dev/references/debugging.md +0 -22
- package/skills/ultra-domain-modeling/SKILL.md +0 -79
- package/skills/ultra-grilling/SKILL.md +0 -121
- package/skills/ultra-grilling/references/reframing.md +0 -76
- package/skills/ultra-init/SKILL.md +0 -143
- package/skills/ultra-init/references/brownfield-adoption.md +0 -32
- package/skills/ultra-init/scripts/init_project.cjs +0 -1031
- package/skills/ultra-plan/SKILL.md +0 -160
- package/skills/ultra-plan/references/task-evidence-v2.md +0 -300
- package/skills/ultra-plan/scripts/validate_task_evidence.cjs +0 -859
- package/skills/ultra-research/SKILL.md +0 -167
- package/skills/ultra-research/references/00-problem-validation.md +0 -36
- package/skills/ultra-research/references/01-opportunity-discovery.md +0 -33
- package/skills/ultra-research/references/02-market-assessment.md +0 -31
- package/skills/ultra-research/references/03-alternatives.md +0 -31
- package/skills/ultra-research/references/04-product-strategy.md +0 -41
- package/skills/ultra-research/references/05-assumptions-validation.md +0 -31
- package/skills/ultra-research/references/10-user-personas.md +0 -30
- package/skills/ultra-research/references/11-user-scenarios.md +0 -28
- package/skills/ultra-research/references/20-user-stories.md +0 -31
- package/skills/ultra-research/references/21-features-scope.md +0 -38
- package/skills/ultra-research/references/22-success-metrics.md +0 -33
- package/skills/ultra-research/references/30-architecture-context.md +0 -30
- package/skills/ultra-research/references/31-solution-strategy.md +0 -28
- package/skills/ultra-research/references/32-building-blocks.md +0 -28
- package/skills/ultra-research/references/40-deployment.md +0 -29
- package/skills/ultra-research/references/41-quality-risks.md +0 -28
- package/skills/ultra-research/references/99-synthesis.md +0 -59
- package/skills/ultra-research/references/north-star-v2.md +0 -168
- package/skills/ultra-research/references/wayfinding.md +0 -50
- package/skills/ultra-research/scripts/validate_north_star.cjs +0 -1174
- package/skills/ultra-review/SKILL.md +0 -275
- package/skills/ultra-review/references/adversarial-evaluation.md +0 -31
- package/skills/ultra-review/references/code.md +0 -17
- package/skills/ultra-review/references/comments.md +0 -12
- package/skills/ultra-review/references/design.md +0 -12
- package/skills/ultra-review/references/errors.md +0 -13
- package/skills/ultra-review/references/review-modes.md +0 -29
- package/skills/ultra-review/references/spec.md +0 -18
- package/skills/ultra-review/references/tests.md +0 -12
- package/skills/ultra-review/references/unified-schema.md +0 -284
- package/skills/ultra-review/references/worker-packet.md +0 -183
- package/skills/ultra-review/scripts/review_wait.py +0 -2943
- package/skills/ultra-status/SKILL.md +0 -209
- package/skills/ultra-status/references/route-contract.md +0 -100
- package/skills/ultra-tdd/SKILL.md +0 -91
- package/skills/ultra-tdd/references/templates/README.md +0 -20
- package/skills/ultra-tdd/references/templates/feature-flag-default-audit.sh +0 -79
- package/skills/ultra-tdd/references/templates/persistence-real.ts +0 -78
- package/skills/ultra-tdd/references/templates/testcontainer-postgres.py +0 -78
- package/skills/ultra-tdd/references/templates/testcontainer-postgres.ts +0 -73
- package/skills/ultra-tdd/references/templates/vertical-slice.ts +0 -66
- package/skills/ultra-tdd/references/test-execution.md +0 -23
- package/skills/ultra-test/SKILL.md +0 -244
- package/skills/ultra-test/references/export-syntax.md +0 -18
- package/skills/ultra-test/scripts/validate_review_transport.cjs +0 -549
- package/skills/ultra-test/scripts/worktree_digest.cjs +0 -576
- package/skills/ultra-think/SKILL.md +0 -56
- package/skills/ultra-think/references/autonomy-boundary.md +0 -48
- package/skills/ultra-think/references/interaction-boundary.md +0 -42
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ultra-init
|
|
3
|
-
description: Create or recover Ultra's repository-local skeleton and raw Project Brief without performing product research. Use when `.ultra` is absent or partial in a new or existing codebase and later workflows need stable file paths, preserved authority, and Git.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Create the skeleton and capture only the initial project outline
|
|
7
|
-
|
|
8
|
-
Initialization establishes places for later authority and records raw owner intake. It
|
|
9
|
-
does not validate the problem, establish a North Star, build a product or architecture
|
|
10
|
-
baseline, settle domain language, choose a Change, or start another public workflow.
|
|
11
|
-
|
|
12
|
-
## Route modes
|
|
13
|
-
|
|
14
|
-
| Mode | Entry | Observable exit | Next |
|
|
15
|
-
|---|---|---|---|
|
|
16
|
-
| `create` | Explicit owner invocation when `.ultra/` is absent | Missing skeleton files and raw Project Brief are published and read back; Git exists | Recommend `ultra-research` in `baseline` mode |
|
|
17
|
-
| `recover` | Explicit owner invocation when the skeleton is partial or uncertain | Missing files are restored, preserved authority is byte-identical, and every unresolved repair is named | Recommend `ultra-research` in `baseline` mode when the brief is usable; otherwise resume `ultra-init/recover` |
|
|
18
|
-
|
|
19
|
-
Follow `../ultra-status/references/route-contract.md`. Derive a Route Card before the
|
|
20
|
-
first write and at the exit or any repair stop. Init never continues into Research on
|
|
21
|
-
its own, and its `Position` reports observed files rather than semantic progress.
|
|
22
|
-
|
|
23
|
-
## Before you start
|
|
24
|
-
|
|
25
|
-
1. If `.ultra/changes/active/` exists, resolve at most one active `change_id`. Read
|
|
26
|
-
`.ultra/tasks.json` if it exists, plus the `context_file` and closing `## Resume Note`
|
|
27
|
-
of unfinished tasks matching that id. Historical unfinished rows do not turn a
|
|
28
|
-
partial skeleton into current work. A partial `.ultra/` is recovery work.
|
|
29
|
-
2. Read `.ultra/project-brief.md`, `.ultra/north-star.md`, `CONTEXT.md`, and relevant
|
|
30
|
-
`.ultra/decisions/` when they exist. Preserve accepted authority byte-for-byte.
|
|
31
|
-
3. Establish the repository root, Git state, and whether meaningful code or maintained
|
|
32
|
-
documentation exists from the filesystem. Do not ask the owner for those facts.
|
|
33
|
-
|
|
34
|
-
## Definition of done
|
|
35
|
-
|
|
36
|
-
- `.ultra/project-brief.md` contains raw owner intake: one line, a broad outline,
|
|
37
|
-
explicit inputs already supplied, and open questions handed to Research.
|
|
38
|
-
- For a new skeleton, a structurally complete North Star v2 with status `unresearched`
|
|
39
|
-
and the three specification skeletons exist. Init does not populate `FP-*`, `NS-*`,
|
|
40
|
-
or `HC-*`; recovery preserves any populated authority, and Init does not create
|
|
41
|
-
`CONTEXT.md`.
|
|
42
|
-
- Every packaged path was read back after copying, while every pre-existing file stayed
|
|
43
|
-
byte-identical.
|
|
44
|
-
- `.git` exists. Commit, push, remote creation, and publication remain separate effects.
|
|
45
|
-
|
|
46
|
-
## Classify only for preservation
|
|
47
|
-
|
|
48
|
-
Use `references/brownfield-adoption.md` when source, runtime configuration, tests, or
|
|
49
|
-
maintained product documentation already exist. Classification changes what must be
|
|
50
|
-
preserved and what Research should inspect; it never authorizes Init to write observed
|
|
51
|
-
product behavior into a specification.
|
|
52
|
-
|
|
53
|
-
## Draw out the brief, then stop
|
|
54
|
-
|
|
55
|
-
Follow `../ultra-grilling/SKILL.md` with only these required fields:
|
|
56
|
-
|
|
57
|
-
| Raw intake | Project Brief section |
|
|
58
|
-
|---|---|
|
|
59
|
-
| What the owner wants to build, in one sentence and their words | `## One-line` |
|
|
60
|
-
| What it is, broadly for whom or what, intended result, broad boundary | `## Initial Outline` |
|
|
61
|
-
| Constraints, materials, and decisions the owner already volunteered | `## Explicit Inputs` |
|
|
62
|
-
| Questions already visible but requiring evidence or deeper decisions | `## Open Questions for Research` |
|
|
63
|
-
|
|
64
|
-
Ask only enough to distinguish materially different outlines. If an answer would define
|
|
65
|
-
a problem, actor evidence, desired outcome, success measure, product strategy, accepted
|
|
66
|
-
constraint, domain term, requirement, or architecture, record it as an input or open
|
|
67
|
-
question and stop drilling. Research owns that maturation and must not re-ask an answer
|
|
68
|
-
unless evidence conflicts with it.
|
|
69
|
-
|
|
70
|
-
## Write and recover the skeleton
|
|
71
|
-
|
|
72
|
-
Resolve this loaded Skill's directory, then run
|
|
73
|
-
`node <ultra-init-skill-dir>/scripts/init_project.cjs --project <repository-root>`.
|
|
74
|
-
The script stages and reads back only missing files from `assets/project-template`,
|
|
75
|
-
validates the staged North Star from its raw bytes, and then publishes a complete new
|
|
76
|
-
`.ultra/` by atomic rename. Partial recovery publishes each staged file atomically
|
|
77
|
-
without clobbering a concurrent or existing path. A validation or publication failure
|
|
78
|
-
removes a published path only while its current stable identity and digest still match
|
|
79
|
-
this invocation's recorded publication. A workspace edit is preserved and returns the
|
|
80
|
-
typed retryable `initialization_snapshot_changed` diagnostic. Init binds every preserved
|
|
81
|
-
file to one nonblocking, no-follow descriptor/path identity and SHA-256 digest, then
|
|
82
|
-
rechecks all of them before staging, before publication, and before success. It likewise
|
|
83
|
-
captures every staged digest before publication and compares it with a stable target
|
|
84
|
-
snapshot before success. Each file publication takes fresh no-symlink parent-chain and
|
|
85
|
-
resolved-root identity snapshots before and after the effect; detectable directory drift
|
|
86
|
-
stops publication. A failed snapshot `lstat`, `open`, `fstat`, or `read` with no observed
|
|
87
|
-
identity, type, size, or digest change instead returns the typed retryable
|
|
88
|
-
`initialization_snapshot_io_error`; its sanitized `operation`, symbolic `errno`, and
|
|
89
|
-
actionable permission, descriptor-limit, or storage recovery remain in the
|
|
90
|
-
`ultra-init-error-v1` result. The North Star compatibility diagnostic remains
|
|
91
|
-
`preserved_north_star_changed`. A malformed packaged placeholder stops before publication
|
|
92
|
-
with an `ultra-init-error-v1` payload whose `code` is `north_star_template_invalid` and
|
|
93
|
-
whose `diagnostics` preserve the canonical validator entries, including
|
|
94
|
-
`invalid_unresearched_placeholder` for an exact-byte mismatch.
|
|
95
|
-
|
|
96
|
-
This recovery contract assumes a cooperative local workspace. It detects observable
|
|
97
|
-
path-identity or byte drift and preserves the current bytes for retry; it does not claim
|
|
98
|
-
that Node filesystem calls can defeat a malicious operating-system-level replacement.
|
|
99
|
-
Init also binds the root identity of its staging directory. Cleanup recursively removes
|
|
100
|
-
that path only after a fresh no-symlink root rewalk proves the same device and inode. If
|
|
101
|
-
the path was replaced, Init leaves it untouched and returns the retryable typed
|
|
102
|
-
`initialization_cleanup_conflict` diagnostic with the owned identity and manual recovery
|
|
103
|
-
instruction. If a typed initialization failure is already pending, that primary
|
|
104
|
-
diagnostic remains the top-level `ultra-init-error-v1` result and the cleanup diagnostic
|
|
105
|
-
is retained under `cleanup_conflict`, including its identity-bound manual recovery.
|
|
106
|
-
On success every existing file stayed byte-identical and every new file matches its
|
|
107
|
-
packaged digest.
|
|
108
|
-
|
|
109
|
-
```text
|
|
110
|
-
.ultra/project-brief.md raw intake and initial outline
|
|
111
|
-
.ultra/north-star.md unresearched Research-owned placeholder
|
|
112
|
-
.ultra/specs/{product,architecture,discovery}.md empty specification skeletons
|
|
113
|
-
.ultra/specs/research-distillate.md empty Research synthesis skeleton
|
|
114
|
-
.ultra/{tasks.json,test-report.json} empty or not-yet-run ledgers
|
|
115
|
-
.ultra/{contexts,decisions,evidence,research}/
|
|
116
|
-
.ultra/changes/{active,archive,abandoned}/
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
The script reports `created_unresearched` for a new placeholder. For a preserved file it
|
|
120
|
-
reports exactly `preserved_unresearched`, `preserved_accepted`, `preserved_legacy`, or
|
|
121
|
-
`preserved_unknown`; unknown or malformed content is never described as authority. For
|
|
122
|
-
a legacy `north-star.md` containing the actual v0.26 headings or the older `## One-line`
|
|
123
|
-
form, keep that file byte-identical.
|
|
124
|
-
When the new Project Brief is still unresolved, copy the legacy one-line verbatim into
|
|
125
|
-
it and list legacy hard constraints under Explicit Inputs without assigning new IDs.
|
|
126
|
-
Research later proposes the accepted North Star; it never rewrites history silently.
|
|
127
|
-
|
|
128
|
-
Git supplies revision identity, history, comparison, archive moves, and rollback. Run
|
|
129
|
-
`git init` only when `.git` is absent, then report the uncommitted scaffold.
|
|
130
|
-
|
|
131
|
-
## When the owner decides
|
|
132
|
-
|
|
133
|
-
The owner confirms the one-line outline and any replacement of healthy authority. Where
|
|
134
|
-
the host cannot ask, leave unresolved fields explicit and recommend resuming Init on a
|
|
135
|
-
host that can; do not infer intent from the directory name. Recommend Research after a
|
|
136
|
-
usable brief exists, but do not invoke it.
|
|
137
|
-
|
|
138
|
-
## References
|
|
139
|
-
|
|
140
|
-
- `../ultra-grilling/SKILL.md` — read before the first missing brief field.
|
|
141
|
-
- `references/brownfield-adoption.md` — read when maintained behavior already exists.
|
|
142
|
-
- `../ultra-status/references/route-contract.md` — owner-visible route, checkpoint, and recovery output.
|
|
143
|
-
- `../ultra-think/references/autonomy-boundary.md` — read before replacing authority.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Brownfield initialization
|
|
2
|
-
|
|
3
|
-
Use this procedure only when `ultra-init` finds maintained behavior but no healthy,
|
|
4
|
-
complete Ultra skeleton. Init preserves the checkout and prepares an evidence route; it
|
|
5
|
-
does not establish the brownfield baseline.
|
|
6
|
-
|
|
7
|
-
## Bind the repository boundary
|
|
8
|
-
|
|
9
|
-
Identify the repository root, selected workspace roots, branch, `HEAD`, dirty files,
|
|
10
|
-
generated or vendored exclusions, manifests, maintained documents, verification
|
|
11
|
-
commands, and visible public entry points. Resolve these from files and Git instead of
|
|
12
|
-
asking the owner.
|
|
13
|
-
|
|
14
|
-
## Preserve before interpreting
|
|
15
|
-
|
|
16
|
-
- Never replace existing `.ultra` files, `CONTEXT.md`, decisions, or maintained project
|
|
17
|
-
documents merely to obtain the current template shape.
|
|
18
|
-
- Treat source, tests, runtime configuration, and documentation as evidence candidates,
|
|
19
|
-
not conclusions Init may promote.
|
|
20
|
-
- Keep out-of-scope dirty files visible in the report without adding them to the
|
|
21
|
-
Project Brief or specification skeletons.
|
|
22
|
-
- Record an exact legacy one-line as raw intake only when the Project Brief is empty.
|
|
23
|
-
|
|
24
|
-
## Prepare the Research handoff
|
|
25
|
-
|
|
26
|
-
List the concrete paths and live seams that can answer each open baseline question.
|
|
27
|
-
`ultra-research` establishes the observed and accepted baseline from those sources. Init
|
|
28
|
-
does not run verification, classify delivered behavior, reconcile documentation drift,
|
|
29
|
-
or write product, discovery, or architecture conclusions.
|
|
30
|
-
|
|
31
|
-
Report the preserved files, repository boundary, candidate evidence, and unresolved
|
|
32
|
-
questions. Recommend Research and stop; public workflows never invoke one another.
|