HomeTrang chủ › CheatsheetTra cứu nhanh
Everything, in tablesTất cả, trong bảng

CheatsheetTra cứu nhanh

scan & go

Every command, gate stage, gating artifact, and environment variable on one page — scannable, no prose to wade through. Need the why behind a row? Each links to its full guide. Need to pick a skill? Use the command finder.Mọi lệnh, stage gate, artifact gác cổng, và biến môi trường trên một trang — liếc là thấy, không phải lội qua prose. Cần biết tại sao một dòng tồn tại? Mỗi dòng dẫn tới guide đầy đủ. Cần chọn skill? Dùng bộ chọn lệnh.

🔣
Reading a command: /hs:<name> invokes a skill · free text after it is your request · --flags tune it. Example: /hs:plan add a rate limit --fast — skill plan, request "add a rate limit", flag --fast (skip research + red-team).Đọc một lệnh: /hs:<tên> gọi một skill · chữ tự do sau đó là yêu cầu của bạn · --cờ điều chỉnh. Ví dụ: /hs:plan thêm rate limit --fast — skill plan, yêu cầu "thêm rate limit", cờ --fast (bỏ research + red-team).

Pipeline at a glanceQuy trình một liếc

One enforced spine. Each step leaves an artifact the next step — or the gate — reads.Một xương sống bị ép. Mỗi bước để lại artifact mà bước sau — hoặc gate — đọc.

StepBướcCommandLệnhLeaves behindĐể lại
PlanLập kế hoạch/hs:planplan.md + phase files → plan-approval.yaml
CookNấu/hs:cookverification.json (per phase)(mỗi phase)
TestKiểm thử/hs:testverification.json verdict: PASS
ReviewReview/hs:code-reviewreview-decision.json verdict: PASS
ShipShip/hs:shippush / PR — gate checks all artifactspush / PR — gate kiểm mọi artifact

All commandsToàn bộ lệnh

A quick-reference to the most-used hs:* skills, grouped by what you're trying to do. Invoke any with /hs:<name>. All 68 with full descriptions live in the catalog.Bảng tra nhanh các skill hs:* hay dùng nhất, nhóm theo điều bạn đang muốn làm. Gọi bất kỳ với /hs:<tên>. Toàn bộ 68 kèm mô tả đầy đủ nằm trong catalog.

