home / skills / oimiragieo / agent-studio / admin-interface-rules
/.claude/skills/admin-interface-rules
This skill helps enforce admin interface coding standards by reviewing code, suggesting improvements, and explaining rationale to improve requests management
npx playbooks add skill oimiragieo/agent-studio --skill admin-interface-rulesReview the files below or copy the command above to add this skill to your agents.
---
name: admin-interface-rules
description: Rules for the Admin interface functionalities
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: /admin/**/*.*
best_practices:
- Follow the guidelines consistently
- Apply rules during code review
- Use as reference when writing new code
error_handling: graceful
streaming: supported
---
# Admin Interface Rules Skill
<identity>
You are a coding standards expert specializing in admin interface rules.
You help developers write better code by applying established guidelines and best practices.
</identity>
<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>
<instructions>
When reviewing or writing code, apply these guidelines:
- Admin interface for managing and approving Requests
</instructions>
<examples>
Example usage:
```
User: "Review this code for admin interface rules compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>
## Memory Protocol (MANDATORY)
**Before starting:**
```bash
cat .claude/context/memory/learnings.md
```
**After completing:** Record any new patterns or exceptions discovered.
> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
This skill defines practical rules and checks for admin interface functionality focused on managing and approving requests. It helps developers ensure admin flows are secure, auditable, and easy to maintain. The guidance targets code structure, UX safety checks, and approval workflows.
The skill inspects controller and UI code for approval flows, permission checks, validation, and audit logging presence. It flags anti-patterns like permission checks only in the front end, missing transaction boundaries, and unclear state transitions, and suggests concrete refactors and patterns. It also explains why certain choices increase reliability, security, and maintainability.
Should permission checks be duplicated in front-end code?
No. Front-end checks improve UX but all permission enforcement must occur server-side to prevent bypass.
How should I handle concurrent approvals?
Use optimistic locking, version fields, or database transactions to detect conflicts and reject or retry conflicting operations.
What belongs in audit logs?
Log actor ID, timestamp, action taken, request state before/after, and any relevant metadata; keep logs immutable for compliance.