opencode-agent-skill 7.7.0 → 9.0.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +63 -3
  2. package/README.md +675 -581
  3. package/bin/ocskill.mjs +358 -156
  4. package/docs/DETERMINISTIC-TOOLS.md +25 -8
  5. package/docs/ENGINEERING-DESIGN.md +31 -13
  6. package/docs/EVALS.md +34 -12
  7. package/docs/NPM-PUBLISH.md +6 -6
  8. package/docs/OPENCODE-COMPAT.md +11 -8
  9. package/docs/TRACE-SCHEMA.md +15 -2
  10. package/docs/V8-INTELLIGENCE-RELIABILITY.md +206 -0
  11. package/docs/V9-SPEED-INTELLIGENCE.md +102 -0
  12. package/evals/live/tasks.json +6 -6
  13. package/evals/polyglot/fixtures/polyglot-bench/api/generated/client.ts +2 -0
  14. package/evals/polyglot/fixtures/polyglot-bench/api/openapi.json +25 -0
  15. package/evals/polyglot/fixtures/polyglot-bench/db/migrations/20260920_add_order_key.sql +1 -0
  16. package/evals/polyglot/fixtures/polyglot-bench/dotnet/OrderService.cs +8 -0
  17. package/evals/polyglot/fixtures/polyglot-bench/java/PriceService.java +5 -0
  18. package/evals/polyglot/fixtures/polyglot-bench/monorepo/package.json +6 -0
  19. package/evals/polyglot/fixtures/polyglot-bench/monorepo/packages/api/package.json +4 -0
  20. package/evals/polyglot/fixtures/polyglot-bench/monorepo/packages/web/package.json +7 -0
  21. package/evals/polyglot/fixtures/polyglot-bench/monorepo/pnpm-lock.yaml +5 -0
  22. package/evals/polyglot/fixtures/polyglot-bench/next/app/api/products/route.ts +7 -0
  23. package/evals/polyglot/fixtures/polyglot-bench/python/tenant_auth.py +4 -0
  24. package/evals/polyglot/fixtures/polyglot-bench/react-native/keyboard.ts +3 -0
  25. package/evals/polyglot/graders/polyglot-bench.mjs +101 -0
  26. package/evals/polyglot/tasks.json +54 -0
  27. package/global-config/AGENTS.md +10 -7
  28. package/global-config/agents/integration-verifier.md +1 -1
  29. package/global-config/agents/plan-checker.md +1 -1
  30. package/global-config/commands/run.md +9 -5
  31. package/global-config/plugins/ues-router/capabilities.js +4 -0
  32. package/global-config/plugins/ues-router/index.js +414 -21
  33. package/global-config/plugins/ues-router/router.js +140 -23
  34. package/global-config/skills/engineering-orchestrator/references/long-horizon.md +6 -4
  35. package/lib/aci.mjs +128 -0
  36. package/lib/benchmark-confidence.mjs +135 -0
  37. package/lib/cli-utils.mjs +41 -0
  38. package/lib/container-sandbox.mjs +102 -0
  39. package/lib/context-manifest.mjs +300 -22
  40. package/lib/control-center.mjs +36 -3
  41. package/lib/eval-order.mjs +9 -0
  42. package/lib/eval-telemetry.mjs +5 -2
  43. package/lib/gate-receipt.mjs +52 -0
  44. package/lib/installer.mjs +39 -25
  45. package/lib/learning-engine.mjs +236 -38
  46. package/lib/opencode-compat.mjs +25 -10
  47. package/lib/orchestrator-policy.mjs +101 -20
  48. package/lib/process-runner.mjs +30 -9
  49. package/lib/runtime-events.mjs +31 -0
  50. package/lib/semantic-index.mjs +318 -0
  51. package/lib/task-engine.mjs +416 -24
  52. package/lib/trajectory.mjs +89 -0
  53. package/lib/windows-shim.mjs +227 -0
  54. package/lib/worktree-sandbox.mjs +85 -3
  55. package/package.json +10 -4
  56. package/scripts/check-release-tag.mjs +22 -0
  57. package/scripts/control-center.mjs +25 -0
  58. package/scripts/eval-live.mjs +39 -58
  59. package/scripts/eval-matrix.mjs +155 -0
  60. package/scripts/smoke-packed-install.mjs +138 -4
  61. package/scripts/smoke-plain-install.mjs +91 -0
  62. package/scripts/validate-live-suite.mjs +3 -3
  63. package/scripts/validate.mjs +27 -5
