opencodekit 0.19.5 → 0.20.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/dist/index.js +1 -1
- package/dist/template/.opencode/command/compound.md +4 -3
- package/dist/template/.opencode/command/create.md +6 -11
- package/dist/template/.opencode/command/design.md +3 -3
- package/dist/template/.opencode/command/handoff.md +4 -2
- package/dist/template/.opencode/command/init-context.md +79 -55
- package/dist/template/.opencode/command/init-user.md +11 -6
- package/dist/template/.opencode/command/init.md +1 -3
- package/dist/template/.opencode/command/lfg.md +4 -2
- package/dist/template/.opencode/command/plan.md +9 -9
- package/dist/template/.opencode/command/pr.md +5 -1
- package/dist/template/.opencode/command/resume.md +4 -4
- package/dist/template/.opencode/command/review-codebase.md +4 -4
- package/dist/template/.opencode/command/ship.md +5 -7
- package/dist/template/.opencode/command/start.md +8 -10
- package/dist/template/.opencode/command/status.md +1 -1
- package/dist/template/.opencode/command/ui-slop-check.md +6 -6
- package/dist/template/.opencode/command/verify.md +4 -4
- package/dist/template/.opencode/dcp-prompts/defaults/compress-message.md +1 -0
- package/dist/template/.opencode/dcp.jsonc +1 -1
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +3 -5
- package/dist/template/.opencode/skill/chrome-devtools/SKILL.md +1 -1
- package/dist/template/.opencode/skill/cloudflare/SKILL.md +1 -1
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +16 -17
- package/dist/template/.opencode/skill/context-management/SKILL.md +306 -79
- package/dist/template/.opencode/skill/core-data-expert/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
- package/dist/template/.opencode/skill/frontend-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +1 -1
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +1 -1
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/jira/SKILL.md +1 -1
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/mqdh/SKILL.md +1 -1
- package/dist/template/.opencode/skill/opensrc/SKILL.md +184 -27
- package/dist/template/.opencode/skill/pdf-extract/SKILL.md +1 -1
- package/dist/template/.opencode/skill/pencil/SKILL.md +1 -1
- package/dist/template/.opencode/skill/playwright/SKILL.md +18 -6
- package/dist/template/.opencode/skill/{agent-browser/SKILL.md → playwright/references/agent-browser-cli.md} +0 -8
- package/dist/template/.opencode/skill/playwriter/SKILL.md +1 -1
- package/dist/template/.opencode/skill/polar/SKILL.md +1 -1
- package/dist/template/.opencode/skill/prd/SKILL.md +1 -1
- package/dist/template/.opencode/skill/react-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +1 -1
- package/dist/template/.opencode/skill/resend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/tilth-cli/SKILL.md +47 -20
- package/dist/template/.opencode/skill/v0/SKILL.md +1 -1
- package/dist/template/.opencode/skill/v1-run/SKILL.md +1 -1
- package/dist/template/.opencode/skill/webclaw/SKILL.md +1 -1
- package/dist/template/.opencode/skill/writing-skills/SKILL.md +43 -6
- package/dist/template/.opencode/skill/{testing-skills-with-subagents/SKILL.md → writing-skills/references/testing-methodology.md} +0 -8
- package/package.json +1 -1
- package/dist/template/.opencode/skill/compaction/SKILL.md +0 -384
- package/dist/template/.opencode/skill/session-management/SKILL.md +0 -9
- package/dist/template/.opencode/skill/source-code-research/SKILL.md +0 -293
- package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +0 -9
- package/dist/template/.opencode/skill/using-skills/SKILL.md +0 -117
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/analysis-tips.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/anti-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/common-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/example-workflow.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/further-reading.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/source-structure.md +0 -0
|
@@ -1,119 +1,346 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: context-management
|
|
3
|
-
description: Unified protocol for context health and session lifecycle management using DCP tools, thresholds, handoff, and
|
|
4
|
-
version:
|
|
3
|
+
description: Unified protocol for context health and session lifecycle management using DCP tools, thresholds, handoff, resume workflows, and post-compaction restoration.
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
tags: [context, workflow, session]
|
|
6
6
|
dependencies: []
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Context Management
|
|
10
10
|
|
|
11
|
-
>
|
|
11
|
+
> Unified protocol for context health across start, active execution, compression, restoration, handoff, and resume.
|
|
12
12
|
|
|
13
|
-
Use this skill to keep context
|
|
13
|
+
Use this skill to keep context high-signal while preserving edit safety and execution continuity.
|
|
14
14
|
|
|
15
15
|
## When to Use
|
|
16
16
|
|
|
17
|
-
- Context
|
|
18
|
-
-
|
|
19
|
-
- You are preparing `/handoff` or resuming
|
|
20
|
-
- You need
|
|
21
|
-
|
|
22
|
-
## When NOT to Use
|
|
23
|
-
|
|
24
|
-
- You are actively editing files whose raw content must remain exact
|
|
25
|
-
- You are in a short, single-step task that will finish before context pressure appears
|
|
17
|
+
- Context is growing and signal quality is dropping
|
|
18
|
+
- A phase is complete and should be compressed
|
|
19
|
+
- You are preparing `/handoff` or resuming prior work
|
|
20
|
+
- You need deterministic restoration after compaction
|
|
21
|
+
- You need reusable summary templates for exploration/implementation/debugging
|
|
26
22
|
|
|
27
23
|
## Core Principle
|
|
28
24
|
|
|
29
|
-
Prefer **phase-level
|
|
25
|
+
Prefer **phase-level context hygiene** over emergency cleanup.
|
|
30
26
|
|
|
31
27
|
```text
|
|
32
28
|
compress > sweep > handoff
|
|
33
29
|
```
|
|
34
30
|
|
|
35
|
-
- **compress**:
|
|
36
|
-
- **sweep**:
|
|
37
|
-
- **handoff**:
|
|
31
|
+
- **compress**: shrink closed chapters while preserving decisions
|
|
32
|
+
- **sweep**: remove stale/noisy residue from closed chapters
|
|
33
|
+
- **handoff**: reset in a fresh session when compression is insufficient
|
|
38
34
|
|
|
39
35
|
## DCP Command Usage
|
|
40
36
|
|
|
37
|
+
### `/dcp context`
|
|
38
|
+
|
|
39
|
+
Run at session start and major boundaries to detect pressure early.
|
|
40
|
+
|
|
41
41
|
### `/dcp compress`
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Primary action for completed chapters.
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
-
|
|
45
|
+
Use when:
|
|
46
|
+
|
|
47
|
+
- exploration has stable conclusions
|
|
48
|
+
- implementation wave is complete and verified
|
|
49
|
+
- review output has been synthesized
|
|
48
50
|
|
|
49
51
|
### `/dcp sweep`
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
Secondary cleanup after chapter closure.
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
Sweep candidates:
|
|
54
56
|
|
|
55
57
|
- wrong-target searches
|
|
56
|
-
-
|
|
57
|
-
- duplicate
|
|
58
|
+
- superseded logs
|
|
59
|
+
- duplicate tool output
|
|
60
|
+
- dead-end exploration replaced by synthesis
|
|
61
|
+
- large terminal dumps no longer needed
|
|
58
62
|
|
|
59
|
-
Do
|
|
63
|
+
Do not sweep active material needed for immediate edits.
|
|
60
64
|
|
|
61
65
|
## Session Lifecycle Protocol
|
|
62
66
|
|
|
63
67
|
### 1) Start Session
|
|
64
68
|
|
|
65
|
-
1. Load task
|
|
66
|
-
2.
|
|
67
|
-
3.
|
|
69
|
+
1. Load task + essential policy docs only
|
|
70
|
+
2. Run `/dcp context`
|
|
71
|
+
3. Rehydrate prior state only if needed:
|
|
68
72
|
- `find_sessions({ query })`
|
|
69
73
|
- `read_session({ session_id, focus })`
|
|
70
|
-
- `memory-
|
|
74
|
+
- `memory-search({ query })` / `memory-read({ file })`
|
|
75
|
+
4. Verify git position before edits
|
|
71
76
|
|
|
72
77
|
### 2) During Active Work
|
|
73
78
|
|
|
74
|
-
- Keep active
|
|
75
|
-
-
|
|
76
|
-
- Compress
|
|
79
|
+
- Keep active file outputs readable until edit + verification finish
|
|
80
|
+
- Reclassify context at boundaries: active vs closed
|
|
81
|
+
- Compress closed chapters before opening a new major chapter
|
|
82
|
+
- Sweep only after synthesis exists
|
|
77
83
|
|
|
78
84
|
### 3) Pre-Handoff / Closeout
|
|
79
85
|
|
|
80
|
-
1. Compress
|
|
81
|
-
2.
|
|
82
|
-
3.
|
|
86
|
+
1. Compress closed phases
|
|
87
|
+
2. Sweep stale/noisy residue
|
|
88
|
+
3. Persist decisions/learnings to memory
|
|
89
|
+
4. Write concise handoff (changed, pending, risks)
|
|
83
90
|
|
|
84
91
|
### 4) Resume Session
|
|
85
92
|
|
|
86
|
-
1. Rehydrate only relevant context
|
|
87
|
-
2. Validate assumptions against
|
|
88
|
-
3. Continue with fresh
|
|
93
|
+
1. Rehydrate only relevant context
|
|
94
|
+
2. Validate assumptions against files + git state
|
|
95
|
+
3. Continue with fresh budget and explicit priorities
|
|
89
96
|
|
|
90
97
|
## Context Budget Thresholds
|
|
91
98
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
| >100k | High pressure | Aggressively compress by phase; run `/dcp sweep` on stale noise |
|
|
99
|
-
| >150k | Near capacity | Perform handoff and resume in a fresh session |
|
|
100
|
-
|
|
101
|
-
Secondary guardrails:
|
|
99
|
+
| Threshold | Interpretation | Required Action |
|
|
100
|
+
| --------- | --------------- | ---------------------------------- |
|
|
101
|
+
| <50k | Healthy start | Keep inputs minimal |
|
|
102
|
+
| 50k-100k | Moderate growth | Compress completed phases |
|
|
103
|
+
| >100k | High pressure | Aggressive compress + `/dcp sweep` |
|
|
104
|
+
| >150k | Near capacity | Handoff + resume fresh session |
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
- ~85%: Plan handoff window at next natural break
|
|
105
|
-
- ~95%: Immediate cleanup or restart required
|
|
106
|
+
Guardrails: ~70% consolidate closed exploration, ~85% schedule handoff, ~95% immediate cleanup/restart.
|
|
106
107
|
|
|
107
108
|
## Phase Boundary Triggers
|
|
108
109
|
|
|
109
110
|
Compress at these boundaries:
|
|
110
111
|
|
|
111
|
-
- Research complete
|
|
112
|
-
- Implementation wave complete
|
|
113
|
-
- Review complete
|
|
114
|
-
-
|
|
112
|
+
- Research complete -> compress exploration/search output
|
|
113
|
+
- Implementation wave complete -> compress read/edit/test cycle output
|
|
114
|
+
- Review complete -> compress raw reviewer output; keep synthesis
|
|
115
|
+
- Pre-handoff -> compress non-essential context since last checkpoint
|
|
116
|
+
|
|
117
|
+
Rule: **Closed phases should not remain uncompressed for long.**
|
|
118
|
+
|
|
119
|
+
## Compaction Decision Tree
|
|
120
|
+
|
|
121
|
+
Use this before each cleanup action.
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Is context pressure increasing materially?
|
|
125
|
+
├── NO
|
|
126
|
+
│ └── Continue work; reassess at next phase boundary
|
|
127
|
+
└── YES
|
|
128
|
+
├── Is there a completed phase with stable conclusions?
|
|
129
|
+
│ ├── YES -> /dcp compress completed range
|
|
130
|
+
│ └── NO
|
|
131
|
+
│ ├── Is growth mostly stale/noisy closed-phase output?
|
|
132
|
+
│ │ ├── YES -> /dcp sweep
|
|
133
|
+
│ │ └── NO
|
|
134
|
+
│ │ ├── Is most remaining context still active/relevant?
|
|
135
|
+
│ │ │ ├── YES -> Prepare handoff + resume fresh session
|
|
136
|
+
│ │ │ └── NO -> Reclassify content, then compress/sweep
|
|
137
|
+
│ └── If uncertain, preserve active content until closure
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Custom Summarization Templates
|
|
141
|
+
|
|
142
|
+
Use these templates to keep summaries dense and recoverable.
|
|
143
|
+
|
|
144
|
+
### A) Code Exploration Template
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
## Exploration Summary: [Component/Module]
|
|
148
|
+
|
|
149
|
+
### Objective
|
|
150
|
+
|
|
151
|
+
- [What was investigated]
|
|
152
|
+
|
|
153
|
+
### Architecture Map
|
|
154
|
+
|
|
155
|
+
- Entry points: `path/to/entry.ts`
|
|
156
|
+
- Core modules: `A`, `B`, `C`
|
|
157
|
+
- Data flow: [input -> transform -> output]
|
|
158
|
+
- Dependencies/services: [list]
|
|
159
|
+
|
|
160
|
+
### Verified Findings
|
|
161
|
+
|
|
162
|
+
- [Finding with evidence]
|
|
163
|
+
- [Finding with evidence]
|
|
164
|
+
- [Finding with evidence]
|
|
165
|
+
|
|
166
|
+
### Constraints
|
|
167
|
+
|
|
168
|
+
- [Technical/policy/runtime constraints]
|
|
169
|
+
|
|
170
|
+
### Decisions
|
|
171
|
+
|
|
172
|
+
- [Decision] -> [Rationale]
|
|
173
|
+
- [Decision] -> [Rationale]
|
|
174
|
+
|
|
175
|
+
### Next Step
|
|
176
|
+
|
|
177
|
+
- [Immediate next action]
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### B) Implementation Template
|
|
181
|
+
|
|
182
|
+
```markdown
|
|
183
|
+
## Implementation Summary: [Feature/Fix]
|
|
184
|
+
|
|
185
|
+
### Scope
|
|
186
|
+
|
|
187
|
+
- [What this wave covered]
|
|
188
|
+
|
|
189
|
+
### Completed
|
|
190
|
+
|
|
191
|
+
- [x] `path/to/file.ts` -> [change]
|
|
192
|
+
- [x] `path/to/file.test.ts` -> [coverage]
|
|
193
|
+
- [x] [other completed work]
|
|
194
|
+
|
|
195
|
+
### Verification Evidence
|
|
196
|
+
|
|
197
|
+
- Typecheck: [command + result]
|
|
198
|
+
- Lint: [command + result]
|
|
199
|
+
- Tests: [command + result]
|
|
200
|
+
|
|
201
|
+
### Remaining
|
|
202
|
+
|
|
203
|
+
- [ ] [pending item]
|
|
204
|
+
- [ ] [pending item]
|
|
205
|
+
|
|
206
|
+
### Key Decisions
|
|
207
|
+
|
|
208
|
+
- [Decision + reason]
|
|
209
|
+
- [Decision + reason]
|
|
210
|
+
|
|
211
|
+
### Resume Anchor
|
|
212
|
+
|
|
213
|
+
- Resume from: `path/to/file.ts` [function/region]
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### C) Debugging Template
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
## Debug Summary: [Issue]
|
|
220
|
+
|
|
221
|
+
### Symptoms
|
|
222
|
+
|
|
223
|
+
- Error: [exact error]
|
|
224
|
+
- Trigger: [request/action]
|
|
225
|
+
- Location: `path:line`
|
|
226
|
+
|
|
227
|
+
### Root Cause
|
|
115
228
|
|
|
116
|
-
|
|
229
|
+
- [causal chain with evidence]
|
|
230
|
+
|
|
231
|
+
### Fix Applied
|
|
232
|
+
|
|
233
|
+
- `path/to/file.ts` -> [exact fix]
|
|
234
|
+
- `path/to/test.ts` -> [new/updated coverage]
|
|
235
|
+
|
|
236
|
+
### Verification
|
|
237
|
+
|
|
238
|
+
- [test command + result]
|
|
239
|
+
- [manual check + result]
|
|
240
|
+
|
|
241
|
+
### Next Step
|
|
242
|
+
|
|
243
|
+
- [if unresolved, next investigation/fix]
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## DCP Plugin Integration
|
|
247
|
+
|
|
248
|
+
This project uses `@tarquinen/opencode-dcp` via `experimental.chat.system.transform`.
|
|
249
|
+
|
|
250
|
+
### DCP Responsibilities (Always On)
|
|
251
|
+
|
|
252
|
+
- context budget monitoring + threshold cues
|
|
253
|
+
- `/dcp` command surface (`context`, `compress`, `sweep`, `stats`)
|
|
254
|
+
- prunable-tools guidance + token-aware nudges
|
|
255
|
+
- critical-limit warnings
|
|
256
|
+
|
|
257
|
+
### Context-Management Responsibilities (This Skill)
|
|
258
|
+
|
|
259
|
+
- timing policy for compress/sweep/handoff
|
|
260
|
+
- summary quality and template selection
|
|
261
|
+
- post-compaction restoration protocol
|
|
262
|
+
- cross-session rehydration sequence
|
|
263
|
+
|
|
264
|
+
### Division of Responsibility
|
|
265
|
+
|
|
266
|
+
- **DCP plugin**: measures/surfaces pressure, exposes cleanup commands
|
|
267
|
+
- **context-management skill**: decides when to apply commands and how to preserve continuity
|
|
268
|
+
|
|
269
|
+
### Custom Prompt Overrides
|
|
270
|
+
|
|
271
|
+
Custom DCP prompts are enabled (`experimental.customPrompts: true`).
|
|
272
|
+
|
|
273
|
+
Override precedence:
|
|
274
|
+
|
|
275
|
+
1. `.opencode/dcp-prompts/overrides/` (project)
|
|
276
|
+
2. config directory overrides
|
|
277
|
+
3. `~/.config/opencode/dcp-prompts/overrides/` (global)
|
|
278
|
+
|
|
279
|
+
Key file: `compress-message.md` (structured compression schema). Recommended blocks: Primary Request, Key Technical Concepts, Files/Code, Errors/Fixes, Problem Solving, User Messages, Pending Tasks, Current Work, Next Step.
|
|
280
|
+
|
|
281
|
+
## Post-Compaction Restoration Protocol (Critical)
|
|
282
|
+
|
|
283
|
+
After any compaction (server-side or `/dcp compress`), execute all 5 steps before editing.
|
|
284
|
+
|
|
285
|
+
### Step 1 — Re-read Active Files (max 5)
|
|
286
|
+
|
|
287
|
+
Re-read files active before compaction.
|
|
288
|
+
|
|
289
|
+
- prioritize most recent edits first
|
|
290
|
+
- cap at 5 files
|
|
291
|
+
- use targeted reads (`offset`/`limit`) for precision
|
|
292
|
+
|
|
293
|
+
Example:
|
|
294
|
+
|
|
295
|
+
```text
|
|
296
|
+
read({ filePath: "src/auth.ts", offset: 30, limit: 80 })
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Why: restores exact local code context and satisfies read-before-edit safety requirements.
|
|
300
|
+
|
|
301
|
+
### Step 2 — Restore Active Skills
|
|
302
|
+
|
|
303
|
+
Reload any skills active before compaction.
|
|
304
|
+
|
|
305
|
+
```typescript
|
|
306
|
+
skill({ name: "<active-skill>" });
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
Why: skill instructions are prompt-injected and may be dropped by compaction.
|
|
310
|
+
|
|
311
|
+
### Step 3 — Reconcile Todo State
|
|
312
|
+
|
|
313
|
+
Rebuild exact task status:
|
|
314
|
+
|
|
315
|
+
- what was `in_progress`
|
|
316
|
+
- what remains `pending`
|
|
317
|
+
- what is `completed`
|
|
318
|
+
|
|
319
|
+
Why: prevents duplicate work and missed subtasks.
|
|
320
|
+
|
|
321
|
+
### Step 4 — Verify Git Position
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
git branch --show-current
|
|
325
|
+
git status --short
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
Why: confirms branch correctness and re-anchors uncommitted file state.
|
|
329
|
+
|
|
330
|
+
### Step 5 — Scan Memory / Session Artifacts
|
|
331
|
+
|
|
332
|
+
If compaction was heavy, recover nuance using:
|
|
333
|
+
|
|
334
|
+
- `memory-search({ query, limit: 3 })`
|
|
335
|
+
- `memory-read({ file })`
|
|
336
|
+
- `find_sessions({ query, limit })`
|
|
337
|
+
- `read_session({ session_id, focus })`
|
|
338
|
+
|
|
339
|
+
Why: restores rationale/constraints often missing from short summaries.
|
|
340
|
+
|
|
341
|
+
### Restoration Exit Criteria
|
|
342
|
+
|
|
343
|
+
Do not resume edits until active targets are re-read, required skills are reloaded, todo state is reconciled, git position is confirmed, and critical rationale is recovered when needed.
|
|
117
344
|
|
|
118
345
|
## Context Transfer Sources (Cross-Session)
|
|
119
346
|
|
|
@@ -121,43 +348,43 @@ Use in priority order:
|
|
|
121
348
|
|
|
122
349
|
1. Memory artifacts (`memory-search`, `memory-read`, observations)
|
|
123
350
|
2. Session history (`find_sessions`, `read_session`)
|
|
124
|
-
3. Task tracker state (`br show <id>`
|
|
351
|
+
3. Task tracker state (`br show <id>`)
|
|
125
352
|
4. Git evidence (`git diff`, `git log`, test output)
|
|
126
353
|
|
|
127
|
-
Carry forward decisions
|
|
354
|
+
Carry forward decisions, constraints, and next actions — not transcript bulk.
|
|
128
355
|
|
|
129
356
|
## Anti-Patterns
|
|
130
357
|
|
|
131
|
-
| Anti-Pattern
|
|
132
|
-
|
|
|
133
|
-
| Compressing active
|
|
134
|
-
| Sweeping
|
|
135
|
-
|
|
|
136
|
-
|
|
|
358
|
+
| Anti-Pattern | Why It Hurts | Correct Pattern |
|
|
359
|
+
| ------------------------------------- | -------------------------------------- | ---------------------------------------------- |
|
|
360
|
+
| Compressing active edit context | Loses exact data needed for safe edits | Keep active outputs until edit+verify complete |
|
|
361
|
+
| Sweeping still-live content | Causes rework and precision loss | Sweep only stale/noisy closed-phase outputs |
|
|
362
|
+
| Leaving closed phases uncompressed | Context bloat degrades later turns | Compress at each phase boundary |
|
|
363
|
+
| Handoff without memory persistence | Next session loses rationale | Persist decisions before handoff |
|
|
364
|
+
| Skipping restoration after compaction | Edit failures, skill drift, task drift | Run 5-step restoration before resuming |
|
|
137
365
|
|
|
138
366
|
## Verification
|
|
139
367
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Before claiming cleanup done, confirm:
|
|
368
|
+
Before claiming context cleanup complete, verify:
|
|
143
369
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
370
|
+
- active edit targets are still readable
|
|
371
|
+
- closed chapters are compressed or intentionally retained
|
|
372
|
+
- no critical decision exists only in transient output
|
|
373
|
+
- restoration protocol completed after compaction
|
|
374
|
+
- handoff includes next actions and blockers
|
|
148
375
|
|
|
149
376
|
## Quick Playbook
|
|
150
377
|
|
|
151
378
|
```text
|
|
152
|
-
1)
|
|
153
|
-
2)
|
|
154
|
-
3) /dcp compress
|
|
155
|
-
4) /dcp sweep stale/noisy outputs
|
|
156
|
-
5)
|
|
157
|
-
6)
|
|
379
|
+
1) /dcp context
|
|
380
|
+
2) classify context: active vs closed
|
|
381
|
+
3) /dcp compress on closed chapters
|
|
382
|
+
4) /dcp sweep stale/noisy closed outputs
|
|
383
|
+
5) if compaction happened: run 5-step restoration
|
|
384
|
+
6) persist key decisions to memory
|
|
385
|
+
7) handoff/resume with focused rehydration
|
|
158
386
|
```
|
|
159
387
|
|
|
160
388
|
## See Also
|
|
161
389
|
|
|
162
390
|
- `memory-system`
|
|
163
|
-
- `compaction`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: core-data-expert
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use when writing, debugging, or optimizing Core Data code on iOS/macOS — fetch requests, migrations, merge conflicts, threading, CloudKit sync. MUST load before any Core Data schema changes or performance work."
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
tags: [apple, integration]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-system-audit
|
|
3
|
-
description:
|
|
3
|
+
description: Use when auditing an existing design system for consistency — token audits, pattern analysis, visual comparison against design specs. Load AFTER implementation to review, not during initial build.
|
|
4
4
|
version: 2.0.0
|
|
5
5
|
tags: [design, audit, ui]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-taste-frontend
|
|
3
|
-
description:
|
|
3
|
+
description: Use as the BASE aesthetic skill for any web UI to override default LLM design biases. Enforces strict typography, color, spacing, and component architecture rules. Load BEFORE frontend-design when premium visual quality is required.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# High-Agency Frontend Skill
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: figma
|
|
3
|
-
description:
|
|
3
|
+
description: Use when implementing UI from Figma designs, extracting design tokens, or downloading assets via Framelink MCP. MUST load when user shares a Figma URL or references Figma files. Requires API token.
|
|
4
4
|
mcp:
|
|
5
5
|
figma:
|
|
6
6
|
command: npx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: figma-go
|
|
3
|
-
description: Use figma-mcp-go
|
|
3
|
+
description: Use for Figma read/write access WITHOUT an API token, via figma-mcp-go plugin bridge. Prefer over figma skill when no API token is available. MUST load when user needs Figma data and has the desktop plugin installed.
|
|
4
4
|
mcp:
|
|
5
5
|
figma-mcp-go:
|
|
6
6
|
command: npx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description:
|
|
3
|
+
description: MUST load when building any web UI with React-based frameworks — components, pages, or full applications. Covers Tailwind CSS v4, shadcn/ui, Motion animations. Base UI implementation skill; combine with aesthetic overlays (minimalist-ui, high-end-visual-design) for specific styles.
|
|
4
4
|
version: 1.1.0
|
|
5
5
|
tags: [ui, design]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: full-output-enforcement
|
|
3
|
-
description:
|
|
3
|
+
description: MUST load when generating complete files, long code blocks, or any output where truncation or placeholder comments like '// ... rest of code' would be harmful. Bans all placeholder patterns and enforces exhaustive, unabridged output.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Full-Output Enforcement
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: high-end-visual-design
|
|
3
|
-
description:
|
|
3
|
+
description: Use INSTEAD OF design-taste-frontend when user explicitly requests premium, agency-quality, or luxury visual design. Defines exact fonts, spacing, shadows, and animations that make websites feel expensive. Blocks cheap AI defaults.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Agent Skill: Principal UI/UX Architect & Motion Choreographer (Awwwards-Tier)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: index-knowledge
|
|
3
|
-
description:
|
|
3
|
+
description: Use when generating or refreshing AGENTS.md knowledge bases for a codebase. MUST load before creating hierarchical documentation or complexity-scored subdirectory guides.
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
tags: [documentation, workflow]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: industrial-brutalist-ui
|
|
3
|
-
description:
|
|
3
|
+
description: Use INSTEAD OF design-taste-frontend when user requests brutalist, military-terminal, or raw mechanical aesthetics. Swiss typographic print meets utilitarian color. For data-heavy dashboards or editorial sites needing declassified-blueprint energy.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SKILL: Industrial Brutalism & Tactical Telemetry UI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira
|
|
3
|
-
description:
|
|
3
|
+
description: Use when interacting with Jira issues or Confluence docs — searching tickets, creating issues, updating status, or reading wiki pages. MUST load before any Atlassian integration. Requires network access to Atlassian MCP.
|
|
4
4
|
version: 1.0.0
|
|
5
5
|
tags: [integration, mcp, workflow]
|
|
6
6
|
dependencies: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: minimalist-ui
|
|
3
|
-
description:
|
|
3
|
+
description: Use INSTEAD OF design-taste-frontend when user requests clean, editorial, or minimalist aesthetics. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Protocol: Premium Utilitarian Minimalism UI Architect
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mqdh
|
|
3
|
-
description:
|
|
3
|
+
description: Use when building Meta Quest VR/AR apps, accessing Meta Horizon OS docs, or managing Quest devices via ADB. MUST load before any Meta XR development or documentation lookup.
|
|
4
4
|
mcp:
|
|
5
5
|
mqdh:
|
|
6
6
|
command: "${MQDH_MCP_PATH}"
|