Agent skill

Agent Context Loader

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

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

MITAuto-check passedAgent Workflows

Install Agent Context Loader

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill agent-context-loader -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace agent-context-loader --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/agent-context-loader .claude/skills/agent-context-loader && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-context-loader
GitHub stars
2.8k
Token cost
~1.1k tokens
SKILL.md length
500 words
Files
7 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 7 steps: Scan the current working directory and… → Search subdirectories of the current… → Determine load order: files closer to… → …
  • Appropriate context detected
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Runs Shell scripts from its folder

What it does

Agent Context Loader is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute proactive auto-loading: automatically detects and loads agents.md files. Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts, reference files and assets (for example `assets/README.md`, `references/README.md` and `references/errors.md`). Compatibility notes: Designed for Claude Code

It sits in Agent Workflows, covering Codebase knowledge for agents and Agent instruction files. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Appropriate context detected
  • With relevant phrases based on skill purpose

Example prompts

  • “/agent-context-loader”

Requirements

  • A Bash shell
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(general:*), Bash(util:*)

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Scan the current working directory and all ancestor directories (up to the filesystem root or repository root) for files named 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…
  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 80f86df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(general:*)
    • Bash(util:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • agents.md
    • code.claude.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Agent Context Loader loads about 1.1k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 500 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 80f86df, republished under its MIT licence (© jeremylongshore). 500 words, ~1,074 tokens.

Download SKILL.mdSave it as .claude/skills/agent-context-loader/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
agent-context-loader
description
Execute proactive auto-loading: automatically detects and loads agents.md files. Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(general:*), Bash(util:*)
compatibility
Designed for Claude Code
version
1.24.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
productivity, agent-context

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
Show full SKILL.md (246 more words)Show less

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

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references, assets) in skills/.curated/agent-context-loader of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • references/README.md
  • references/errors.md
  • references/examples.md
  • scripts/README.md
  • scripts/check-agents-md.sh

Open the folder on GitHubat commit 80f86df

Compare with similar skills

Agent Context Loader next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Context Loader compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Context Loader this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Context Engineeringabashev/vfs-s31069 repos~2.6kAutomated safety check: NotesApache-2.0
Dotagents Standardgetknit/knit132—~4.1kAutomated safety check: PassMIT
Reconcile ContextApocrathia/home-assistant-config179—~931Automated safety check: PassNone
Verify Agent ContextLuligu/matterbridge985—~525Automated safety check: PassApache-2.0
Setup Calibercaliber-ai-org/ai-setup1.3k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Context Engineering

    abashev/vfs-s3

    Optimizes agent context setup. An agent skill from abashev/vfs-s3.

    106 GitHub starsUsed in 9 repos~2.6k tokens
    Agent WorkflowsAuto-check: notes
  • Dotagents Standard

    getknit/knit

    Set up, author, and navigate the dotagents standard — a slim AGENTS.md "router" at the repository root plus a hidden .agents/ directory (rules, context, memory, personas, skills, specs, logs, tasks)…

    132 GitHub stars~4.1k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • Reconcile Context

    Apocrathia/home-assistant-config

    Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.

    179 GitHub stars~931 tokensUpdated 17 days ago
    Agent WorkflowsAuto-check passed
  • Verify Agent Context

    Luligu/matterbridge

    Verify which coding agent is running and that it loaded the shared Matterbridge instructions, rules and skills from AGENTS.md and .agents/.

    985 GitHub stars~525 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Setup Caliber

    caliber-ai-org/ai-setup

    Sets up Caliber for automatic AI agent context sync. An agent skill from caliber-ai-org/ai-setup.

    1.3k GitHub stars~1.9k tokensUpdated 15 days ago
    Agent WorkflowsAuto-check passed
  • Init Deep AGENTS.md Generator

    code-yeongyu/oh-my-openagent

    Generates a tree of AGENTS.md files for a repository, one at the root and more in complex subdirectories, so agents learn its structure and conventions.

    70k GitHub stars~3.5k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Analyzing Dependencies

    jeremylongshore/tons-of-skills-marketplace

    Analyze dependencies for known security vulnerabilities and outdated versions.

    2.8k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Categories

Questions about Agent Context Loader

What does Agent Context Loader do?

Execute proactive auto-loading: automatically detects and loads agents.md files. Agent Context Loader is an agent skill from jeremylongshore/tons-of-skills-marketplace.md files.

When should I use Agent Context Loader?

Agent Context Loader fits situations like: appropriate context detected; with relevant phrases based on skill purpose.

How do I install Agent Context Loader in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill agent-context-loader -a claude-code`. Or copy the skill folder (skills/.curated/agent-context-loader in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/agent-context-loader in your project. Claude Code loads it when a task matches its description.

How do I install Agent Context Loader in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill agent-context-loader -a codex`. Or copy the skill folder (skills/.curated/agent-context-loader in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/agent-context-loader in your project. Codex loads it when a task matches its description.

Can I use Agent Context Loader in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill agent-context-loader -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-context-loader, .gemini/skills/agent-context-loader, .github/skills/agent-context-loader and .opencode/skills/agent-context-loader in your project.

What does Agent Context Loader need to run?

Going by SKILL.md and its folder, Agent Context Loader needs a shell for the scripts in its folder. Our summary lists: A Bash shell. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(general:*), Bash(util:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Agent Context Loader access the network?

SKILL.md names 2 domains. As links in the text: agents.md and code.claude.com. This is read from the text; nothing was executed.

Is Agent Context Loader safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Agent Context Loader use?

Agent Context Loader is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Context Loader use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Agent Context Loader?

Skills that share tags, products or a category with Agent Context Loader: Context Engineering (abashev/vfs-s3, 106 stars), Dotagents Standard (getknit/knit, 132 stars), Reconcile Context (Apocrathia/home-assistant-config, 179 stars) and Verify Agent Context (Luligu/matterbridge, 985 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Context Loader?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,825 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 9, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.