context-audit

Audit context density and instruction efficiency in a CLAUDE environment.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/GiorgioRicciardiello/LabBrain --skill context-audit-giorgioricciardiello
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-audit
Source: https://github.com/GiorgioRicciardiello/LabBrain/tree/main/core/.claude/skills/context-audit
Command: npx skills add https://github.com/GiorgioRicciardiello/LabBrain --skill context-audit-giorgioricciardiello

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill analyzes the context surfaces and instruction density within a CLAUDE environment, identifying opportunities to improve attention budget utilization and instruction efficiency.

Core Features & Use Cases

  • Audit Context Surfaces: Measures and reports the line counts of various context surfaces, such as CLAUDE.md, skills, agents, and hooks.
  • Instruction Density: Estimations and visualizations of effective instructions vs. total lines, highlighting potential attention dilution.
  • Redundancy Detection: Identifies patterns like CLAUDE.md echo, hook echo, cross-component cloning, cross-layer duplication, and agent-skill overlap.
  • Priority Tiers: Categorizes sections based on importance and suggests path-scoping opportunities.
  • Efficiency Recommendations: Offers guidance on compression targets and potential reinforcement strategies.

Quick Start

Run the context-audit command to perform a full audit of your CLAUDE environment.

Frequently Asked Questions about context-audit

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

FAQPage Schema
How do I optimize context density and instruction efficiency in CLAUDE environments?

To optimize context density and instruction efficiency in CLAUDE environments, conduct an audit that measures context surfaces, detects redundant patterns like CLAUDE.md echo, and categorizes content into priority tiers to improve attention allocation.

What causes attention dilution in AI system instructions?

Attention dilution in AI system instructions is caused by low instruction density and redundant patterns such as cross-component cloning and agent-skill overlap, which this audit identifies to help you target compression and improve efficiency.

How do I detect redundant patterns and duplicated instructions across CLAUDE.md and hooks?

You detect redundant patterns across CLAUDE.md and hooks by running a context audit that scans for hook echo, cross-layer duplication, and agent-skill overlap, categorizing the findings into priority tiers for targeted compression.

Does the context audit require any external dependencies to analyze CLAUDE context surfaces?

No, the context audit requires no external dependencies to analyze CLAUDE context surfaces, measure line counts, and generate efficiency recommendations using its built-in scripts and references.

When should I audit context surfaces for path-scoping and attention budget utilization?

You should audit context surfaces for path-scoping and attention budget utilization when instruction density drops or redundancy increases, allowing the audit to categorize sections by importance and suggest compression targets.

What is the best way to categorize AI context content into priority tiers for attention allocation?

The best way to categorize AI context content into priority tiers for attention allocation is to run a full context audit, which measures effective instructions against total lines and identifies path-scoping opportunities to maximize attention budget utilization.