Files
pm-claude-skills/scripts/cursor-install.sh
mohitagw15856 05b6d799f0 SkillCheck validator, Cursor exports, and per-agent installers (#27)
Three more learnings from alirezarezvani/claude-skills, applied:

1. SkillCheck validator (scripts/skillcheck.mjs) — validates every SKILL.md
   against the authoring standard (frontmatter, name/folder match, trigger +
   produces clauses, required headings) plus tier referential integrity.
   Errors fail CI; --strict fails on warnings too. New skillcheck.yml workflow
   and a SkillCheck status badge in the README. Current: 0 errors / 14 advisory
   warnings across 172 skills.

2. Cursor export platform — build-exports.mjs now generates
   exports/cursor/<bundle>/<skill>/<skill>.mdc rule files. The PLATFORMS
   registry now supports per-skill filenames (file as a function).

3. Per-agent installers — scripts/install.sh unifies install for
   claude/hermes/codex/openclaw/cursor (--link, --target, --dry-run, --list).
   Curl-able one-liners codex-install.sh, openclaw-install.sh, and
   cursor-install.sh clone the library and install in a single command.

README documents the one-line installs and Cursor exports; CHANGELOG and the
authoring standard updated.


Claude-Session: https://claude.ai/code/session_016JWn5jRD5tcEFKrubjQ6Px

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-17 13:38:31 +01:00

23 lines
835 B
Bash
Executable File

#!/usr/bin/env bash
# One-line installer for Cursor. Clones the library (or updates an existing
# clone) and installs all skills where Cursor can discover them.
#
# bash <(curl -fsSL https://raw.githubusercontent.com/mohitagw15856/pm-claude-skills/main/scripts/cursor-install.sh)
#
# Pass extra flags straight through to install.sh, e.g. --link, --target, --dry-run.
set -euo pipefail
AGENT="cursor"
REPO_URL="https://github.com/mohitagw15856/pm-claude-skills.git"
DEST="${PM_SKILLS_DIR:-$HOME/.pm-claude-skills}"
if [ -d "$DEST/.git" ]; then
echo "Updating existing clone at $DEST"
git -C "$DEST" pull --ff-only --quiet || echo "(could not fast-forward; using existing checkout)"
else
echo "Cloning library into $DEST"
git clone --depth 1 "$REPO_URL" "$DEST"
fi
exec bash "$DEST/scripts/install.sh" --agent "$AGENT" "$@"