permission-gen
Generate role-based permission systems
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- permission-gen
- description
- Generate role-based permission systems
02 资源文件 1
- 参考文档_meta.json476 B
03 SKILL.md 正文
Permission Generator
Describe your roles and resources, get a complete RBAC implementation.
Quick Start
npx ai-permission "Admin, Editor, Viewer roles for posts and comments"
What It Does
- Generates permission constants
- Creates role hierarchies
- Builds check functions
- Includes middleware
Usage Examples
# Generate from description
npx ai-permission "Team admin, member, guest for projects and tasks"
# Generate with specific framework
npx ai-permission "roles for e-commerce" --framework express
# Output as module
npx ai-permission "admin system" --out ./src/lib/permissions.ts
Output Includes
- Permission enum/constants
- Role definitions
- hasPermission() function
- Middleware for Express/Next.js
- TypeScript types
Example Output
export const Permissions = {
POSTS_CREATE: 'posts:create',
POSTS_READ: 'posts:read',
POSTS_UPDATE: 'posts:update',
POSTS_DELETE: 'posts:delete',
} as const;
export const Roles = {
ADMIN: [Permissions.POSTS_CREATE, ...],
EDITOR: [Permissions.POSTS_UPDATE, ...],
};
Requirements
Node.js 18+. OPENAI_API_KEY required.
License
MIT. Free forever.
Built by LXGIC Studios
- GitHub: github.com/lxgicstudios/ai-permission
- Twitter: @lxgicstudios
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.