Agent skill

agents-local-md

Generate machine-specific AGENTS.local.md with host facts and system tool details

majiayu000github.com/majiayu000GitHub ↗
claude-coderead-onlyMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Allowed tools: -Read-Glob-Grep-Bash(uname:*)-Bash(hostname:*)-Bash(command
Path: skills/agent/agents-local-md/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Arguments
  2. Instructions
  3. 1. Freshness Check
  4. 2. Probe System Identity
  5. 3. Probe Core System Tools
  6. 4. Chezmoi Platform Detection
  7. 5. Write AGENTS.local.md
  8. 6. Create Symlink
  9. 7. Verify
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going