skills-local-setup

Set up AI tool symlinks in a repository for multi-agent compatibility. Use when the user wants to set up skills for Gemini, Claude, or other AI tools, or when they mention "setup skills", "configure agents", or "link AGENTS.md".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skills-local-setup" with this command: npx skills add dparedesi/agent-global-skills/dparedesi-agent-global-skills-skills-local-setup

Local Skills Setup

Create symlinks so multiple AI tools can use the same skill definitions from .claude/.

Why? Different AI tools look for config in different places (.claude/, .agent/, GEMINI.md). This skill creates symlinks so you maintain ONE source of truth in .claude/ and AGENTS.md.

Quick Start

# Run from any repo root (script is in the global skill location)
~/.claude/skills/skills-local-setup/scripts/skills-local-setup.sh [agent|opencode|gemini|all]

Directory Structure

.claude/skills/   <- SOURCE (tracked in git)
.agent/skills/    -> symlink to .claude/skills/ (gitignored)
.opencode/skill/  -> symlink to .claude/skills/ (gitignored, singular!)
GEMINI.md         <- directive file (gitignored)

Supported Tools

ToolCommandWhat It Does
AgentagentCreates .agent/skills/ symlink to .claude/skills/ (backward compat)
OpenCodeopencodeCreates .opencode/skill/ symlink to .claude/skills/ (singular!)
GeminigeminiCreates GEMINI.md with directive to load AGENTS.md
AllallSets up all compatibility layers (agent + opencode + gemini)

[!NOTE] .claude/skills/ is the source of truth and should be tracked in git. Only the compatibility symlinks/files are gitignored.


Workflow

1. Run the Setup Script

# From repo root — script lives in the global skills directory
~/.claude/skills/skills-local-setup/scripts/skills-local-setup.sh [agent|opencode|gemini|all]

The script automatically:

  • Validates prerequisites (git repo)
  • Creates .claude/skills/ directory if needed (source of truth, tracked in git)
  • Creates compatibility symlinks with relative paths
  • Adds symlinks/directive files to .gitignore
  • Asks for Y/N confirmation before overwriting existing files
  • Migrates existing .agent/settings.json to .claude/settings.json if found

[!TIP] If AGENTS.md doesn't exist when setting up Gemini, the script will instruct you to run the skills-index-updater skill first to create it.


2. Verify Setup

# Check directories and symlinks
ls -la .claude/ .agent/ .opencode/ GEMINI.md 2>/dev/null

# Check .gitignore (should NOT include .claude/)
grep -E "GEMINI|\.agent|\.opencode" .gitignore

# Check git status (symlinks should be ignored)
git status

Quality Rules

  • .claude/ is the source of truth — Never edit symlinked files directly
  • Symlinks must be in .gitignore — Keep repo clean, only track actual content
  • Use relative paths — Symlinks should work regardless of absolute path
  • Confirm before overwriting — Script shows existing content and asks for Y/N confirmation before removing

Anti-Patterns

Don'tWhyDo Instead
Use absolute paths in symlinksBreaks when repo moves or on other machinesUse relative paths (../)
Commit symlinks to gitCreates merge conflicts, breaks for othersAdd to .gitignore
Edit .agent/ directlyChanges won't persist (it's a symlink)Edit .claude/ instead
Run outside repo rootSymlinks will be created in wrong locationcd to repo root first

Validation Checklist

Before considering setup complete:

  • ls -la shows symlinks pointing to correct targets
  • git status shows no untracked symlinks
  • .gitignore contains entries for all symlinks

Troubleshooting

ProblemCauseSolution
"File exists" errorTarget already existsCheck if it's a symlink first, backup if needed
Symlink broken after cloneAbsolute path usedRecreate with relative path
Changes not syncingEditing symlink, not sourceEdit .claude/ directly
Git tracking symlinkMissing .gitignore entryAdd entry to .gitignore
AGENTS.md not foundMissing AGENTS.md fileRun /skills-index-updater skill first

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

humanize

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

skill-feedback

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

llms-dashboard

No summary provided by upstream source.

Repository SourceNeeds Review