agents-local-md
Generate machine-specific AGENTS.local.md with host facts and system tool details
npx skills add majiayu000/claude-skill-registry --skill agents-local-md --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Generate AGENTS.local.md Probe this machine's environment and write `AGENTS.local.md` — a machine-specific context file that Claude Code auto-loads via `CLAUDE.local.md` symlink. ## Arguments ``` $ARGUMENTS ``` Options: - `--force` — regenerate even if the file is fresh ## Instructions ### 1. Freshness Check If `AGENTS.local.md` exists in the repo root: ```bash stat -c %Y AGENTS.local.md 2>/dev/null || stat -f %m AGENTS.local.md 2>/dev/null ``` Read the file and extract the `Generated:` line. If ALL of these are true, report "AGENTS.local.md is current (generated DATE on HOSTNAME)" and **stop**: - File is less than 7 days old - Hostname in file matches current hostname - OS in file matches current OS - `--force` was NOT passed in arguments Otherwise, continue to regenerate. ### 2. Probe System Identity Gather: ```bash uname -s # OS kernel (Darwin/Linux) uname -m # Architecture (x86_64/arm64) hostname -s # Short hostname cat /etc/os-release # Linux distro details (skip on macOS) ``` Determine which system package manager is available: - macOS: `command -v brew` - Linux: `command -v dnf` or `command -v apt` ### 3. Probe Core System Tools Only probe tools that **vary across systems
- Arguments
- Instructions
- 1. Freshness Check
- 2. Probe System Identity
- 3. Probe Core System Tools
- 4. Chezmoi Platform Detection
- 5. Write AGENTS.local.md
- 6. Create Symlink
- 7. Verify
stat -c %Y AGENTS.local.md 2>/dev/null || stat -f %m AGENTS.local.md 2>/dev/null uname -s # OS kernel (Darwin/Linux) uname -m # Architecture (x86_64/arm64) hostname -s # Short hostname cat /etc/os-release # Linux distro details (skip on macOS) chezmoi data --format json | grep -E '"os"|"arch"|"hostname"' ln -sf AGENTS.local.md CLAUDE.local.md test -f AGENTS.local.md && echo "AGENTS.local.md exists" test -L CLAUDE.local.md && readlink CLAUDE.local.md git status AGENTS.local.md CLAUDE.local.md
What does the agents-local-md skill do?
Generate machine-specific AGENTS.local.md with host facts and system tool details
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agents-local-md --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
