skills-organization
Skill2 starsChanged 6 months agoMITView on GitHub
Organize and synchronize local agent skill directories across Codex, Claude, Cursor, Hermes, OpenClaw, and other agent tools. Use when the user asks to audit, mirror, link, migrate, or reconcile skill folders such as ~/.agents/skills, ~/.codex/skills, ~/.claude/skills, ~/.cursor/skills, ~/.hermes/skills, ~/.openclaw/skills, or tool-specific skill directories.
- Deletes or force-pushes
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ethereum-developmentSkill
- financial-analysisSkill
- find-skillsSkill
- fix-bugbot-pr-commentsSkill
- frontend-designSkill
- github-workflowsSkill
- guarded-db-migrationSkill
- multi-agent-worktree-disciplineSkill
- npm-publishSkill
- phase-pr-review-loopSkill
- plan-writingSkill
- research-intelligence-workflowsSkill
- simplified-technical-englishSkill
- software-development-workflowsSkill
- subagent-orchestrationSkill
- turn-closeoutSkill
- web3-protocol-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 18 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 15
Use this skill when keeping local agent skill folders aligned across tools.
- Very specific: line 19
Treat ~/.agents/skills as the canonical source of truth for personal/shared skills.
- Distinctive: line 21
Prefer a hub-and-spoke layout over cross-linking every directory to every other directory.
- Distinctive: line 22
Do not blindly import product-managed, vendor-managed, plugin-cache, backup, or bundled skill directories.
- Very specific: line 33
Only link ~/.hermes/skills if the user explicitly wants the active Hermes profile to share the common skill set.
- Distinctive: line 35
If the user wants Hermes integration but not shared storage, prefer normal Hermes skill install or management commands and leave …
- Distinctive: line 41
Use this model instead:
- Distinctive: line 72
Check for non-canonical directories that might contain personal skills:
- Distinctive: line 80
Check for Hermes profile-specific skill folders without modifying them:
- Distinctive: line 86
Check for obvious symlink loop hazards before proposing links:
- Distinctive: line 96
Do not link a consumer path if the canonical root is inside that consumer path, if the consumer path is inside the canonical root, or if …
- Distinctive: line 110
When a consumer path is a real directory instead of a symlink:
- Distinctive: line 114
If the skill is missing from the canonical root, preview the copy first, preserving file metadata.
- Very specific: line 115
If the skill exists in both places, run diff -ru and show conflicts to the user.
- Very specific: line 117
Create the symlink to ~/.agents/skills.
- Distinctive: line 126
Write-phase example after user approval, for a target confirmed to be missing:
- Distinctive: line 142
Only run write commands after confirming the source, target, and backup paths are correct.
- Distinctive: line 148
If two folders share a name but have different content, preserve both by copying the non-canonical copy to a temporary comparison or backup …
- Distinctive: line 149
Do not delete backups as part of the sync task unless explicitly requested.
- Very specific: line 166
Do not use rm -rf for reconciliation.
- Very specific: line 167
Do not merge skills.pre-mirror-backup-* folders back into source automatically.
- Very specific: line 168
Do not sync plugin caches, bundled runtime skills, marketplace/vendor checkouts, or Cursor's skills-cursor directory unless the user …
- Distinctive: line 169
Do not symlink Hermes named profile skill directories automatically.
- Distinctive: line 170
Prefer each tool's native install or management flow when the user wants tool-specific skills instead of shared cross-agent skills.
- Distinctive: line 171
Keep commands readable and inspectable.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skills Organization
Use this skill when keeping local agent skill folders aligned across tools. Treat it as a power-user local workflow: audit first, explain the isolation tradeoffs, then make writes only after the user approves the exact paths.
Core Stance
- Treat
~/.agents/skillsas the canonical source of truth for personal/shared skills. - Mirror an agent tool's normal
skillspath to the canonical root with a directory symlink only when the user intentionally wants shared cross-agent skills. - Prefer a hub-and-spoke layout over cross-linking every directory to every other directory.
- Do not blindly import product-managed, vendor-managed, plugin-cache, backup, or bundled skill directories.
- Shared storage does not guarantee shared compatibility. Codex, Claude, Cursor, Hermes, OpenClaw, and other tools may expect different skill schemas, frontmatter, file layouts, or install metadata.
- Preserve anything you replace. Move real directories to timestamped backups before creating symlinks.
Hermes Profile Warning
Hermes can use both the active-profile skills path and named profile skill directories:
- Active profile:
~/.hermes/skills - Named profiles:
~/.hermes/profiles/<profile>/skills
Only link ~/.hermes/skills if the user explicitly wants the active Hermes profile to share the common skill set. Do not symlink ~/.hermes/profiles/*/skills automatically. Profile directories can represent intentionally isolated contexts, and flattening them into ~/.agents/skills can make skills from one context bleed into another.
If the user wants Hermes integration but not shared storage, prefer normal Hermes skill install or management commands and leave profile-specific directories alone.
Why Not Cross-Link Everything?
If ~/.codex/skills, ~/.claude/skills, and ~/.cursor/skills are symlinks to ~/.agents/skills, then adding a skill through any of those paths already lands in the shared directory. A mesh of symlinks between tool directories is harder to reason about, easier to loop, and offers no practical benefit over one canonical target.
Use this model instead:
~/.agents/skills
^-- ~/.codex/skills
^-- ~/.claude/skills
^-- ~/.cursor/skills
^-- ~/.hermes/skills
^-- ~/.openclaw/skills
^-- any other personal agent skills pathAudit Workflow
This phase is inventory only. Do not write, move, copy, or link anything yet.
- Inventory the expected paths:
for d in "$HOME/.agents/skills" "$HOME/.codex/skills" "$HOME/.claude/skills" "$HOME/.cursor/skills" "$HOME/.hermes/skills" "$HOME/.openclaw/skills"; do
ls -ld "$d" 2>/dev/null || true
readlink "$d" 2>/dev/null || true
done- Confirm the canonical root exists and contains the expected personal skills:
find "$HOME/.agents/skills" -maxdepth 2 -name SKILL.md -print | sort- Check for non-canonical directories that might contain personal skills:
for root in "$HOME/.codex" "$HOME/.claude" "$HOME/.cursor" "$HOME/.hermes" "$HOME/.openclaw"; do
[ -d "$root" ] && find "$root" -maxdepth 2 -type d -name skills -print
done- Check for Hermes profile-specific skill folders without modifying them:
find "$HOME/.hermes/profiles" -maxdepth 3 -type d -name skills -print 2>/dev/null || true- Check for obvious symlink loop hazards before proposing links:
canonical="$(cd "$HOME/.agents/skills" 2>/dev/null && pwd -P)" || canonical=""
for d in "$HOME/.codex/skills" "$HOME/.claude/skills" "$HOME/.cursor/skills" "$HOME/.hermes/skills" "$HOME/.openclaw/skills"; do
consumer_parent="$(cd "$(dirname "$d")" 2>/dev/null && pwd -P)" || consumer_parent=""
printf '%s\n canonical=%s\n consumer_parent=%s\n' "$d" "$canonical" "$consumer_parent"
doneDo not link a consumer path if the canonical root is inside that consumer path, if the consumer path is inside the canonical root, or if either path resolves through the other.
- Classify each path:
- Symlink to
~/.agents/skills: already aligned. - Missing path: create a symlink if the tool expects that path.
- Real directory with personal skills: reconcile into
~/.agents/skills, back up the directory, then replace it with a symlink. - Symlink elsewhere: inspect before changing.
- Vendor/product/cache directory: leave alone unless the user explicitly asks to import from it.
- Present the intended write plan and ask the user to approve it before continuing.
Reconcile Workflow
When a consumer path is a real directory instead of a symlink:
- List its skills with
find <path> -maxdepth 2 -name SKILL.md -print. - For each skill folder, compare against
~/.agents/skills/<skill-name>. - If the skill is missing from the canonical root, preview the copy first, preserving file metadata.
- If the skill exists in both places, run
diff -ruand show conflicts to the user. Do not choose silently. - Move the original directory to
skills.pre-mirror-backup-YYYYMMDD-HHMMSS. - Create the symlink to
~/.agents/skills.
Dry-run examples:
rsync -a --dry-run "$HOME/.openclaw/skills/example-skill/" "$HOME/.agents/skills/example-skill/"
diff -ru "$HOME/.openclaw/skills/example-skill" "$HOME/.agents/skills/example-skill"Write-phase example after user approval, for a target confirmed to be missing:
set -e
source_skill="$HOME/.openclaw/skills/example-skill"
target_skill="$HOME/.agents/skills/example-skill"
test ! -e "$target_skill" || {
printf 'Target exists; stop and run diff -ru before writing: %s\n' "$target_skill" >&2
exit 1
}
cp -a "$source_skill" "$target_skill"
backup="$HOME/.openclaw/skills.pre-mirror-backup-$(date +%Y%m%d-%H%M%S)"
mv "$HOME/.openclaw/skills" "$backup"
ln -s "$HOME/.agents/skills" "$HOME/.openclaw/skills"Only run write commands after confirming the source, target, and backup paths are correct.
Collision Policy
- The canonical root wins by default, but never overwrite a conflicting skill without user approval.
- Identical duplicates can be treated as already reconciled.
- If two folders share a name but have different content, preserve both by copying the non-canonical copy to a temporary comparison or backup location and ask the user which version should become canonical.
- Do not delete backups as part of the sync task unless explicitly requested.
Verification
After making changes:
readlink "$HOME/.codex/skills" "$HOME/.claude/skills" "$HOME/.cursor/skills" "$HOME/.hermes/skills" "$HOME/.openclaw/skills" 2>/dev/null || true
find "$HOME/.agents/skills" -maxdepth 2 -name SKILL.md -print | sortThe expected result is that every personal agent skills path resolves to ~/.agents/skills, and the canonical root contains the skills the user expects.
For a stronger check, create a temporary test folder only if the user agrees, then verify it appears through every symlinked path and remove the temporary folder afterward.
Safety Rules
- Do not use
rm -rffor reconciliation. Move to backups instead. - Do not merge
skills.pre-mirror-backup-*folders back into source automatically. - Do not sync plugin caches, bundled runtime skills, marketplace/vendor checkouts, or Cursor's
skills-cursordirectory unless the user specifically asks. - Do not symlink Hermes named profile skill directories automatically.
- Prefer each tool's native install or management flow when the user wants tool-specific skills instead of shared cross-agent skills.
- Keep commands readable and inspectable; this task is about preserving local workflow state, not being clever.
Example Observed State
The following is an example from one machine on 2026-06-11, not a source of truth. Verify the current machine before acting and do not over-weight stale observations.
~/.codex/skills -> ~/.agents/skills~/.claude/skills -> ~/.agents/skills~/.cursor/skills -> ~/.agents/skills~/.hermes/skillswas not present on that machine; if Hermes is installed, audit it before linking it to~/.agents/skills.~/.openclaw/skillswas present as a real directory on that machine; audit and reconcile it before replacing it with a symlink.~/.cursor/skills-cursoris a separate Cursor-managed skill directory; do not merge it automatically.~/.codex/vendor_imports/skillsis a vendor import checkout; do not merge it automatically.~/.agent/skillswas not present on that machine; if it exists elsewhere, audit it before using it.
License hygiene
Every skill package should carry an explicit reusable license. Prefer a repository-level LICENSE plus a per-skill LICENSE.txt when skills may be copied independently. Keep registry license fields and SKILL.md frontmatter aligned so publishing, installing, and marketplace indexing do not disagree. If a skill is mirrored from a third party, preserve its original license and attribution instead of rewriting it as authored work.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

