agentleFS
www-donghanhcungban-orgwww-donghanhcungban-org/X-Templates/.claude/skills/complete/SKILL.md

complete

Skill16 starsChanged 7 days agoMITView on GitHub

Pha HARDEN — hoàn thiện dự án khi /autopilot hết việc và đề xuất /complete (hoặc người muốn phát hành): PR đặt delivery_phase: harden, PLAN-harden từ sổ audit (🔴/🟠, MUST blueprint còn mở, sàn Gate M/L, thiết kế đầy đủ, refactor, hiệu năng, tấn công thử) chạy vòng lặp có bằng chứng tới hết việc, rồi cổng ký: audit delta, trả nợ review theo lô, release-check GO + GO-NO-GO.md — lặp tới GO. Dùng khi người dùng muốn "hoàn thiện", "audit và sửa", "chuẩn bị phát hành" hoặc gõ /complete.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Stop hook done (sau <XT> loop verify --all), PR của đợt đã merge →

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/complete — pha harden: vét việc, rà ở cổng ký, phát hành

Giao thức vòng lặp: <FW>/11-autonomous-loop/README.md; audit: /audit (<FW>/00-method/audit.md); cổng G7: <XT> release-check. Thứ tự bước: ADR-0046, ADR-0080. <FW> = .xtemplates/framework (dự án đích) hoặc framework (repo khung); <XT> = python3 .xtemplates/scripts/xt.py (hoặc python3 scripts/xt.py). Sàn an toàn như /autopilot — không nới.

Bước 0 — chuẩn bị

  1. Tên phiên <Tên repo> — <tên nhánh>; <XT> doctor --fix; chế độ quyền Auto.
  2. Đọc delivery_phase trong xt.yaml; <XT> blueprint-status BLUEPRINT.md --strict --json (MUST mở); <XT> loop status (vòng build còn continue → quay lại /autopilot; vòng harden budget/gắn phiên khác → loop attach hoặc PLAN kế + loop init — không làm lát ngoài vòng sống); có sổ giai đoạn (<XT> stage status, ADR-0058): giai đoạn ≥ 2 (1: máy khoá — dừng, báo), PLAN khai đúng <XT> stage status.

Bước 1 — vào pha harden (một PR)

Còn build → PR nháp (--draft, LOOP-STOP-031) đặt delivery_phase: harden, compose --scale đích (ADR-0081), khoá sàn M/L (format_check, coverage, kiểm kiểu, e2e — <XT> floor liệt kê) và attack/perf (ADR-0042; chưa có công cụ → để rỗng kèm lý do) trong xt.yaml. PR đụng xt.yaml luôn tính harden (D-137). pr next áp chính sách của nhánh đích theo LOOP-STOP-022 và ADR-0079. Sau merge chạy lại <XT> doctor: khung cũ → nâng (install.py) trước bước 3.

Bước 2 — sổ việc

Có docs/ops/AUDIT-STATUS.md → dùng sổ đang có, không audit lại; chưa có → /audit full (xác minh đối kháng 🔴/🟠 → sổ, D-NNN).

Bước 3 — PLAN-harden (tự duyệt)

docs/autopilot/PLAN-harden-<ngày>.md theo mẫu <FW>/templates/PLAN.md, mỗi task một Gate máy, thứ tự: (a) 🔴 rồi 🟠 và nợ review mở của sổ — bug có test tái hiện đỏ trước khi sửa; (b) MUST blueprint còn mở — tick kèm — Kiểm:/— Bằng chứng:, [~] — Không áp dụng:, MUST muốn miễn → loop defer (người duyệt, LOOP-STOP-024); (c) sàn Gate M/L đỏ (<XT> floor --run); (d) thiết kế đầy đủ theo quy mô (lifecycle.md G2–G4: C4, API-CONTRACT.md, THREAT-MODEL.md, SPEC ca biên); (e) refactor nhóm CODE/ARCH có Gate (test giữ hành vi); (f) hiệu năng: hàng perf đỏ → task theo optimization-loop.md (chỉ khi có số; /optimize riêng — ADR-0048); (g) từng hàng FAIL của <XT> release-check --json (lần 1) thành task. (a)(b): work[].line của <XT> loop next-step --objective harden-to-signoff --prs <JSON> — duyệt rồi dán. Tóm tắt ≤ 30 dòng đầu PLAN → <XT> loop decide --question "Duyệt PLAN-harden …", không chờ.

