Agent skill · operations · jeremylongshore

agent-context-loader

Execute proactive auto-loading: automatically detects and loads agents.md

Why this skill is useful

Adds a specialized script for auto-loading agent context from `AGENTS.md` files that the AI wouldn't reliably generate on its own.

What it needs

Requires bash installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Agent Context Loader Overview Automatic discovery and loading of AGENTS.md files across project hierarchies for AI coding agents. This skill scans the current workspace and its parent directories to locate agent instruction files, then surfaces their contents so the active agent session has full operational context. Prerequisites A project workspace containing one or more AGENTS.md files at any directory depth Read and Glob permissions to traverse the directory tree Grep access for searching file contents when multiple candidates exist Instructions 1. Scan the current working directory and all ancestor directories (up to the filesystem root or repository root) for files named AGENTS.md or agents.md. 2. Search subdirectories of the current workspace for additional AGENTS.md files that may apply to sub-projects or modules. 3. Determine load order: files closer to the repository root load first (global context), files in deeper directories load later (override or supplement). 4. Read each discovered AGENTS.md file and extract its instruction blocks, workflow definitions, and constraint declarations. 5. Merge instructions into a unified context, noting any conflicts between levels (e.g., a subdirectory agent overriding a root-level rule). 6. Present the loaded context as a structured summary: source file path, instruction count, and any detected conflicts. 7. Cache the discovery results for the current session to avoid redundant filesystem scans on subsequent activations. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/agent-context-loader

View the source on GitHub

Browse the @skills marketplace