j4flmao/agent-skills/rbac
Claude Code and agent skill by j4flmao/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Role-Based Access Control and OIDC integration skill for advanced harness engineering.
Install
npx vskill@latest install j4flmao/agent-skills/rbacSKILL.md
RBAC and OIDC Integration
Purpose
Comprehensive Role-Based Access Control with OIDC flow integration.
Core Principles
- Principle of least privilege
- Secure token validation
- Strict policy enforcement
- Auditability of access
- Separation of duties
Agent Protocol
Triggers: Access requests Input Context Required: User identity, requested resource, action Output Artifact: Access decision Response Formats:
Decision Matrix
Detailed Architectural Overview
Workflow Steps
Phase 1: Initialization
- Load policies
- Connect to DB
- Init cache
Phase 2: Token Validation
- Parse JWT
- Verify signature
- Check expiry
Phase 3: Role Extraction
- Get claims
- Map to roles
- Resolve hierarchy
Phase 4: Policy Evaluation
- Find matching policies
- Check conditions
- Calculate final decision
Phase 5: Audit Logging
- Format log entry
- Add context
- Write to stream
Phase 6: Response
- Format response
- Add headers
- Send to client
Extended Troubleshooting Guide
| Symptom | Primary Cause | Mitigation Action | |
|---|---|---|---|
| Token rejected | Expired token | Refresh token | |
| Role missing | Claim not mapped | Check mapping config | |
| Policy failure | Condition not met | Review policy rules | |
| High latency | DB slow | Add caching | |
| Audit failed | Stream full | Increase capacity | |
| Unknown error | Unhandled exception | Check logs |
Complete Execution Scenario
Rules and Guidelines
- Always validate tokens first
- Fail closed on errors
- Log all access decisions
- Cache policies for performance
- Regularly review role mappings
Reference Guides
- RBAC Fundamentals
- RBAC Advanced
- Role Engineering
- RBAC Migration
- Framework Integration
- Enterprise Org Structure
- Admin & Break-Glass Access
- Temporary Delegation Workflows
Handoff
Refer to auth skill. <!-- compression footer -->
References
Shared References
Additional reference material for this skill, stored outside its own references/ folder.
../iam-governance/references/access-certification.md— Access Certification../iam-governance/references/iam-governance-advanced.md— IAM Governance Advanced Topics../iam-governance/references/iam-governance-fundamentals.md— IAM Governance Fundamentals../iam-governance/references/iam-policy-as-code.md— IAM Policy as Code../iam-governance/references/identity-lifecycle.md— Identity Lifecycle Management../iam-governance/references/privileged-access-management.md— Privileged Access Management (PAM)../iam-governance/references/privileged-access.md— Privileged Access Management (PAM)../iam-governance/references/sso-federation.md— SSO and Federation
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security/rbac/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 1
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/j4flmao/agent-skills/rbac)