Bước 4 — vét việc (vòng lặp luật harden)

<XT> loop init --plan docs/autopilot/PLAN-harden-<ngày>.md --blueprint BLUEPRINT.md --single-session [--hours <H>], rồi mỗi vòng như /autopilot bước 5–6. Mỗi PR (nháp, LOOP-STOP-031) gom một sửa đổi hoàn chỉnh kèm test. Tách khi có thể nghiệm thu riêng; đẩy theo /gate bước 4; merge-watch nền rồi làm task độc lập kế ngay. Không audit, không gọi reviewer ở nhịp này (milestone_audit: signoff, topo: review/audit: dồn về bước 5); reviewer chỉ khi <XT> pr next trả review (nhánh đích merge_review: required, hoặc PR chạm lớp tác động tức thì — hook, workflow, ruleset, khoá chính sách: một lượt rà ở head trước merge, ADR-0095) — ghi <XT> pr reviewed như máy in (không kết luận → --inconclusive); debt → 🔴 sửa, 🟠/🟢 nợ (ADR-0062). Việc cần người → loop defer. (a) Rà diff của bản sửa chạy ở head trước merge; 🔴 sửa bằng commit trong chính PR; trần một lượt rà lại mỗi PR sửa, không lặp vòng. (b) Phiên điều phối mở PR thì dòng sổ audit (docs/ops/AUDIT-STATUS.md, đã sửa ghi #N) và tests/fixtures/autonomy/scope.json đi cùng PR sửa. (c) Bản sửa cho "xanh giả/âm tính giả" của bất kỳ công cụ cổng hoặc hàng rào (guard, verify-render, check-links, static-check…) kèm bộ sinh biến thể quanh ca hoặc test theo thuộc tính, trước khi báo xong; lớp lỗi có ≥ 2 PR nối → lát kế đổi thiết kế sang danh sách đóng (D-611), không vá thêm ca.

Bước 5 — cổng ký và phát hành (G7)

Stop hook done (sau <XT> loop verify --all), PR của đợt đã merge →

  1. /audit delta từ SHA quét gần nhất (xác minh đối kháng 🔴/🟠).
  2. Nợ review (review_debt, ADR-0057) trả theo lô trên diff tích luỹ từ SHA đó, chia theo file/module, reviewer-alt chỉ đọc chạy song song (LOOP-ORCH-005); phát hiện có đường tái hiện → sổ. Lượt sau chỉ rà diff của bản sửa, ở head PR trước merge (bước 4); "có từ trước" ngoài diff → sổ (sửa · chấp nhận có hạn + D-NNN · bác bỏ).
  3. <XT> release-check --json > F (F, gói: $TMPDIR) → <XT> loop next-step --objective harden-to-signoff --prs … --release F: replan (FAIL) → PLAN-harden kế, tự duyệt, loop init → bước 4; blocked/budget → dừng, báo; khác → theo reason, gọi lại; signoff-package → lưu gói (--package kiểm hiệu lực) → GO-NO-GO.md theo mẫu <FW>/templates/GO-NO-GO.md (máy điền phần máy; người ký dòng 20 — một lần, ADR-0048; release_signoff: agent → sau merge <XT> release-sign --note …, ADR-0074) trong PR lát cuối → có sổ giai đoạn: <XT> stage submit --evidence "<bằng chứng>" → <XT> loop stats, <XT> feedback collect → báo cáo ≤ 20 dòng: làm · bằng chứng · D-NNN · còn treo · đề xuất. Sau phát hành giữ harden (ADR-0037).

Không bao giờ

Nới guard/điểm dừng/cổng để xanh · tự đổi pha về build · bỏ xác minh đối kháng 🔴/🟠 · ký khi còn nợ mở · khai "phát hành được" khi release-check NO-GO hoặc §5 chưa ký.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.