Use when working with context management context save
Add this skill
npx mdskills install sickn33/context-management-context-saveComprehensive context preservation framework with strong architectural guidance but lacks executable specifics
1---2name: context-management-context-save3description: "Use when working with context management context save"4---56# Context Save Tool: Intelligent Context Management Specialist78## Use this skill when910- Working on context save tool: intelligent context management specialist tasks or workflows11- Needing guidance, best practices, or checklists for context save tool: intelligent context management specialist1213## Do not use this skill when1415- The task is unrelated to context save tool: intelligent context management specialist16- You need a different domain or tool outside this scope1718## Instructions1920- Clarify goals, constraints, and required inputs.21- Apply relevant best practices and validate outcomes.22- Provide actionable steps and verification.23- If detailed examples are required, open `resources/implementation-playbook.md`.2425## Role and Purpose26An 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.2728## Context Management Overview29The Context Save Tool is a sophisticated context engineering solution designed to:30- Capture comprehensive project state and knowledge31- Enable semantic context retrieval32- Support multi-agent workflow coordination33- Preserve architectural decisions and project evolution34- Facilitate intelligent knowledge transfer3536## Requirements and Argument Handling3738### Input Parameters39- `$PROJECT_ROOT`: Absolute path to project root40- `$CONTEXT_TYPE`: Granularity of context capture (minimal, standard, comprehensive)41- `$STORAGE_FORMAT`: Preferred storage format (json, markdown, vector)42- `$TAGS`: Optional semantic tags for context categorization4344## Context Extraction Strategies4546### 1. Semantic Information Identification47- Extract high-level architectural patterns48- Capture decision-making rationales49- Identify cross-cutting concerns and dependencies50- Map implicit knowledge structures5152### 2. State Serialization Patterns53- Use JSON Schema for structured representation54- Support nested, hierarchical context models55- Implement type-safe serialization56- Enable lossless context reconstruction5758### 3. Multi-Session Context Management59- Generate unique context fingerprints60- Support version control for context artifacts61- Implement context drift detection62- Create semantic diff capabilities6364### 4. Context Compression Techniques65- Use advanced compression algorithms66- Support lossy and lossless compression modes67- Implement semantic token reduction68- Optimize storage efficiency6970### 5. Vector Database Integration71Supported Vector Databases:72- Pinecone73- Weaviate74- Qdrant7576Integration Features:77- Semantic embedding generation78- Vector index construction79- Similarity-based context retrieval80- Multi-dimensional knowledge mapping8182### 6. Knowledge Graph Construction83- Extract relational metadata84- Create ontological representations85- Support cross-domain knowledge linking86- Enable inference-based context expansion8788### 7. Storage Format Selection89Supported Formats:90- Structured JSON91- Markdown with frontmatter92- Protocol Buffers93- MessagePack94- YAML with semantic annotations9596## Code Examples9798### 1. Context Extraction99```python100def extract_project_context(project_root, context_type='standard'):101 context = {102 'project_metadata': extract_project_metadata(project_root),103 'architectural_decisions': analyze_architecture(project_root),104 'dependency_graph': build_dependency_graph(project_root),105 'semantic_tags': generate_semantic_tags(project_root)106 }107 return context108```109110### 2. State Serialization Schema111```json112{113 "$schema": "http://json-schema.org/draft-07/schema#",114 "type": "object",115 "properties": {116 "project_name": {"type": "string"},117 "version": {"type": "string"},118 "context_fingerprint": {"type": "string"},119 "captured_at": {"type": "string", "format": "date-time"},120 "architectural_decisions": {121 "type": "array",122 "items": {123 "type": "object",124 "properties": {125 "decision_type": {"type": "string"},126 "rationale": {"type": "string"},127 "impact_score": {"type": "number"}128 }129 }130 }131 }132}133```134135### 3. Context Compression Algorithm136```python137def compress_context(context, compression_level='standard'):138 strategies = {139 'minimal': remove_redundant_tokens,140 'standard': semantic_compression,141 'comprehensive': advanced_vector_compression142 }143 compressor = strategies.get(compression_level, semantic_compression)144 return compressor(context)145```146147## Reference Workflows148149### Workflow 1: Project Onboarding Context Capture1501. Analyze project structure1512. Extract architectural decisions1523. Generate semantic embeddings1534. Store in vector database1545. Create markdown summary155156### Workflow 2: Long-Running Session Context Management1571. Periodically capture context snapshots1582. Detect significant architectural changes1593. Version and archive context1604. Enable selective context restoration161162## Advanced Integration Capabilities163- Real-time context synchronization164- Cross-platform context portability165- Compliance with enterprise knowledge management standards166- Support for multi-modal context representation167168## Limitations and Considerations169- Sensitive information must be explicitly excluded170- Context capture has computational overhead171- Requires careful configuration for optimal performance172173## Future Roadmap174- Improved ML-driven context compression175- Enhanced cross-domain knowledge transfer176- Real-time collaborative context editing177- Predictive context recommendation systems178
Full transparency — inspect the skill content before installing.