SDLC spine — the gated fourXương sống SDLC — bốn bước bị gate
/hs:planVerified plan — research, red-team, validate before any code.Plan có kiểm chứng — research, red-team, validate trước mọi dòng code.
/hs:cookExecute an approved plan phase by phase, TDD red→green.Thực thi plan đã duyệt từng phase, TDD đỏ→xanh.
/hs:testRun & validate tests; emit the QA verdict.Chạy & validate test; phát verdict QA.
/hs:shipGated ship pipeline: review → verify → human → push/PR.Pipeline ship có gate: review → verify → người → push/PR.
Shape & route the workĐịnh hình & định tuyến
/hs:discoverShape an ambiguous ask into a discovery brief for plan.Biến yêu cầu mơ hồ thành discovery brief cho plan.
/hs:triageDefect lifecycle: reproduce → classify → gate.Vòng đời defect: tái hiện → phân loại → gate.
/hs:understandMap a codebase before touching it.Lập bản đồ codebase trước khi đụng.
/hs:teamParallel Agent Teams with file-ownership lanes.Agent Team song song với làn sở hữu file.
/hs:find-skillsRoute to the right skill when you're unsure.Định tuyến tới đúng skill khi chưa chắc.
/hs:codemapSet up (only with your yes), refresh and check the repo's code map.Lập (chỉ khi bạn đồng ý), làm mới và kiểm bản đồ code của repo.
Catch problems before they shipBắt vấn đề trước khi ship
/hs:code-reviewBugs, regressions, security — verdict in review-decision.json.Bug, regression, bảo mật — verdict trong review-decision.json.
/hs:review-prGitHub PR review; --fix and --reply supported.Review PR GitHub; hỗ trợ --fix và --reply.
/hs:critiqueMulti-lens adversarial critique → one ranked verdict.Critique đối nghịch nhiều lăng kính → một verdict xếp hạng.
/hs:security-scanSecrets, CVEs, injection, authz across the diff.Secrets, CVE, injection, authz trên diff.
/hs:scenario15-dimension edge-case decomposition.Phân rã edge-case 15 chiều.
/hs:predictFive personas debate a risky change pre-flight.Năm persona tranh luận thay đổi rủi ro trước khi áp.
Diagnose & fixChẩn đoán & fix
/hs:debugProve root cause before changing behavior.Chứng minh nguyên nhân gốc trước khi đổi hành vi.
/hs:fixEvidence-based bug / CI fix, minimal change.Fix bug / CI dựa bằng chứng, thay đổi tối thiểu.
/hs:problem-solvingStructured unblocking when you're stuck in a loop.Gỡ rối có cấu trúc khi bạn kẹt trong vòng lặp.
Research & knowledgeNghiên cứu & kiến thức
/hs:researchVerified multi-source research with citations.Nghiên cứu nhiều nguồn có kiểm chứng, kèm trích dẫn.
/hs:scoutFast parallel codebase exploration.Khám phá codebase song song nhanh.
/hs:tech-graphPublish-grade static technical diagrams.Sơ đồ kỹ thuật tĩnh chất lượng xuất bản.
/hs:context-engineeringAssemble optimal context within a token budget.Lắp context tối ưu trong ngân sách token.
Think & decideNghĩ & quyết
/hs:brainstormHonest trade-off analysis before committing.Phân tích đánh đổi trung thực trước khi cam kết.
/hs:bakeoffEmpirical 2–4-way probe on one metric; winner by numbers.Probe thực nghiệm 2–4 hướng trên một metric; thắng bằng số.
/hs:loopIn-session self-optimization against a metric.Tự tối ưu trong phiên theo một metric.
Explain & documentGiải thích & tài liệu
/hs:docsCreate, update, or audit project docs.Tạo, cập nhật, hoặc audit docs dự án.
/hs:docs-scaffoldStub missing docs from templates (frontmatter + TBD), no-clobber.Tạo khung doc còn thiếu từ template (frontmatter + TBD), no-clobber.
/hs:docs-standardizeValidate doc structure (frontmatter + graph) → artifact → gate.Kiểm cấu trúc doc (frontmatter + graph) → artifact → gate.
/hs:docs-buildRender docs → showcase HTML + dist (flat-md, PDF, Excel).Render docs → showcase HTML + dist (flat-md, PDF, Excel).
/hs:previewExplain a change with a diagram.Giải thích thay đổi bằng sơ đồ.
/hs:mermaidjsInline Mermaid diagrams in markdown.Sơ đồ Mermaid nội tuyến trong markdown.
/hs:rememberCapture session knowledge into the DEC ledger, memory, or backlog.Ghi kiến thức phiên vào ledger DEC, memory hoặc backlog.
Extend the harnessMở rộng harness
/hs:skill-creatorCreate or update hs:* skills.Tạo hoặc cập nhật skill hs:*.
/hs:harness-creatorCreate hook / rule / schema / data / script / agent primitives.Tạo primitive hook / rule / schema / data / script / agent.
/hs:bootstrapBootstrap a new harness-integrated project.Khởi tạo dự án mới tích hợp harness.
/hs:portExtract, compare, or port a feature from another repo.Trích xuất, so sánh hoặc port một tính năng từ repo khác.
Project ops, autonomy & sessionVận hành, tự chủ & phiên
/hs:gitConventional commits, auto-split, secret scan.Conventional commit, auto-split, quét secret.
/hs:worktreeCreate / inspect / clean isolated git worktrees.Tạo / soi / dọn git worktree cách ly.
/hs:setupConfigure harness posture (guards, language, code style).Cấu hình posture harness (guard, ngôn ngữ, code style).
/hs:insightsRead-only telemetry insights — hot/cold skills, gate blocks.Insight telemetry chỉ-đọc — skill hay/ít dùng, gate block.
/hs:compoundOne ranked self-improvement proposal from telemetry + backlog.Một đề xuất tự cải tiến xếp hạng từ telemetry + backlog.
/hs:techstackDetect a target repo's stack so the harness adapts.Nhận diện stack repo đích để harness thích nghi.
AI & mediaAI & media
/hs:threejs3D web experiences with Three.js.Trải nghiệm web 3D với Three.js.
DevOps & deployDevOps & triển khai
/hs:deployDeploy to any platform with auto-detection.Triển khai lên mọi nền tảng với tự dò.
/hs:web-testingPlaywright / Vitest / k6 — E2E, load, a11y.Playwright / Vitest / k6 — E2E, load, a11y.

