context-health

Validate AGENTS.md and memory files for missing or broken references.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wendeus0/AI-dotfiles --skill context-health-wendeus0
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context-health
Source: https://github.com/wendeus0/AI-dotfiles/tree/main/core/skills/context-health
Command: npx skills add https://github.com/wendeus0/AI-dotfiles --skill context-health-wendeus0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects missing, empty, or broken context files and memory references to prevent downstream failures. Returns CONTEXT_OK or CONTEXT_STALE.

Core Features & Use Cases

  • Existence and non-emptiness checks for AGENTS.md, memory/MEMORY.md, ERROR_LOG.md, PENDING_LOG.md.
  • Memory reference integrity checks: verify references to features and branches, detect broken references, and flag monolithic MEMORY.md vs index-style memory.
  • Returns CONTEXT_OK when all checks pass; CONTEXT_STALE with detailed issues when problems exist.

Quick Start

Run this skill at session-open or project bootstrap to verify essential context files and their references before proceeding.

Frequently Asked Questions about context-health

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if essential project context files like AGENTS.md and MEMORY.md exist?▼

Context health validation detects missing, empty, or broken context files and memory references to prevent downstream failures. It checks the existence and non-emptiness of AGENTS.md, memory/MEMORY.md, ERROR_LOG.md, and PENDING_LOG.md at session-open or project bootstrap.

How do I validate memory references for broken links before starting work on a repository?▼

Validating memory references for broken links requires checking references to features and branches within your memory files. This process detects broken references, flags missing branches, and identifies whether your MEMORY.md is monolithic or index-style to ensure context integrity before you begin work.

When should I run a context integrity check on my project repository?▼

You should run a context integrity check during session-open, project bootstrap, or when starting work on a new or rarely visited project. This timing ensures essential context files and memory references are valid before proceeding, preventing downstream failures caused by stale or missing context.

Does context health validation work for monolithic MEMORY.md files or only index-style memory?▼

Context health validation works for both monolithic MEMORY.md files and index-style memory structures. The validation process actively flags the memory style being used and checks all internal references for broken links and missing branches, ensuring context integrity regardless of the memory format.

What is the difference between a CONTEXT_OK and CONTEXT_STALE status?▼

A CONTEXT_OK status means all context file existence, non-emptiness, and memory reference checks have passed successfully. A CONTEXT_STALE status indicates problems were found, returning detailed issues about missing files, empty context documents, or broken memory references that need resolution.