context-management-context-save
Skill này làm gì
Công cụ này giúp AI lưu và sắp xếp thông tin quan trọng về một dự án hoặc cuộc trò chuyện. Nó ghi lại chi tiết, quyết định và trạng thái hiện tại để AI có thể nhớ và dùng sau này, kể cả trong các cuộc trò chuyện dài hoặc khi có nhiều người làm việc.
Khi nào nên dùng
- ✓Khi bắt đầu một dự án mới để ghi lại đặc điểm của nó.
- ✓Trong dự án để lưu tiến độ và các quyết định quan trọng.
- ✓Khi làm việc nhóm để mọi người có cùng thông tin.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/context-management-context-save/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 ngữ cảnh của dự án này, gồm cấu trúc thư mục, các quyết định kiến trúc và thẻ ngữ nghĩa.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI phân tích dự án, xác định thông tin quan trọng như quyết định và trạng thái hiện tại, rồi lưu chúng một cách có tổ chức. Sau đó, nó có thể lấy lại thông tin này khi cần, đảm bảo không quên điều quan trọng nào.
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.
Context Save Tool: Intelligent Context Management Specialist
Use this skill when
- Working on context save tool: intelligent context management specialist tasks or workflows
- Needing guidance, best practices, or checklists for context save tool: intelligent context management specialist
Do not use this skill when
- The task is unrelated to context save tool: intelligent context management specialist
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
Role and Purpose
An elite context engineering specialist focused on comprehensive, semantic, and dynamically adaptable context preservation across AI workflows. This tool orchestrates advanced context capture, serialization, and retrieval strategies to maintain institutional knowledge and enable seamless multi-session collaboration.
Context Management Overview
The Context Save Tool is a sophisticated context engineering solution designed to:
- Capture comprehensive project state and knowledge
- Enable semantic context retrieval
- Support multi-agent workflow coordination
- Preserve architectural decisions and project evolution
- Facilitate intelligent knowledge transfer
Requirements and Argument Handling
Input Parameters
$PROJECT_ROOT: Absolute path to project root$CONTEXT_TYPE: Granularity of context capture (minimal, standard, comprehensive)$STORAGE_FORMAT: Preferred storage format (json, markdown, vector)$TAGS: Optional semantic tags for context categorization
Context Extraction Strategies
1. Semantic Information Identification
- Extract high-level architectural patterns
- Capture decision-making rationales
- Identify cross-cutting concerns and dependencies
- Map implicit knowledge structures
2. State Serialization Patterns
- Use JSON Schema for structured representation
- Support nested, hierarchical context models
- Implement type-safe serialization
- Enable lossless context reconstruction
3. Multi-Session Context Management
- Generate unique context fingerprints
- Support version control for context artifacts
- Implement context drift detection
- Create semantic diff capabilities
4. Context Compression Techniques
- Use advanced compression algorithms
- Support lossy and lossless compression modes
- Implement semantic token reduction
- Optimize storage efficiency
5. Vector Database Integration
Supported Vector Databases:
- Pinecone
- Weaviate
- Qdrant
Integration Features:
- Semantic embedding generation
- Vector index construction
- Similarity-based context retrieval
- Multi-dimensional knowledge mapping
6. Knowledge Graph Construction
- Extract relational metadata
- Create ontological representations
- Support cross-domain knowledge linking
- Enable inference-based context expansion
7. Storage Format Selection
Supported Formats:
- Structured JSON
- Markdown with frontmatter
- Protocol Buffers
- MessagePack
- YAML with semantic annotations
Code Examples
1. Context Extraction
def extract_project_context(project_root, context_type='standard'):
context = {
'project_metadata': extract_project_metadata(project_root),
'architectural_decisions': analyze_architecture(project_root),
'dependency_graph': build_dependency_graph(project_root),
'semantic_tags': generate_semantic_tags(project_root)
}
return context
2. State Serialization Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"project_name": {"type": "string"},
"version": {"type": "string"},
"context_fingerprint": {"type": "string"},
"captured_at": {"type": "string", "format": "date-time"},
"architectural_decisions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"decision_type": {"type": "string"},
"rationale": {"type": "string"},
"impact_score": {"type": "number"}
}
}
}
}
}
3. Context Compression Algorithm
def compress_context(context, compression_level='standard'):
strategies = {
'minimal': remove_redundant_tokens,
'standard': semantic_compression,
'comprehensive': advanced_vector_compression
}
…
Câu hỏi thường gặp
“Semantic tags” (thẻ ngữ nghĩa) là gì?
Đây là các từ khóa hoặc nhãn mô tả nội dung một cách thông minh, giúp AI hiểu và tìm thông tin liên quan.
Vì sao cần lưu ngữ cảnh?
Để AI không quên những gì đã làm hoặc đã quyết định, cho phép công việc tiếp tục từ chỗ đã dừng, giữ được sự nhất quán và hỗ trợ cộng tác.
Có những định dạng lưu nào?
Thông tin có thể được lưu ở các định dạng như JSON (dữ liệu có cấu trúc), Markdown (văn bản và ghi chú), hoặc dùng cơ sở dữ liệu vector (để tìm kiếm tương đồng thông minh).
Chi tiết
Mô tả gốc của tác giả
Use when working with context management context save
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4257
- 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ự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.