package/README.md CHANGED
@@ -1,581 +1,675 @@
1
- # OpenCode Universal Engineering System (UES)
2
-
3
- **UES 7.7.0** là engineering harness cho OpenCode, tập trung vào việc giúp model hiện có xử lý repository lớn và task dài theo quy trình có trạng thái bền vững, fresh-context execution, deterministic evidence và verification gate.
4
-
5
- UES không tuyên bố biến một model yếu thành model mạnh hơn về bản chất. Mục tiêu là giảm lượng reasoning mà model phải tự giữ trong một context: chia task rõ, lưu state ra filesystem, dùng code cho các việc có thể xác định được, chạy subagent với context mới, và chỉ cho phép hoàn tất khi có evidence.
6
-
7
- ## UES 7.7.0 có gì?
8
-
9
- Ngoài nền V6 (durable PLAN/STATE/EVIDENCE, fresh executors, plan/integration gates), V7.7 thêm:
10
-
11
- - crash-safe task lease với `runId`, heartbeat, stale-task recovery
12
- - live benchmark heartbeat + hard/idle timeout + Ctrl+C process-tree cancellation
13
- - structured verification receipts gắn command/exit code/output hash/workspace fingerprint vào task run
14
- - context manifest tự chọn declared files, import neighbors, likely tests, manifests và accepted lessons
15
- - adaptive task policy: inline/standard/long-horizon + risk/model/context/retry guidance
16
- - read/write-aware safe waves và isolated Git worktree sandbox primitives cho parallel writers
17
- - evidence-gated learning loop từ `.ues-evals` → proposal → explicit accept → future context retrieval
18
- - optional Hermes bridge theo kiểu adapter, không nhúng Hermes runtime vào core
19
- - zero-dependency local **UES Control Center** cho work state, evidence, learning và eval summaries; chế độ `--serve` tự refresh dữ liệu
20
-
21
- Xem chi tiết: [V7 Intelligence Runtime](docs/V7-INTELLIGENCE-RUNTIME.md)
22
-
23
- ### Lệnh V7 nhanh
24
-
25
- ```cmd
26
- ocskill task-policy "refactor auth across the whole repository"
27
- ocskill work recover <slug> .
28
- ocskill work verify-command <slug> <task> . -- npm test
29
- ocskill sandbox create <slug> <task> .
30
- ocskill learn analyze . --eval-dir .ues-evals
31
- ocskill hermes status
32
- ocskill dashboard . --serve
33
- ```
34
-
35
-
36
-
37
- - **39 engineering skills**
38
- - **11 slash commands**
39
- - **10 subagents**
40
- - durable long-task engine dưới `.ues-work/<slug>/`
41
- - machine-checkable `PLAN.json` + dependency DAG + safe execution waves
42
- - hard plan approval gate và integration verification gate
43
- - atomic/locked `STATE.json` + `EVIDENCE.json` để tránh mất state khi task độc lập hoàn tất đồng thời
44
- - OpenCode V2 runtime plugin với automatic skill routing, safety permission gate và fresh-session task dispatch
45
- - configurable `light / standard / heavy` model tiers với attempt-based escalation
46
- - deterministic repository tools: repo graph, impact, review scope, verification plan, task graph, context pack
47
- - **34 static skill-routing scenarios** phủ đủ 39 skill
48
- - **120 V2 router trigger cases** có positive/negative guards
49
- - **20 standard live hidden-graded tasks**
50
- - **5 long-horizon tasks**, gồm một bài tích hợp **15 source files**
51
- - hỗ trợ **OpenCode 1.x và 2.x**
52
-
53
- Luồng long-horizon chính:
54
-
55
- ```text
56
- request
57
- ↓
58
- repo evidence / codebase map
59
- ↓
60
- SPEC.md
61
- ↓
62
- PLAN.json
63
- ↓
64
- ues-plan-checker
65
- ↓
66
- machine approval gate
67
- ↓
68
- dependency-safe tasks
69
- ↓
70
- fresh ues-executor session / task
71
- ↓
72
- task evidence + durable state
73
- ↓
74
- ues-integration-verifier
75
- ↓
76
- machine integration PASS gate
77
- ↓
78
- workspace fingerprint unchanged
79
- ↓
80
- finalize
81
- ```
82
-
83
- ---
84
-
85
- ## Cài đặt
86
-
87
- ```cmd
88
- npm install -g opencode-agent-skill
89
- ```
90
-
91
- Kiểm tra:
92
-
93
- ```cmd
94
- ocskill status
95
- ocskill doctor
96
- ```
97
-
98
- Nếu npm không chạy lifecycle script:
99
-
100
- ```cmd
101
- ocskill install
102
- ```
103
-
104
- Khi đồng bộ V7.7 đầy đủ, status sẽ phản ánh khoảng:
105
-
106
- ```text
107
- Package version: 7.7.0
108
- Resource version: 7.7.0
109
- Skills: 39/39
110
- Commands: 11/11
111
- Subagents: 10/10
112
- Workflow: OK
113
- ```
114
-
115
- Sau khi cài/cập nhật, nên mở OpenCode session mới để resource mới được nạp.
116
-
117
- ---
118
-
119
- # 1. Subagents
120
-
121
- | Subagent | Vai trò |
122
- |---|---|
123
- | `ues-codebase-mapper` | Map repository, entry point, boundary, hotspot, contract và test surface |
124
- | `ues-architect` | Architecture/change-impact analysis |
125
- | `ues-plan-checker` | Fresh-context gate kiểm tra SPEC/PLAN trước khi code |
126
- | `ues-executor` | Fresh-context implementation cho đúng một approved task |
127
- | `ues-debugger` | Root-cause debugging |
128
- | `ues-researcher` | Kiểm tra docs/API/version hiện hành |
129
- | `ues-reviewer` | Review correctness/regression/security/compatibility |
130
- | `ues-critic` | Adversarial falsification/counterexample |
131
- | `ues-verifier` | Verification độc lập theo acceptance criteria |
132
- | `ues-integration-verifier` | Cross-task/end-to-end integration verification |
133
-
134
- `ues-executor` là subagent có quyền sửa code theo scope được giao. Các agent còn lại chủ yếu phục vụ phân tích/kiểm chứng và không được dùng để âm thầm mở rộng implementation.
135
-
136
- ---
137
-
138
- # 2. Slash commands
139
-
140
- | Lệnh | Công dụng |
141
- |---|---|
142
- | `/ues-feature` | Làm feature theo workflow UES |
143
- | `/ues-fix` | Điều tra root cause rồi sửa bug |
144
- | `/ues-plan` | Lập implementation-ready plan |
145
- | `/ues-debug` | Điều tra bug/build/test failure |
146
- | `/ues-research` | Kiểm tra docs/API/package/version |
147
- | `/ues-review` | Review diff/code |
148
- | `/ues-verify` | Verification bằng evidence mới |
149
- | `/ues-critique` | Tìm assumption sai/counterexample |
150
- | `/ues-audit` | Audit repository/khu vực |
151
- | `/ues-run` | Chạy long-horizon workflow với durable state + fresh executors |
152
- | `/ues-resume` | Resume work item từ `.ues-work` thay vì dựa vào chat history |
153
-
154
- Với task lớn, ưu tiên:
155
-
156
- ```text
157
- /ues-run <yêu cầu>
158
- ```
159
-
160
- Nếu session bị ngắt/compact:
161
-
162
- ```text
163
- /ues-resume <slug>
164
- ```
165
-
166
- ---
167
-
168
- # 3. Long-horizon engine
169
-
170
- V7 task records additionally track `runId`, executor owner, heartbeat, lease expiry and evidence strength. `ocskill work resume` can recover stale running tasks, while the V2 dispatcher refreshes leases during fresh-session execution.
171
-
172
- Structured verification can be recorded with:
173
-
174
- ```cmd
175
- ocskill work verify-command <slug> <task> . --run-id <run-id> -- npm test
176
- ```
177
-
178
-
179
-
180
- Mỗi work item dùng:
181
-
182
- ```text
183
- .ues-work/<slug>/
184
- ├── SPEC.md
185
- ├── PLAN.json
186
- ├── STATE.json
187
- ├── EVIDENCE.json
188
- ├── tasks/
189
- └── reports/
190
- ```
191
-
192
- `.ues-work/` được git-ignore. Đây là execution state, không phải hidden chain-of-thought.
193
-
194
- ## Hard gate 1 — Plan approval
195
-
196
- `ocskill work plan` không đưa task thẳng sang executable state. Nó để state ở:
197
-
198
- ```text
199
- awaiting-plan-approval
200
- ```
201
-
202
- Sau khi `ues-plan-checker` trả PASS:
203
-
204
- ```cmd
205
- ocskill work approve-plan <slug> . --evidence "plan checker PASS: ..."
206
- ```
207
-
208
- Nếu chưa có approval hợp lệ, `ocskill work start` sẽ từ chối.
209
-
210
- ## Hard gate 2 — Concurrent durable state
211
-
212
- Mọi mutation của `STATE.json` và `EVIDENCE.json` dùng per-work-item lock + atomic replacement. Hai task độc lập có thể hoàn tất gần nhau mà không được phép ghi đè state/evidence của nhau.
213
-
214
- Safe-wave chỉ bảo vệ declared file overlap. Nếu task có implicit shared write surface như generated files/lockfiles, hãy serialize.
215
-
216
- ## Hard gate 3 — Integration completion
217
-
218
- Sau khi mọi task hoàn tất:
219
-
220
- ```cmd
221
- ocskill work verify-integration <slug> . --verdict PASS --evidence "..."
222
- ```
223
-
224
- PASS lưu workspace fingerprint. `finalize` sẽ bị từ chối nếu:
225
-
226
- - còn task incomplete
227
- - còn blocker
228
- - chưa có integration PASS
229
- - workspace đã thay đổi sau PASS
230
-
231
- Sau đó:
232
-
233
- ```cmd
234
- ocskill work finalize <slug> . --evidence "final acceptance verified"
235
- ```
236
-
237
- ---
238
-
239
- # 4. Fresh-context executor trên OpenCode V2
240
-
241
- V2 plugin expose tool:
242
-
243
- ```text
244
- ues.dispatch_task
245
- ```
246
-
247
- Nó thực hiện:
248
-
249
- ```text
250
- work start
251
- ↓
252
- read bounded context pack
253
- ↓
254
- resolve model tier theo attempt
255
- ↓
256
- create fresh OpenCode session
257
- ↓
258
- switchAgent(ues-executor)
259
- ↓
260
- switchModel(...) nếu được cấu hình
261
- ↓
262
- prompt đúng 1 task
263
- ↓
264
- wait
265
- ↓
266
- return child-session report
267
- ```
268
-
269
- Parent vẫn phải inspect diff/evidence và gọi `work complete` hoặc `work fail`. Child session không được tự merge/push/publish/deploy.
270
-
271
- ---
272
-
273
- # 5. Adaptive task + model policy
274
-
275
- V7 adds deterministic task classification:
276
-
277
- ```cmd
278
- ocskill task-policy "your engineering request"
279
- ocskill model-policy executor --attempt 1 --text "your engineering request"
280
- ```
281
-
282
- Task risk/complexity can raise the base model tier before attempt-based escalation. User-configured provider/model IDs remain authoritative.
283
-
284
- ## Model tiers
285
-
286
- Xem cấu hình:
287
-
288
- ```cmd
289
- ocskill models status
290
- ```
291
-
292
- Bật:
293
-
294
- ```cmd
295
- ocskill models on
296
- ```
297
-
298
- Gán model:
299
-
300
- ```cmd
301
- ocskill models set light provider/cheap
302
- ocskill models set standard provider/mid
303
- ocskill models set heavy provider/strong
304
- ```
305
-
306
- Gán tier theo role:
307
-
308
- ```cmd
309
- ocskill models role executor standard
310
- ocskill models role plan-checker heavy
311
- ```
312
-
313
- Kiểm tra attempt:
314
-
315
- ```cmd
316
- ocskill model-policy executor --attempt 1
317
- ocskill model-policy executor --attempt 2
318
- ```
319
-
320
- Mặc định role quan trọng như architect, plan-checker, critic và integration-verifier ưu tiên `heavy`; executor/debugger/reviewer thường bắt đầu ở `standard`. Retry có thể escalate lên tier cao hơn nếu đã cấu hình.
321
-
322
- ---
323
-
324
- # 6. Deterministic CLI tools
325
-
326
- | Lệnh | Công dụng |
327
- |---|---|
328
- | `ocskill inspect [dir]` | Stack/package manager/root map/test commands |
329
- | `ocskill repo-graph [dir]` | Bounded import graph + coupling hotspots |
330
- | `ocskill impact <query> [dir]` | Bounded symbol/term impact search |
331
- | `ocskill evidence [dir]` | Repository + verification + Git evidence snapshot |
332
- | `ocskill working-tree [dir]` | Branch/HEAD/dirty state |
333
- | `ocskill review-scope [base] [dir]` | Changed-file coverage + deterministic risk hints |
334
- | `ocskill verification-plan [dir]` | Project-native verification recommendations |
335
- | `ocskill task-graph <PLAN.json>` | Validate DAG + compute safe waves |
336
- | `ocskill context-pack <slug> <task> [dir]` | Bounded handoff cho fresh executor |
337
- | `ocskill work ...` | Durable long-task state machine |
338
-
339
- Ví dụ:
340
-
341
- ```cmd
342
- ocskill repo-graph .
343
- ocskill review-scope main .
344
- ocskill verification-plan .
345
- ocskill task-graph .ues-work/checkout/PLAN.json
346
- ocskill work status checkout .
347
- ```
348
-
349
- ---
350
-
351
- # 7. Skills
352
-
353
- UES giữ **39 skills**, không tăng catalog chỉ để tăng số lượng. Thông thường router chỉ cần 2–4 skill phù hợp.
354
-
355
- Các process skill quan trọng:
356
-
357
- - `ues-engineering-orchestrator`
358
- - `ues-repo-explorer`
359
- - `ues-context-engineering`
360
- - `ues-task-planner`
361
- - `ues-change-impact-analysis`
362
- - `ues-bug-diagnosis`
363
- - `ues-test-driven-development`
364
- - `ues-test-verification`
365
- - `ues-code-review`
366
- - `ues-research-verification`
367
- - `ues-long-task-state`
368
- - `ues-git-safety`
369
-
370
- Domain/framework skills bao gồm React, Next.js, React Native, Node.js, NestJS, Python, Django, FastAPI, .NET, Java/Spring, Flutter, database, REST/API contract, auth/security, payment, ecommerce, file upload, DevOps, UI/UX, accessibility và performance.
371
-
372
- ---
373
-
374
- # 8. OpenCode 1.x và 2.x
375
-
376
- ## OpenCode 1.x
377
-
378
- - skill/command/subagent file vẫn được cài
379
- - dùng permission frontmatter tương thích V1
380
- - không cài V2 runtime plugin
381
- - long-task CLI/durable state vẫn dùng được
382
- - fresh child-session dispatch phụ thuộc khả năng subagent của runtime V1; không có V2 `ues.dispatch_task`
383
-
384
- ## OpenCode 2.x
385
-
386
- Ngoài resource file, UES cài managed plugin:
387
-
388
- ```text
389
- ~/.config/opencode/plugins/ues-router/
390
- ```
391
-
392
- Plugin cung cấp:
393
-
394
- - prompt-time skill routing
395
- - context guardrail
396
- - permission safety gate cho destructive/high-impact shell action
397
- - read-only long-task helpers
398
- - `ues.dispatch_task` fresh-session executor runtime
399
-
400
- Router:
401
-
402
- ```cmd
403
- ocskill router status
404
- ocskill router on --max 4
405
- ocskill router off
406
- ```
407
-
408
- ---
409
-
410
- # 9. Safety
411
-
412
- V2 permission gate nâng các thao tác nguy hiểm lên explicit confirmation, gồm nhóm như:
413
-
414
- - `git push --force` / `git push -f`
415
- - `git reset --hard`
416
- - destructive `git clean`
417
- - `npm publish`
418
- - recursive forced deletion
419
- - `DROP/TRUNCATE`
420
- - Terraform/Kubernetes/Helm high-impact deployment actions
421
-
422
- Instruction vẫn yêu cầu confirmation cho destructive/external side effects. Hook là lớp deterministic bổ sung, không thay thế review của người dùng.
423
-
424
- ---
425
-
426
- # 10. Evaluation
427
-
428
- Live evals now print heartbeats and support `--heartbeat-ms`, `--idle-timeout-ms`, and `--timeout-ms`. Ctrl+C asks the harness to terminate the active OpenCode process tree cleanly.
429
-
430
-
431
-
432
- ## Static skill contract
433
-
434
- ```cmd
435
- npm run evals
436
- ```
437
-
438
- Giữ **34 scenarios** để kiểm catalog và phủ đủ 39 skill.
439
-
440
- ## V2 router precision matrix
441
-
442
- ```cmd
443
- npm run evals:router
444
- ```
445
-
446
- V7.7 giữ **120 cases** với required routes và negative guards, cộng regression tests riêng cho cap-priority/capability runtime.
447
-
448
- ## Standard hidden graders
449
-
450
- ```cmd
451
- npm run evals:live:validate
452
- ```
453
-
454
- Có **20 standard live tasks**.
455
-
456
- ## Long-horizon integrity
457
-
458
- ```cmd
459
- npm run evals:long:validate
460
- ```
461
-
462
- Có **5 long tasks**, trong đó một task yêu cầu phối hợp **15 source modules**.
463
-
464
- ## Baseline vs UES model thật
465
-
466
- ```cmd
467
- ocskill eval-live --model provider/model --trials 3
468
- ocskill eval-live --suite long --model provider/model --trials 3
469
- ```
470
-
471
- Với suite `long`, UES mode chỉ được tính PASS khi:
472
-
473
- - hidden grader PASS
474
- - có durable `.ues-work`
475
- - plan approval PASS
476
- - plan có ít nhất 2 task
477
- - mọi task đã được attempt + completed
478
- - integration verification PASS
479
- - integration evidence tồn tại
480
- - finalization evidence tồn tại
481
- - state cuối là `completed`
482
-
483
- Vì vậy model giải code trực tiếp trong một context nhưng bỏ qua long-horizon engine sẽ không được tính là UES long PASS.
484
-
485
- ---
486
-
487
- # 11. CI / package release
488
-
489
- Yêu cầu phát triển:
490
-
491
- - Node.js 20+
492
- - npm
493
- - Git
494
-
495
- ```cmd
496
- npm ci --ignore-scripts
497
- npm run ci
498
- ```
499
-
500
- Pipeline gồm:
501
-
502
- ```text
503
- syntax
504
- → resource validation
505
- → static skill routing
506
- → 120-case router eval
507
- → standard hidden-grader integrity
508
- → long hidden-grader integrity
509
- → Node tests
510
- → npm pack --dry-run
511
- → packed global-install smoke
512
- ```
513
-
514
- Packed smoke kiểm tra OpenCode V2 path, 39 skills, 11 commands, 10 subagents, router plugin, task graph, durable work state và model config.
515
-
516
- ---
517
-
518
- # 12. Update / remove
519
-
520
- Update:
521
-
522
- ```cmd
523
- ocskill update
524
- ```
525
-
526
- Remove:
527
-
528
- ```cmd
529
- ocskill remove
530
- ```
531
-
532
- UES chỉ quản lý resource có namespace/marker của chính nó, giữ unmanaged collisions và chống accidental downgrade.
533
-
534
- ---
535
-
536
- # Tài liệu
537
-
538
- - [Engineering design](docs/ENGINEERING-DESIGN.md)
539
- - [OpenCode compatibility](docs/OPENCODE-COMPAT.md)
540
- - [Deterministic tools](docs/DETERMINISTIC-TOOLS.md)
541
- - [Evaluation](docs/EVALS.md)
542
- - [Trace schema](docs/TRACE-SCHEMA.md)
543
- - [npm publish](docs/NPM-PUBLISH.md)
544
- - [Research sources](docs/RESEARCH-SOURCES.md)
545
-
546
- # License
547
-
548
- MIT
549
-
550
-
551
- # 13. Learning, Hermes và Control Center
552
-
553
- Evidence-gated learning:
554
-
555
- ```cmd
556
- ocskill learn analyze . --eval-dir .ues-evals
557
- ocskill learn status .
558
- ocskill learn accept <proposal-id> .
559
- ```
560
-
561
- Optional Hermes adapter:
562
-
563
- ```cmd
564
- ocskill hermes status
565
- ocskill hermes prompt <slug> <task> .
566
- ocskill hermes exec <slug> <task> .
567
- ```
568
-
569
- Local Control Center:
570
-
571
- ```cmd
572
- ocskill dashboard .
573
- ocskill dashboard . --serve --port 4177
574
- ```
575
-
576
- Parallel write isolation primitives:
577
-
578
- ```cmd
579
- ocskill sandbox create <slug> <task> .
580
- ocskill sandbox list .
581
- ```
1
+ # OpenCode Universal Engineering System (UES)
2
+
3
+ > **Bản hiện tại: 9.0.0**
4
+ > UES là bộ công cụ hỗ trợ OpenCode xử lý dự án lớn, tác vụ dài và quy trình kỹ thuật cần kiểm chứng bằng bằng chứng thực tế.
5
+
6
+ [![npm version](https://img.shields.io/npm/v/opencode-agent-skill.svg)](https://www.npmjs.com/package/opencode-agent-skill)
7
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
+
9
+ ## Giới thiệu
10
+
11
+ **OpenCode Universal Engineering System (UES)** là một engineering harness dành cho OpenCode. UES không thay đổi năng lực nền tảng của model, mà tổ chức cách model làm việc để:
12
+
13
+ - giảm lượng thông tin phải giữ trong một context dài;
14
+ - chia tác vụ lớn thành các bước rõ ràng;
15
+ - lưu trạng thái ra filesystem để có thể tiếp tục sau khi session bị ngắt;
16
+ - chạy executor bằng context mới cho từng tác vụ;
17
+ - yêu cầu bằng chứng kiểm thử trước khi đánh dấu hoàn tất;
18
+ - kiểm tra thay đổi ở mức task và mức tích hợp toàn hệ thống;
19
+ - hỗ trợ routing skill, model tier, task policy và recovery theo trạng thái thực tế của repository.
20
+
21
+ Mục tiêu của UES là giúp quá trình làm việc với coding agent **ổn định hơn, có thể kiểm chứng hơn và phù hợp hơn với repository lớn**.
22
+
23
+ ---
24
+
25
+ ## Cài đặt
26
+
27
+ Yêu cầu:
28
+
29
+ - Node.js 20 trở lên;
30
+ - npm;
31
+ - OpenCode.
32
+
33
+ Cài đặt toàn cục từ npm:
34
+
35
+ ```cmd
36
+ npm install -g opencode-agent-skill
37
+ ```
38
+
39
+ Kiểm tra:
40
+
41
+ ```cmd
42
+ ocskill version
43
+ ocskill status
44
+ ocskill doctor
45
+ ```
46
+
47
+ Nếu npm không chạy lifecycle script trong lúc cài đặt, chạy thêm:
48
+
49
+ ```cmd
50
+ ocskill install
51
+ ```
52
+
53
+ Sau khi cài hoặc cập nhật UES, nên mở một OpenCode session mới để các skill, command, subagent và plugin được nạp lại đầy đủ.
54
+
55
+ ---
56
+
57
+ ## Bắt đầu nhanh
58
+
59
+ Với tác vụ lớn, dùng:
60
+
61
+ ```text
62
+ /ues-run <yêu cầu>
63
+ ```
64
+
65
+ Nếu session bị ngắt hoặc context bị compact:
66
+
67
+ ```text
68
+ /ues-resume <slug>
69
+ ```
70
+
71
+ Một số lệnh hữu ích:
72
+
73
+ ```cmd
74
+ ocskill inspect .
75
+ ocskill repo-graph .
76
+ ocskill verification-plan .
77
+ ocskill task-policy "refactor auth across the whole repository"
78
+ ocskill dashboard . --serve
79
+ ```
80
+
81
+ ---
82
+
83
+ ## UES 9.0.0 có gì?
84
+
85
+ UES 9.0.0 cung cấp các khả năng sau (kế thừa từ 8.0.0):
86
+
87
+ - **39 engineering skills**;
88
+ - **11 slash commands**;
89
+ - **10 subagents**;
90
+ - long-task engine bền vững dưới `.ues-work/<slug>/`;
91
+ - `PLAN.json`, `STATE.json`, `EVIDENCE.json` và append-only `EVENTS.jsonl`;
92
+ - structured plan/integration receipts gắn với plan hash hoặc workspace fingerprint;
93
+ - task lease với `runId`, heartbeat, session owner, lease expiry và task-scoped stale recovery;
94
+ - strict verification cho long/high-risk task: receipt phải PASS đúng active run và đúng workspace hiện tại;
95
+ - context manifest v3 với Git-change awareness, symbol hits, TF-IDF-style relevance, tests/instructions và centered excerpts;
96
+ - task policy `inline / standard / long-horizon` cùng model tier `light / standard / heavy`;
97
+ - bounded fresh executor với hard timeout, interrupt/cancel và recovery;
98
+ - safe-wave scheduling cùng Git worktree isolation/integration có conflict detection;
99
+ - learning v2: failure clustering, explicit acceptance và shadow-benchmark promotion;
100
+ - benchmark matrix standard + long-horizon + polyglot;
101
+ - optional Hermes adapter;
102
+ - UES Control Center hiển thị runtime events, receipts và stale recovery;
103
+ - OpenCode V2 router plugin với multilingual routing, safety gate, cancel/recover tools và fresh-session dispatch.
104
+
105
+ V9 bổ sung:
106
+
107
+ - persistent incremental source index dưới `.ues-cache/semantic-index-v1.json` cùng ACI search/refs/view/text;
108
+ - FAST / STANDARD / DEEP execution profiles với bounded context budget, skill cap và verification depth;
109
+ - context manifest v4 tiêu thụ incremental evidence index trước khi mở rộng graph;
110
+ - redacted operational trajectory dưới `.ues-traces/*.jsonl` để replay/debug mà không lưu hidden chain-of-thought;
111
+ - optional container verification sandbox (Docker/Podman) với network-off, dropped capabilities và resource bounds;
112
+ - paired baseline-vs-UES confidence gate qua `npm run evals:matrix:gate`.
113
+
114
+ ---
115
+
116
+ ## Kiến trúc tác vụ dài
117
+
118
+ Luồng long-horizon chính:
119
+
120
+ ```text
121
+ Yêu cầu
122
+ ↓
123
+ Khảo sát repository / bằng chứng
124
+ ↓
125
+ SPEC.md
126
+ ↓
127
+ PLAN.json
128
+ ↓
129
+ ues-plan-checker
130
+ ↓
131
+ Phê duyệt kế hoạch
132
+ ↓
133
+ Các task theo dependency graph
134
+ ↓
135
+ Fresh ues-executor session cho từng task
136
+ ↓
137
+ Task evidence + durable state
138
+ ↓
139
+ ues-integration-verifier
140
+ ↓
141
+ Integration PASS
142
+ ↓
143
+ Kiểm tra workspace không thay đổi
144
+ ↓
145
+ Finalize
146
+ ```
147
+
148
+ Mỗi work item dùng cấu trúc:
149
+
150
+ ```text
151
+ .ues-work/<slug>/
152
+ ├── SPEC.md
153
+ ├── PLAN.json
154
+ ├── STATE.json
155
+ ├── EVIDENCE.json
156
+ ├── EVENTS.jsonl
157
+ ├── tasks/
158
+ └── reports/
159
+ ```
160
+
161
+ `.ues-work/` là trạng thái thực thi của workflow, không phải hidden chain-of-thought.
162
+
163
+ ### Gate 1 — Phê duyệt kế hoạch
164
+
165
+ Sau khi tạo plan, task chưa được chạy ngay. Trạng thái sẽ ở:
166
+
167
+ ```text
168
+ awaiting-plan-approval
169
+ ```
170
+
171
+ Sau khi `ues-plan-checker` trả PASS, với long/high-risk work hãy tạo receipt gắn với đúng plan hiện tại rồi mới approve:
172
+
173
+ ```cmd
174
+ ocskill work gate-receipt <slug> plan . --verifier ues-plan-checker --evidence "plan checker PASS" --out .ues-work/<slug>/reports/plan-receipt.json
175
+ ocskill work approve-plan <slug> . --evidence "plan checker PASS" --receipt-file .ues-work/<slug>/reports/plan-receipt.json
176
+ ```
177
+
178
+ Nếu thiếu structured receipt ở workflow strict, `ocskill work start` sẽ không được mở gate.
179
+
180
+ ### Gate 2 — Bằng chứng cho từng task
181
+
182
+ Có thể ghi verification receipt trực tiếp từ command:
183
+
184
+ ```cmd
185
+ ocskill work verify-command <slug> <task-id> . --run-id <run-id> -- npm test
186
+ ```
187
+
188
+ Receipt gắn kết kết quả command với đúng task run. Với long/high-risk work, receipt PASS còn phải khớp workspace fingerprint hiện tại; nếu code thay đổi sau khi test thì phải verify lại.
189
+
190
+ ### Gate 3 — Kiểm tra tích hợp
191
+
192
+ Sau khi toàn bộ task hoàn tất, tạo integration receipt gắn với workspace hiện tại rồi ghi PASS:
193
+
194
+ ```cmd
195
+ ocskill work gate-receipt <slug> integration . --verifier ues-integration-verifier --verdict PASS --evidence "integration PASS" --out .ues-work/<slug>/reports/integration-receipt.json
196
+ ocskill work verify-integration <slug> . --verdict PASS --evidence "integration PASS" --receipt-file .ues-work/<slug>/reports/integration-receipt.json
197
+ ```
198
+
199
+ Sau đó:
200
+
201
+ ```cmd
202
+ ocskill work finalize <slug> . --evidence "final acceptance verified"
203
+ ```
204
+
205
+ `finalize` sẽ bị từ chối nếu còn task chưa hoàn tất, còn blocker, chưa có integration PASS hoặc workspace đã thay đổi sau lần kiểm tra tích hợp.
206
+
207
+ ---
208
+
209
+ ## Fresh-context executor trên OpenCode V2
210
+
211
+ OpenCode V2 plugin cung cấp tool:
212
+
213
+ ```text
214
+ ues.dispatch_task
215
+ ```
216
+
217
+ Luồng thực thi:
218
+
219
+ ```text
220
+ work start
221
+ ↓
222
+ đọc bounded context pack
223
+ ↓
224
+ chọn model tier theo task + attempt
225
+ ↓
226
+ tạo OpenCode session mới
227
+ ↓
228
+ switchAgent(ues-executor)
229
+ ↓
230
+ switchModel(...) nếu đã cấu hình
231
+ ↓
232
+ gửi đúng một task
233
+ ↓
234
+ heartbeat + bounded wait
235
+ ↓
236
+ interrupt nếu timeout/cancel
237
+ ↓
238
+ isolate writer khi cần
239
+ ↓
240
+ trả child-session report
241
+ ```
242
+
243
+ Parent session vẫn chịu trách nhiệm kiểm tra diff, evidence và quyết định gọi `work complete` hoặc `work fail`.
244
+
245
+ Child session không được tự động merge, push, publish hoặc deploy.
246
+
247
+ ---
248
+
249
+ ## Subagents
250
+
251
+ | Subagent | Vai trò |
252
+ |---|---|
253
+ | `ues-codebase-mapper` | Lập bản đồ repository, entry point, boundary, hotspot, contract và test surface |
254
+ | `ues-architect` | Phân tích kiến trúc và phạm vi ảnh hưởng |
255
+ | `ues-plan-checker` | Kiểm tra SPEC/PLAN trước khi cho phép thực thi |
256
+ | `ues-executor` | Thực hiện một task đã được phê duyệt trong context mới |
257
+ | `ues-debugger` | Điều tra nguyên nhân gốc của lỗi |
258
+ | `ues-researcher` | Kiểm tra tài liệu, API và phiên bản hiện hành |
259
+ | `ues-reviewer` | Review correctness, regression, security và compatibility |
260
+ | `ues-critic` | Tìm giả định sai, counterexample và điểm yếu trong phương án |
261
+ | `ues-verifier` | Xác minh độc lập theo acceptance criteria |
262
+ | `ues-integration-verifier` | Kiểm tra tích hợp giữa nhiều task và luồng end-to-end |
263
+
264
+ `ues-executor` là subagent chính có quyền sửa code theo scope được giao. Các agent còn lại chủ yếu phục vụ phân tích, review và xác minh.
265
+
266
+ ---
267
+
268
+ ## Slash commands
269
+
270
+ | Lệnh | Công dụng |
271
+ |---|---|
272
+ | `/ues-feature` | Triển khai feature theo workflow UES |
273
+ | `/ues-fix` | Điều tra nguyên nhân rồi sửa bug |
274
+ | `/ues-plan` | Lập kế hoạch triển khai có thể thực thi |
275
+ | `/ues-debug` | Điều tra lỗi build, runtime hoặc test |
276
+ | `/ues-research` | Kiểm tra docs, API, package hoặc version |
277
+ | `/ues-review` | Review code hoặc diff |
278
+ | `/ues-verify` | Xác minh bằng evidence mới |
279
+ | `/ues-critique` | Tìm assumption sai và counterexample |
280
+ | `/ues-audit` | Audit repository hoặc một khu vực |
281
+ | `/ues-run` | Chạy workflow long-horizon với durable state |
282
+ | `/ues-resume` | Tiếp tục work item từ `.ues-work` |
283
+
284
+ ---
285
+
286
+ ## Task policy và model policy
287
+
288
+ Phân loại yêu cầu kỹ thuật:
289
+
290
+ ```cmd
291
+ ocskill task-policy "your engineering request"
292
+ ```
293
+
294
+ Kiểm tra model policy:
295
+
296
+ ```cmd
297
+ ocskill model-policy executor --attempt 1 --text "your engineering request"
298
+ ```
299
+
300
+ UES dùng ba model tier:
301
+
302
+ ```text
303
+ light
304
+ standard
305
+ heavy
306
+ ```
307
+
308
+ Xem cấu hình:
309
+
310
+ ```cmd
311
+ ocskill models status
312
+ ```
313
+
314
+ Bật model policy:
315
+
316
+ ```cmd
317
+ ocskill models on
318
+ ```
319
+
320
+ Gán model cho từng tier:
321
+
322
+ ```cmd
323
+ ocskill models set light provider/cheap
324
+ ocskill models set standard provider/mid
325
+ ocskill models set heavy provider/strong
326
+ ```
327
+
328
+ Gán tier theo role:
329
+
330
+ ```cmd
331
+ ocskill models role executor standard
332
+ ocskill models role plan-checker heavy
333
+ ```
334
+
335
+ Model ID do người dùng cấu hình vẫn là nguồn quyết định cuối cùng; UES không tự đoán provider/model ID.
336
+
337
+ ---
338
+
339
+ ## Công cụ CLI
340
+
341
+ | Lệnh | Công dụng |
342
+ |---|---|
343
+ | `ocskill inspect [dir]` | Phát hiện stack, package manager, root và test command |
344
+ | `ocskill repo-graph [dir]` | Lập import graph có giới hạn và tìm hotspot |
345
+ | `ocskill impact <query> [dir]` | Tìm phạm vi ảnh hưởng theo symbol hoặc từ khóa |
346
+ | `ocskill evidence [dir]` | Thu thập snapshot về repository, verification và Git |
347
+ | `ocskill working-tree [dir]` | Kiểm tra branch, HEAD và working tree |
348
+ | `ocskill review-scope [base] [dir]` | Phân tích changed-file coverage và risk hint |
349
+ | `ocskill verification-plan [dir]` | Đề xuất verification phù hợp với project |
350
+ | `ocskill task-graph <PLAN.json>` | Kiểm tra DAG và tính safe waves |
351
+ | `ocskill context-pack <slug> <task> [dir]` | Tạo bounded handoff cho executor |
352
+ | `ocskill work ...` | Điều khiển durable long-task state machine |
353
+
354
+ Ví dụ:
355
+
356
+ ```cmd
357
+ ocskill repo-graph .
358
+ ocskill review-scope main .
359
+ ocskill verification-plan .
360
+ ocskill task-graph .ues-work/checkout/PLAN.json
361
+ ocskill work status checkout .
362
+ ```
363
+
364
+ ---
365
+
366
+ ## Skills
367
+
368
+ UES hiện có **39 skills**. Router chỉ chọn các skill phù hợp thay vì nạp toàn bộ catalog vào mỗi task.
369
+
370
+ Một số process skill quan trọng:
371
+
372
+ - `ues-engineering-orchestrator`
373
+ - `ues-repo-explorer`
374
+ - `ues-context-engineering`
375
+ - `ues-task-planner`
376
+ - `ues-change-impact-analysis`
377
+ - `ues-bug-diagnosis`
378
+ - `ues-test-driven-development`
379
+ - `ues-test-verification`
380
+ - `ues-code-review`
381
+ - `ues-research-verification`
382
+ - `ues-long-task-state`
383
+ - `ues-git-safety`
384
+
385
+ Nhóm domain/framework hiện bao gồm React, Next.js, React Native, Node.js, NestJS, Python, Django, FastAPI, .NET, Java/Spring, Flutter, database, REST/API contract, authentication/security, payment, ecommerce, file upload, DevOps, UI/UX, accessibility và performance.
386
+
387
+ ---
388
+
389
+ ## Tương thích OpenCode
390
+
391
+ ### OpenCode 1.x
392
+
393
+ - cài skill, command và subagent;
394
+ - dùng frontmatter tương thích V1;
395
+ - không cài V2 runtime plugin;
396
+ - durable long-task CLI vẫn dùng được;
397
+ - không có V2 `ues.dispatch_task`.
398
+
399
+ ### OpenCode 2.x
400
+
401
+ Ngoài resource file, UES cài managed plugin tại:
402
+
403
+ ```text
404
+ ~/.config/opencode/plugins/ues-router/
405
+ ```
406
+
407
+ Plugin cung cấp:
408
+
409
+ - automatic skill routing;
410
+ - context guardrail;
411
+ - permission safety gate;
412
+ - read-only long-task helpers;
413
+ - fresh-session executor runtime qua `ues.dispatch_task`.
414
+
415
+ Điều khiển router:
416
+
417
+ ```cmd
418
+ ocskill router status
419
+ ocskill router on --max 4
420
+ ocskill router off
421
+ ```
422
+
423
+ ---
424
+
425
+ ## Safety
426
+
427
+ OpenCode V2 permission gate yêu cầu xác nhận rõ ràng trước các thao tác có tác động lớn, ví dụ:
428
+
429
+ - `git push --force` hoặc `git push -f`;
430
+ - `git reset --hard`;
431
+ - destructive `git clean`;
432
+ - `npm publish`;
433
+ - recursive forced deletion;
434
+ - `DROP` hoặc `TRUNCATE`;
435
+ - Terraform, Kubernetes hoặc Helm action có tác động lớn.
436
+
437
+ Safety hook là lớp bảo vệ deterministic bổ sung, không thay thế review của người dùng.
438
+
439
+ ---
440
+
441
+ ## Learning loop
442
+
443
+ Phân tích eval trace:
444
+
445
+ ```cmd
446
+ ocskill learn analyze . --eval-dir .ues-evals
447
+ ```
448
+
449
+ Xem trạng thái:
450
+
451
+ ```cmd
452
+ ocskill learn status .
453
+ ```
454
+
455
+ Chấp nhận một proposal trước khi thử nghiệm:
456
+
457
+ ```cmd
458
+ ocskill learn accept <proposal-id> .
459
+ ```
460
+
461
+ Sau khi shadow benchmark chứng minh candidate tốt hơn baseline:
462
+
463
+ ```cmd
464
+ ocskill learn promote <proposal-id> . --baseline 0.50 --candidate 0.75 --samples 4
465
+ ```
466
+
467
+ Proposal có `shadowRequired` chỉ được đưa trở lại context sau khi vừa được chấp nhận rõ ràng vừa có benchmark improvement đo được.
468
+
469
+ ---
470
+
471
+ ## Hermes adapter
472
+
473
+ UES hỗ trợ Hermes theo dạng adapter tùy chọn, không nhúng Hermes runtime vào core:
474
+
475
+ ```cmd
476
+ ocskill hermes status
477
+ ocskill hermes prompt <slug> <task> .
478
+ ocskill hermes exec <slug> <task> .
479
+ ```
480
+
481
+ Nếu máy không có Hermes CLI, các tính năng Hermes chỉ báo unavailable và không ảnh hưởng đến core UES.
482
+
483
+ ---
484
+
485
+ ## UES Control Center
486
+
487
+ Tạo dashboard tĩnh:
488
+
489
+ ```cmd
490
+ ocskill dashboard .
491
+ ```
492
+
493
+ Chạy dashboard có tự refresh:
494
+
495
+ ```cmd
496
+ ocskill dashboard . --serve --port 4177
497
+ ```
498
+
499
+ Control Center hiển thị work state, verification receipts, runtime events, learning proposals và eval summary; server mode có safe stale-recovery action.
500
+
501
+ ---
502
+
503
+ ## Sandbox cho tác vụ ghi song song
504
+
505
+ Tạo isolated Git worktree:
506
+
507
+ ```cmd
508
+ ocskill sandbox create <slug> <task-id> .
509
+ ```
510
+
511
+ Tích hợp sandbox sau khi đã inspect/verify:
512
+
513
+ ```cmd
514
+ ocskill sandbox integrate <worktree-path> .
515
+ ```
516
+
517
+ Liệt kê sandbox:
518
+
519
+ ```cmd
520
+ ocskill sandbox list .
521
+ ```
522
+
523
+ Integration sẽ từ chối ghi đè lên file đang dirty ở root. Safe-wave scheduling chỉ bảo vệ declared file scope. Generated file, lockfile hoặc shared write surface ngầm định vẫn nên được serialize khi cần.
524
+
525
+ ---
526
+
527
+ ## Evaluation
528
+
529
+ UES 9.0.0 hiện có:
530
+
531
+ - **34 static skill-routing scenarios** phủ 39 skills;
532
+ - **120 V2 router cases** với required routes và negative guards;
533
+ - **20 standard live tasks**;
534
+ - **5 long-horizon tasks**;
535
+ - **8 polyglot tasks** cho Python, Java, .NET, Next.js, React Native, SQL migration, monorepo và generated contract;
536
+ - benchmark matrix baseline-vs-UES nhiều trial;
537
+ - một long task tích hợp tới **15 source modules**.
538
+
539
+ Kiểm tra static routing:
540
+
541
+ ```cmd
542
+ npm run evals
543
+ ```
544
+
545
+ Kiểm tra V2 router:
546
+
547
+ ```cmd
548
+ npm run evals:router
549
+ ```
550
+
551
+ Kiểm tra standard hidden graders:
552
+
553
+ ```cmd
554
+ npm run evals:live:validate
555
+ ```
556
+
557
+ Kiểm tra long-horizon và polyglot suite:
558
+
559
+ ```cmd
560
+ npm run evals:long:validate
561
+ npm run evals:polyglot:validate
562
+ ```
563
+
564
+ Chạy benchmark với model thật:
565
+
566
+ ```cmd
567
+ ocskill eval-live --model provider/model --trials 3
568
+ ocskill eval-live --suite long --model provider/model --trials 3
569
+ npm run evals:matrix -- --model provider/model --trials 3
570
+ ```
571
+
572
+ Live eval hỗ trợ heartbeat, hard timeout, idle timeout và Ctrl+C process-tree cancellation.
573
+
574
+ Với long suite, một run UES chỉ được tính PASS khi hidden grader PASS, durable work state tồn tại, plan approval hợp lệ, toàn bộ task hoàn tất, integration verification PASS và finalization hoàn tất.
575
+
576
+ ---
577
+
578
+ ## Phát triển và CI
579
+
580
+ Yêu cầu:
581
+
582
+ - Node.js 20+;
583
+ - npm;
584
+ - Git.
585
+
586
+ Cài dependency mà không chạy lifecycle script:
587
+
588
+ ```cmd
589
+ npm ci --ignore-scripts
590
+ ```
591
+
592
+ Chạy toàn bộ CI:
593
+
594
+ ```cmd
595
+ npm run ci
596
+ ```
597
+
598
+ Pipeline hiện kiểm tra:
599
+
600
+ ```text
601
+ syntax
602
+ → resource validation
603
+ → static skill routing
604
+ → V2 router matrix
605
+ → standard hidden-grader integrity
606
+ → long hidden-grader integrity
607
+ → polyglot hidden-grader integrity
608
+ → Node tests
609
+ → npm pack --dry-run
610
+ → packed global-install smoke
611
+ → plain one-command install compatibility smoke
612
+ ```
613
+
614
+ Packed smoke xác minh package cài được từ tarball và kiểm tra OpenCode V2 path, skills, commands, subagents, router plugin, task graph, durable state và model config.
615
+
616
+ ---
617
+
618
+ ## Cập nhật và gỡ cài đặt
619
+
620
+ Cập nhật lên bản npm mới nhất:
621
+
622
+ ```cmd
623
+ ocskill update
624
+ ```
625
+
626
+ Gỡ UES:
627
+
628
+ ```cmd
629
+ ocskill remove
630
+ ```
631
+
632
+ UES chỉ quản lý resource có namespace/marker của chính nó và cố gắng giữ nguyên resource không thuộc quyền quản lý của UES.
633
+
634
+ ---
635
+
636
+ ## Tài liệu
637
+
638
+ - [Thiết kế hệ thống](docs/ENGINEERING-DESIGN.md)
639
+ - [Tương thích OpenCode](docs/OPENCODE-COMPAT.md)
640
+ - [Công cụ deterministic](docs/DETERMINISTIC-TOOLS.md)
641
+ - [Evaluation](docs/EVALS.md)
642
+ - [Trace schema](docs/TRACE-SCHEMA.md)
643
+ - [Hướng dẫn publish npm](docs/NPM-PUBLISH.md)
644
+ - [Nguồn nghiên cứu](docs/RESEARCH-SOURCES.md)
645
+ - [V7 Intelligence Runtime](docs/V7-INTELLIGENCE-RUNTIME.md)
646
+ - [V8 Intelligence & Reliability](docs/V8-INTELLIGENCE-RELIABILITY.md)
647
+ - [V9 Speed & Intelligence](docs/V9-SPEED-INTELLIGENCE.md)
648
+
649
+ ---
650
+
651
+ ## npm
652
+
653
+ Package:
654
+
655
+ ```text
656
+ opencode-agent-skill
657
+ ```
658
+
659
+ Cài đặt:
660
+
661
+ ```cmd
662
+ npm install -g opencode-agent-skill
663
+ ```
664
+
665
+ Phiên bản hiện tại:
666
+
667
+ ```text
668
+ 9.0.0
669
+ ```
670
+
671
+ ---
672
+
673
+ ## License
674
+
675
+ MIT