# Preserve Context Across AI Sessions

Long AI projects lose decisions and working context across sessions. This skill provides structured guidance for capturing, compressing, storing, and restoring project knowledge.

## Install

```bash
npx skillstore add sickn33/context-management-context-save
```

## Metadata

- Status: approved
- Slug: sickn33-context-management-context-save
- Skillstore revision: r2
- Version status: missing
- Tree hash: db390a60204b68720137638ab371fcb2a7005862fc6ee88a4bc1b7a91c26a68f
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/context-management-context-save
- Ref: f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-context-management-context-save
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-context-management-context-save/manifest

## Capabilities

- Guides extraction of project metadata, architectural decisions, dependencies, and semantic tags.
- Describes structured context models using JSON Schema and hierarchical representations.
- Outlines snapshot versioning, context drift detection, and selective restoration workflows.
- Compares storage formats including JSON, Markdown, Protocol Buffers, MessagePack, and YAML.
- Provides strategies for compression, vector retrieval, and knowledge graph organization.

## Use Cases

- Prepare Developer Handoffs: Capture architecture, active decisions, dependencies, and unresolved work before another developer or agent continues the project.
- Maintain Agent Session Continuity: Design repeatable snapshots that preserve essential project state between Claude, Codex, or Claude Code sessions.
- Organize Institutional Knowledge: Structure project history for searchable storage, semantic retrieval, and later onboarding.

## Prompt Templates

### Create a Minimal Snapshot

```
Create a minimal context snapshot for [project]. Include the goal, current state, key decisions, open tasks, and important file locations.
```

### Plan Structured Context Capture

```
Design a standard context capture plan for [project]. Cover metadata, architecture, dependencies, decisions, risks, tags, storage format, and restoration steps.
```

### Assess Context Drift

```
Compare the context snapshots from [earlier date] and [later date]. Identify changed decisions, dependencies, assumptions, risks, and unresolved conflicts.
```

### Design a Retrieval Architecture

```
Propose a comprehensive context architecture for [project]. Include serialization, fingerprints, versioning, compression, vector retrieval, access controls, validation, and recovery testing.
```

## Limitations

- Provides guidance and illustrative snippets, not a complete executable context management system.
- Does not include the referenced implementation playbook or working vector database connectors.
- Requires users to identify and exclude secrets or sensitive project information.
- Does not define measurable accuracy guarantees for compression or semantic retrieval.

## Best Practices

- Capture rationale and unresolved questions, not only final decisions.
- Exclude credentials, personal data, and confidential values before storing context.
- Version snapshots and test restoration after significant project changes.

## Anti Patterns

- Do not treat generated summaries as authoritative without project owner review.
- Do not store complete repositories when a focused context record is sufficient.
- Do not compress context until important constraints and decision rationale disappear.

## Security Audit

- Audited at: 2026-07-23T21:14:22.85\+00:00
- Summary: All ten external-command findings are false positives caused by Markdown code formatting and parameter notation. The URL is a JSON Schema identifier, not a network request, and no semantic security threat was found.

## Stats

- Views: 90
- Downloads: 13
- Favorites: 0
- Popularity score: 0
