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".
Install with Tessl CLI
npx tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill agent-context-loader68
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillAgent success when using this skill
Validation for skill structure
⚡ This skill activates AUTOMATICALLY - no user action required!
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.
This skill automatically activates when:
cd or file operations)When triggered, Claude Code will:
./AGENTS.md in the current working directory📋 Loaded agent-specific context from AGENTS.md
Following specialized agent rules for this session:
- [rule 1 from AGENTS.md]
- [rule 2 from AGENTS.md]
...No AGENTS.md found - using standard CLAUDE.md context onlyFully Automatic (preferred):
Manual Invocation (fallback):
# If auto-loading doesn't trigger, user can say:
"load agent context"
"check for AGENTS.md"
"read agent rules from AGENTS.md"# Claude executes internally:
if [ -f "./AGENTS.md" ]; then
echo "📋 AGENTS.md detected"
fiUse Read tool:
file_path: ./AGENTS.md
Load full content into session contextTreat AGENTS.md content as:
- Session-level instructions (like CLAUDE.md)
- Agent-specific behavioral rules
- Overrides for agent workflows# AGENTS.md - Agent-Specific Instructions
## Agent Behavior Rules
When working with Agent Skills in this project:
1. **Always use TypeScript strict mode** for all generated code
2. **Never create files** without explicit user permission
3. **Follow naming convention**: use kebab-case for all file names
4. **Auto-commit after changes**: Create git commits automatically when tasks complete
## Specialized Workflows
### Code Generation
- Use templates from `./templates/` directory
- Run ESLint after generating any .ts/.js files
- Add comprehensive JSDoc comments
### Testing
- Generate tests alongside implementation files
- Use Jest for all test files
- Achieve 80%+ code coverage
## Priority Overrides
These rules override CLAUDE.md when agent skills are active:
- AGENTS.md → agent-specific strict rules
- CLAUDE.md → general project contextThis skill runs before other agent skills to ensure agent context is loaded first. When any other skill is invoked, this skill checks if AGENTS.md has been loaded for the current directory and loads it if not already present.
If AGENTS.md isn't loading automatically:
AGENTS.md is in current working directory (pwd)AGENTS.md is readable/sync-agent-context to merge AGENTS.md into CLAUDE.md permanently/sync-agent-context - Permanently merges AGENTS.md into CLAUDE.mdAGENTS.md and it worksStatus: Proactive Auto-Loading Enabled Requires User Action: No (automatic) Fallback: Manual invocation if auto-loading fails
bc1f45c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.