agent-context-loader

Featured

PROACTIVE AUTO-LOADING: Automatically detects and loads AGENTS.md files from the current working directory when starting a session or changing directories. This skill ensures agent-specific instructions are incorporated into Claude Code's context alongside CLAUDE.md, enabling specialized agent behaviors. Triggers automatically when Claude detects it's working in a directory, when starting a new session, or when explicitly requested to "load agent context" or "check for AGENTS.md file".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Agent Context Auto-Loader **โšก This skill activates AUTOMATICALLY - no user action required!** ## Purpose This skill makes Claude Code recognize and load `AGENTS.md` files with the same priority as `CLAUDE.md` files, enabling specialized agent-specific instructions for your projects. ## How It Works ### Automatic Trigger Conditions This skill automatically activates when: 1. **Starting a new Claude Code session** in any directory 2. **Changing directories** during a session (via `cd` or file operations) 3. **Any other agent skill is invoked** (ensures agent context is loaded first) 4. **User explicitly requests**: "load agent context", "check for AGENTS.md", or "read agent rules" ### Execution Flow When triggered, Claude Code will: 1. **Check for AGENTS.md**: Look for `./AGENTS.md` in the current working directory 2. **Read the file** (if it exists): Use the Read tool to load full content 3. **Incorporate into context**: Treat AGENTS.md rules as session-level instructions 4. **Announce loading**: Confirm with user: "๐Ÿ“‹ Loaded agent-specific context from AGENTS.md" 5. **Apply for session**: Follow these rules for all subsequent operations ### Priority and Conflict Resolution - **AGENTS.md supplements CLAUDE.md**: Both are active simultaneously - **In case of conflicts**: AGENTS.md takes precedence for agent-specific behaviors - **Scope**: AGENTS.md applies to agent workflows; CLAUDE.md applies to general project context ## Expected Behavior ### If AGENTS.md exist...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content โ€” not just same category

AI & Automation Listed

agentmd

Generate a single canonical AGENTS.md context file plus minimal CLI-specific shim files that @-import it for coding agents that do not read AGENTS.md natively (Claude Code, Gemini CLI, Qwen Code). Based on "Evaluating AGENTS.md" (ETH Zurich, Feb 2026) which found auto-generated context files DECREASE performance by ~3% and increase costs by 20-23%, while minimal human-written files improve performance by ~4%. Use when the user says "generate CLAUDE.md", "create AGENTS.md", "generate context file", "agentmd", "create recommended CLAUDE.md", "generate agent instructions", "init context file", or any request to create/improve a coding agent context file for a repository. Replaces the default /init command which generates bloated, counterproductive context files.

9 Updated 1 months ago
mryll
AI & Automation Listed

smart-init

Trigger on: init, CLAUDE.md, AGENTS.md, setup repo, onboard, generate docs, project documentation for agents, bootstrap, new project setup. Evidence-guided AGENTS.md generator that makes AI coding agent runs ~28% faster and ~16% cheaper by eliminating exploratory navigation. Always produces a tool-agnostic root AGENTS.md plus a thin CLAUDE.md that imports it via `@AGENTS.md`, per Anthropic's documented memory-import convention.

2 Updated today
tkolleh
AI & Automation Listed

claude-md-creator

Creates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command, "create CLAUDE.md", "update CLAUDE.md", "write AGENTS.md", or "set up Claude Code for this project". Also invoked by brainstorming when repo lacks a context file. tools: Read, Glob, Grep, Bash, Edit

3 Updated 3 weeks ago
brunob54