Create Skill Augmentation (Agents + Symlink)
Required reference
- •Read
~/.cursor/skills-cursor/create-skill/SKILL.mdand follow its structure.
Storage rule
- •Always create new skills under
.agents/skills/<skill-name>/SKILL.md. - •Do not create skills in
.cursor/skillsdirectly.
Symlink rule
- •Ensure
.cursor/skillsis a symlink to.agents/skills. - •If
.cursor/skillsexists and is not a symlink, move it aside before linking. - •If
.cursor/skillsis a symlink to the wrong location, replace it.
Use:
code
if [ -e ".cursor/skills" ] && [ ! -L ".cursor/skills" ]; then mv ".cursor/skills" ".cursor/skills.bak" fi if [ -L ".cursor/skills" ] && [ "$(readlink ".cursor/skills")" != "../.agents/skills" ]; then rm ".cursor/skills" fi if [ ! -L ".cursor/skills" ]; then ln -s "../.agents/skills" ".cursor/skills" fi
Output
- •Report the created skill path and confirm the symlink status.