opencode-skills-deck 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/index.js +20015 -0
- package/dist/index.js.map +7 -0
- package/dist/tui.js +22147 -0
- package/dist/tui.js.map +7 -0
- package/package.json +67 -4
- package/resources/skills/LICENSE +21 -0
- package/resources/skills/SOURCE.json +6 -0
- package/resources/skills/VERSION +1 -0
- package/resources/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/resources/skills/domain-modeling/GLOSSARY-FORMAT.md +60 -0
- package/resources/skills/domain-modeling/SKILL.md +75 -0
- package/resources/skills/domain-modeling/SKILL.zh.md +75 -0
- package/resources/skills/domain-modeling/agents/openai.yaml +3 -0
- package/resources/skills/grill-with-docs/SKILL.md +8 -0
- package/resources/skills/grill-with-docs/SKILL.zh.md +8 -0
- package/resources/skills/grill-with-docs/agents/openai.yaml +5 -0
- package/resources/skills/grilling/SKILL.md +29 -0
- package/resources/skills/grilling/SKILL.zh.md +29 -0
- package/resources/skills/grilling/agents/openai.yaml +3 -0
- package/resources/skills/wayfinder/SKILL.md +129 -0
- package/resources/skills/wayfinder/SKILL.zh.md +129 -0
- package/resources/skills/wayfinder/agents/openai.yaml +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-skills-deck",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Control Tower for OpenCode: dispatch GitHub issues to worktrees and watch child sessions",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "ynxnty",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ynxnty/opencode-skills-deck.git",
|
|
10
|
+
"directory": "packages/plugin"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/ynxnty/opencode-skills-deck#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ynxnty/opencode-skills-deck/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"opencode",
|
|
18
|
+
"opencode-plugin",
|
|
19
|
+
"skills",
|
|
20
|
+
"worktree",
|
|
21
|
+
"github-issues",
|
|
22
|
+
"tui",
|
|
23
|
+
"control-tower"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./dist/index.js",
|
|
31
|
+
"./tui": "./dist/tui.js"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"resources"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "node ../../scripts/build.mjs",
|
|
39
|
+
"prepack": "node ../../scripts/build.mjs"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@opencode/plugin": "^2.3.0",
|
|
43
|
+
"@opentui/core": ">=0.6.6",
|
|
44
|
+
"@opentui/solid": ">=0.6.6",
|
|
45
|
+
"solid-js": ">=1.9.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"@opencode/plugin": {
|
|
49
|
+
"optional": true
|
|
50
|
+
},
|
|
51
|
+
"@opentui/core": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@opentui/solid": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"solid-js": {
|
|
58
|
+
"optional": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@opencode-skills-deck/core": "workspace:*",
|
|
63
|
+
"@opencode/plugin": "^2.3.0",
|
|
64
|
+
"solid-js": "^1.9.19"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=22"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "https://github.com/mattpocock/skills",
|
|
3
|
+
"tag": "v1.3.1",
|
|
4
|
+
"skills": ["grill-with-docs", "grilling", "domain-modeling", "wayfinder"],
|
|
5
|
+
"note": "Bundled so the Control Tower buttons work out of the box. Installed into ~/.config/opencode/skills only when missing."
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v1.3.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# ADR Format
|
|
2
|
+
|
|
3
|
+
ADRs live in `docs/adr/` and use sequential numbering: `0001-slug.md`, `0002-slug.md`, etc.
|
|
4
|
+
|
|
5
|
+
Create the `docs/adr/` directory lazily: only when the first ADR is needed.
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```md
|
|
10
|
+
# {Short title of the decision}
|
|
11
|
+
|
|
12
|
+
{1-3 sentences: what's the context, what did we decide, and why.}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
That's it. An ADR can be a single paragraph. The value is in recording _that_ a decision was made and _why_, not in filling out sections.
|
|
16
|
+
|
|
17
|
+
## Optional sections
|
|
18
|
+
|
|
19
|
+
Only include these when they add genuine value. Most ADRs won't need them.
|
|
20
|
+
|
|
21
|
+
- **Status** frontmatter (`proposed | accepted | deprecated | superseded by ADR-NNNN`): useful when decisions are revisited
|
|
22
|
+
- **Considered Options**: only when the rejected alternatives are worth remembering
|
|
23
|
+
- **Consequences**: only when non-obvious downstream effects need to be called out
|
|
24
|
+
|
|
25
|
+
## Numbering
|
|
26
|
+
|
|
27
|
+
Scan `docs/adr/` for the highest existing number and increment by one.
|
|
28
|
+
|
|
29
|
+
## When to offer an ADR
|
|
30
|
+
|
|
31
|
+
All three of these must be true:
|
|
32
|
+
|
|
33
|
+
1. **Hard to reverse**: the cost of changing your mind later is meaningful
|
|
34
|
+
2. **Surprising without context**: a future reader will look at the code and wonder "why on earth did they do it this way?"
|
|
35
|
+
3. **The result of a real trade-off**: there were genuine alternatives and you picked one for specific reasons
|
|
36
|
+
|
|
37
|
+
If a decision is easy to reverse, skip it: you'll just reverse it. If it's not surprising, nobody will wonder why. If there was no real alternative, there's nothing to record beyond "we did the obvious thing."
|
|
38
|
+
|
|
39
|
+
### What qualifies
|
|
40
|
+
|
|
41
|
+
- **Architectural shape.** "We're using a monorepo." "The write model is event-sourced, the read model is projected into Postgres."
|
|
42
|
+
- **Integration patterns between contexts.** "Ordering and Billing communicate via domain events, not synchronous HTTP."
|
|
43
|
+
- **Technology choices that carry lock-in.** Database, message bus, auth provider, deployment target. Not every library: just the ones that would take a quarter to swap out.
|
|
44
|
+
- **Boundary and scope decisions.** "Customer data is owned by the Customer context; other contexts reference it by ID only." The explicit no-s are as valuable as the yes-s.
|
|
45
|
+
- **Deliberate deviations from the obvious path.** "We're using manual SQL instead of an ORM because X." Anything where a reasonable reader would assume the opposite. These stop the next engineer from "fixing" something that was deliberate.
|
|
46
|
+
- **Constraints not visible in the code.** "We can't use AWS because of compliance requirements." "Response times must be under 200ms because of the partner API contract."
|
|
47
|
+
- **Rejected alternatives when the rejection is non-obvious.** If you considered GraphQL and picked REST for subtle reasons, record it; otherwise someone will suggest GraphQL again in six months.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# GLOSSARY.md Format
|
|
2
|
+
|
|
3
|
+
## Structure
|
|
4
|
+
|
|
5
|
+
```md
|
|
6
|
+
# {Context Name}
|
|
7
|
+
|
|
8
|
+
{One or two sentence description of what this context is and why it exists.}
|
|
9
|
+
|
|
10
|
+
## Language
|
|
11
|
+
|
|
12
|
+
**Order**:
|
|
13
|
+
{A one or two sentence description of the term}
|
|
14
|
+
_Avoid_: Purchase, transaction
|
|
15
|
+
|
|
16
|
+
**Invoice**:
|
|
17
|
+
A request for payment sent to a customer after delivery.
|
|
18
|
+
_Avoid_: Bill, payment request
|
|
19
|
+
|
|
20
|
+
**Customer**:
|
|
21
|
+
A person or organization that places orders.
|
|
22
|
+
_Avoid_: Client, buyer, account
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Rules
|
|
26
|
+
|
|
27
|
+
- **Be opinionated.** When multiple words exist for the same concept, pick the best one and list the others under `_Avoid_`.
|
|
28
|
+
- **Keep definitions tight.** One or two sentences max. Define what it IS, not what it does.
|
|
29
|
+
- **Only include terms specific to this project's context.** General programming concepts (timeouts, error types, utility patterns) don't belong even if the project uses them extensively. Before adding a term, ask: is this a concept unique to this context, or a general programming concept? Only the former belongs.
|
|
30
|
+
- **Group terms under subheadings** when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.
|
|
31
|
+
|
|
32
|
+
## Single vs multi-context repos
|
|
33
|
+
|
|
34
|
+
**Single context (most repos):** One `GLOSSARY.md` at the repo root.
|
|
35
|
+
|
|
36
|
+
**Multiple contexts:** A `GLOSSARY-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
|
|
37
|
+
|
|
38
|
+
```md
|
|
39
|
+
# Glossary Map
|
|
40
|
+
|
|
41
|
+
## Contexts
|
|
42
|
+
|
|
43
|
+
- [Ordering](./src/ordering/GLOSSARY.md): receives and tracks customer orders
|
|
44
|
+
- [Billing](./src/billing/GLOSSARY.md): generates invoices and processes payments
|
|
45
|
+
- [Fulfillment](./src/fulfillment/GLOSSARY.md): manages warehouse picking and shipping
|
|
46
|
+
|
|
47
|
+
## Relationships
|
|
48
|
+
|
|
49
|
+
- **Ordering → Fulfillment**: Ordering emits `OrderPlaced` events; Fulfillment consumes them to start picking
|
|
50
|
+
- **Fulfillment → Billing**: Fulfillment emits `ShipmentDispatched` events; Billing consumes them to generate invoices
|
|
51
|
+
- **Ordering ↔ Billing**: Shared types for `CustomerId` and `Money`
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The skill infers which structure applies:
|
|
55
|
+
|
|
56
|
+
- If `GLOSSARY-MAP.md` exists, read it to find contexts
|
|
57
|
+
- If only a root `GLOSSARY.md` exists, single context
|
|
58
|
+
- If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved
|
|
59
|
+
|
|
60
|
+
When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: domain-modeling
|
|
4
|
+
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Domain Modeling
|
|
8
|
+
|
|
9
|
+
Actively build and sharpen the project's domain model as you design. This is the _active_ discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely _reading_ `GLOSSARY.md` for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
|
|
10
|
+
|
|
11
|
+
## File structure
|
|
12
|
+
|
|
13
|
+
Most repos have a single context:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
/
|
|
17
|
+
├── GLOSSARY.md
|
|
18
|
+
├── docs/
|
|
19
|
+
│ └── adr/
|
|
20
|
+
│ ├── 0001-event-sourced-orders.md
|
|
21
|
+
│ └── 0002-postgres-for-write-model.md
|
|
22
|
+
└── src/
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If a `GLOSSARY-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
/
|
|
29
|
+
├── GLOSSARY-MAP.md
|
|
30
|
+
├── docs/
|
|
31
|
+
│ └── adr/ ← system-wide decisions
|
|
32
|
+
├── src/
|
|
33
|
+
│ ├── ordering/
|
|
34
|
+
│ │ ├── GLOSSARY.md
|
|
35
|
+
│ │ └── docs/adr/ ← context-specific decisions
|
|
36
|
+
│ └── billing/
|
|
37
|
+
│ ├── GLOSSARY.md
|
|
38
|
+
│ └── docs/adr/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Create files lazily: only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
|
|
42
|
+
|
|
43
|
+
## During the session
|
|
44
|
+
|
|
45
|
+
### Challenge against the glossary
|
|
46
|
+
|
|
47
|
+
When the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"
|
|
48
|
+
|
|
49
|
+
### Sharpen fuzzy language
|
|
50
|
+
|
|
51
|
+
When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account': do you mean the Customer or the User? Those are different things."
|
|
52
|
+
|
|
53
|
+
### Discuss concrete scenarios
|
|
54
|
+
|
|
55
|
+
When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.
|
|
56
|
+
|
|
57
|
+
### Cross-reference with code
|
|
58
|
+
|
|
59
|
+
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?"
|
|
60
|
+
|
|
61
|
+
### Update GLOSSARY.md inline
|
|
62
|
+
|
|
63
|
+
When a term is resolved, update `GLOSSARY.md` right there. Don't batch these up: capture them as they happen. Use the format in [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md).
|
|
64
|
+
|
|
65
|
+
`GLOSSARY.md` should be totally devoid of implementation details. Do not treat `GLOSSARY.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
|
|
66
|
+
|
|
67
|
+
### Offer ADRs sparingly
|
|
68
|
+
|
|
69
|
+
Only offer to create an ADR when all three are true:
|
|
70
|
+
|
|
71
|
+
1. **Hard to reverse**: the cost of changing your mind later is meaningful
|
|
72
|
+
2. **Surprising without context**: a future reader will wonder "why did they do it this way?"
|
|
73
|
+
3. **The result of a real trade-off**: there were genuine alternatives and you picked one for specific reasons
|
|
74
|
+
|
|
75
|
+
If any of the three is missing, skip the ADR. Use the format in [ADR-FORMAT.md](./ADR-FORMAT.md).
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: domain-modeling
|
|
4
|
+
description: 构建并打磨项目的领域模型。当讨论代码库术语、编写或修改 GLOSSARY.md、记录或修改 ADR 时使用。
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 领域建模
|
|
8
|
+
|
|
9
|
+
在设计的过程中主动构建并打磨项目的领域模型。这是一门*主动*的功夫:质疑术语、编造边界场景,并在术语与决策一旦成形的当下就把词汇表和决策写下来。(仅仅为了查词而*阅读* `GLOSSARY.md` 不算这项技能:那是一行字的习惯,任何技能都能做。这项技能用在你要改变模型的时候,而不只是消费模型的时候。)
|
|
10
|
+
|
|
11
|
+
## 文件结构
|
|
12
|
+
|
|
13
|
+
大多数仓库只有一个上下文:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
/
|
|
17
|
+
├── GLOSSARY.md
|
|
18
|
+
├── docs/
|
|
19
|
+
│ └── adr/
|
|
20
|
+
│ ├── 0001-event-sourced-orders.md
|
|
21
|
+
│ └── 0002-postgres-for-write-model.md
|
|
22
|
+
└── src/
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
如果根目录下存在 `GLOSSARY-MAP.md`,说明这个仓库有多个上下文。这张地图会指出每个上下文各自住在哪里:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
/
|
|
29
|
+
├── GLOSSARY-MAP.md
|
|
30
|
+
├── docs/
|
|
31
|
+
│ └── adr/ ← system-wide decisions
|
|
32
|
+
├── src/
|
|
33
|
+
│ ├── ordering/
|
|
34
|
+
│ │ ├── GLOSSARY.md
|
|
35
|
+
│ │ └── docs/adr/ ← context-specific decisions
|
|
36
|
+
│ └── billing/
|
|
37
|
+
│ ├── GLOSSARY.md
|
|
38
|
+
│ └── docs/adr/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
按需创建文件:只在真的有东西要写的时候才建。如果还没有 `GLOSSARY.md`,就在第一个术语定下来时创建它。如果还没有 `docs/adr/`,就在需要第一条 ADR 时创建它。
|
|
42
|
+
|
|
43
|
+
## 会话期间
|
|
44
|
+
|
|
45
|
+
### 对照词汇表提出质疑
|
|
46
|
+
|
|
47
|
+
当用户使用的术语与 `GLOSSARY.md` 里既有的说法冲突时,立刻指出来。“你的词汇表把 'cancellation' 定义为 X,但你似乎想说的是 Y。到底是哪一个?”
|
|
48
|
+
|
|
49
|
+
### 打磨含糊的说法
|
|
50
|
+
|
|
51
|
+
当用户使用含糊或一词多义的词时,提出一个精确的规范术语。“你在说 'account':你指的是 Customer 还是 User?这是两回事。”
|
|
52
|
+
|
|
53
|
+
### 讨论具体场景
|
|
54
|
+
|
|
55
|
+
当讨论到领域关系时,用具体的场景给它们做压力测试。编造一些探边界情况的场景,逼用户把概念之间的界线说清楚。
|
|
56
|
+
|
|
57
|
+
### 与代码交叉核对
|
|
58
|
+
|
|
59
|
+
当用户说明某件事是怎么运作的,去核对代码是否同意。如果你发现矛盾,就把它摆出来:“你的代码会取消整张 Order,但你刚说部分取消是可能的。哪个才对?”
|
|
60
|
+
|
|
61
|
+
### 就地更新 GLOSSARY.md
|
|
62
|
+
|
|
63
|
+
当一个术语定下来时,就在当场更新 `GLOSSARY.md`。不要攒着一起改:事情发生的时候就记下来。使用 [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md) 里的格式。
|
|
64
|
+
|
|
65
|
+
`GLOSSARY.md` 里应当完全没有实现细节。不要把 `GLOSSARY.md` 当成规格、草稿纸,或实现决策的存放处。它是词汇表,仅此而已。
|
|
66
|
+
|
|
67
|
+
### 谨慎地提议写 ADR
|
|
68
|
+
|
|
69
|
+
只有当以下三条同时成立时,才提议创建 ADR:
|
|
70
|
+
|
|
71
|
+
1. **难以逆转**:日后改变主意的代价不小
|
|
72
|
+
2. **没有上下文会让人意外**:未来的读者会琢磨“他们当初为什么这么做?”
|
|
73
|
+
3. **真正权衡后的结果**:当时确实有别的选项,而你出于具体理由选了其中一个
|
|
74
|
+
|
|
75
|
+
三条里缺任何一条,就跳过 ADR。使用 [ADR-FORMAT.md](./ADR-FORMAT.md) 里的格式。
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: grilling
|
|
4
|
+
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.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
Format a round like so:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
15
|
+
|
|
16
|
+
➡️ <your recommended answer>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
21
|
+
|
|
22
|
+
➡️ <your recommended answer>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
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,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: grilling
|
|
4
|
+
description: 就某个方案、决定或想法不留情面地盘问用户。当用户想对自己的思路做压力测试,或使用了任何 'grill' 触发短语时使用。
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
不停地访谈用户,直到双方达成共识。把这画成一棵**设计树**:每一个决定都会分叉出挂在它下面的一串决定。
|
|
8
|
+
|
|
9
|
+
按**轮次**推进这棵树。**前沿**是那些前置条件都已经定下来的决定:也就是你_现在_就能问、不必去猜还没听到的答案的那些问题。一轮里把整个前沿都问完:给每个问题编号,并给出你推荐的答案。然后等用户回答,再进入下一轮。
|
|
10
|
+
|
|
11
|
+
一轮的格式如下:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
15
|
+
|
|
16
|
+
➡️ <your recommended answer>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
21
|
+
|
|
22
|
+
➡️ <your recommended answer>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
用户每一轮的回答都会重塑这棵树:已经定下来的决定把前沿向外推,并解锁那些依赖它们的问题。重新算出前沿,问出下一轮。如果某个问题的答案取决于本轮仍未闭合的另一个问题,那它属于_更晚_的某一轮,而不是这一轮。
|
|
26
|
+
|
|
27
|
+
找_事实_是你的活,永远不是用户的活。当前沿上的问题需要从环境(文件系统、工具等)里拿到某个事实时,派一个子代理去找;凡是自己能查到的,就不要问用户。不要因此卡住:正在跑的探查就是一个还没定的前置条件,所以只有它下游的那些问题需要等子代理回报;前沿上其余的问题现在就问。\_决定_是用户的:把每一个都摆到用户面前,然后等。
|
|
28
|
+
|
|
29
|
+
当前沿清空时,这次会话就结束了:设计树的每个分支都走过了,没有任何东西被默默地当成前提。在用户确认你们已经达成共识之前,不要照着它动手。
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
name: wayfinder
|
|
4
|
+
description: Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
A loose idea has arrived, too big for one agent session, and wrapped in fog: the way from here to the **destination** isn't visible yet. Wayfinding is about finding that way, not charging at the destination. This skill charts the way as a **shared map** on the repo's issue tracker, then works its **decision tickets** (questions whose resolution is a decision, not slices of a build to execute) one at a time until the route is clear.
|
|
9
|
+
|
|
10
|
+
The destination varies per effort, and naming it is the first act of charting: it shapes every ticket. It might be a spec to hand off and iterate on, a decision to lock before planning starts, or a change made in place like a data-structure migration. The map is domain-agnostic: engineering work, course content, whatever fits the shape.
|
|
11
|
+
|
|
12
|
+
## Plan, don't do
|
|
13
|
+
|
|
14
|
+
Wayfinder is **planning** by default: each ticket resolves a decision, and the map is done when the way is clear, with nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its **Notes**, carrying execution into the map itself, but absent that, produce decisions, not deliverables.
|
|
15
|
+
|
|
16
|
+
## Refer by name
|
|
17
|
+
|
|
18
|
+
Every map and ticket is an issue, so it has a **name**: its title. In everything the human reads (narration, the map's Decisions-so-far), refer to it by that name, never by a bare id, number, or slug. A wall of `#42, #43, #44` is illegible; names read at a glance. The id and URL don't vanish; a name wraps its link, but they ride _inside_ the name, never stand in for it.
|
|
19
|
+
|
|
20
|
+
## The Map
|
|
21
|
+
|
|
22
|
+
The map is a single issue on this repo's issue tracker, labelled `wayfinder:map`, the canonical artifact. Its tickets are child issues of the map.
|
|
23
|
+
|
|
24
|
+
The map is an **index**, not a store. It lists the decisions made and points at the tickets that hold their detail; a decision lives in exactly one place, its ticket, so the map never restates it, only gists it and links.
|
|
25
|
+
|
|
26
|
+
**Where the map, its child tickets, blocking, and frontier queries physically live is tracker-specific.** The issue tracker should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`. Consult the tracker doc's "Wayfinding operations" section for how _this_ repo expresses them. If no tracker has been provided, default to the local-markdown tracker.
|
|
27
|
+
|
|
28
|
+
### The map body
|
|
29
|
+
|
|
30
|
+
The whole map at low resolution, loaded once per session. Open tickets are **not** listed: they are open child issues, found by query.
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
## Destination
|
|
34
|
+
|
|
35
|
+
<what reaching the end of this map looks like: the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
|
|
36
|
+
|
|
37
|
+
## Notes
|
|
38
|
+
|
|
39
|
+
<domain; skills every session should consult; standing preferences for this effort>
|
|
40
|
+
|
|
41
|
+
## Decisions so far
|
|
42
|
+
|
|
43
|
+
<!-- the index: one line per closed ticket, enough to judge relevance, then zoom the link for the detail the ticket holds -->
|
|
44
|
+
|
|
45
|
+
- [<closed ticket title>](link): <one-line gist of the answer>
|
|
46
|
+
|
|
47
|
+
## Not yet specified
|
|
48
|
+
|
|
49
|
+
<!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
|
|
50
|
+
|
|
51
|
+
## Out of scope
|
|
52
|
+
|
|
53
|
+
<!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Tickets
|
|
57
|
+
|
|
58
|
+
Each ticket is a **child issue** of the map; the tracker's issue id is its identity. Its body is the question, sized to one 100K token agent session:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Question
|
|
62
|
+
|
|
63
|
+
<the decision or investigation this ticket resolves>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Each ticket carries a `wayfinder:<type>` label, one of `research`, `prototype`, `grilling`, `task` (see [Ticket Types](#ticket-types)).
|
|
67
|
+
|
|
68
|
+
A session **claims** a ticket by assigning it to the dev driving the map, **first**, before any work, so concurrent sessions skip it. That assignee _is_ the claim: an open, unassigned ticket is unclaimed.
|
|
69
|
+
|
|
70
|
+
Blocking uses the tracker's **native** dependency relationship: essential because it renders the frontier _visually_ in the tracker's own UI, so the human sees what's takeable without opening the map. Only a tracker that lacks native blocking falls back to a body convention. A ticket is **unblocked** when every ticket blocking it is closed; the **frontier** is the open, unblocked, unclaimed children, the edge of the known.
|
|
71
|
+
|
|
72
|
+
The answer isn't part of the body; it's recorded on resolution (see [Work through the map](#work-through-the-map)). Assets created while resolving a ticket are linked from the issue, not pasted in.
|
|
73
|
+
|
|
74
|
+
## Ticket Types
|
|
75
|
+
|
|
76
|
+
Every ticket is either **HITL** (human in the loop, worked _with_ a human who speaks for themselves) or **AFK**, driven by the agent alone. A HITL ticket only resolves through that live exchange; the agent never stands in for the human's side of it (a grilling agent that answers its own questions has broken this).
|
|
77
|
+
|
|
78
|
+
- **Research** (AFK): Reading documentation, third-party APIs, or local resources like knowledge bases to surface a fact a decision waits on. Resolved by a subagent that calls the Skill tool with "research". Use when knowledge outside the current working directory is required.
|
|
79
|
+
- **Prototype** (HITL): Raise the fidelity of the discussion by making a cheap, rough, concrete artifact to react to (an outline, a rough take, a stub, or UI/logic code) by calling the Skill tool with "prototype". Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
|
|
80
|
+
- **Grilling** (HITL): Conversation. The default case. Always call the Skill tool twice, for "grilling" and "domain-modeling".
|
|
81
|
+
- **Task** (HITL or AFK): Manual work that must happen before a _decision_ can be made: nothing to decide, prototype, or research, but the discussion is blocked until it's done. Signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. This is the one type that _does_ rather than decides, and it earns its place by unblocking a decision, not by delivering the destination. The agent drives it alone where it can (AFK); otherwise it hands the human a precise checklist (HITL). Resolved when the work is done; the answer records what was done and any resulting facts (credentials location, new URLs, row counts) later tickets depend on.
|
|
82
|
+
|
|
83
|
+
## Fog of war
|
|
84
|
+
|
|
85
|
+
The map is _deliberately_ incomplete: don't chart what you can't yet see. Beyond the live tickets lies the **fog of war**: the dim view of decisions and investigations you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets, one at a time, until the way to the destination is clear and no tickets remain.
|
|
86
|
+
|
|
87
|
+
The map's **Not yet specified** section is where that dim view is written down: the suspected question, the area to revisit later. It's the undiscovered frontier _toward_ the destination: everything here is in scope, just not sharp enough to ticket. Write as loosely or as fully as the view allows; it doubles as a signpost for collaborators reading where the effort is headed.
|
|
88
|
+
|
|
89
|
+
**Fog or ticket?** The test is whether you can state the question precisely now, _not_ whether you can answer it now.
|
|
90
|
+
|
|
91
|
+
- **Ticket when** the question is already sharp, even if it's blocked and you can't act on it yet.
|
|
92
|
+
- **Not yet specified when** you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: it's coarser than a ticket, and one patch may graduate into several tickets, or none, once the frontier reaches it.
|
|
93
|
+
|
|
94
|
+
**Not yet specified** excludes what's already decided (Decisions so far), what's already a live ticket, and what's out of scope (the next section).
|
|
95
|
+
|
|
96
|
+
## Out of scope
|
|
97
|
+
|
|
98
|
+
Fog only ever gathers _toward_ the destination. The destination fixes the scope, so work beyond it is **out of scope**: it isn't fog, and it doesn't belong in **Not yet specified**. It gets its own **Out of scope** section on the map: work you've consciously ruled out of _this_ effort. Scope, not sharpness, lands it here.
|
|
99
|
+
|
|
100
|
+
Out-of-scope work never graduates (the frontier stops at the destination), so it returns only if the destination is redrawn, and then as a fresh effort, not a resumption.
|
|
101
|
+
|
|
102
|
+
Ruling something out of scope is a scoping act, not a step on the route. When a ticket that already exists turns out to sit past the destination (mis-scoped in while charting, or exposed by a resolution), **close it** (a closed ticket is unambiguously off the frontier) and leave one line in the **Out of scope** section: the gist plus why it's out of scope, linking the closed ticket. It stays out of **Decisions so far**, which records the route actually walked; a scope boundary isn't a step on it.
|
|
103
|
+
|
|
104
|
+
## Invocation
|
|
105
|
+
|
|
106
|
+
Two modes. Either way, **never resolve more than one ticket per session**, with the exception of research tickets.
|
|
107
|
+
|
|
108
|
+
### Chart the map
|
|
109
|
+
|
|
110
|
+
User invokes with a loose idea.
|
|
111
|
+
|
|
112
|
+
1. **Name the destination.** Call the Skill tool twice, for "grilling" and "domain-modeling", to pin down what this map is finding its way to: the spec, decision, or change. The destination fixes the scope, so it's settled first.
|
|
113
|
+
2. **Map the frontier.** Grill again, **breadth-first** this time: fan out across the whole space rather than deep on any one thread, surfacing the open decisions and the first steps takeable now. **If this surfaces no fog** (the way to the destination is already clear, the whole journey small enough for one session), you don't need a map. Stop and ask the user how they'd like to proceed.
|
|
114
|
+
3. **Create the map** (label `wayfinder:map`): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into **Not yet specified**.
|
|
115
|
+
4. **Create the tickets you can specify now** as child issues of the map, then wire blocking edges in a **second pass** (issues need ids before they can reference each other). Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog: the **Not yet specified** section.
|
|
116
|
+
5. **Fire the research subagents.** For each `research` ticket you just created, spin up a subagent that calls the Skill tool with "research" to resolve it in parallel, capturing its findings on a throwaway `research/<name>` branch with a context pointer from the ticket.
|
|
117
|
+
6. Stop: charting is one session's work; it hand-resolves nothing.
|
|
118
|
+
|
|
119
|
+
### Work through the map
|
|
120
|
+
|
|
121
|
+
User invokes with a map (URL or number). A ticket is **optional**: without one, you pick the next decision, not the user.
|
|
122
|
+
|
|
123
|
+
1. Load the **map**: the low-res view, not every ticket body.
|
|
124
|
+
2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in order. **Claim it**: assign it to yourself before any work.
|
|
125
|
+
3. Resolve it. **Zoom as needed**: fetch the full body of any related or closed ticket on demand; call the Skill tool for whichever skills the `## Notes` block names. If in doubt, call the Skill tool twice, for "grilling" and "domain-modeling".
|
|
126
|
+
4. Record the resolution: post the answer as a **resolution comment**, **close** the issue, and **append a context pointer** to the map's Decisions-so-far.
|
|
127
|
+
5. Add newly-surfaced tickets (create-then-wire); graduate any fog the answer has made specifiable, clearing each graduated patch from **Not yet specified** so it lives only as its new ticket. If the answer reveals that a ticket (this one or another) sits beyond the destination, **rule it out of scope** rather than resolving it on the route. If the decision invalidates other parts of the map, update or delete those tickets.
|
|
128
|
+
|
|
129
|
+
The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.
|