Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

access-control-review

БесплатноЗапускает вложенные скриптыНе проверен

Analyze repository-grounded identity, access control, and authorization design with evidence-first reporting and script-validated Mermaid diagrams.

Robotti-ioот Robotti-io★ 44 звезды на GitHub

Об этом скилле

Access Control Review

Purpose

Provide a repeatable, repository-grounded workflow for reviewing identity, access control, and authorization architecture, then producing durable Markdown output with validated Mermaid diagrams using local Node.js helper scripts instead of VS Code extension-based Mermaid tools.

When to use

Use this skill when you need to:

  • analyze how identity, access control, and authorization are implemented across a repository or PR diff
  • map roles, groups, permissions, claims, scopes, and policies to concrete enforcement points
  • build an endpoint-to-access-control view grounded in repository evidence
  • produce a Markdown review plus Mermaid diagrams that can be validated from a CLI-friendly workflow

Inputs to collect

  • repository or PR diff in scope
  • authentication source and identity provider details, if known
  • principal types that matter for the review, such as end users, administrators, support users, service identities, and background jobs
  • known sources of truth for groups, roles, permissions, claims, scopes, or policy assignments
  • environment or tenant-specific variance, if any
  • repository evidence from code, config, IaC, manifests, docs, route declarations, tests, and policy definitions

How to use

  1. Review the current repository and PR diff, if available, before relying on operator answers.
  2. Persist the output as a root-level Markdown file named Access Control Architecture Review - YYYY-MM-DD.md when the environment supports writing files.
  3. Use evidence first and cite file paths and, when possible, line ranges.
  4. Mark anything that cannot be confirmed from repository evidence as ASSUMPTION or UNKNOWN.
  5. Perform the mandatory intake before finalizing the report, choosing only the questions that materially change the interpretation of identity source, authorization model, source of truth, enforcement location, or environment behavior.
  6. Use the local Mermaid helper scripts in this skill instead of VS Code extension-based Mermaid tools.
  7. Validate every Mermaid diagram before finalizing the report.
  8. Do not generate code changes unless explicitly requested.

Rules

  • MUST keep claims tied to repository evidence such as source code, configuration, manifests, IaC, tests, and route declarations.
  • MUST distinguish between confirmed evidence, ASSUMPTION, and UNKNOWN.
  • MUST ask focused intake questions only when they materially change the interpretation of the access control design.
  • MUST perform a short pre-report intake before producing the final report.
  • MUST include validated Mermaid diagrams unless Mermaid rendering is unsupported.
  • MUST use the local helper scripts under plugins/copilot-security/skills/access-control-review/scripts/ for Mermaid guidance and validation.
  • MUST not output a Mermaid diagram that has not passed validation.
  • MUST distinguish identity source, access metadata, enforcement point, source of truth, and runtime decision path.
  • MUST not treat UI-only controls as sufficient authorization.
  • MUST review alternate execution paths such as internal APIs, admin tools, support impersonation, background jobs, message consumers, webhooks, GraphQL resolvers, and file import or export flows.
  • SHOULD prefer simple Mermaid constructs and diagram types such as flowchart and sequenceDiagram.
  • MAY continue with explicit ASSUMPTION and UNKNOWN markers when questions remain unanswered.

Step-by-step process

1. Mission and scope

Produce these durable artifacts:

  1. A repository-grounded Markdown report describing the application authorization architecture.
  2. Validated Mermaid diagrams showing the identity and access control model.
  3. An endpoint-to-access-control mapping.
  4. A concise PR-ready summary.

Use the review to answer questions such as:

  • how users and services authenticate
  • which groups, roles, permissions, claims, or policies exist
  • where they are defined
  • where and how access is enforced
  • which endpoints, actions, background jobs, and admin flows require which access controls
  • whether controls are centralized, duplicated, inconsistent, or bypassable
  • where access decisions are delegated to infrastructure, framework policy, middleware, or application code
  • whether LDAP or AD groups, SSO groups, JWT claims, app roles, scopes, permissions, or policy names are mapped consistently

2. Context and assumptions

  • Review the current repository and current PR diff if available.
  • Prefer evidence-first analysis.
  • Cite file paths and, when possible, line ranges.
  • Tie claims to source code, config, IaC, manifests, docs, tests, route declarations, and policy definitions.
  • If something cannot be confirmed from repository evidence, label it as ASSUMPTION or UNKNOWN.
  • Ask 2-5 focused questions only if they materially change interpretation of authentication source, identity provider, group or role source of truth, runtime enforcement location, or environment-specific policy behavior.

Полный SKILL.md на GitHub

Установить access-control-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/mermaid-docs.mjsscripts/mermaid-support.mjsscripts/validate-mermaid.mjs

FAQ

Что делает скилл access-control-review?

Analyze repository-grounded identity, access control, and authorization design with evidence-first reporting and script-validated Mermaid diagrams.

Как установить скилл access-control-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл access-control-review запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить access-control-review с