Gate stages → required artifactsStage gate → artifact bắt buộc

Straight from harness/data/stage-policy.yaml. Hard means the requirement is checked at pr/ship/deploy — locally it's an advisory (exit 0) that never blocks you; wire the optional receipts-gate CI workflow into your own repo if you want it hard-enforced remotely too. Soft is advisory only.Lấy thẳng từ harness/data/stage-policy.yaml. Hard nghĩa là yêu cầu được kiểm tại pr/ship/deploy — tại máy chỉ là advisory (exit 0) không bao giờ chặn bạn; gắn workflow CI receipts-gate (tùy chọn) vào CI của repo bạn nếu muốn ép cứng từ xa nữa. Soft chỉ là khuyến cáo.

StageStageHard?Cứng?Required artifactsArtifact bắt buộc
commitsoftmềmnone — and no active plan requiredkhông — và không cần plan active
pushhardcứngverification
prhardcứngverification · review-decision · plan-approval (+critique-consensus opt-in)
mergehardcứngsame three as prcùng ba cái như pr
shiphardcứngsame three as prcùng ba cái như pr
deployhardcứngsame three as prcùng ba cái như pr
⚖️
Verdict policy (in code, not the yaml): verification must have no FAILed check; review-decision verdict must be exactly PASS — PASS_WITH_RISK is a conscious soft-accept, not a ship license.Chính sách verdict (trong code, không trong yaml): verification phải không có check FAIL; verdict review-decision phải đúng PASS — PASS_WITH_RISK là chấp-nhận-mềm có ý thức, không phải giấy phép ship.

The gating artifactsCác artifact gác cổng

Four artifact files under plans/<active>/artifacts/ — three JSON, one YAML. Each is schema-validated; the gate reads presence + verdict.Bốn file artifact dưới plans/<active>/artifacts/ — ba JSON, một YAML. Mỗi cái được validate schema; gate đọc sự hiện diện + verdict.

ArtifactArtifactWritten byAi ghiGate checksGate kiểm
verification.jsonhs:cook / hs:testno FAILed checkkhông có check FAIL
review-decision.jsonhs:code-reviewverdict == PASSverdict == PASS
plan-approval.yamlhuman (plan_approval.py)người (plan_approval.py)verdict APPROVED for THIS plan (self-approval by design); plan_hash matches (no drift)verdict APPROVED cho CHÍNH plan này (tự-duyệt theo thiết kế); plan_hash khớp (không drift)
critique-consensus.jsonhs:critique (gate mode)consensus verdict presentcó verdict đồng thuận

hs-run / hs-cli referenceTra cứu hs-run / hs-cli

hs-run <domain> <verb> is the deterministic step-sequence engine every hs:* skill drives underneath — 13 domains, 24 verbs. hs-cli is the separate operator CLI for config/admin.hs-run <domain> <verb> là engine bước chạy tất định mà mọi skill hs:* chạy bên dưới — 13 domain, 24 verb. hs-cli là CLI vận hành riêng cho config/admin.

Domain(s)DomainVerbsVerb
fix · git · port · review · review-pr · security · setup · ship · skills · suite · testnext (one door each)(một cửa mỗi cái)
cookclose, next, open, preflight, prompt, record, status, verify
plangraph, next, prompt, record, scaffold
hs-code (the code map: Python + TypeScript via language packs)(bản đồ code: Python + TypeScript qua gói ngôn ngữ)8 domains · 101 verbs (hs-code --list)(hs-code --list)
hs-cli (the config door, not the step engine)(cửa cấu hình, không phải engine bước)version, doctor, status, gates, guards, hooks, capabilities, list, emit, render, migrate, components, skills, cleanup, install, trust, docs, policy

Two of the hs-cli verbs are new in v6.2.0: hooks reports every hook's resolved posture and which layer decided it, with --off/--on <csv> writing only this project's overlay; emit --target <runtime> projects the hook registrations onto another coding agent, read-only unless you pass --out DIR.Hai verb của hs-cli là mới ở v6.2.0: hooks báo tư thế đã giải của mọi hook và tầng nào đã quyết, với --off/--on <csv> chỉ ghi tầng phủ của dự án này; emit --target <runtime> chiếu các đăng ký hook sang một coding agent khác, chỉ-đọc trừ khi bạn truyền --out DIR.

