agentsclimarketplace

Agent context loader

Skill jeremylongshore/claude-code-plugins-plus-skills/skills/.curated/agent-context-loader

425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill agent-context-loader

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

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

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.3 KB, as published. Nobody here has run it

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.

Output

  • Ordered list of discovered AGENTS.md file paths with their directory depth
  • Merged instruction set combining all discovered agent contexts
  • Conflict report highlighting any contradictory directives between levels
  • Session cache status indicating whether results are fresh or reused

Error Handling

ErrorCauseSolution
No AGENTS.md foundWorkspace has no agent instruction filesConfirm the correct working directory; create an AGENTS.md at the project root if needed
Permission denied on directory traversalRestricted parent directories above the workspaceLimit scan depth to the repository root (detected via .git/ presence)
Circular symlink detectedSymlinked directories create an infinite traversal loopSkip symlinked directories during the scan; log a warning with the symlink path
Conflicting instructions across levelsA subdirectory AGENTS.md contradicts the root-level fileFlag the conflict in the output; apply the more specific (deeper) instruction by default
File encoding errorAGENTS.md uses a non-UTF-8 encodingAttempt latin-1 fallback; report the file path and encoding issue

Examples

Example 1: Monorepo with per-package agent instructions

  • Structure: Root AGENTS.md sets global conventions; packages/api/AGENTS.md adds API-specific tooling rules.
  • Result: Both files loaded in order. The API-specific rules supplement the global context without conflict.

Example 2: Nested workspace with conflicting commit policies

  • Structure: Root AGENTS.md says "always sign commits"; services/legacy/AGENTS.md says "skip commit signing."
  • Result: Conflict detected and reported. The deeper (legacy) directive is applied with a warning noting the override.

Example 3: First-time setup with no agent files

  • Structure: A freshly cloned repository with no AGENTS.md anywhere.
  • Result: Scan completes with zero files found. Output includes a suggestion to create AGENTS.md at the repository root with a minimal template.

Resources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.