An automated generator for Role-Based Access Control (RBAC) systems using natural language descriptions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-permission
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install ai-permission using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Permission Generator is a specialized utility designed to streamline the creation of role-based access control systems within your development projects. By leveraging the intelligence of Openclaw Skills, this tool interprets natural language descriptions of roles and resources to produce production-ready code, including constants, role hierarchies, and check functions. This ensures that your security logic is consistent and type-safe across your entire application.
Using this specific tool within the ecosystem of Openclaw Skills eliminates the tedious manual boilerplate associated with access control. It allows developers to focus on core functionality while the skill handles the complex logic of mapping permissions to roles and integrating them into modern web frameworks.
To get started with this tool, ensure you have Node.js 18 or higher installed and your OPENAI_API_KEY environment variable is configured. You can execute the generator directly using npx:
npx ai-permission "Admin, Editor, Viewer roles for posts and comments"
To output the results directly to a specific file in your project, use the --out flag:
npx ai-permission "admin system" --out ./src/lib/permissions.ts
The skill produces a structured TypeScript module that organizes data as follows:
| Data Component | Format | Purpose |
|---|---|---|
| Permissions | Constant Object | Maps resource actions (e.g., posts:create) to unique keys. |
| Roles | Record<string, string[]> | Associates roles with specific arrays of permission constants. |
| Check Functions | TypeScript Function | Provides logic to verify if a specific role possesses a required permission. |
| Middleware | Express/Next.js Function | Offers route-level protection based on the generated RBAC schema. |
Loading
A CLI utility that uses AI to generate realistic, context-aware mock data directly from your TypeScript interfaces.

An intelligent AI-powered tool that semantically analyzes and resolves git merge conflicts by understanding code intent rather than just text differences.

Transform simple product descriptions into production-ready, conversion-optimized React and Tailwind landing pages instantly.

An AI-powered command-line utility that translates dense, technical code into plain English explanations.

Automatically generate professional, structured Pull Request descriptions by analyzing your git branch changes.

Automatically convert desktop-only UI components into mobile-responsive layouts using AI-driven breakpoint analysis.








