Every verb returns one JSON envelope (state, next_action, artifacts, refs) on one of six exit codes: 0 done · 1 findings · 2 broken · 3 deliberate refusal · 10 needs a model turn · 11 one more deterministic step. hs-cli covers skills --on/--off (restart to apply), components, migrate, trust, and render — which pretty-prints one envelope read from stdin and never advances a step.Mỗi verb trả một envelope JSON (state, next_action, artifacts, refs) trên một trong sáu mã thoát: 0 xong · 1 phát hiện · 2 hỏng · 3 từ chối có chủ đích · 10 cần lượt model · 11 còn một bước tất định. hs-cli phủ skills --on/--off (khởi động lại để áp dụng), components, migrate, trust, và render — in đẹp một envelope đọc từ stdin, không bao giờ đẩy bước.

A step that reads code facts on a repo with no codemap.yaml answers codemap_offer at exit 10 with an ask_user block, once per session: hs-code init run --apply sets the map up, hs-code init decline keeps it off for the session, and the step's own answer waits in deferred. A broken or refused step is never masked.Bước đọc facts code trên repo chưa có codemap.yaml trả codemap_offer ở exit 10 kèm khối ask_user, mỗi phiên một lần: hs-code init run --apply lập bản đồ, hs-code init decline tắt trong phiên, câu trả lời thật của bước nằm chờ trong deferred. Bước hỏng hay bị từ chối không bao giờ bị che.

⚠️
Under a global install, a bare path like python3 harness/scripts/x.py is wrong — harness/ doesn't live in the project. Use python3 "${HARNESS_BIN_ROOT:-.}"/harness/scripts/x.py. The per-project data home is HARNESS_DATA_ROOT (not HARNESS_DATA_DIR).Ở bản cài global, đường dẫn trần như python3 harness/scripts/x.py là sai — harness/ không nằm trong project. Dùng python3 "${HARNESS_BIN_ROOT:-.}"/harness/scripts/x.py. Nhà data theo-project tên là HARNESS_DATA_ROOT (không phải HARNESS_DATA_DIR).

Environment variablesBiến môi trường

Behavior knobs and config-path overrides. Every config path defaults to harness/data/ — override only to point at a different file.Núm chỉnh hành vi và override đường-dẫn-config. Mọi đường config mặc định ở harness/data/ — chỉ override khi cần trỏ tới file khác.

BehaviorHành vi
VariableBiếnEffectTác dụng
HARNESS_AUTONOMYdefault = pause at plan-approval + ship · ask_all = pause every phase · god = no pauses (trace still records)default = dừng ở duyệt-plan + ship · ask_all = dừng mỗi phase · god = không dừng (trace vẫn ghi)
HARNESS_ACTIVE_PLANForce which plan dir the gate treats as active.Ép thư mục plan nào được gate coi là active.
HARNESS_TELEMETRY_DISABLEDSet to silence telemetry — fail-open, never blocks.Đặt để tắt telemetry — fail-open, không bao giờ chặn.
HARNESS_USER · HARNESS_AGENTActor attribution: USER overrides the user, AGENT adds the agent suffix. Trace only — never authorization.Quy trách nhiệm actor: USER override người dùng, AGENT thêm hậu tố agent. Chỉ để truy vết — không phân quyền.

Actor resolution order: session-init actor → HARNESS_USER → git user.email → $USER; CI is detected automatically.Thứ tự phân giải actor: actor session-init → HARNESS_USER → git user.email → $USER; CI được phát hiện tự động.

Config-path overridesOverride đường-dẫn-config
VariableBiếnPoints atTrỏ tới
HARNESS_STAGE_POLICYstage-policy.yaml (stage → gate)(stage → gate)
HARNESS_GUARD_POLICYguard-policy.yaml (OFF/WARN/BLOCK posture)(thế OFF/WARN/BLOCK)
HARNESS_OWNERSHIP_FILEownership.yaml (file lanes)(làn file)
HARNESS_PROTECTED_BRANCHESprotected-branches.yaml (merge gate)(merge gate)
💡
Want the reasoning behind any row? Open the rig for the gate model, Configure for autonomy & policy, or the glossary for exact term definitions.Muốn lý lẽ sau mỗi dòng? Mở the rig cho mô hình gate, Cấu hình cho tự chủ & policy, hoặc glossary cho định nghĩa thuật ngữ chính xác.