Expose this repository to local agent runtimes through a single symlink:
~/.agents/skills/junerdd-skill -> <repo>/skills
The goal is to link the repository's skills/ directory into ~/.agents/skills without copying files.
There are two different paths in this setup. Do not mix them up.
- Repository checkout path: where the
JUNERDD/skillsgit repository lives locally. - Skill discovery path: the symlink path that agent runtimes read from.
The skill discovery path is fixed:
~/.agents/skills/junerdd-skill
Do not install the symlink at ~/.agents/junerdd-skill.
When the user talks about choosing an install location, they are choosing the repository checkout path, not the skill discovery path.
Before cloning or linking anything, decide where the local checkout should live.
- If the user already gave an install path or asked to use the current local checkout, use that path.
- If the user did not specify an install location, stop and ask them where they want the repository installed.
- If the user explicitly says the agent can choose the install location, use
~/.junerdd/JUNERDD-skillsas the default checkout path.
-
Determine the absolute path of this repository.
- If the agent is already working inside a local checkout of
JUNERDD/skills, use that checkout. - Otherwise, follow the install location policy above before cloning anything.
- If the user lets the agent choose the install location, clone
https://github.com/JUNERDD/skills.gitto~/.junerdd/JUNERDD-skillsand use that checkout.
- If the agent is already working inside a local checkout of
-
Treat
~/.agents/skills/junerdd-skillas the only valid skill discovery path.- Do not create
~/.agents/junerdd-skill. - If
~/.agents/junerdd-skillalready exists from an older install, remove or replace it only after confirming it is safe to do so.
- Do not create
-
Ensure the target parent directory exists:
mkdir -p ~/.agents/skills -
Inspect
~/.agents/skills/junerdd-skillbefore changing it.- If it does not exist, continue.
- If it is already a symlink to
<repo>/skills, leave it in place. - If it is a symlink to some other target, refresh it.
- If it is a real file or directory, stop and ask before replacing it.
-
Create or refresh the symlink so it points to this repository's
skills/directory:ln -sfn "<repo>/skills" ~/.agents/skills/junerdd-skill
-
Verify the result:
- Show the symlink target with
ls -la ~/.agents/skills/junerdd-skill. - Confirm it resolves to
<repo>/skills. - Confirm at least one skill entry is reachable through the link, for example
~/.agents/skills/junerdd-skill/git-commit/SKILL.md. - Confirm that
~/.agents/junerdd-skilldoes not exist unless the user explicitly asked for that legacy layout.
- Show the symlink target with
If ~/.agents/skills/junerdd-skill points at an existing local checkout, updates come from updating that checkout. The symlink does not need to be recreated unless the checkout path changes.
Remove the symlink:
rm ~/.agents/skills/junerdd-skill