add-agent-permission

Generate permission change checklists for Agent features across backend and frontend code.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/MiDouTech/myTapd --skill add-agent-permission-midoutech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-agent-permission
Source: https://github.com/MiDouTech/myTapd/tree/main/.claude/skills/add-agent-permission
Command: npx skills add https://github.com/MiDouTech/myTapd --skill add-agent-permission-midoutech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adding a new Agent feature requires consistent permission keys and coordinated edits across backend permission catalogs, built-in roles, controllers, frontend menu mappings, route guards, and documentation; this Skill centralizes the decision rules and produces a complete, ordered checklist to avoid mismatches and missing updates.

Core Features & Use Cases

  • Decision guidance: Applies the permission classification rules (agent.use, agent.manage, module.read/module.write) based on whether the feature calls LLM/AI and whether it has an independent page.
  • Change checklist generation: Identifies exact locations to update including AdminPermissionCatalog.cs, BuiltInSystemRoles.cs, Controller attributes, frontend authzMenuMapping, and App route guards, and composes the required constant names and entries.
  • Policy enforcement: Enforces role assignment rules and forbidden patterns (for example, disallowing use of overly broad permissions or mismatched frontend/backend checks).
  • Use case: When a developer introduces a new Agent UI, run this Skill to get the permission key, role assignments, code snippets to add, and a verification checklist to complete the integration.

Quick Start

Ask the skill to "add permission" and provide the new agent name, desired permission key, and a short human-readable description and it will return classification, the files to update, and a verification checklist.

Frequently Asked Questions about add-agent-permission

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

FAQPage Schema
How do I add permissions for a new Agent feature in a C# and TypeScript application?

Adding Agent permissions requires coordinated edits across C# backend catalogs, built-in roles, controllers, and TypeScript frontend route guards. This process centralizes decision rules to ensure consistent permission key naming and avoid integration mismatches.

What is the correct permission key to use for an Agent page that calls LLM/AI?

Permission classification follows specific rules based on capability and visibility. Features calling LLM/AI use 'agent.use' or 'agent.manage', while independent pages use 'module.read' or 'module.write' to enforce correct role assignment and avoid overly broad permissions.

How do I update frontend route guards and menu mappings for new Agent roles?

Updating frontend route guards involves modifying the authzMenuMapping and App route guards in TypeScript/React. This synchronization ensures the frontend correctly reflects new backend permission keys and built-in system role assignments.

Do I need to update BuiltInSystemRoles when adding a new C# backend controller attribute?

Yes, updating BuiltInSystemRoles is required when adding controller attributes. This ensures that the new permission keys are assigned to the correct built-in roles and that the C# backend authorization matches the frontend checks.

What is the best way to document new Agent permission entries in the registry?

The best way to document new Agent permissions is to record the change in the rule.agent-permissions.md registry. This maintains a centralized, updated catalog of permission keys and role assignments across backend and frontend modifications.