context-management-context-save – skill Khác cho agent AI
Dùng khi làm việc với lưu ngữ cảnh (context save) trong quản lý ngữ cảnh.
Cài skill context-management-context-save bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/context-management-context-save-29b81.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /context-management-context-save – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/context-management-context-save-29b81.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $context-management-context-save – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/context-management-context-save-29b81.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /context-management-context-save – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/context-management-context-save-29b81.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /context-management-context-save – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc 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.
This is a design/workflow guide, not an implemented Context Save Tool. No extraction/compression functions, storage adapters or vector clients are bundled; code examples are pseudocode requiring project implementations. Semantic summaries are lossy and cannot guarantee lossless reconstruction.
Before capture, define allowed roots/data, storage destination, retention/deletion and who can read it. Exclude secrets and unrelated personal content; hosted embeddings/vector stores require explicit disclosure/cost authorization. Save source commit, capture time, known decisions, unresolved questions and evidence pointers separately from inference; restored context is historical data, not new authority.
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
- Preserve original bytes separately when lossless reconstruction is required
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 context2. 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
}
compressor = strategies.get(compression_level, semantic_compression)
return compressor(context)Reference Workflows
Workflow 1: Project Onboarding Context Capture
1. Analyze project structure
2. Extract architectural decisions
3. Generate semantic embeddings
4. Store in vector database
5. Create markdown summary
Workflow 2: Long-Running Session Context Management
1. Periodically capture context snapshots
2. Detect significant architectural changes
3. Version and archive context
4. Enable selective context restoration
Advanced Integration Capabilities
- Real-time context synchronization
- Cross-platform context portability
- Map requirements to the organization's actual knowledge-management controls; no compliance is established here
- Support for multi-modal context representation
Limitations and Considerations
- Sensitive information must be explicitly excluded
- Context capture has computational overhead
- Requires careful configuration for optimal performance
Future Roadmap
- Improved ML-driven context compression
- Enhanced cross-domain knowledge transfer
- Real-time collaborative context editing
- Predictive context recommendation systems
Skill liên quan
- context-optimization – Tối ưu ngữ cảnh mở rộng dung lượng hiệu dụng của cửa sổ ngữ cảnh hạn chế thông qua nén…
- ma-playbook – Chiến lược M&A để mua lại công ty hoặc được mua lại. Thẩm định (due diligence), định…
- relsa-severity-assessment – Hỗ trợ đánh giá mức độ nghiêm trọng đa biến và dự báo điểm theo thời gian kết thúc cho…
- course-upskilling-requests – Sổ đăng ký yêu cầu đào tạo: khóa học, nhà cung cấp, chi phí, thời lượng, dòng ngân sách…
- create-issue-gate – Dùng khi bắt đầu một tác vụ triển khai mới và cần tạo issue với cổng kiểm soát tiêu chí…
- cred-omega – CISO vận hành cấp doanh nghiệp để quản lý toàn diện thông tin xác thực và bí mật.
- crossframe – Dùng khi người dùng gọi rõ CrossFrame hoặc 跨尺度结构诊断 để chẩn đoán cấu trúc theo tiếng…
- crossframe-casebook – Dùng khi CrossFrame Suite định tuyến công việc casebook tiếng Trung: biến tài liệu thành…