Add initial implementation of design-an-interface skill and linking script
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
383b6a06d5
commit
3e3ca9b9fa
3 changed files with 29 additions and 0 deletions
6
.claude-plugin/plugin.json
Normal file
6
.claude-plugin/plugin.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "mattpocock-skills",
|
||||||
|
"skills": [
|
||||||
|
"./skills/deprecated/design-an-interface"
|
||||||
|
]
|
||||||
|
}
|
||||||
23
scripts/link-skills.sh
Executable file
23
scripts/link-skills.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Links all skills in the repository to ~/.claude/skills, so that
|
||||||
|
# they can be used by the local Claude CLI.
|
||||||
|
|
||||||
|
REPO="$(cd "$(dirname "$0")/.." && pwd)"
|
||||||
|
DEST="$HOME/.claude/skills"
|
||||||
|
mkdir -p "$DEST"
|
||||||
|
|
||||||
|
find "$REPO/skills" -name SKILL.md -not -path '*/node_modules/*' -print0 |
|
||||||
|
while IFS= read -r -d '' skill_md; do
|
||||||
|
src="$(dirname "$skill_md")"
|
||||||
|
name="$(basename "$src")"
|
||||||
|
target="$DEST/$name"
|
||||||
|
|
||||||
|
if [ -e "$target" ] && [ ! -L "$target" ]; then
|
||||||
|
rm -rf "$target"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ln -sfn "$src" "$target"
|
||||||
|
echo "linked $name -> $src"
|
||||||
|
done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue