cc-skill-strategic-compact
Skill này làm gì
Công cụ này giúp tóm tắt tiến độ của một tác vụ dài và phức tạp. Nó lưu thông tin quan trọng về những việc đã làm, những việc còn cần làm và các quy tắc hoặc quyết định chính, để bạn có thể tiếp tục mà không mất ngữ cảnh.
Khi nào nên dùng
- ✓Khi một cột mốc lớn của dự án đã hoàn thành.
- ✓Khi cuộc trò chuyện với AI trở nên quá dài và lặp lại.
- ✓Trước khi bắt đầu một giai đoạn quan trọng mới của tác vụ.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cc-skill-strategic-compact/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lưu tiến độ của tác vụ hiện tại. Tôi muốn có thể tiếp tục sau này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ xác định các điểm chính trong cuộc trò chuyện, như mục tiêu chính, các quy tắc đã đặt, những việc đã hoàn thành và những việc còn thiếu. Nó tổ chức thông tin này thành một bản tóm tắt rõ ràng để dùng sau.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Strategic Context Checkpoints
Condense context after a verified phase, with enough durable information to resume the same task. A tool-call count is only a reminder; it cannot measure context quality or decide when compaction is safe.
When to Use
Use when exploration has finished, a tested milestone has landed, or a long conversation contains repeated or obsolete reasoning. Do not compact in the middle of an unresolved tool call, an unrecorded approval decision, or a failure whose exact evidence has not been captured.
Inputs and prerequisites
- The user's current objective, accepted constraints and definition of done.
- The current branch and source revision, local changes, relevant artifact paths and actual check results.
- Running processes, pending tool calls, approvals or external blockers.
- A host-supported context-compaction mechanism. This skill does not assume
/compactexists in every client or manipulate internal context files.
Procedure
- Choose a phase boundary: discovery to implementation, implementation to verification, or one completed batch to the next. Preserve an unresolved failure's reproduction first.
- Reconcile task state with the filesystem and Git. Distinguish completed, uncommitted, planned and failed work.
- Produce the checkpoint below. Include exact commands, result summaries and paths needed to resume; omit copied logs and discarded hypotheses that no longer matter.
- Check that the next action is executable and that a new context would not repeat a merge, send a message twice, lose a constraint or overwrite unrelated work.
- Save only in an already authorized project artifact, or return the checkpoint in the conversation. Do not rewrite global memory or host configuration automatically.
- Use the client's supported compaction command if requested and available. On resumption, read the checkpoint and verify mutable state before continuing.
Checkpoint template
Objective and done condition:
User constraints and authorization boundaries:
Source revision, branch and local changes:
Completed outcomes with verification:
Outstanding work and known failures:
Running process/tool identifiers:
Artifacts and exact paths needed next:
Next action, expected result and fallback:
Worked example
For a search feature whose source PR merged while canonical synchronization is pending, preserve the source merge SHA, canonical PR number and expected generated files. Record tests as passed only for the revision actually tested. The next action is to verify the canonical PR and updated main; it is not to merge the source PR again. If a browser check still needs an unlocked desktop, keep that condition visible while continuing independent code review.
Expected outcome: the next context resumes outstanding verification, preserves unrelated local edits and does not claim publication from a source merge.
Optional stateless reminder
bash skills/cc-skill-strategic-compact/suggest-compact.sh 50
The helper accepts an observed tool-call count and optional threshold (default 50), and prints a reminder at the threshold and every 25 calls after it. COMPACT_TOOL_COUNT and COMPACT_THRESHOLD can be supplied by an explicit caller adapter. It stores no counter, estimates no token usage and never performs compaction. With no count it exits quietly.
Earlier versions incremented a shared user-state counter across unrelated sessions. That counter is no longer read or written; existing custom wrappers must pass a session count explicitly. Existing state files are left untouched. This skill does not install or edit a hook.
Limitations
- A checkpoint preserves recorded evidence, not all conversation detail. Keep primary artifacts when exact bytes matter.
- Counts are caller-provided, bounded non-negative decimal integers; reminders are not a context-capacity measurement.
- Branches, processes and remote checks can change after a checkpoint. Revalidate them instead of treating a summary as current truth.
- Client context management differs. Do not simulate compaction by deleting chat databases, logs, caches or project files.
Câu hỏi thường gặp
Điều gì xảy ra với chi tiết trong cuộc trò chuyện?
Công cụ tập trung vào các chi tiết thiết yếu để tiếp tục tác vụ, như quyết định và kết quả quan trọng. Những chi tiết ít quan trọng hoặc đã được giải quyết có thể bị lược bỏ để bản tóm tắt gọn gàng.
Tôi có thể tin rằng mọi thứ sẽ được lưu không?
Công cụ lưu lại thông tin đã ghi nhận và bằng chứng. Tuy nhiên, các thay đổi bên ngoài hoặc thay đổi trong môi trường làm việc sau khi lưu có thể cần kiểm chứng lại.
Công cụ có xóa gì không?
Không, công cụ này không xóa tệp dự án, nhật ký hay cấu hình nào. Nó chỉ tạo bản tóm tắt có tổ chức các thông tin quan trọng.
Chi tiết
Mô tả gốc của tác giả
Prepare a verified checkpoint before condensing an agent conversation at a phase boundary. Use during long tasks when context is repetitive; preserves constraints, evidence, decisions and the next action.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4118
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.