@ia-ccun/code-agent-cli 0.0.59-beta.5 → 0.0.59-beta.6
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/config/agent/extensions/aicode-provider-scope.ts +388 -0
- package/config/agent/skills/agent-browser/LICENSE +201 -0
- package/config/agent/skills/agent-browser/SKILL.md +55 -0
- package/config/agent/skills/codebase-design/DEEPENING.md +37 -0
- package/config/agent/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
- package/config/agent/skills/{chroma → codebase-design}/LICENSE +1 -1
- package/config/agent/skills/codebase-design/SKILL.md +118 -0
- package/config/agent/skills/codebase-design/agents/openai.yaml +3 -0
- package/config/agent/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/config/agent/skills/domain-modeling/GLOSSARY-FORMAT.md +61 -0
- package/config/agent/skills/{fireworks-tech-graph → domain-modeling}/LICENSE +1 -1
- package/config/agent/skills/domain-modeling/SKILL.md +78 -0
- package/config/agent/skills/domain-modeling/agents/openai.yaml +3 -0
- package/config/agent/skills/frontend-design/SKILL.md +55 -26
- package/config/agent/skills/grill-with-docs/LICENSE +21 -0
- package/config/agent/skills/grill-with-docs/SKILL.md +21 -0
- package/config/agent/skills/grill-with-docs/agents/openai.yaml +5 -0
- package/config/agent/skills/grilling/LICENSE +21 -0
- package/config/agent/skills/grilling/SKILL.md +34 -0
- package/config/agent/skills/grilling/agents/openai.yaml +3 -0
- package/config/agent/skills/tdd/LICENSE +21 -0
- package/config/agent/skills/tdd/SKILL.md +42 -0
- package/config/agent/skills/tdd/agents/openai.yaml +3 -0
- package/config/agent/skills/tdd/mocking.md +59 -0
- package/config/agent/skills/tdd/tests.md +77 -0
- package/config/agent/skills/ui-taste/CHECKSUMS.sha256 +25 -0
- package/config/agent/skills/{milvus-skill → ui-taste}/LICENSE +12 -23
- package/config/agent/skills/ui-taste/MANIFEST.json +256 -0
- package/config/agent/skills/ui-taste/MODIFICATIONS.md +23 -0
- package/config/agent/skills/ui-taste/NOTICE +74 -0
- package/config/agent/skills/ui-taste/SKILL.md +90 -0
- package/config/agent/skills/ui-taste/agents/openai.yaml +4 -0
- package/config/agent/skills/ui-taste/reference/anti-slop-craft.md +138 -0
- package/config/agent/skills/ui-taste/reference/audit.md +71 -0
- package/config/agent/skills/ui-taste/reference/audit.native.md +78 -0
- package/config/agent/skills/ui-taste/reference/craft.md +48 -0
- package/config/agent/skills/ui-taste/reference/distill.md +20 -0
- package/config/agent/skills/ui-taste/reference/image-assets.md +31 -0
- package/config/agent/skills/ui-taste/reference/ios.md +35 -0
- package/config/agent/skills/ui-taste/reference/mobile-controls.md +37 -0
- package/config/agent/skills/ui-taste/reference/mobile-state-performance.md +34 -0
- package/config/agent/skills/ui-taste/reference/native-verification.md +33 -0
- package/config/agent/skills/ui-taste/reference/new-work.md +87 -0
- package/config/agent/skills/ui-taste/reference/operate.md +37 -0
- package/config/agent/skills/ui-taste/reference/overdrive.md +65 -0
- package/config/agent/skills/ui-taste/reference/polish.md +63 -0
- package/config/agent/skills/ui-taste/reference/research.md +45 -0
- package/config/agent/skills/ui-taste/references/uizze-image-to-ui.md +77 -0
- package/config/agent/skills/ui-taste/references/uizze-reference-policy.md +27 -0
- package/config/agent/skills/ui-taste/references/uizze-visual-verification.md +62 -0
- package/config/agent/skills/ui-taste/scripts/verify-visual-evidence.mjs +108 -0
- package/package.json +5 -5
- package/config/agent/skills/chroma/chroma-local/SKILL.md +0 -165
- package/config/agent/skills/chroma/chroma-local/cli.md +0 -48
- package/config/agent/skills/chroma/chroma-local/data-model.md +0 -103
- package/config/agent/skills/chroma/chroma-local/error-handling/python.md +0 -166
- package/config/agent/skills/chroma/chroma-local/error-handling/typescript.md +0 -231
- package/config/agent/skills/chroma/chroma-local/local-chroma/python.md +0 -95
- package/config/agent/skills/chroma/chroma-local/local-chroma/typescript.md +0 -101
- package/config/agent/skills/chroma/chroma-local/metadata/python.md +0 -154
- package/config/agent/skills/chroma/chroma-local/metadata/typescript.md +0 -153
- package/config/agent/skills/chroma/chroma-local/querying/python.md +0 -147
- package/config/agent/skills/chroma/chroma-local/querying/typescript.md +0 -157
- package/config/agent/skills/chroma/chroma-local/regex/python.md +0 -69
- package/config/agent/skills/chroma/chroma-local/regex/typescript.md +0 -71
- package/config/agent/skills/chroma/chroma-local/understanding-a-codebase.md +0 -80
- package/config/agent/skills/chroma/chroma-local/updating-deleting/python.md +0 -159
- package/config/agent/skills/chroma/chroma-local/updating-deleting/typescript.md +0 -228
- package/config/agent/skills/find-skills/SKILL.md +0 -137
- package/config/agent/skills/fireworks-tech-graph/README.md +0 -528
- package/config/agent/skills/fireworks-tech-graph/README.zh.md +0 -499
- package/config/agent/skills/fireworks-tech-graph/SKILL.md +0 -538
- package/config/agent/skills/fireworks-tech-graph/agentloop-core.svg +0 -101
- package/config/agent/skills/fireworks-tech-graph/agents/openai.yaml +0 -4
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style1-flat.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style2-dark.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style3-blueprint.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style4-notion.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style5-glass.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style6-claude.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style7-openai.png +0 -0
- package/config/agent/skills/fireworks-tech-graph/fixtures/agent-memory-types-style4.json +0 -181
- package/config/agent/skills/fireworks-tech-graph/fixtures/api-flow-style7.json +0 -40
- package/config/agent/skills/fireworks-tech-graph/fixtures/mem0-style1.json +0 -297
- package/config/agent/skills/fireworks-tech-graph/fixtures/microservices-style3.json +0 -64
- package/config/agent/skills/fireworks-tech-graph/fixtures/multi-agent-style5.json +0 -45
- package/config/agent/skills/fireworks-tech-graph/fixtures/system-architecture-style6.json +0 -48
- package/config/agent/skills/fireworks-tech-graph/fixtures/tool-call-style2.json +0 -182
- package/config/agent/skills/fireworks-tech-graph/package.json +0 -42
- package/config/agent/skills/fireworks-tech-graph/references/icons.md +0 -406
- package/config/agent/skills/fireworks-tech-graph/references/style-1-flat-icon.md +0 -108
- package/config/agent/skills/fireworks-tech-graph/references/style-2-dark-terminal.md +0 -107
- package/config/agent/skills/fireworks-tech-graph/references/style-3-blueprint.md +0 -113
- package/config/agent/skills/fireworks-tech-graph/references/style-4-notion-clean.md +0 -94
- package/config/agent/skills/fireworks-tech-graph/references/style-5-glassmorphism.md +0 -125
- package/config/agent/skills/fireworks-tech-graph/references/style-6-claude-official.md +0 -209
- package/config/agent/skills/fireworks-tech-graph/references/style-7-openai.md +0 -215
- package/config/agent/skills/fireworks-tech-graph/references/style-diagram-matrix.md +0 -135
- package/config/agent/skills/fireworks-tech-graph/references/svg-layout-best-practices.md +0 -100
- package/config/agent/skills/fireworks-tech-graph/scripts/README.md +0 -244
- package/config/agent/skills/fireworks-tech-graph/scripts/generate-diagram.sh +0 -157
- package/config/agent/skills/fireworks-tech-graph/scripts/generate-from-template.py +0 -1556
- package/config/agent/skills/fireworks-tech-graph/scripts/test-all-styles.sh +0 -135
- package/config/agent/skills/fireworks-tech-graph/scripts/validate-svg.sh +0 -292
- package/config/agent/skills/fireworks-tech-graph/templates/agent-architecture.svg +0 -28
- package/config/agent/skills/fireworks-tech-graph/templates/architecture.svg +0 -23
- package/config/agent/skills/fireworks-tech-graph/templates/comparison-matrix.svg +0 -14
- package/config/agent/skills/fireworks-tech-graph/templates/data-flow.svg +0 -28
- package/config/agent/skills/fireworks-tech-graph/templates/er-diagram.svg +0 -21
- package/config/agent/skills/fireworks-tech-graph/templates/flowchart.svg +0 -21
- package/config/agent/skills/fireworks-tech-graph/templates/sequence.svg +0 -20
- package/config/agent/skills/fireworks-tech-graph/templates/state-machine.svg +0 -20
- package/config/agent/skills/fireworks-tech-graph/templates/timeline.svg +0 -19
- package/config/agent/skills/fireworks-tech-graph/templates/use-case.svg +0 -21
- package/config/agent/skills/hello/SKILL.md +0 -26
- package/config/agent/skills/librarian/SKILL.md +0 -199
- package/config/agent/skills/milvus-skill/README.md +0 -37
- package/config/agent/skills/milvus-skill/SKILL.md +0 -259
- package/config/agent/skills/milvus-skill/references/collection.md +0 -86
- package/config/agent/skills/milvus-skill/references/database.md +0 -24
- package/config/agent/skills/milvus-skill/references/index.md +0 -69
- package/config/agent/skills/milvus-skill/references/partition.md +0 -29
- package/config/agent/skills/milvus-skill/references/patterns.md +0 -150
- package/config/agent/skills/milvus-skill/references/user-role.md +0 -90
- package/config/agent/skills/milvus-skill/references/vector.md +0 -247
- package/config/agent/skills/pr/SKILL.md +0 -59
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Design It Twice
|
|
2
|
+
|
|
3
|
+
When the user wants to explore alternative interfaces for a chosen deepening candidate, use this parallel sub-agent pattern. Based on "Design It Twice" (Ousterhout): your first idea is unlikely to be the best.
|
|
4
|
+
|
|
5
|
+
Uses the vocabulary in [SKILL.md](SKILL.md): **module**, **interface**, **seam**, **adapter**, **leverage**.
|
|
6
|
+
|
|
7
|
+
## Process
|
|
8
|
+
|
|
9
|
+
### 1. Frame the problem space
|
|
10
|
+
|
|
11
|
+
Before spawning sub-agents, write a user-facing explanation of the problem space for the chosen candidate:
|
|
12
|
+
|
|
13
|
+
- The constraints any new interface would need to satisfy
|
|
14
|
+
- The dependencies it would rely on, and which category they fall into (see [DEEPENING.md](DEEPENING.md))
|
|
15
|
+
- A rough illustrative code sketch to ground the constraints, not a proposal, just a way to make the constraints concrete
|
|
16
|
+
|
|
17
|
+
Show this to the user, then immediately proceed to Step 2. The user reads and thinks while the sub-agents work in parallel.
|
|
18
|
+
|
|
19
|
+
### 2. Spawn sub-agents
|
|
20
|
+
|
|
21
|
+
Spawn 3+ sub-agents in parallel, each with a fresh context window. Each must produce a **radically different** interface for the deepened module.
|
|
22
|
+
|
|
23
|
+
Prompt each sub-agent with a separate technical brief (file paths, coupling details, dependency category from [DEEPENING.md](DEEPENING.md), what sits behind the seam). The brief is independent of the user-facing problem-space explanation in Step 1. Give each agent a different design constraint:
|
|
24
|
+
|
|
25
|
+
- Agent 1: "Minimize the interface: aim for 1–3 entry points max. Maximise leverage per entry point."
|
|
26
|
+
- Agent 2: "Maximise flexibility: support many use cases and extension."
|
|
27
|
+
- Agent 3: "Optimise for the most common caller: make the default case trivial."
|
|
28
|
+
- Agent 4 (if applicable): "Design around ports & adapters for cross-seam dependencies."
|
|
29
|
+
|
|
30
|
+
Include both [SKILL.md](SKILL.md) vocabulary and GLOSSARY.md vocabulary in the brief so each sub-agent names things consistently with the architecture language and the project's domain language.
|
|
31
|
+
|
|
32
|
+
Each sub-agent outputs:
|
|
33
|
+
|
|
34
|
+
1. Interface (types, methods, params, plus invariants, ordering, error modes)
|
|
35
|
+
2. Usage example showing how callers use it
|
|
36
|
+
3. What the implementation hides behind the seam
|
|
37
|
+
4. Dependency strategy and adapters (see [DEEPENING.md](DEEPENING.md))
|
|
38
|
+
5. Trade-offs: where leverage is high, where it's thin
|
|
39
|
+
|
|
40
|
+
### 3. Present and compare
|
|
41
|
+
|
|
42
|
+
Present designs sequentially so the user can absorb each one, then compare them in prose. Contrast by **depth** (leverage at the interface), **locality** (where change concentrates), and **seam placement**.
|
|
43
|
+
|
|
44
|
+
After comparing, give your own recommendation: which design you think is strongest and why. If elements from different designs would combine well, propose a hybrid. Be opinionated: the user wants a strong read, not a menu.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codebase-design
|
|
3
|
+
description: "Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
author: "mattpocock"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Codebase Design
|
|
11
|
+
|
|
12
|
+
Design **deep modules**: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. Use this language and these principles wherever code is being designed or restructured. The aim is leverage for callers, locality for maintainers, and testability for everyone.
|
|
13
|
+
|
|
14
|
+
## Glossary
|
|
15
|
+
|
|
16
|
+
Use these terms exactly: don't substitute "component," "service," "API," or "boundary." Consistent language is the whole point.
|
|
17
|
+
|
|
18
|
+
**Module**: anything with an interface and an implementation. Deliberately scale-agnostic: a function, class, package, or tier-spanning slice. _Avoid_: unit, component, service.
|
|
19
|
+
|
|
20
|
+
**Interface**: everything a caller must know to use the module correctly: the type signature, but also invariants, ordering constraints, error modes, required configuration, and performance characteristics. _Avoid_: API, signature (too narrow, they refer only to the type-level surface).
|
|
21
|
+
|
|
22
|
+
**Implementation**: what's inside a module, its body of code. Distinct from **Adapter**: a thing can be a small adapter with a large implementation (a Postgres repo) or a large adapter with a small implementation (an in-memory fake). Reach for "adapter" when the seam is the topic; "implementation" otherwise.
|
|
23
|
+
|
|
24
|
+
**Depth**: leverage at the interface. The amount of behaviour a caller (or test) can exercise per unit of interface they have to learn. A module is **deep** when a large amount of behaviour sits behind a small interface, **shallow** when the interface is nearly as complex as the implementation.
|
|
25
|
+
|
|
26
|
+
**Seam** _(Michael Feathers)_: a place where you can alter behaviour without editing in that place; the *location* at which a module's interface lives. Where to put the seam is its own design decision, distinct from what goes behind it. _Avoid_: boundary (overloaded with DDD's bounded context).
|
|
27
|
+
|
|
28
|
+
**Adapter**: a concrete thing that satisfies an interface at a seam. Describes *role* (what slot it fills), not substance (what's inside).
|
|
29
|
+
|
|
30
|
+
**Leverage**: what callers get from depth. More capability per unit of interface they learn. One implementation pays back across N call sites and M tests.
|
|
31
|
+
|
|
32
|
+
**Locality**: what maintainers get from depth. Change, bugs, knowledge, and verification concentrate in one place rather than spreading across callers. Fix once, fixed everywhere.
|
|
33
|
+
|
|
34
|
+
## Deep vs shallow
|
|
35
|
+
|
|
36
|
+
**Deep module** = small interface + lots of implementation:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
┌─────────────────────┐
|
|
40
|
+
│ Small Interface │ ← Few methods, simple params
|
|
41
|
+
├─────────────────────┤
|
|
42
|
+
│ │
|
|
43
|
+
│ Deep Implementation│ ← Complex logic hidden
|
|
44
|
+
│ │
|
|
45
|
+
└─────────────────────┘
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Shallow module** = large interface + little implementation (avoid):
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
┌─────────────────────────────────┐
|
|
52
|
+
│ Large Interface │ ← Many methods, complex params
|
|
53
|
+
├─────────────────────────────────┤
|
|
54
|
+
│ Thin Implementation │ ← Just passes through
|
|
55
|
+
└─────────────────────────────────┘
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
When designing an interface, ask:
|
|
59
|
+
|
|
60
|
+
- Can I reduce the number of methods?
|
|
61
|
+
- Can I simplify the parameters?
|
|
62
|
+
- Can I hide more complexity inside?
|
|
63
|
+
|
|
64
|
+
## Principles
|
|
65
|
+
|
|
66
|
+
- **Depth is a property of the interface, not the implementation.** A deep module can be internally composed of small, mockable, swappable parts; they just aren't part of the interface. A module can have **internal seams** (private to its implementation, used by its own tests) as well as the **external seam** at its interface.
|
|
67
|
+
- **The deletion test.** Imagine deleting the module. If complexity vanishes, it was a pass-through. If complexity reappears across N callers, it was earning its keep.
|
|
68
|
+
- **The interface is the test surface.** Callers and tests cross the same seam. If you want to test *past* the interface, the module is probably the wrong shape.
|
|
69
|
+
- **One adapter means a hypothetical seam. Two adapters means a real one.** Don't introduce a seam unless something actually varies across it.
|
|
70
|
+
|
|
71
|
+
## Designing for testability
|
|
72
|
+
|
|
73
|
+
Good interfaces make testing natural:
|
|
74
|
+
|
|
75
|
+
1. **Accept dependencies, don't create them.**
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
// Testable
|
|
79
|
+
function processOrder(order, paymentGateway) {}
|
|
80
|
+
|
|
81
|
+
// Hard to test
|
|
82
|
+
function processOrder(order) {
|
|
83
|
+
const gateway = new StripeGateway();
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
2. **Return results, don't produce side effects.**
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
// Testable
|
|
91
|
+
function calculateDiscount(cart): Discount {}
|
|
92
|
+
|
|
93
|
+
// Hard to test
|
|
94
|
+
function applyDiscount(cart): void {
|
|
95
|
+
cart.total -= discount;
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
3. **Small surface area.** Fewer methods = fewer tests needed. Fewer params = simpler test setup.
|
|
100
|
+
|
|
101
|
+
## Relationships
|
|
102
|
+
|
|
103
|
+
- A **Module** has exactly one **Interface** (the surface it presents to callers and tests).
|
|
104
|
+
- **Depth** is a property of a **Module**, measured against its **Interface**.
|
|
105
|
+
- A **Seam** is where a **Module**'s **Interface** lives.
|
|
106
|
+
- An **Adapter** sits at a **Seam** and satisfies the **Interface**.
|
|
107
|
+
- **Depth** produces **Leverage** for callers and **Locality** for maintainers.
|
|
108
|
+
|
|
109
|
+
## Rejected framings
|
|
110
|
+
|
|
111
|
+
- **Depth as ratio of implementation-lines to interface-lines** (Ousterhout): rewards padding the implementation. We use depth-as-leverage instead.
|
|
112
|
+
- **"Interface" as the TypeScript `interface` keyword or a class's public methods**: too narrow: interface here includes every fact a caller must know.
|
|
113
|
+
- **"Boundary"**: overloaded with DDD's bounded context. Say **seam** or **interface**.
|
|
114
|
+
|
|
115
|
+
## Going deeper
|
|
116
|
+
|
|
117
|
+
- **Deepening a cluster given its dependencies**, see [DEEPENING.md](DEEPENING.md): dependency categories, seam discipline, and replace-don't-layer testing.
|
|
118
|
+
- **Exploring alternative interfaces**, see [DESIGN-IT-TWICE.md](DESIGN-IT-TWICE.md): spin up parallel sub-agents to design the interface several radically different ways, then compare on depth, locality, and seam placement.
|
|
@@ -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,61 @@
|
|
|
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 for an **Order**, sent to its **Customer** after delivery.
|
|
18
|
+
_Avoid_: Bill, payment request
|
|
19
|
+
|
|
20
|
+
**Customer**:
|
|
21
|
+
A person or organization that places an **Order**.
|
|
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
|
+
- **Bold other glossary terms inside a definition.** When a definition mentions another term, write it as `**Order**`, and let the sentence around it say how the two relate.
|
|
30
|
+
- **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.
|
|
31
|
+
- **Group terms under subheadings** when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.
|
|
32
|
+
|
|
33
|
+
## Single vs multi-context repos
|
|
34
|
+
|
|
35
|
+
**Single context (most repos):** One `GLOSSARY.md` at the repo root.
|
|
36
|
+
|
|
37
|
+
**Multiple contexts:** A `GLOSSARY-MAP.md` at the repo root lists the contexts, where they live, and how they relate to each other:
|
|
38
|
+
|
|
39
|
+
```md
|
|
40
|
+
# Glossary Map
|
|
41
|
+
|
|
42
|
+
## Contexts
|
|
43
|
+
|
|
44
|
+
- [Ordering](./src/ordering/GLOSSARY.md): receives and tracks customer orders
|
|
45
|
+
- [Billing](./src/billing/GLOSSARY.md): generates invoices and processes payments
|
|
46
|
+
- [Fulfillment](./src/fulfillment/GLOSSARY.md): manages warehouse picking and shipping
|
|
47
|
+
|
|
48
|
+
## Relationships
|
|
49
|
+
|
|
50
|
+
- **Ordering → Fulfillment**: Ordering emits `OrderPlaced` events; Fulfillment consumes them to start picking
|
|
51
|
+
- **Fulfillment → Billing**: Fulfillment emits `ShipmentDispatched` events; Billing consumes them to generate invoices
|
|
52
|
+
- **Ordering ↔ Billing**: Shared types for `CustomerId` and `Money`
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The skill infers which structure applies:
|
|
56
|
+
|
|
57
|
+
- If `GLOSSARY-MAP.md` exists, read it to find contexts
|
|
58
|
+
- If only a root `GLOSSARY.md` exists, single context
|
|
59
|
+
- If neither exists, create a root `GLOSSARY.md` lazily when the first term is resolved
|
|
60
|
+
|
|
61
|
+
When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: domain-modeling
|
|
3
|
+
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."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
author: "mattpocock"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Domain Modeling
|
|
11
|
+
|
|
12
|
+
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.)
|
|
13
|
+
|
|
14
|
+
## File structure
|
|
15
|
+
|
|
16
|
+
Most repos have a single context:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/
|
|
20
|
+
├── GLOSSARY.md
|
|
21
|
+
├── docs/
|
|
22
|
+
│ └── adr/
|
|
23
|
+
│ ├── 0001-event-sourced-orders.md
|
|
24
|
+
│ └── 0002-postgres-for-write-model.md
|
|
25
|
+
└── src/
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If a `GLOSSARY-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/
|
|
32
|
+
├── GLOSSARY-MAP.md
|
|
33
|
+
├── docs/
|
|
34
|
+
│ └── adr/ ← system-wide decisions
|
|
35
|
+
├── src/
|
|
36
|
+
│ ├── ordering/
|
|
37
|
+
│ │ ├── GLOSSARY.md
|
|
38
|
+
│ │ └── docs/adr/ ← context-specific decisions
|
|
39
|
+
│ └── billing/
|
|
40
|
+
│ ├── GLOSSARY.md
|
|
41
|
+
│ └── docs/adr/
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
## During the session
|
|
47
|
+
|
|
48
|
+
### Challenge against the glossary
|
|
49
|
+
|
|
50
|
+
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?"
|
|
51
|
+
|
|
52
|
+
### Sharpen fuzzy language
|
|
53
|
+
|
|
54
|
+
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."
|
|
55
|
+
|
|
56
|
+
### Discuss concrete scenarios
|
|
57
|
+
|
|
58
|
+
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.
|
|
59
|
+
|
|
60
|
+
### Cross-reference with code
|
|
61
|
+
|
|
62
|
+
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?"
|
|
63
|
+
|
|
64
|
+
### Update GLOSSARY.md inline
|
|
65
|
+
|
|
66
|
+
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).
|
|
67
|
+
|
|
68
|
+
`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.
|
|
69
|
+
|
|
70
|
+
### Offer ADRs sparingly
|
|
71
|
+
|
|
72
|
+
Only offer to create an ADR when all three are true:
|
|
73
|
+
|
|
74
|
+
1. **Hard to reverse**: the cost of changing your mind later is meaningful
|
|
75
|
+
2. **Surprising without context**: a future reader will wonder "why did they do it this way?"
|
|
76
|
+
3. **The result of a real trade-off**: there were genuine alternatives and you picked one for specific reasons
|
|
77
|
+
|
|
78
|
+
If any of the three is missing, skip the ADR. Use the format in [ADR-FORMAT.md](./ADR-FORMAT.md).
|
|
@@ -1,45 +1,74 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description: "
|
|
3
|
+
description: "Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. Use when building frontend, creating web components, designing pages, or implementing UI."
|
|
4
4
|
license: Complete terms in LICENSE.txt
|
|
5
5
|
metadata:
|
|
6
6
|
version: "1.0.0"
|
|
7
7
|
author: "xujianjiang"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# Frontend Design
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified.
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Ground your designs in the subject matter
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
- **Purpose**: What problem does this interface solve? Who uses it?
|
|
18
|
-
- **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
|
|
19
|
-
- **Constraints**: Technical requirements (framework, performance, accessibility).
|
|
20
|
-
- **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
|
|
16
|
+
If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout.
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
## Design principles
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
- Production-grade and functional
|
|
26
|
-
- Visually striking and memorable
|
|
27
|
-
- Cohesive with a clear aesthetic point-of-view
|
|
28
|
-
- Meticulously refined in every detail
|
|
20
|
+
For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option.
|
|
29
21
|
|
|
30
|
-
|
|
22
|
+
Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct.
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
- **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
|
|
34
|
-
- **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
|
|
35
|
-
- **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
|
|
36
|
-
- **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
|
|
37
|
-
- **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
|
|
24
|
+
Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content.
|
|
38
25
|
|
|
39
|
-
|
|
26
|
+
Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif.
|
|
40
27
|
|
|
41
|
-
|
|
28
|
+
Avoid these default typographic treatments; they are the commonest tells of a generated page:
|
|
29
|
+
- Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color.
|
|
30
|
+
- Using all caps for labels.
|
|
31
|
+
- Adding unnecessary typographic labels above content.
|
|
42
32
|
|
|
43
|
-
|
|
33
|
+
Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence.
|
|
44
34
|
|
|
45
|
-
|
|
35
|
+
Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed.
|
|
36
|
+
|
|
37
|
+
Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
|
|
38
|
+
|
|
39
|
+
## Process: plan, review against the brief, build, critique
|
|
40
|
+
|
|
41
|
+
For calibration, AI-generated design right now clusters around some traits:
|
|
42
|
+
1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell);
|
|
43
|
+
2. a near-black background with a single bright acid-green or vermilion accent;
|
|
44
|
+
3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns;
|
|
45
|
+
4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration;
|
|
46
|
+
5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text.
|
|
47
|
+
|
|
48
|
+
All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
|
|
49
|
+
|
|
50
|
+
Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles.
|
|
51
|
+
- Color: describe the core base palette as 4–6 named hex values.
|
|
52
|
+
- Type: the typefaces and their roles.
|
|
53
|
+
- Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified?
|
|
54
|
+
- Principles: the high-level guidance for what makes this page unique.
|
|
55
|
+
|
|
56
|
+
Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan.
|
|
57
|
+
|
|
58
|
+
When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections.
|
|
59
|
+
|
|
60
|
+
## Restraint and self-critique
|
|
61
|
+
|
|
62
|
+
Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
|
|
63
|
+
|
|
64
|
+
## More on writing in design
|
|
65
|
+
|
|
66
|
+
Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
|
|
67
|
+
|
|
68
|
+
Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever.
|
|
69
|
+
|
|
70
|
+
Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
|
|
71
|
+
|
|
72
|
+
Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
|
|
73
|
+
|
|
74
|
+
Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job.
|
|
@@ -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,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grill-with-docs
|
|
3
|
+
description: "A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go. Use when the user asks to grill a plan or design while writing ADRs and a glossary."
|
|
4
|
+
license: MIT
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
metadata:
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
author: "mattpocock"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
This skill is a thin wrapper around two other skills. Load **both** of them and follow them together:
|
|
12
|
+
|
|
13
|
+
1. **`grilling`** — interview the user relentlessly, one frontier round at a time, until you reach a shared understanding. Its file location is listed in the available-skills list; it normally lives next to this skill at `../grilling/SKILL.md`.
|
|
14
|
+
2. **`domain-modeling`** — sharpen the domain model and write the docs (`GLOSSARY.md`, ADRs under `docs/adr/`) as decisions crystallise. Its file location is listed in the available-skills list; it normally lives next to this skill at `../domain-modeling/SKILL.md`.
|
|
15
|
+
|
|
16
|
+
Working order:
|
|
17
|
+
|
|
18
|
+
- Run the `grilling` interview first — one round of questions at a time, with your recommended answer attached to each question.
|
|
19
|
+
- After every round the user answers, apply `domain-modeling`: update `GLOSSARY.md` inline with the terms that just crystallised, and write an ADR (offer it sparingly) for decisions worth recording.
|
|
20
|
+
- Keep the docs in step with the interview; do not defer all documentation to the end.
|
|
21
|
+
- The session is done when the grilling frontier is empty **and** the user confirms you have reached a shared understanding. Do not act on the plan until then.
|
|
@@ -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,34 @@
|
|
|
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
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
author: "mattpocock"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
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.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
Format a round like so:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
18
|
+
|
|
19
|
+
➡️ <your recommended answer>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
|
|
24
|
+
|
|
25
|
+
➡️ <your recommended answer>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Word each question so "yes" accepts your recommended answer.
|
|
29
|
+
|
|
30
|
+
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.
|
|
31
|
+
|
|
32
|
+
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 with a fresh context window 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.
|
|
33
|
+
|
|
34
|
+
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,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.
|