@yairabf/engineering-workflows 0.0.0-stage → 1.1.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/.agents/skills/grill-me/SKILL.md +7 -0
- package/.agents/skills/grill-me/agents/openai.yaml +5 -0
- package/.agents/skills/grilling/SKILL.md +28 -0
- package/.agents/skills/grilling/agents/openai.yaml +3 -0
- package/engineering-workflows/.agents/skills/workflow-complete/SKILL.md +17 -0
- package/engineering-workflows/.agents/skills/workflow-implement/SKILL.md +17 -0
- package/engineering-workflows/.agents/skills/workflow-implement/references/implementation-handoff.md +17 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/SKILL.md +49 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/preparation.md +80 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/prerequisites.json +53 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/readiness.md +87 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/scripts/marker.mjs +97 -0
- package/engineering-workflows/.agents/skills/workflow-investigate/SKILL.md +55 -0
- package/engineering-workflows/.agents/skills/workflow-investigate/references/investigation-brief.md +38 -0
- package/engineering-workflows/.agents/skills/workflow-plan/SKILL.md +46 -0
- package/engineering-workflows/.agents/skills/workflow-plan/references/implementation-plan.md +31 -0
- package/engineering-workflows/.agents/skills/workflow-pr/SKILL.md +20 -0
- package/engineering-workflows/.agents/skills/workflow-pr/scripts/check-pr.mjs +41 -0
- package/engineering-workflows/.agents/skills/workflow-review/SKILL.md +58 -0
- package/engineering-workflows/.agents/skills/workflow-review/references/independent-review.md +29 -0
- package/engineering-workflows/.claude/skills/workflow-complete/SKILL.md +6 -0
- package/engineering-workflows/.claude/skills/workflow-implement/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-initiate/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-investigate/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-plan/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-pr/SKILL.md +6 -0
- package/engineering-workflows/.claude/skills/workflow-review/SKILL.md +10 -0
- package/engineering-workflows/README.md +282 -0
- package/engineering-workflows/builder/delivery.mjs +177 -0
- package/engineering-workflows/builder/delivery.test.mjs +154 -0
- package/engineering-workflows/builder/drive.mjs +184 -0
- package/engineering-workflows/builder/drive.test.mjs +350 -0
- package/engineering-workflows/builder/handoff.mjs +40 -0
- package/engineering-workflows/builder/mission-role.mjs +294 -0
- package/engineering-workflows/builder/pi-session.mjs +45 -0
- package/engineering-workflows/builder/reader-guard.mjs +58 -0
- package/engineering-workflows/builder/role-session.mjs +42 -0
- package/engineering-workflows/builder/stage.mjs +446 -0
- package/engineering-workflows/builder/workspace-tool.mjs +20 -0
- package/engineering-workflows/builder-plan.mjs +174 -0
- package/engineering-workflows/builder-project.mjs +117 -0
- package/engineering-workflows/check-package-visibility.mjs +54 -0
- package/engineering-workflows/install.mjs +182 -0
- package/engineering-workflows/mission/README.md +281 -0
- package/engineering-workflows/mission/controller.mjs +54 -0
- package/engineering-workflows/mission/mission-controller.test.mjs +382 -0
- package/engineering-workflows/mission/mission-mcp.test.mjs +102 -0
- package/engineering-workflows/mission/status.mjs +113 -0
- package/engineering-workflows/mission/store.mjs +180 -0
- package/engineering-workflows/mission/tools.mjs +54 -0
- package/engineering-workflows/mission/transitions.mjs +269 -0
- package/engineering-workflows/mission-controller.mjs +72 -0
- package/engineering-workflows/mission-mcp.mjs +66 -0
- package/engineering-workflows/prerequisites.mjs +205 -0
- package/engineering-workflows/readiness.mjs +265 -0
- package/engineering-workflows/release-targets.mjs +12 -0
- package/engineering-workflows/setup.mjs +70 -0
- package/engineering-workflows/stage-release.mjs +43 -0
- package/engineering-workflows/upgrade.mjs +333 -0
- package/engineering-workflows/workflows/development.md +374 -0
- package/engineering-workflows/workflows/engineering-workflows.yml +90 -0
- package/package.json +21 -4
- package/README.md +0 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grilling
|
|
3
|
+
description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
|
|
7
|
+
|
|
8
|
+
Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled: the questions you can ask _now_ without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
|
|
9
|
+
|
|
10
|
+
Format a round like so:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
14
|
+
|
|
15
|
+
➡️ <your recommended answer>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
20
|
+
|
|
21
|
+
➡️ <your recommended answer>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Each round the user answers reshapes the tree: settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
|
|
25
|
+
|
|
26
|
+
Finding _facts_ is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it; don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report; ask the rest of the frontier now. The _decisions_ are the user's: put each to them and wait.
|
|
27
|
+
|
|
28
|
+
The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-complete
|
|
3
|
+
description: Merge a PR after workflow-pr passes, with current verification, exact-head approval, and confirmation of the intended base.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Complete a passing PR
|
|
7
|
+
|
|
8
|
+
1. Load the workflow-pr Pass and independent review for the same repository, PR, base, branch and full SHA. For a retry, read live PR identity and state first. If that exact PR and head already merged into the intended base, confirm its merge commit and finish without a second merge.
|
|
9
|
+
2. Refresh the checks, applicable base branch requirements, OpenCodeReview summary, and unresolved findings using steps 3 and 4 of the sibling [workflow-pr skill](../workflow-pr/SKILL.md). Run its gate with fresh evidence. Only the literal Pass result permits a new merge. Route stale heads, findings and failed checks back to workflow-pr; wait on pending evidence. Check GitHub mergeability, approvals and repository policy. Resolve blockers through the repository's ordinary flow.
|
|
10
|
+
3. Obtain merge authorization for this PR and SHA under target repository rules. A user invoking this skill explicitly for the identified passing PR and SHA can supply that approval. Automatic skill selection alone cannot. Use the approved repository merge method and enforce the reviewed head in the merge command, for example:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
gh pr merge "$pr" --repo "$repo" --match-head-commit "$reviewed_sha" --squash
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Use the repo's configured method or merge queue when applicable. Respect branch protections. If the head changes, invalidate the pass and its approval.
|
|
17
|
+
4. Query the PR again with gh pr view and confirm state MERGED, intended base, matching head, merge timestamp and merge commit. A queued PR remains pending; monitor it through merge, failure or a changed head. Return the PR URL, base branch and merge commit only after confirmation.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-implement
|
|
3
|
+
description: Execute a saved, human-approved plan in a dedicated Git worktree and return the candidate commit and verification evidence.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Developer
|
|
8
|
+
|
|
9
|
+
Start in a fresh session with the target checkout and the approved plan or a reference to its approved revision. For a tracked task, read the attached or linked plan using available authorized access. For a local mission, read the saved file. Use its mission and investigation references for context.
|
|
10
|
+
|
|
11
|
+
1. Before writing, confirm the target, the target repository's base branch, and the human's explicit approval of this plan revision. A ticket assignment or a pending decision is insufficient. If the plan is inaccessible, approval is unclear, or the plan materially changed after approval, return the missing input or decision. Leave candidate, branch, and worktree fields empty with a reason.
|
|
12
|
+
2. Read target repository instructions. From the target root, inspect the base and existing worktrees.
|
|
13
|
+
- For a new assignment, use the target's branch naming rules and a free sibling worktree path. Run `git worktree add -b "$branch" "$worktree" "$base"` with the resolved values. If a name or path is occupied, preserve it and select a free one, or report the collision if the assignment requires that exact location. Keep the original checkout and its local changes intact.
|
|
14
|
+
- For a repair, use the saved implementation handoff and either the review requesting changes or the workflow-pr repair handoff for the published candidate. Verify the repository, dedicated worktree path and checked-out branch, and confirm that its full HEAD SHA matches the reviewed candidate. If they disagree or local edits would interfere, report the discrepancy before editing. Resume in that worktree.
|
|
15
|
+
3. In the dedicated worktree, execute the approved tasks and check their acceptance criteria. For repairs, trace each requested correction to its finding and retest the affected behavior. Run the plan's checks and applicable repository commands. Fix in-scope defects and rerun affected checks. If a material change to scope or criteria is needed, preserve progress and return the decision required for renewed approval.
|
|
16
|
+
4. Inspect the diff, stage only mission changes, and commit the candidate according to repository rules. Record the full SHA with `git rev-parse HEAD` in the dedicated worktree. Tie reported checks to that exact content and rerun affected checks after edits. If an operation fails or work stops early, identify any unfinished or uncommitted changes and distinguish them from what the SHA contains. Report the absence of a candidate explicitly if no candidate commit was produced.
|
|
17
|
+
5. Return the [implementation handoff](references/implementation-handoff.md) as Markdown for the operator to save beside the plan outside the pack. Retain the branch and worktree for review. End the session at handoff.
|
package/engineering-workflows/.agents/skills/workflow-implement/references/implementation-handoff.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Implementation handoff
|
|
2
|
+
|
|
3
|
+
- **Approved plan** — Reference the exact approved revision and its originating task or local mission.
|
|
4
|
+
- **Target** — Identify the repository, dedicated branch, and worktree path.
|
|
5
|
+
- **Candidate commit** — Give the full SHA or state why no candidate exists.
|
|
6
|
+
|
|
7
|
+
## Tasks
|
|
8
|
+
|
|
9
|
+
Identify completed tasks and the changes included in the candidate. List unfinished tasks, uncommitted changes, blockers, and decisions needed, or record that all tasks are complete.
|
|
10
|
+
|
|
11
|
+
## Repair details (for a revised candidate)
|
|
12
|
+
|
|
13
|
+
Link the review requesting changes and give its reviewed SHA. For each required finding, describe the change included in the new candidate and identify the corresponding command and observed result below. Identify any outstanding correction.
|
|
14
|
+
|
|
15
|
+
## Verification
|
|
16
|
+
|
|
17
|
+
For each acceptance criterion and applicable repository check, give the command and observed result. Identify failed, skipped, or unavailable checks and the reason. Distinguish checks on uncommitted work from evidence for the candidate. Include only evidence a reviewer needs. Omit credentials and the developer's chat.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-initiate
|
|
3
|
+
description: Prepare a target Git checkout's workflow prerequisites before an investigation in Pi, OpenCode, Claude Code, or Codex.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Initiate
|
|
8
|
+
|
|
9
|
+
Run this role with the operator's authorized target checkout and selected
|
|
10
|
+
mission harness (`pi`, `opencode`, `claude-code`, or `codex`). If either
|
|
11
|
+
input is missing or unclear, ask for it before acting. Identify the Git root
|
|
12
|
+
from the supplied path and confirm that it is the intended target and an
|
|
13
|
+
accessible, non-bare worktree. Follow the target's repository instructions.
|
|
14
|
+
Resolve the companion references relative to this skill, then run
|
|
15
|
+
target commands from the target root unless a step specifies a staging folder.
|
|
16
|
+
|
|
17
|
+
## Read existing readiness
|
|
18
|
+
|
|
19
|
+
Follow the [readiness reference](references/readiness.md) to inspect the local
|
|
20
|
+
marker. Stop on an invalid or unreadable marker and identify the file that
|
|
21
|
+
needs attention. If the selected harness is recorded, run its read-only quick
|
|
22
|
+
check. On success, report that setup was skipped and give the operator the
|
|
23
|
+
investigation handoff. On failure, identify the affected prerequisite or
|
|
24
|
+
runtime and stop before investigation. Leave the marker and installations
|
|
25
|
+
untouched on either repeat path.
|
|
26
|
+
|
|
27
|
+
## Prepare missing prerequisites
|
|
28
|
+
|
|
29
|
+
Use the [preparation reference](references/preparation.md) for the only six
|
|
30
|
+
prerequisites and their sources. Work within the operator's write access.
|
|
31
|
+
Reuse complete checkout-local or already discoverable installations. Prepare
|
|
32
|
+
missing checkout-local skill registrations for all four harnesses, including
|
|
33
|
+
ones that are currently absent. Preserve an existing destination with missing
|
|
34
|
+
or conflicting resources and report the repair needed. Continue independent
|
|
35
|
+
preparation when one source or destination fails.
|
|
36
|
+
|
|
37
|
+
## Verify and hand off
|
|
38
|
+
|
|
39
|
+
Follow the [readiness reference](references/readiness.md) for each available
|
|
40
|
+
harness. Record only successful verification. Report each harness as ready,
|
|
41
|
+
pending because its executable is absent, or requiring repair or a concrete
|
|
42
|
+
verification step. On repeat entry, describe other harnesses as previously
|
|
43
|
+
verified or unverified unless you actually ran their current check.
|
|
44
|
+
|
|
45
|
+
Apply setup only to the requested target and the authorized Graphify CLI
|
|
46
|
+
installation. Once the selected harness is ready, hand the target reference,
|
|
47
|
+
mission goal, and any acceptance criteria or source reference to
|
|
48
|
+
[`workflow-investigate`](../workflow-investigate/SKILL.md) in a fresh session
|
|
49
|
+
with read-only target access.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Prepare the target checkout
|
|
2
|
+
|
|
3
|
+
Use the selected harness to look for working registrations first. Keep any
|
|
4
|
+
intentional project or profile installation that the harness can actually
|
|
5
|
+
load and whose required resources are available. For a harness that is absent,
|
|
6
|
+
prepare its project registration from the table. A shared registration can
|
|
7
|
+
satisfy several harnesses. Check each specific destination before writing.
|
|
8
|
+
|
|
9
|
+
| Harness | Checkout-local root | Discovery reference |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Pi | `.agents/skills/`, with `.pi/skills/` for the Pi build of Impeccable | [Pi skills](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/skills.md) |
|
|
12
|
+
| OpenCode | `.agents/skills/`, with `.opencode/skills/` for the OpenCode build of Impeccable | [OpenCode skills](https://opencode.ai/docs/skills/) |
|
|
13
|
+
| Claude Code | `.claude/skills/` | [Claude Code skills](https://code.claude.com/docs/en/skills) |
|
|
14
|
+
| Codex | `.agents/skills/` | [Codex skills](https://developers.openai.com/codex/skills) |
|
|
15
|
+
|
|
16
|
+
## Prerequisite checklist
|
|
17
|
+
|
|
18
|
+
Register the source directory under the skill ID in the applicable roots.
|
|
19
|
+
Carry its bundled assets, references, scripts, and applicable upstream license
|
|
20
|
+
notices. Preserve the layout expected by the instructions.
|
|
21
|
+
|
|
22
|
+
Use the [prerequisite manifest](prerequisites.json) for the skill IDs, exact
|
|
23
|
+
Git revisions, source paths, and resource checks shared with the setup CLI.
|
|
24
|
+
Graphify comes from the [official graphifyy CLI package](https://pypi.org/project/graphifyy/#install).
|
|
25
|
+
Grill Me and its Grilling companion are supplied in the target's
|
|
26
|
+
`.engineering-workflows/prerequisites/` directory. Register them as
|
|
27
|
+
siblings. Repair the pack installation if either source directory is absent.
|
|
28
|
+
Impeccable uses the corresponding source directory for each of the four
|
|
29
|
+
harnesses. UI UX Pro Max uses Python 3.
|
|
30
|
+
|
|
31
|
+
## Stage and register missing skills
|
|
32
|
+
|
|
33
|
+
1. Confirm write access to the intended target destinations before installing.
|
|
34
|
+
Resolve each parent path and stop for an affected destination if it would
|
|
35
|
+
escape the target checkout. An existing destination stays in place. If it
|
|
36
|
+
is unusable, report its exact path and the missing or conflicting piece
|
|
37
|
+
so the operator can repair it.
|
|
38
|
+
2. Fetch missing pinned Git sources in temporary staging directories. For
|
|
39
|
+
example, with `source_dir`, `repository`, `revision`, and `source_path`
|
|
40
|
+
set from the manifest, run these commands in order and stop that source on
|
|
41
|
+
any nonzero exit. Supply all missing skill directories as separate
|
|
42
|
+
arguments to `sparse-checkout set` when using the same source checkout.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
git init -q "$source_dir"
|
|
46
|
+
git -C "$source_dir" remote add origin "https://github.com/$repository.git"
|
|
47
|
+
git -C "$source_dir" config remote.origin.promisor true
|
|
48
|
+
git -C "$source_dir" config remote.origin.partialclonefilter blob:none
|
|
49
|
+
git -C "$source_dir" fetch --depth=1 --filter=blob:none origin "$revision"
|
|
50
|
+
git -C "$source_dir" sparse-checkout set "$source_path"
|
|
51
|
+
git -C "$source_dir" checkout --detach FETCH_HEAD
|
|
52
|
+
git -C "$source_dir" rev-parse HEAD
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Compare the resulting commit to the declared revision before copying.
|
|
56
|
+
Keep the stage outside the target. License notices may be in the fetched
|
|
57
|
+
repository or plugin root. Preserve applicable notices with the skill.
|
|
58
|
+
3. Reuse a working `graphify --version`. If the CLI is missing and the
|
|
59
|
+
operator authorized setup, use `uv tool install graphifyy` or
|
|
60
|
+
`pipx install graphifyy` with an available tool manager. Verify
|
|
61
|
+
`graphify --version` on the harness's PATH. If the runtime or tool
|
|
62
|
+
manager is missing, report it as a blocker for Graphify. In a disposable
|
|
63
|
+
staging checkout, run `graphify install --project --platform agents`.
|
|
64
|
+
Copy only the resulting `.agents/skills/graphify/` directory into the
|
|
65
|
+
missing roots. This uses the skill-only installer; leave optional hooks,
|
|
66
|
+
guards, and watchers out of the target.
|
|
67
|
+
4. Check the staged skill's name, `SKILL.md`, and bundled resources. Copy
|
|
68
|
+
the complete directory into a missing destination as the final step
|
|
69
|
+
for that registration. If the pack's Grill Me wrapper only describes a
|
|
70
|
+
Skill tool call, add a fallback in the staged copy that reads
|
|
71
|
+
`../grilling/SKILL.md` in harnesses without that tool.
|
|
72
|
+
For UI UX Pro Max, resolve script commands
|
|
73
|
+
relative to the installed `SKILL.md` directory. When registering the
|
|
74
|
+
bundle as a project skill, replace the Claude plugin prefix
|
|
75
|
+
`${CLAUDE_PLUGIN_ROOT}/.claude/skills/ui-ux-pro-max/` in the staged
|
|
76
|
+
instructions with a project-relative path to that installed directory.
|
|
77
|
+
Retain the original scripts, examples, and datasets.
|
|
78
|
+
5. Record any failed install with the affected harnesses and prerequisite.
|
|
79
|
+
Unrelated registrations can still be prepared. Leave valid existing
|
|
80
|
+
installations and the target's Git index as found.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "graphify",
|
|
4
|
+
"source": "graphifyy",
|
|
5
|
+
"requiredFiles": ["references/query.md", "references/extraction-spec.md"]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"id": "grill-me",
|
|
9
|
+
"requiredFiles": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "grilling",
|
|
13
|
+
"requiredFiles": []
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "thermo-nuclear-code-quality-review",
|
|
17
|
+
"repository": "cursor/plugins",
|
|
18
|
+
"revision": "50b3a3234bf2e0293849a48784d72030948e44ee",
|
|
19
|
+
"directory": "thermos/skills/thermo-nuclear-code-quality-review",
|
|
20
|
+
"notices": ["thermos/LICENSE"],
|
|
21
|
+
"requiredFiles": []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "design-taste-frontend",
|
|
25
|
+
"repository": "Leonxlnx/taste-skill",
|
|
26
|
+
"revision": "f6b76575f949707b4e3c37cd86cb44b0b98643e8",
|
|
27
|
+
"directory": "skills/taste-skill",
|
|
28
|
+
"notices": ["LICENSE"],
|
|
29
|
+
"requiredFiles": ["assets/starter.html", "scripts/consistency.mjs", "references/system.md"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "impeccable",
|
|
33
|
+
"repository": "pbakaus/impeccable",
|
|
34
|
+
"revision": "b49177d32788f2dc585c42831d845dacf1ebed2c",
|
|
35
|
+
"perHarness": true,
|
|
36
|
+
"notices": ["LICENSE", "NOTICE.md"],
|
|
37
|
+
"requiredFiles": ["scripts/command-metadata.json", "scripts/impeccable"]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "ui-ux-pro-max",
|
|
41
|
+
"repository": "nextlevelbuilder/ui-ux-pro-max-skill",
|
|
42
|
+
"revision": "2de1134dc4d1cfe112934611ae5803ae17a1bd7e",
|
|
43
|
+
"directory": ".claude/skills/ui-ux-pro-max",
|
|
44
|
+
"notices": ["LICENSE"],
|
|
45
|
+
"requiredFiles": ["scripts/search.py", "scripts/core.py", "data/ux-guidelines.csv"],
|
|
46
|
+
"searchScripts": {
|
|
47
|
+
"search.py": "6b52ebb01480058cab145d3c2cb57880a529e522c0781cf8cd873fa55c9b9f1d",
|
|
48
|
+
"core.py": "caf92bdcf2579c9a7d6af4f53c54ee9d3c8f05472cfab77aaec38bef120ec63e",
|
|
49
|
+
"design_system.py": "043ed3f404214869ffbf4c8d529afc6c6ceddb211fa4726d67d7a03edf7265db",
|
|
50
|
+
"reasoning_contract.py": "b8bac1af82aa280d3e06f00aabaeac4337e632996b07fed874e2b6ee6e9c5913"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Verify and record readiness
|
|
2
|
+
|
|
3
|
+
Use this from the target root. The marker helper ships in the shared installed
|
|
4
|
+
skill, uses Node.js, and resolves the path through Git's checkout-local
|
|
5
|
+
metadata.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
node .agents/skills/workflow-initiate/scripts/marker.mjs show "$PWD"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`uninitialized` means the marker is absent. A valid marker lists prior
|
|
12
|
+
verifications. A nonzero exit gives the path or checkout that needs attention.
|
|
13
|
+
Inspect malformed or unsupported markers and ask the operator to repair them
|
|
14
|
+
before proceeding. A previously verified harness that fails its quick check
|
|
15
|
+
needs a specific repair, followed by a new check. Its prior marker entry alone
|
|
16
|
+
never permits investigation.
|
|
17
|
+
|
|
18
|
+
## Check a harness
|
|
19
|
+
|
|
20
|
+
Run discovery from the target root in the environment that will run the
|
|
21
|
+
mission. If the harness executable is absent, report pending. If it is
|
|
22
|
+
installed but its discovery interface cannot be used, report the blocking
|
|
23
|
+
step and leave its readiness unverified.
|
|
24
|
+
|
|
25
|
+
| Harness | Normal discovery and loading evidence |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| Pi | In a fresh Pi session, check completion for `/skill:` and the project skill paths in the startup resources. Explicit skills such as Grill Me can appear only in command completion. |
|
|
28
|
+
| OpenCode | Run `opencode debug skill` and inspect the catalog for names, paths, and returned skill bodies. Redirect stdout to a temporary file outside the checkout if the terminal or pipe truncates it. Confirm the mission agent's skill permissions permit loading the definitions. |
|
|
29
|
+
| Claude Code | In a fresh Claude Code session, use the skill list or slash-command completion. Confirm each project definition is available, including explicit-only commands. |
|
|
30
|
+
| Codex | In a fresh Codex session, check `/skills` for enabled entries and their locations. A client using the Codex app-server protocol can query `skills/list` for the target working directory. |
|
|
31
|
+
|
|
32
|
+
Check `workflow-initiate`, `workflow-investigate`, `workflow-plan`, `workflow-implement`, `workflow-review`, `workflow-pr` (including its shared gate script), and `workflow-complete`, plus
|
|
33
|
+
every skill in the [preparation checklist](preparation.md), including Grill Me's
|
|
34
|
+
companion `grilling`. For `workflow-plan`, confirm the shared definition can
|
|
35
|
+
read `references/implementation-plan.md`. For `workflow-implement`, check
|
|
36
|
+
`references/implementation-handoff.md`. For `workflow-review`, check
|
|
37
|
+
`references/independent-review.md`. Use the path the harness discovered, read
|
|
38
|
+
the definition and confirm it has the necessary resources. When a harness
|
|
39
|
+
offers a read-only skill-loading interface, use it to confirm it can read the
|
|
40
|
+
definition. With a completion-only interface, confirm that the discovered
|
|
41
|
+
command resolves to a readable definition without running its task. Verify
|
|
42
|
+
that an existing profile skill really resolves in this checkout before
|
|
43
|
+
treating it as a substitute for a missing project skill. A listing with a
|
|
44
|
+
disabled skill or the wrong registration does not pass.
|
|
45
|
+
|
|
46
|
+
- Run `graphify --version` from the harness environment. Confirm the installed
|
|
47
|
+
Graphify skill can read its bundled references.
|
|
48
|
+
- Confirm that the Grill Me instructions can load the sibling Grilling
|
|
49
|
+
definition, whether through skill invocation or by reading the linked
|
|
50
|
+
file from the same registration.
|
|
51
|
+
- Confirm that the Taste and Impeccable references, scripts, and assets
|
|
52
|
+
needed by their definitions are present. Check that Node is available for
|
|
53
|
+
their JavaScript commands. Verify that the thermonuclear review definition
|
|
54
|
+
is readable as well.
|
|
55
|
+
- Check UI UX Pro Max's Python runtime and bundled search data. Run a small,
|
|
56
|
+
read-only query such as `python3 -B <skill-dir>/scripts/search.py keyboard
|
|
57
|
+
--domain ux` with the discovered directory quoted as needed. On Windows
|
|
58
|
+
use the available Python 3 launcher. Expect search results without
|
|
59
|
+
`--persist`. Check the installed definition's script paths against the
|
|
60
|
+
same bundle.
|
|
61
|
+
|
|
62
|
+
These checks confirm discovery, readability, and basic runtime availability.
|
|
63
|
+
Keep the graph build, review pass, interview, and frontend tasks out of the
|
|
64
|
+
verification session. The same checks on the selected recorded harness are
|
|
65
|
+
the quick check on later missions. Avoid any installer, upgrade, or marker
|
|
66
|
+
write on that path.
|
|
67
|
+
|
|
68
|
+
## Record successful setup
|
|
69
|
+
|
|
70
|
+
Once at least one harness verifies, pass only the passing IDs to the helper.
|
|
71
|
+
For example, if OpenCode and Codex passed in this run:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
node .agents/skills/workflow-initiate/scripts/marker.mjs record "$PWD" opencode codex
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The helper merges those entries with prior verification and atomically
|
|
78
|
+
replaces the JSON marker. A successful response lists recorded harnesses.
|
|
79
|
+
Use the same checks in the first session of a newly available harness and
|
|
80
|
+
record it once they pass. The CLI prepares its registrations during initial
|
|
81
|
+
setup. If a previously verified harness needs repair, its retained
|
|
82
|
+
entry records historical verification while its current status remains
|
|
83
|
+
unready. Report the failed check and repeat it after repair.
|
|
84
|
+
|
|
85
|
+
Report the evidence and next action for each harness. A ready selected harness
|
|
86
|
+
can proceed directly to a fresh, read-only Investigator session. If it is
|
|
87
|
+
pending or needs repair, identify what must change before handoff.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process'
|
|
2
|
+
import {
|
|
3
|
+
lstatSync,
|
|
4
|
+
mkdirSync,
|
|
5
|
+
readFileSync,
|
|
6
|
+
realpathSync,
|
|
7
|
+
renameSync,
|
|
8
|
+
rmdirSync,
|
|
9
|
+
rmSync,
|
|
10
|
+
writeFileSync,
|
|
11
|
+
} from 'node:fs'
|
|
12
|
+
import { join, resolve } from 'node:path'
|
|
13
|
+
|
|
14
|
+
const harnesses = ['pi', 'opencode', 'claude-code', 'codex']
|
|
15
|
+
|
|
16
|
+
function git(directory, ...args) {
|
|
17
|
+
return execFileSync('git', ['-C', directory, 'rev-parse', ...args], {
|
|
18
|
+
encoding: 'utf8',
|
|
19
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
20
|
+
}).trimEnd()
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function markerPath(directory) {
|
|
24
|
+
try {
|
|
25
|
+
const root = git(directory, '--show-toplevel')
|
|
26
|
+
if (realpathSync(root) !== realpathSync(directory)) {
|
|
27
|
+
throw new Error('Use the checkout root.')
|
|
28
|
+
}
|
|
29
|
+
return resolve(root, git(root, '--git-path', 'ai-workflow-initiate.json'))
|
|
30
|
+
} catch {
|
|
31
|
+
throw new Error(`Use the root of an accessible Git worktree: ${directory}`)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function readMarker(path) {
|
|
36
|
+
try {
|
|
37
|
+
if (!lstatSync(path).isFile()) throw new Error('Expected a regular file.')
|
|
38
|
+
} catch (error) {
|
|
39
|
+
if (error.code === 'ENOENT') return null
|
|
40
|
+
throw error
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const marker = JSON.parse(readFileSync(path, 'utf8'))
|
|
44
|
+
const verified = marker?.verifiedHarnesses
|
|
45
|
+
if (
|
|
46
|
+
marker?.schemaVersion !== 1 ||
|
|
47
|
+
!Array.isArray(verified) ||
|
|
48
|
+
verified.some((id) => !harnesses.includes(id)) ||
|
|
49
|
+
new Set(verified).size !== verified.length
|
|
50
|
+
) {
|
|
51
|
+
throw new Error('Expected schemaVersion 1 and unique, supported harness IDs.')
|
|
52
|
+
}
|
|
53
|
+
return marker
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function recordVerified(path, verified) {
|
|
57
|
+
const lock = `${path}.lock`
|
|
58
|
+
mkdirSync(lock)
|
|
59
|
+
try {
|
|
60
|
+
const previous = readMarker(path)
|
|
61
|
+
const combined = new Set([...(previous?.verifiedHarnesses ?? []), ...verified])
|
|
62
|
+
if (combined.size === previous?.verifiedHarnesses.length) return previous
|
|
63
|
+
|
|
64
|
+
const marker = {
|
|
65
|
+
schemaVersion: 1,
|
|
66
|
+
verifiedHarnesses: harnesses.filter((id) => combined.has(id)),
|
|
67
|
+
}
|
|
68
|
+
const temporary = join(lock, 'marker.json')
|
|
69
|
+
writeFileSync(temporary, JSON.stringify(marker, null, 2) + '\n', { flag: 'wx' })
|
|
70
|
+
renameSync(temporary, path)
|
|
71
|
+
return marker
|
|
72
|
+
} finally {
|
|
73
|
+
rmSync(join(lock, 'marker.json'), { force: true })
|
|
74
|
+
rmdirSync(lock)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
const [command, directory, ...verified] = process.argv.slice(2)
|
|
80
|
+
const reading = command === 'show' && verified.length === 0
|
|
81
|
+
const recording =
|
|
82
|
+
command === 'record' && verified.length > 0 && verified.every((id) => harnesses.includes(id))
|
|
83
|
+
if (!directory || (!reading && !recording)) {
|
|
84
|
+
throw new Error('Usage: node marker.mjs show <checkout> | record <checkout> <harness>...')
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const path = markerPath(directory)
|
|
88
|
+
try {
|
|
89
|
+
const marker = reading ? readMarker(path) : recordVerified(path, verified)
|
|
90
|
+
console.log(marker ? JSON.stringify(marker) : 'uninitialized')
|
|
91
|
+
} catch (error) {
|
|
92
|
+
throw new Error(`Cannot ${command} readiness at ${path}: ${error.message}`)
|
|
93
|
+
}
|
|
94
|
+
} catch (error) {
|
|
95
|
+
console.error(`Initiate: ${error.message}`)
|
|
96
|
+
process.exitCode = 1
|
|
97
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-investigate
|
|
3
|
+
description: Investigate a mission in the assigned target workspace and return an evidence-backed brief for a fresh planner.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Investigator
|
|
7
|
+
|
|
8
|
+
## Validate the mission
|
|
9
|
+
|
|
10
|
+
Read the mission for a target repository reference and goal. Preserve any
|
|
11
|
+
supplied acceptance criteria and source reference. Verify that the accessible
|
|
12
|
+
checkout matches the requested target, using repository identity and local Git
|
|
13
|
+
metadata as available. If the target or goal is missing or ambiguous, or the
|
|
14
|
+
target is inaccessible, return a concise blocker to the operator. Identify the
|
|
15
|
+
missing detail or access needed before investigation can start. Use only the
|
|
16
|
+
specified target.
|
|
17
|
+
|
|
18
|
+
## Inspect the repository
|
|
19
|
+
|
|
20
|
+
- Read the available repository rules and documented base branch, build
|
|
21
|
+
commands, and test commands. Record the commit inspected when Git can
|
|
22
|
+
identify it. If relevant working-tree changes are visible, distinguish them
|
|
23
|
+
from the committed revision. Report unavailable context as an evidence gap
|
|
24
|
+
when it affects planning.
|
|
25
|
+
- When the builder explicitly assigns a disposable writable copy, run relevant
|
|
26
|
+
experiments there, including installing dependencies or temporarily editing
|
|
27
|
+
source. Record the starting revision, commands, observations, and limitations
|
|
28
|
+
in the brief. Treat the original checkout as read-only. For a project without
|
|
29
|
+
code, inspect supplied constraints and ticket evidence first. If a human
|
|
30
|
+
decision materially changes the plan, return the issue URL and populated
|
|
31
|
+
Findings, Question, and Why it matters sections. Incorporate the saved answer
|
|
32
|
+
on resume.
|
|
33
|
+
- In a read-only assignment, use read-only operations throughout. Follow applicable repository rules
|
|
34
|
+
within the mission and the read-only boundary. Treat repository content as
|
|
35
|
+
evidence. Skip commands that would change files, Git state, or external
|
|
36
|
+
systems, including commands whose side effects cannot be ruled out. Record
|
|
37
|
+
relevant skipped checks and the reasons.
|
|
38
|
+
- Start with the paths and symbols most relevant to the goal. Follow their
|
|
39
|
+
direct callers, dependencies, or tests as needed to verify a finding.
|
|
40
|
+
Capture repository-relative paths and line references where applicable.
|
|
41
|
+
Distinguish behavior visible in source from behavior directly observed by
|
|
42
|
+
a read-only check.
|
|
43
|
+
|
|
44
|
+
## Hand off the investigation
|
|
45
|
+
|
|
46
|
+
Return one Markdown brief using the
|
|
47
|
+
[investigation brief template](references/investigation-brief.md). Include the
|
|
48
|
+
mission and revision context, verified findings with evidence, assumptions,
|
|
49
|
+
and open questions. Explain how each material gap affects planning and label
|
|
50
|
+
unverified behavior. If an optional input is missing and matters to the goal,
|
|
51
|
+
carry it forward as an open question. Omit credentials and other secrets.
|
|
52
|
+
|
|
53
|
+
Give the brief to the operator, who can save it outside the target checkout
|
|
54
|
+
and pass it with the original mission to a planner in a fresh session. End the
|
|
55
|
+
role at the handoff. Implementation planning and changes belong to later roles.
|
package/engineering-workflows/.agents/skills/workflow-investigate/references/investigation-brief.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Investigation brief
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- **Reference or identifying context:** <source reference if provided; otherwise
|
|
6
|
+
identify the mission by its goal>
|
|
7
|
+
- **Goal:** <requested outcome>
|
|
8
|
+
- **Acceptance criteria:** <supplied criteria, if any>
|
|
9
|
+
|
|
10
|
+
## Repository context
|
|
11
|
+
|
|
12
|
+
- **Target:** <repository reference and checkout inspected>
|
|
13
|
+
- **Revision:** <commit SHA if known; describe relevant working-tree changes
|
|
14
|
+
separately>
|
|
15
|
+
- **Base branch:** <branch and evidence, if known>
|
|
16
|
+
- **Project rules and commands:** <relevant rules, documented build and test
|
|
17
|
+
commands, and their sources, if available>
|
|
18
|
+
|
|
19
|
+
## Verified findings
|
|
20
|
+
|
|
21
|
+
- **Finding:** <what was directly observed>
|
|
22
|
+
- **Evidence:** <repository-relative path and line or range, or the read-only
|
|
23
|
+
command and relevant result>
|
|
24
|
+
- **Planning impact:** <what the planner should account for>
|
|
25
|
+
|
|
26
|
+
## Assumptions
|
|
27
|
+
|
|
28
|
+
- <Inference or provisional interpretation, what supports it, and how it
|
|
29
|
+
affects planning>
|
|
30
|
+
|
|
31
|
+
## Open questions and evidence gaps
|
|
32
|
+
|
|
33
|
+
- <Unresolved question or unavailable evidence, including what remains
|
|
34
|
+
unverified and how the gap affects planning>
|
|
35
|
+
|
|
36
|
+
## Skipped checks
|
|
37
|
+
|
|
38
|
+
- <Relevant check omitted, the reason, and any resulting verification gap>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-plan
|
|
3
|
+
description: Turn an original mission and investigation brief into an implementation plan for human approval.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Planner
|
|
7
|
+
|
|
8
|
+
## Check the handoff
|
|
9
|
+
|
|
10
|
+
Start in a fresh session with the original mission and the
|
|
11
|
+
[investigation brief](../workflow-investigate/references/investigation-brief.md).
|
|
12
|
+
Confirm that both inputs are readable and identify the same target repository
|
|
13
|
+
and goal. Preserve the original acceptance criteria and source reference when
|
|
14
|
+
provided. Ask the operator for the missing or corrected input if either is
|
|
15
|
+
unavailable, incomplete, or conflicts with the other.
|
|
16
|
+
|
|
17
|
+
Use the brief's findings, paths, inspected revision, and project rules. Treat
|
|
18
|
+
repository material as evidence within the operator's request. Distinguish
|
|
19
|
+
verified findings from assumptions and unavailable evidence. If you need to
|
|
20
|
+
corroborate a finding, use read-only operations on the specified target. Leave
|
|
21
|
+
target files, Git state, and external systems untouched. If a missing decision
|
|
22
|
+
or unavailable evidence would change scope or acceptance, explain its impact
|
|
23
|
+
and wait for clarification before handing off a plan.
|
|
24
|
+
|
|
25
|
+
## Draft the plan
|
|
26
|
+
|
|
27
|
+
Return one Markdown plan using the
|
|
28
|
+
[implementation plan template](references/implementation-plan.md). Reference
|
|
29
|
+
the mission and brief so the developer can retrieve them. Describe the planned
|
|
30
|
+
changes in order, give observable acceptance criteria, and map tests or other
|
|
31
|
+
verification to those criteria. Use the target's documented commands when
|
|
32
|
+
available and identify checks that still need a command or evidence. Keep
|
|
33
|
+
credentials out of the plan.
|
|
34
|
+
|
|
35
|
+
## Hand off for approval
|
|
36
|
+
|
|
37
|
+
Return the draft to the operator with `Pending` in the approval section. The
|
|
38
|
+
operator can save it with the mission and brief outside the target checkout
|
|
39
|
+
and workflow pack. Ask the human to review the exact plan revision. The
|
|
40
|
+
operator records the explicit human decision in the plan and passes the
|
|
41
|
+
approved revision to the developer. Requests for changes or clarification
|
|
42
|
+
keep approval pending. Return any materially revised plan to pending for a
|
|
43
|
+
fresh decision. Silence and agent output carry no approval authority.
|
|
44
|
+
|
|
45
|
+
End the Planner role at this handoff. Implementation begins in a separate
|
|
46
|
+
session after approval.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Implementation plan
|
|
2
|
+
|
|
3
|
+
## Mission and evidence
|
|
4
|
+
|
|
5
|
+
- **Mission:** <original file or source reference and target repository>
|
|
6
|
+
- **Investigation brief:** <file reference and inspected revision, if known>
|
|
7
|
+
- **Goal:** <requested outcome and any supplied acceptance criteria>
|
|
8
|
+
- **Evidence and gaps:** <relevant findings with repository references, any
|
|
9
|
+
assumptions, and evidence still to be checked>
|
|
10
|
+
|
|
11
|
+
## Planned changes
|
|
12
|
+
|
|
13
|
+
1. <change in build order, with affected files or areas>
|
|
14
|
+
|
|
15
|
+
## Acceptance criteria
|
|
16
|
+
|
|
17
|
+
1. <observable result that satisfies the mission>
|
|
18
|
+
|
|
19
|
+
## Verification
|
|
20
|
+
|
|
21
|
+
- <acceptance criterion, test or check, documented command when available,
|
|
22
|
+
and expected result>
|
|
23
|
+
|
|
24
|
+
## Human approval
|
|
25
|
+
|
|
26
|
+
**Decision:** Pending
|
|
27
|
+
|
|
28
|
+
After explicit human approval, the operator changes the decision to `Approved`
|
|
29
|
+
and hands off this exact revision. Record requests for changes or clarification
|
|
30
|
+
here while the plan is pending. Reset the decision to `Pending` after a material
|
|
31
|
+
revision and seek approval again.
|