context-anchoring

Solid

Manage per-feature living documents that capture decisions, constraints, and reasoning across AI sessions during active development. Scoped to feature-level work — design, implementation, bugfix, refactor — not for codebase-wide assessments or product-wide specifications (those define their own document lifecycles). Handles creating new context documents, loading existing ones, and enriching them with new decisions. Use when starting a new feature, resuming work, making technical decisions, resolving questions, or when context needs to persist across sessions. Use this skill whenever the user mentions 'load context', 'update context', 'context doc', 'decisions', 'continue where we left off', 'what did we decide', or 'capture this decision'.

AI & Automation 134 stars 8 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Context Anchoring ## Scope > Feature-level only — anchors decisions as a feature flows from design → implementation → bugfix → refactor. ## Config Resolution Skill manage dir of per-feature context docs. Resolution order: 1. Look `.lattice/config.yaml` in repo root 2. If found, check `paths.context_base` for custom dir path 3. If custom path exist, use that dir for context docs 4. If no config/path/path not found, use default `.lattice/context/` Each feature get one doc at `<context_base>/<feature-name>.md`. No default principles, no overlay modes, no override files -- just thin template and per-feature docs that grow through enrichment. ## Problem AI no persistent memory. Context decay real: by message 30+, early decisions contradicted, naming inconsistent, "why" evaporate. Damage compound -- forgotten decision become potential contradiction, lost constraint become violation, unresolved question become silent assumption. Context anchor docs solve: - **Feature-bound** -- one doc per feature, scoped decisions only - **Decision-focused** -- capture what, why, what-else-considered for every choice - **Append-only** -- decisions never removed/rewritten, only added chronologically - **Session-spanning** -- doc outlive conversation, carry context forward - **Git-native** -- live in repo, versioned alongside code Two docs per feature: **requirement doc** (static, written upfront, not managed by this skill) and **context anchor doc** (living, evolving, managed by this sk...

Details

Author
techygarg
Repository
techygarg/lattice
Created
3 months ago
Last Updated
3 days ago
Language
Shell
License
MIT

Related Skills