claude-everything-workflow 0.2.14 → 0.2.16
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/icon.png +0 -0
- package/.codex-plugin/plugin.json +3 -1
- package/AGENTS.md +13 -23
- package/commands/pr.md +1 -1
- package/evals/routing-scenarios.json +19 -19
- package/harness/manifest.json +0 -52
- package/package.json +1 -1
- package/rules/common/testing.md +2 -8
- package/scripts/install-antigravity.js +36 -1
- package/scripts/retired-skill-files.json +25 -0
- package/scripts/upstream-capability-map.json +16 -13
- package/scripts/verify/install-rules.test.js +23 -2
- package/scripts/verify/skill-invocation.test.js +14 -2
- package/scripts/verify/workflow-checks.js +9 -14
- package/skills/README.md +2 -6
- package/skills/code-review/SKILL.md +1 -1
- package/skills/codebase-design/SKILL.md +7 -1
- package/skills/feature-acceptance/references/e2e-testing.md +8 -2
- package/skills/grilling/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +2 -2
- package/skills/implement/SKILL.md +3 -2
- package/skills/resolving-merge-conflicts/SKILL.md +1 -1
- package/skills/spec-gate/SKILL.md +1 -1
- package/skills/systematic-debugging/SKILL.md +1 -1
- package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +1 -1
- package/skills/test-driven-development/SKILL.md +1 -1
- package/skills/to-tickets/SKILL.md +1 -1
- package/skills/triage/SKILL.md +2 -2
- package/skills/using-superpowers/SKILL.md +5 -6
- package/skills/using-superpowers/references/process-outcomes.md +1 -1
- package/skills/domain-modeling/SKILL.md +0 -103
- package/skills/improve-codebase-architecture/SKILL.md +0 -47
- package/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/skills/prototype/SKILL.md +0 -50
- package/skills/prototype/references/logic.md +0 -28
- package/skills/prototype/references/ui.md +0 -30
- package/skills/visual-companion/SKILL.md +0 -62
- package/skills/visual-companion/agents/openai.yaml +0 -4
- package/skills/visual-companion/references/guide.md +0 -298
- package/skills/visual-companion/scripts/frame-template.html +0 -243
- package/skills/visual-companion/scripts/helper.js +0 -167
- package/skills/visual-companion/scripts/pages.cjs +0 -28
- package/skills/visual-companion/scripts/server-utils.cjs +0 -82
- package/skills/visual-companion/scripts/server.cjs +0 -583
- package/skills/visual-companion/scripts/start-server.sh +0 -223
- package/skills/visual-companion/scripts/stop-server.sh +0 -120
- package/skills/visual-companion/scripts/websocket.cjs +0 -86
package/skills/handoff/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: handoff
|
|
3
|
-
description: Create
|
|
3
|
+
description: Create redacted handoff doc for an explicit fresh session.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Handoff
|
|
@@ -11,7 +11,7 @@ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's write-safety a
|
|
|
11
11
|
|
|
12
12
|
## Preconditions
|
|
13
13
|
|
|
14
|
-
- Use only for
|
|
14
|
+
- Use only for an explicitly requested fresh session. Built-in compaction is for continuing
|
|
15
15
|
the same conversation at a phase boundary.
|
|
16
16
|
- Create the handoff only when the user explicitly requests it or accepts a concrete handoff proposal.
|
|
17
17
|
Ordinary language, `/handoff`, and `$handoff` are valid requests; do not require repeated invocation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implement
|
|
3
|
-
description: Internal delivery
|
|
3
|
+
description: Internal delivery flow selected by using-superpowers.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -37,10 +37,11 @@ disable-model-invocation: true
|
|
|
37
37
|
`test-driven-development` 的垂直切片推进;纯文档或没有可测试行为的整理运行对应校验。
|
|
38
38
|
已确认失败原因正确的预期 TDD RED 继续 GREEN,不触发调试。其他失败按
|
|
39
39
|
`systematic-debugging` 的分级入口处理,不跳过真实失败。
|
|
40
|
-
2.
|
|
40
|
+
2. 跨模块、>=3 文件、高风险改动或已批准 Spec / ticket 交付:用 pre-delivery base 冻结包含 task-owned committed、staged、unstaged、untracked 的完整审查包,
|
|
41
41
|
范围合同作为 Spec source,按 `skills/code-review/SKILL.md` 启动独立只读子代理(`independent` 或 `dual`)完成审查;
|
|
42
42
|
实施者不得自我审查,独立审查不可用时返回 `BLOCKED`,不得降级。
|
|
43
43
|
修复 Critical/Important findings 后复核受影响的验收与审查项,不把部分完成报告为交付完成。
|
|
44
|
+
(1–2 文件低风险本地小修可先凭新鲜验证证据完成,提 PR 前仍须通过 `code-review` 独立审查。)
|
|
44
45
|
3. 逐条核对验收,按 `rules/common/testing.md` 运行 fresh commands。已在当前阶段运行且仍对应
|
|
45
46
|
最终改动的证据可以复用;新改动、失败或未决风险才触发重跑。记录实际结果、未运行项和剩余风险。
|
|
46
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: systematic-debugging
|
|
3
|
-
description: Diagnose bugs,
|
|
3
|
+
description: Diagnose bugs, flaky failures, slowness, and performance regressions.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Systematic Debugging
|
|
@@ -126,4 +126,4 @@ Required before declaring done:
|
|
|
126
126
|
- [ ] Throwaway prototypes deleted (or moved to a clearly-marked debug location)
|
|
127
127
|
- [ ] The hypothesis that turned out correct is stated in the commit / PR message — so the next debugger learns
|
|
128
128
|
|
|
129
|
-
**Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to
|
|
129
|
+
**Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to `skills/codebase-design/SKILL.md` with the specifics. Make the recommendation **after** the fix is in, not before — you have more information now than when you started.
|
package/skills/triage/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: triage
|
|
3
|
-
description:
|
|
3
|
+
description: "Explicit issue/PR triage: verify evidence, write agent brief."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Triage
|
|
@@ -33,7 +33,7 @@ Apply configured label strings rather than assuming canonical names.
|
|
|
33
33
|
## Decision Work
|
|
34
34
|
|
|
35
35
|
Use `skills/grilling/SKILL.md` only when a consequential maintainer decision is missing. Use
|
|
36
|
-
`skills/
|
|
36
|
+
`skills/spec-gate/SKILL.md` when terminology or ADR-worthy decisions change.
|
|
37
37
|
|
|
38
38
|
## Mutations
|
|
39
39
|
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-superpowers
|
|
3
|
-
description: Route engineering
|
|
3
|
+
description: Route non-trivial engineering workflows and resume outcomes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Using Superpowers
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
仅用于非琐碎工程交付(跨模块、高风险、排障、审查、Spec/多票)及显式工程工作流;普通问答、翻译、总结和资料检索直接处理。
|
|
9
9
|
优先级:用户指令 / `AGENTS.md` / `CLAUDE.md` / 项目 Rules > Skills / Commands / Agents / Hooks > 默认行为。
|
|
10
10
|
|
|
11
11
|
## 选路原则
|
|
12
12
|
|
|
13
|
-
- 选最短适用路径,只读当前阶段需要的 Skill
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- 需要多份规则或引用时同一轮并发读取,避免分轮串行拉长冷启动;低风险极小改动(1–2 文件、明确验收且无高风险边界)可直接按 `rules/01-base.md` 与 `rules/common/testing.md` 实施,仍须完成独立审查与验证。
|
|
13
|
+
- 选最短适用路径,只读当前阶段需要的 Skill,不预加载整条链路;多份规则或引用同轮并发读取。
|
|
14
|
+
- 明确、低风险的 1–2 文件小修(不涉及认证授权、持久化、公共契约或共享抽象)直接按核心红线与 `rules/common/testing.md` 实施,本地完成仅需新鲜测试证据;跨模块、>=3 文件、高风险及提 PR 前必须完成 `code-review` 独立审查。
|
|
15
|
+
- 显式请求专职能力(`grilling`、`feature-acceptance`、`handoff`、`triage`、`codebase-design`、`resolving-merge-conflicts`、`test-driven-development`、`code-review`)时按 `description` 直接命中;`handoff`、`triage` 仅在明确请求时使用。
|
|
17
16
|
|
|
18
17
|
## 三条交付通道
|
|
19
18
|
|
|
@@ -37,7 +37,7 @@ originating Skill to recommend a successor.
|
|
|
37
37
|
|
|
38
38
|
## Cross-session handoff
|
|
39
39
|
|
|
40
|
-
When
|
|
40
|
+
When the current context is leaving its reliable reasoning zone,
|
|
41
41
|
recommend a handoff and wait for the user's request or acceptance before creating the temporary
|
|
42
42
|
document. A clear natural-language request is sufficient; do not require command syntax.
|
|
43
43
|
The handoff ends the current flow; a fresh session references the returned path and enters the router.
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: domain-modeling
|
|
3
|
-
description: Model changes to business concepts, entities, states, relationships, invariants, or ownership; exclude ordinary refactors.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Domain Modeling
|
|
7
|
-
|
|
8
|
-
Make domain changes explicit without becoming a workflow gate or a second clarification engine.
|
|
9
|
-
|
|
10
|
-
## Boundary
|
|
11
|
-
|
|
12
|
-
Trigger only when the task introduces or changes at least one of:
|
|
13
|
-
|
|
14
|
-
- domain terms and their precise meanings;
|
|
15
|
-
- entities, value objects, or their relationships;
|
|
16
|
-
- invariants and ownership rules;
|
|
17
|
-
- lifecycle states or transitions;
|
|
18
|
-
- a bounded context or the contract between contexts.
|
|
19
|
-
|
|
20
|
-
Do not trigger for ordinary code complexity, a new module that reuses the existing model, or read-only use of established `CONTEXT.md` vocabulary.
|
|
21
|
-
|
|
22
|
-
## Inputs
|
|
23
|
-
|
|
24
|
-
Consume verified repository facts, an optional confirmed grilling handoff, the current approved or
|
|
25
|
-
draft Spec, and `docs/agent-workflow/project-context.md` when it exists. Do not ask the user for
|
|
26
|
-
discoverable facts and do not own consequential user decisions.
|
|
27
|
-
|
|
28
|
-
## Workflow
|
|
29
|
-
|
|
30
|
-
1. Extract existing terms, entities, invariants, states, owners, and context boundaries from code and documents.
|
|
31
|
-
2. Identify what the task adds, removes, renames, or transfers.
|
|
32
|
-
3. State ambiguous terms and contract conflicts without silently resolving user-owned choices.
|
|
33
|
-
4. Produce the smallest model needed for the task: glossary, relationship list, invariants, lifecycle, boundary map, and ADR recommendation when relevant.
|
|
34
|
-
5. Return the model to the currently routed Skill; do not select or invoke the next workflow Skill.
|
|
35
|
-
|
|
36
|
-
## Output
|
|
37
|
-
|
|
38
|
-
Use only the applicable parts:
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
Domain vocabulary:
|
|
42
|
-
- Term: definition
|
|
43
|
-
|
|
44
|
-
Entities and relationships:
|
|
45
|
-
- Entity/value object: ownership and relationship
|
|
46
|
-
|
|
47
|
-
Invariants:
|
|
48
|
-
- invariant and enforcement boundary
|
|
49
|
-
|
|
50
|
-
Lifecycle:
|
|
51
|
-
- state -> event -> next state
|
|
52
|
-
|
|
53
|
-
Bounded contexts:
|
|
54
|
-
- context: responsibility and external contract
|
|
55
|
-
|
|
56
|
-
ADR recommendations:
|
|
57
|
-
- decision that merits a durable record
|
|
58
|
-
|
|
59
|
-
Unresolved consequential decisions:
|
|
60
|
-
- stable decision subject and evidence
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
If an unresolved item changes product meaning, ownership, a public contract, persistence, or a high-cost boundary, return it to the current router/Spec Gate contract. Do not interview or choose for the user.
|
|
64
|
-
|
|
65
|
-
## Persistence Gate
|
|
66
|
-
|
|
67
|
-
Default mode keeps output in the active handoff or Spec. Do not modify tracked `CONTEXT.md`, ADRs,
|
|
68
|
-
schemas, or code merely because domain modeling triggered.
|
|
69
|
-
|
|
70
|
-
**Persistent documentation mode** is enabled only by an explicit documented grilling request or
|
|
71
|
-
direct user approval to maintain domain docs during the session. In that mode:
|
|
72
|
-
|
|
73
|
-
1. Use confirmed context and ADR locations from `docs/agent-workflow/project-context.md` when present,
|
|
74
|
-
otherwise from existing repository conventions or the user's confirmed request.
|
|
75
|
-
2. Reuse existing maintenance authorization for stable glossary edits within the approved paths and scope;
|
|
76
|
-
do not request per-term approval. Show the diff when reporting progress or completion.
|
|
77
|
-
3. If maintenance is not yet authorized, obtain approval before writing. New paths or scope, changes to
|
|
78
|
-
confirmed decisions, and unresolved consequential decisions require approval before the affected edit.
|
|
79
|
-
4. Offer an ADR only when the decision is hard to reverse, surprising without context and the result
|
|
80
|
-
of a real trade-off; show its path/content before writing.
|
|
81
|
-
5. Keep `CONTEXT.md` implementation-free and keep ADRs concise.
|
|
82
|
-
|
|
83
|
-
Outside that mode, persistence after an approved Spec remains a router-selected ticket or implementation task.
|
|
84
|
-
If project context is absent, do not invent a documentation layout.
|
|
85
|
-
|
|
86
|
-
### Glossary shape
|
|
87
|
-
|
|
88
|
-
- Define only project-specific domain terms in one or two sentences.
|
|
89
|
-
- Choose one canonical term and list misleading synonyms under `Avoid`.
|
|
90
|
-
- A single-context repository uses root `CONTEXT.md`; a real multi-context repository uses
|
|
91
|
-
`CONTEXT-MAP.md` pointing to context-local glossaries.
|
|
92
|
-
|
|
93
|
-
### ADR shape
|
|
94
|
-
|
|
95
|
-
- Use the configured ADR directory and the next sequential number.
|
|
96
|
-
- Lead with one short paragraph covering context, decision and reason.
|
|
97
|
-
- Add status, alternatives or consequences only when they carry durable information.
|
|
98
|
-
|
|
99
|
-
## Examples
|
|
100
|
-
|
|
101
|
-
- Adding a subscription entity with trial, active, suspended, and cancelled lifecycle states triggers this Skill.
|
|
102
|
-
- Renaming an internal helper while consuming unchanged billing vocabulary does not trigger it.
|
|
103
|
-
- Moving authorization ownership between bounded contexts triggers it and may surface a high-risk decision for Spec Gate.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: improve-codebase-architecture
|
|
3
|
-
description: Run an explicit read-only architecture-health audit and route selected findings to design or grilling.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Improve Codebase Architecture
|
|
7
|
-
|
|
8
|
-
Origin: `mattpocock/skills@2ab9580`, adapted to this repository's visual consent and routing gates.
|
|
9
|
-
|
|
10
|
-
## 1. Scope and Explore
|
|
11
|
-
|
|
12
|
-
Read `skills/codebase-design/SKILL.md`, relevant `CONTEXT.md`/`CONTEXT-MAP.md`, ADRs and project rules.
|
|
13
|
-
|
|
14
|
-
- Use the user-named subsystem when supplied.
|
|
15
|
-
- Otherwise inspect recent history for repeatedly changed areas before widening the scan.
|
|
16
|
-
- Look for shallow modules, duplicated caller policy, message chains, pass-through layers, leaked
|
|
17
|
-
ordering/error rules, and code that cannot be tested through a stable interface.
|
|
18
|
-
- Apply the deletion test and classify dependency types before recommending a new seam.
|
|
19
|
-
- Keep speculative candidates separate from evidence-backed friction.
|
|
20
|
-
|
|
21
|
-
## 2. Report
|
|
22
|
-
|
|
23
|
-
For each candidate include:
|
|
24
|
-
|
|
25
|
-
- files/modules and evidence;
|
|
26
|
-
- current interface and leaked complexity;
|
|
27
|
-
- proposed deepening direction, without committing to a final interface;
|
|
28
|
-
- expected leverage, locality and test-surface improvement;
|
|
29
|
-
- compatibility risk and recommendation strength: `Strong`, `Worth exploring` or `Speculative`;
|
|
30
|
-
- a before/after relationship diagram.
|
|
31
|
-
|
|
32
|
-
Prefer a compact Markdown report when visuals add little. When a visual report materially improves
|
|
33
|
-
understanding, use `skills/visual-companion/SKILL.md` and obtain its explicit consent before starting
|
|
34
|
-
the server or opening a URL. Never open a browser silently.
|
|
35
|
-
|
|
36
|
-
End with one top recommendation. Do not implement it.
|
|
37
|
-
|
|
38
|
-
## 3. Decision Loop
|
|
39
|
-
|
|
40
|
-
After the user chooses a candidate:
|
|
41
|
-
|
|
42
|
-
1. Use `skills/grilling/SKILL.md` for consequential choices.
|
|
43
|
-
2. Use `skills/domain-modeling/SKILL.md` when domain language or an ADR-worthy decision changes.
|
|
44
|
-
3. Use `skills/codebase-design/references/design-it-twice.md` when interface alternatives remain.
|
|
45
|
-
4. Return the resolved candidate to the central router for Spec/planning classification.
|
|
46
|
-
|
|
47
|
-
Do not turn an architecture audit into an unapproved refactor.
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: prototype
|
|
3
|
-
description: Build a throwaway runnable probe for one explicit design question; do not silently ship it.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Prototype
|
|
7
|
-
|
|
8
|
-
Origin: `mattpocock/skills@2ab9580`, adapted to reuse this repository's secured visual companion.
|
|
9
|
-
|
|
10
|
-
A prototype answers one question. It is not a production shortcut.
|
|
11
|
-
|
|
12
|
-
## Select the Branch
|
|
13
|
-
|
|
14
|
-
- Logic, state transition, data shape or API feel → read `references/logic.md`.
|
|
15
|
-
- Visual hierarchy, layout or interaction shape → read `references/ui.md` and
|
|
16
|
-
`skills/visual-companion/SKILL.md`.
|
|
17
|
-
|
|
18
|
-
If the branch is ambiguous and the user is unavailable, use surrounding code as evidence: backend
|
|
19
|
-
or state code defaults to logic; page/component work defaults to UI. State the assumption.
|
|
20
|
-
|
|
21
|
-
## Shared Contract
|
|
22
|
-
|
|
23
|
-
1. Write the exact question at the top of the prototype.
|
|
24
|
-
2. Place throwaway code near the relevant module or route and name it visibly as a prototype.
|
|
25
|
-
3. Reuse the project's runtime and task runner; provide one command to run.
|
|
26
|
-
4. Keep state in memory unless persistence itself is the question.
|
|
27
|
-
5. Skip production polish, broad error handling, abstractions and tests.
|
|
28
|
-
6. Surface full relevant state after every action or variant change.
|
|
29
|
-
7. Never connect UI variants to real mutations.
|
|
30
|
-
8. Capture the answer: decision, evidence and remaining uncertainty.
|
|
31
|
-
9. Promote only the validated decision. Rewrite production code under normal TDD and review gates.
|
|
32
|
-
|
|
33
|
-
Prototype creation is an authorized implementation step only when the user requested it. Commit,
|
|
34
|
-
branch, browser and external-system actions keep their own approval requirements.
|
|
35
|
-
|
|
36
|
-
## Exit
|
|
37
|
-
|
|
38
|
-
Return:
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
Prototype question:
|
|
42
|
-
Branch and run command/URL:
|
|
43
|
-
Observed answer:
|
|
44
|
-
Validated decision:
|
|
45
|
-
Discarded assumptions:
|
|
46
|
-
Prototype cleanup/capture status:
|
|
47
|
-
Next router input:
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Then return to `skills/using-superpowers/SKILL.md`. Do not silently continue into production code.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Logic Prototype
|
|
2
|
-
|
|
3
|
-
Build a tiny interactive terminal app for business logic, state transitions or data-shape questions.
|
|
4
|
-
|
|
5
|
-
## Shape
|
|
6
|
-
|
|
7
|
-
1. Isolate the logic behind a small pure interface:
|
|
8
|
-
- reducer `(state, action) -> state`;
|
|
9
|
-
- explicit state machine;
|
|
10
|
-
- pure transformations over plain data;
|
|
11
|
-
- stateful module only when ongoing internal state is the question.
|
|
12
|
-
2. Keep terminal I/O in a thin shell. The logic module must not print, prompt or depend on terminal
|
|
13
|
-
escape codes.
|
|
14
|
-
3. Render one stable frame after every action:
|
|
15
|
-
- full current state;
|
|
16
|
-
- legal actions and one-key/one-line controls;
|
|
17
|
-
- quit action.
|
|
18
|
-
4. Keep the whole frame visible on one screen.
|
|
19
|
-
5. Add one run command using the existing package manager or task runner.
|
|
20
|
-
|
|
21
|
-
## Boundaries
|
|
22
|
-
|
|
23
|
-
- Do not add tests to the prototype.
|
|
24
|
-
- Do not use the production database unless persistence is the explicit question; then use a clearly
|
|
25
|
-
disposable scratch store.
|
|
26
|
-
- Do not generalize beyond the one stated question.
|
|
27
|
-
- The TUI shell never ships. A validated pure model may inform production code, which must be rewritten
|
|
28
|
-
through the normal implementation workflow.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# UI Prototype
|
|
2
|
-
|
|
3
|
-
Build a runnable in-project UI prototype. Use `skills/visual-companion/SKILL.md` only when its secured
|
|
4
|
-
browser companion materially improves review; its consent and authentication contract remains binding.
|
|
5
|
-
|
|
6
|
-
## Variants
|
|
7
|
-
|
|
8
|
-
- Default to three and cap at five.
|
|
9
|
-
- Make variants structurally different: layout, information hierarchy and primary affordance, not
|
|
10
|
-
only color or copy.
|
|
11
|
-
- Prefer embedding variants in an existing page with real read-only data, params, authentication shell
|
|
12
|
-
and realistic density. Swap only the rendered subtree.
|
|
13
|
-
- Create a visibly throwaway route only when no existing surface can host the question.
|
|
14
|
-
- Select variants with a `?variant=` search parameter so each view is shareable and reload-stable.
|
|
15
|
-
- Use the project's existing component and styling system.
|
|
16
|
-
|
|
17
|
-
## Interaction
|
|
18
|
-
|
|
19
|
-
Provide a clearly non-production switcher that:
|
|
20
|
-
|
|
21
|
-
- identifies the current variant;
|
|
22
|
-
- moves forward/back with controls and arrow keys;
|
|
23
|
-
- does not intercept keys inside editable elements;
|
|
24
|
-
- is gated out of production builds.
|
|
25
|
-
|
|
26
|
-
Expose one existing project run command and the exact URLs for all variants. Do not start a local
|
|
27
|
-
server or open the browser without the active task's authorization/consent.
|
|
28
|
-
|
|
29
|
-
After a choice, record which variant won and why. Rewrite the winner under normal production gates;
|
|
30
|
-
remove the switcher and losing variants from the production path.
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: visual-companion
|
|
3
|
-
description: Use only with consent when a local visual companion materially improves a design decision.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Visual Companion
|
|
7
|
-
|
|
8
|
-
Use the browser as a visual aid, not as a workflow mode or a second requirements engine.
|
|
9
|
-
|
|
10
|
-
## Boundary
|
|
11
|
-
|
|
12
|
-
Use this Skill for UI mockups, architecture diagrams, visual hierarchy, spatial relationships, and side-by-side visual comparisons. Keep requirements, scope, technical trade-offs, text options, and discoverable facts in the terminal.
|
|
13
|
-
|
|
14
|
-
A task being visual, complex, or design-related is not sufficient. Use the companion only when seeing the content materially improves understanding over concise text.
|
|
15
|
-
|
|
16
|
-
## Consent Gate
|
|
17
|
-
|
|
18
|
-
Obtain explicit user consent before starting the local server or opening a browser URL. The consent request must state what will be shown and that a local authenticated URL will open.
|
|
19
|
-
|
|
20
|
-
Without user consent, continue with text or static in-conversation visuals. Do not treat prior use in another task as current consent.
|
|
21
|
-
|
|
22
|
-
## Ownership
|
|
23
|
-
|
|
24
|
-
- `grilling owns the decision loop` when browser feedback selects a consequential user-owned option.
|
|
25
|
-
- Spec Gate may show an already resolved design, support artifact review, or render a diagram with no new decision.
|
|
26
|
-
- Visual Companion does not own continuation, routing, requirements interviews, or approval gates.
|
|
27
|
-
- Return browser events and terminal feedback to the currently routed Skill.
|
|
28
|
-
|
|
29
|
-
## Workflow
|
|
30
|
-
|
|
31
|
-
1. Decide whether the next item is materially clearer when seen.
|
|
32
|
-
2. Obtain user consent if the server is not already approved for this task.
|
|
33
|
-
3. Read `references/guide.md` completely before starting or operating the companion.
|
|
34
|
-
4. Start the server with `scripts/start-server.sh`, preserving the returned complete URL and state paths.
|
|
35
|
-
5. Write one fresh visual screen, describe it briefly in the terminal, and wait for user feedback.
|
|
36
|
-
6. Merge terminal feedback with authenticated browser events.
|
|
37
|
-
7. Return the result to grilling, Spec Gate, or the current caller.
|
|
38
|
-
8. Stop or leave a waiting screen when visual work ends.
|
|
39
|
-
|
|
40
|
-
## Safety Invariants
|
|
41
|
-
|
|
42
|
-
- Always share the complete URL including `?key=`; never expose a bare host and port.
|
|
43
|
-
- Keep session key, HTTP/WebSocket authorization, restrictive response headers, owner-only state files, and same-origin checks enabled.
|
|
44
|
-
- Preserve the default four-hour idle timeout and same-port restart behavior.
|
|
45
|
-
- Do not bind a non-loopback host unless the user needs remote access and understands the exposure.
|
|
46
|
-
- Treat `.superpowers/brainstorm/` as local runtime state; do not stage or commit it.
|
|
47
|
-
- Fall back to the terminal when the server or browser is unavailable.
|
|
48
|
-
|
|
49
|
-
## Outputs
|
|
50
|
-
|
|
51
|
-
Return only:
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
Visual result:
|
|
55
|
-
- screen shown
|
|
56
|
-
- terminal feedback
|
|
57
|
-
- relevant browser events
|
|
58
|
-
- confirmed visual choice, if any
|
|
59
|
-
- unresolved decision owner
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Do not infer approval from a click without reconciling it with the user's terminal response.
|