agentleFS
dkpapadopoulosdkpapadopoulos/auto-claude-skills/skills/unified-context-stack/SKILL.md

unified-context-stack

Skill6 starsChanged 51 days agoMITView on GitHub

Use when any SDLC phase needs external docs, dependency internals, cross-session memory, or feature specs — provides tiered context retrieval across External Truth (docs), Internal Truth (dependencies), Historical Truth (memory), and Intent Truth (feature specs) with graceful degradation based on installed tools.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check the Context Stack: line from your session start for capability flags

    line 12
  2. Distinctive:

    Read the relevant phase document for your current SDLC phase

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unified Context Stack

An infrastructure-level skill that provides tiered context retrieval for every SDLC phase. Reads your session's Context Stack: capabilities line to determine which tools are available, then follows strict fallback tiers.

How to Use

  1. Check the Context Stack: line from your session start for capability flags
  2. Read the relevant phase document for your current SDLC phase
  3. For each capability dimension needed, follow the tier document in strict order

Capability Flags

These are injected by the session-start hook as: Context Stack: context7=true, context_hub_cli=false, ...

FlagToolWhat it enables
context7Context7 MCPBroad library doc retrieval
context_hub_availableContext Hub via Context7High-trust curated docs — flag means Hub is reachable, not that it has docs for your library (query /andrewyng/context-hub)
context_hub_clichub CLILocal curated doc retrieval and annotations
serenaSerena MCPLSP-powered dependency mapping and AST edits
serena_connectedSerena MCPMCP server is connected (not just registered); set only when SERENA_CONNECTION_CHECK=1. false means NOT-CONNECTED or NOT-CHECKED — the probe only ever sets true, so the two are indistinguishable; treat false as unknown unless you set the env gate yourself
forgetful_memoryForgetful MemoryPersistent cross-session architectural knowledge
forgetful_connectedForgetful MemoryMCP server is connected (not just registered); set only when FORGETFUL_CONNECTION_CHECK=1. false means NOT-CONNECTED or NOT-CHECKED — the probe only ever sets true, so the two are indistinguishable; treat false as unknown unless you set the env gate yourself
openspecOpenSpec CLIWhether the openspec binary is available. See the separate OpenSpec: capability line for detailed surface/command info. Intent Truth retrieval does NOT require this flag — it checks artifact presence directly.

Tier Documents

  • External Truth — API documentation retrieval
  • Internal Truth — Blast-radius mapping and safe code edits
  • Historical Truth — Institutional memory retrieval and storage
  • Intent Truth — Feature specification and design rationale retrieval

Note: Intent Truth checks for artifact presence in the workspace (openspec/specs/, openspec/changes/, docs/plans/, docs/plans/archive/, docs/superpowers/specs/ [legacy]). The OpenSpec: capability line from session-start indicates CLI availability for write operations (used by openspec-ship), but Intent Truth retrieval works regardless of CLI installation — it reads local files.

Phase Documents

  • Design — Intent and historical context before proposing approaches
  • Triage & Plan — Context gathering before writing plans
  • Implementation — Mid-flight lookups during execution
  • Testing & Debug — Error resolution and live issue discovery
  • Code Review — Claim verification and dependency checks
  • Ship & Learn — Memory consolidation before session close

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.