Awesome-omni-skill mend-agent-rules
Synchronize CLAUDE.md and AGENTS.md with available agents and skills.
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ai-agents/mend-agent-rules" ~/.claude/skills/diegosouzapw-awesome-omni-skill-mend-agent-rules && rm -rf "$T"
manifest:
skills/ai-agents/mend-agent-rules/SKILL.mdsource content
Mend Agent Rules
This skill automates the synchronization of
CLAUDE.md and AGENTS.md using AI / LLM to ensure they always reflect the current state of the repository's agents and skills.
Purpose
To provide AI agents with up-to-date instructions and context about available specialized capabilities without manual maintenance.
Instructions
- Discovery: Scan the following directories and categorize them:
- Project Skills: All
files inSKILL.md
(recursive)..claude/skills/ - Agents: Agent definitions or metadata in
..claude/agents/
- Project Skills: All
- Extraction: For each skill/agent found, extract:
: From YAML frontmatter or directory name.name
: From YAML frontmatter or first paragraph.description
: Relative path from the workspace root.path
- Target Identification: Identify documentation files and their respective markers:
- CLAUDE.md and AGENTS.md:
and<!-- AVAILABLE_SKILLS_START --><!-- AVAILABLE_SKILLS_END -->
and<!-- AVAILABLE_AGENTS_START --><!-- AVAILABLE_AGENTS_END -->
and<!-- FRAMEWORK_DOCS_START --><!-- FRAMEWORK_DOCS_END -->
- CLAUDE.md and AGENTS.md:
- Formatting:
- Skills List: Generate a table of all discovered project skills.
- Agents List: Generate a table of discovered agents.
- Synchronization: Replace the content between the specific markers in BOTH target files.
- Update BOTH
andCLAUDE.md
with the project skills table, agents table, and framework documentation.AGENTS.md - CRITICAL: The framework documentation (explaining what Agent Skills are, directory structure, and guidelines) MUST be present in both files between the
markers. If it is missing from one but present in the other, synchronize it.FRAMEWORK_DOCS
- Update BOTH
- Verification: Confirm that both files are identical except for their top-level headers (
vs# CLAUDE.md
) and that all markers are preserved.# AGENTS.md
Markers
CLAUDE.md
<!-- AVAILABLE_SKILLS_START --> <!-- AVAILABLE_SKILLS_END --> <!-- AVAILABLE_AGENTS_START --> <!-- AVAILABLE_AGENTS_END --> <!-- FRAMEWORK_DOCS_START --> <!-- FRAMEWORK_DOCS_END -->
AGENTS.md
<!-- AVAILABLE_SKILLS_START --> <!-- AVAILABLE_SKILLS_END --> <!-- AVAILABLE_AGENTS_START --> <!-- AVAILABLE_AGENTS_END --> <!-- FRAMEWORK_DOCS_START --> <!-- FRAMEWORK_DOCS_END -->
Example Table Format
<!-- markdown-link-check-disable -->| Name | Description | Link |
|---|---|---|
| lint-fix | Iteratively run linters, apply auto-fixes, and resolve remaining issues. | .claude/skills/lint-fix/SKILL.md |