add-agent-permission

Automate Agent permission registration and synchronization across backend, frontend, and route guards.

2|1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/inernoro/prd_agent --skill add-agent-permission
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-agent-permission
Source: https://github.com/inernoro/prd_agent/tree/main/.claude/skills/add-agent-permission
Command: npx skills add https://github.com/inernoro/prd_agent --skill add-agent-permission

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

自动注册并同步新 Agent 的权限,确保后端、前端映射、以及路由守卫的一致性,避免权限不同步带来的安全与功能问题。

Core Features & Use Cases

  • 自动判断新功能的权限分类并触发注册与同步流程。
  • 同步更新后端权限定义、内置角色、前端权限菜单以及路由守卫配置,确保全栈一致性。
  • Use Case: 当添加具有 AI 调用能力的新 Agent 时,自动扩展相应权限并确保现有测试用例覆盖。

Quick Start

Run a trigger to automatically classify the new permission and synchronize backend, frontend, and routing guard configurations.

Frequently Asked Questions about add-agent-permission

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically sync new Agent permissions across frontend and backend?

To automatically sync new Agent permissions, trigger a registration flow that updates backend API definitions, frontend auth mappings, and route guards. This ensures consistent permission controls are applied across the full stack without manual updates.

What is the best way to register permissions for a new AI Agent?

Registering permissions for a new AI Agent involves classifying the new permission and applying it to built-in system roles. This process updates the admin permission catalog and validates required SKILL.md frontmatter to maintain system-wide consistency.

Why do my frontend route guards and backend API permissions get out of sync?

Frontend route guards and backend API permissions get out of sync when feature additions require manual updates across multiple layers. Automating the permission registration enforces a defined decision tree to synchronize UI mappings and API definitions simultaneously.

Do I need SKILL.md frontmatter to automate authorization updates?

Yes, SKILL.md frontmatter is required to automate authorization updates. The automation process validates the presence of this required frontmatter before applying updates to the admin permission catalog and frontend auth mappings.

Can I automatically update built-in system roles when adding new feature permissions?

Yes, you can automatically update BuiltInSystemRoles when adding new feature permissions. The synchronization process expands the admin roles and ensures existing test cases cover the newly defined permission controls.