Automatically sync your IDE environment based on your project's package.json.
When you add a package, skillsync installs the matching Cursor rules, agent skills, and keeps your AGENTS.md up to date — so your AI coding setup never goes stale.
bun i
# skillsync runs via prepare hook
✓ Skills installed:
→ next-best-practices
→ supabase-postgres-best-practices
✓ Rules installed:
→ .cursor/rules/next.mdc
→ .cursor/rules/typescript.mdc
✓ AGENTS.md updated
⚠ prisma — no community skill found
Run: npx skillsync create prisma
💡 Recommended: eslint (eslint/eslint)
Pluggable linting utility for JavaScript and TypeScript
npm install -D skillsyncAdd the prepare hook to your package.json:
{
"scripts": {
"prepare": "skillsync sync"
}
}Now every bun i / npm i / pnpm i automatically syncs your Cursor environment.
The core command. Reads your package.json, installs matching skills and rules, and updates AGENTS.md.
npx skillsync syncWhat it does:
- Reads
dependencies+devDependenciesfrompackage.json - Installs matching agent skills from skills.sh
- Fetches matching Cursor rules from cursor.directory
- Diffs against what's already installed — never reinstalls existing assets
- Generates/updates
AGENTS.md - Suggests curated tools (opt-in only, never auto-installed)
- Flags packages with no community skill
Automatically skips in CI environments (CI=true).
Generates a project-specific SKILL.md using Claude API. For packages where no community skill exists, this scans your actual codebase and creates a skill tailored to your setup.
npx skillsync create prismaRequires ANTHROPIC_API_KEY in your environment. Never runs automatically — always manual opt-in.
Shows what's currently installed without making changes.
npx skillsync statusyour-project/
├── .cursor/rules/ ← always loaded into every Cursor session
│ ├── next.mdc
│ ├── typescript.mdc
│ └── prisma.mdc
├── skills/ ← loaded on demand by Cursor agent
│ ├── next-best-practices/SKILL.md
│ └── prisma/SKILL.md
├── AGENTS.md ← auto-maintained index for agents
└── package.json
| Directory | What it is | When it loads |
|---|---|---|
.cursor/rules/*.mdc |
Coding conventions | Every Cursor session |
skills/*/SKILL.md |
Deep library expertise | On demand, when relevant |
AGENTS.md |
Index of all skills | Always loaded upfront |
Skills and rules are mapped from a curated mapping.json. Current mappings:
| Package | Skill | Rule | Recommendation |
|---|---|---|---|
next |
next-best-practices | next.mdc | — |
react |
— | react.mdc | — |
typescript |
— | typescript.mdc | — |
@supabase/supabase-js |
supabase-postgres-best-practices | — | — |
better-auth |
better-auth-best-practices | — | — |
expo |
building-native-ui | expo.mdc | — |
remotion |
remotion-best-practices | — | — |
prisma |
— | prisma.mdc | — |
drizzle-orm |
— | — | — |
Packages not in the mapping are silently skipped during sync. Use skillsync create <package> to generate a custom skill for anything missing.
| Source | What it provides |
|---|---|
| skills.sh | Community agent skills (Vercel, Supabase, Expo, etc.) |
| cursor.directory | Coding convention rules as .mdc files |
| Claude API | Custom skills generated from your codebase |
- Good defaults for vibe coders, full control for senior devs. Works out of the box for beginners. Experienced devs can edit any generated file.
- Never auto-install paid features.
skillsync createrequires manual invocation and an API key. - Quality over quantity. The mapping is intentionally small and opinionated — every entry is vetted.
- Recommendations, not mandates. Curated tools are suggested, never auto-installed.
- Idempotent. Running sync twice produces the same result. Already-installed assets are skipped.
MIT