Chuyển đến nội dung
Skillpedia
Agent48k · #4257

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/context-management-context-save/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

repo: sickn33/agentic-awesome-skills

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự