letstri/permix/permix-getting-started
Claude Code and agent skill by letstri/permix
- community
Checking that the SKILL.md file is still in the repository.
Sets up Permix in an application: install, createPermix schema, setup rules, templates for roles, createRules. Use when adding Permix, defining permission types, role-based access, or permix.setup in a user project.
Install
npx vskill@latest install letstri/permix/permix-getting-startedSKILL.md
Permix — getting started
Docs: https://permix.letstri.dev/docs/quick-start
Upgrading from v3? Use action tuples, not { action, dataType } — https://permix.letstri.dev/docs/migration-v3-to-v4
Install
1. Define the permission schema (once)
Create a shared module (e.g. lib/permix.ts). The generic on createPermix<D>() is the source of truth for all paths and rules.
Nested resources (most common):
Flat list (single resource):
Deep tree (orgs, workspaces, etc.):
Every action you declare in D must appear in every setup() call (use false to deny).
2. Assign rules with setup
- Static leaf:
boolean - Depends on resource at check time:
(data) => boolean(see permix skill,references/check.md) - Call
setupafter login, on route change, or when the active user/tenant changes — it replaces previous rules.
3. Optional: initial rules at construction
Skip a separate bootstrap step when rules are known upfront:
4. Reusable role presets — template
Dynamic template (parameters):
5. Typed rules factory — createRules
Use when rules live in another file but must stay type-safe:
6. First check
Before setup, check throws PermixNotReadyError. Unknown paths throw PermixRuleNotDefinedError.
7. React to permission changes (optional)
Docs: https://permix.letstri.dev/docs/guide/events
Checklist for new apps
- [ ] Single exported
permixinstance (same reference everywhere) - [ ] Schema covers every permission the app uses
- [ ]
setupruns when auth/session is known - [ ] UI waits for
isReadyor handles not-ready (see permix skill,references/frontend.md) - [ ] Server routes use middleware (see permix skill,
references/server.md) — never rely on client checks alone
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpermix/skills/permix-getting-started/SKILL.md
Popularity
- Repository stars
- 631
- Repository forks
- 16
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 26 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/letstri/permix/permix-getting-started)