Security Patterns
CloudAI-X/claude-workflow-v2
Implements authentication, authorization, encryption, secrets management, and security hardening patterns.
Verify that code changes do not introduce OAuth security vulnerabilities.
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install doorkeeper-gem/doorkeeper security-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/security-review .claude/skills/security-review && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .claude/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install doorkeeper-gem/doorkeeper security-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/security-review .agents/skills/security-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .agents/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install doorkeeper-gem/doorkeeper security-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/security-review .cursor/skills/security-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .cursor/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/doorkeeper-gem/doorkeeper.git --path .agents/skills/security-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install doorkeeper-gem/doorkeeper security-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/security-review .gemini/skills/security-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .gemini/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install doorkeeper-gem/doorkeeper security-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/security-review .github/skills/security-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .github/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add doorkeeper-gem/doorkeeper --skill security-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install doorkeeper-gem/doorkeeper security-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doorkeeper-gem/doorkeeper.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/security-review .opencode/skills/security-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "security-review" agent skill from https://github.com/doorkeeper-gem/doorkeeper/tree/main/.agents/skills/security-review into .opencode/skills/security-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
security-reviewVerify that code changes do not introduce OAuth security vulnerabilities.
Security Review is an agent skill from doorkeeper-gem/doorkeeper. Verify that code changes do not introduce OAuth security vulnerabilities. Use when modifying token handling, client authentication, scope validation, redirect URI checks, secret comparison, or grant flows in Doorkeeper.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering OAuth and OpenID Connect, Security review and Authentication. The repository describes itself as: Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 80f4eba. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bundlegemFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Security Review loads about 1.4k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 507 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from doorkeeper-gem/doorkeeper at commit 80f4eba, republished under its MIT licence (© doorkeeper-gem). 507 words, ~1,365 tokens.
.claude/skills/security-review/SKILL.md (or your agent's skills folder).When implementing or reviewing changes to Doorkeeper, use this skill to verify that changes do not introduce security vulnerabilities. Doorkeeper is an OAuth 2 provider library — security is the primary constraint.
All comparisons of secrets MUST use ActiveSupport::SecurityUtils.secure_compare or equivalent, never ==:
Check: grep for == near variables named token, secret, code_challenge, refresh_token. If found, replace with secure_compare.
Reference: The codebase already uses secure_compare in lib/doorkeeper/secret_storing/base.rb. Follow that pattern.
Tokens and secrets must never appear in:
Check: Doorkeeper registers Doorkeeper.setup_filter_parameters (in lib/doorkeeper.rb) which adds client_secret, authentication_token, access_token, and refresh_token to Rails.application.config.filter_parameters, plus code when the authorization_code grant flow is enabled. Verify any newly-introduced sensitive parameter is covered by that list.
#) are forbiddenurn:ietf:wg:oauth:2.0:oob redirect is special-casedReference: lib/doorkeeper/oauth/helpers/uri_checker.rb and lib/doorkeeper/orm/active_record/redirect_uri_validator.rb
Doorkeeper::Request.validate_client_authentication! — ensure new auth methods participate in this checknoneby_uid_and_secret must be the resolution path — don't bypass itReference: lib/doorkeeper/client_authentication/ and lib/doorkeeper/request.rb
lock!)Reference: lib/doorkeeper/oauth/authorization_code_request.rb — InvalidGrantReuse handling
scopes_by_grant_type can restrict scopes per flowReference: lib/doorkeeper/oauth/helpers/scope_checker.rb
force_pkce is true, code_challenge is mandatory== for PKCE comparison — this is a known issuegrant_type, response_type, response_mode must match registered valuesapplication/x-www-form-urlencoded content type (when enforce_content_type is enabled)scope in the same request must be rejected at the authorization endpoint# BAD: String comparison on secrets
token == stored_token
# GOOD: Constant-time comparison
ActiveSupport::SecurityUtils.secure_compare(token, stored_token)
# BAD: Token in error message
raise "Invalid token: #{token}"
# GOOD: Generic error
raise Doorkeeper::Errors::InvalidToken
# BAD: Redirect URI with partial matching
uri.start_with?(registered_uri)
# GOOD: Exact match (already handled by URIChecker)
Doorkeeper::OAuth::Helpers::URIChecker.valid_for_authorization?(uri, registered_uris)
# BAD: Skipping client authentication
# Never bypass validate_client_authentication! for token-endpoint requests
# GOOD: All token requests go through client auth
# Request.client_authentication_method calls validate_client_authentication!(request) internally
Doorkeeper::Request.client_authentication_method(request)bundle exec rspec spec/requests/flows/ spec/lib/oauth/gem install brakeman && brakeman --no-pager© doorkeeper-gem, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/security-review of doorkeeper-gem/doorkeeper.
Open the folder on GitHubat commit 80f4eba
Security Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Security Review this skilldoorkeeper-gem/doorkeeper | 5.5k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Security PatternsCloudAI-X/claude-workflow-v2 | 1.4k | — | ~3.6k | Automated safety check: Notes | MIT | |
| Clickup Security Basicsjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1k | Automated safety check: Pass | MIT | |
| Better Auth Security Best PracticesEpicenterHQ/epicenter | 4.8k | — | ~896 | Automated safety check: Pass | Custom licence | |
| Cb Security HardeningBlkLeg/CircuitBreaker | 201 | — | ~2.1k | Automated safety check: Pass | MIT | |
| OmniRoute Authenticationdiegosouzapw/OmniRoute | 74k | — | ~1.8k | Automated safety check: Pass | MIT |
CloudAI-X/claude-workflow-v2
Implements authentication, authorization, encryption, secrets management, and security hardening patterns.
jeremylongshore/tons-of-skills-marketplace
Harden ClickUp credentials, OAuth callbacks, Workspace boundaries, webhooks, logging, and incident response with least-privilege controls.
EpicenterHQ/epicenter
Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.
BlkLeg/CircuitBreaker
Enforces Circuit Breaker security hardening conventions across backend, frontend, Docker, and nginx.
diegosouzapw/OmniRoute
Documents how OmniRoute authenticates requests: Bearer credentials for the API, management-password login with session cookies, CSRF tokens and optional OIDC for the dashboard.
NeoTheCapt/RedteamAgent
Test for unvalidated redirects — URL parameters, login flows, OAuth callbacks that redirect to attacker-controlled domains
doorkeeper-gem/doorkeeper
Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.
doorkeeper-gem/doorkeeper
Maintain code health and architecture standards when implementing features or refactoring Doorkeeper.
doorkeeper-gem/doorkeeper
Ensure gems are safe, necessary, and properly constrained when adding, updating, or reviewing dependencies in Doorkeeper.
doorkeeper-gem/doorkeeper
Write correct and complete RSpec tests for Doorkeeper. An agent skill from doorkeeper-gem/doorkeeper.
doorkeeper-gem/doorkeeper
Verify OAuth protocol implementations stay aligned with relevant RFCs.
Categories
Verify that code changes do not introduce OAuth security vulnerabilities. Security Review is an agent skill from doorkeeper-gem/doorkeeper. Verify that code changes do not introduce OAuth security vulnerabilities.
Security Review fits situations like: modifying token handling; client authentication; scope validation; redirect URI checks.
Run `npx skills add doorkeeper-gem/doorkeeper --skill security-review -a claude-code`. Or copy the skill folder (.agents/skills/security-review in doorkeeper-gem/doorkeeper) into .claude/skills/security-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add doorkeeper-gem/doorkeeper --skill security-review -a codex`. Or copy the skill folder (.agents/skills/security-review in doorkeeper-gem/doorkeeper) into .agents/skills/security-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add doorkeeper-gem/doorkeeper --skill security-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-review, .gemini/skills/security-review, .github/skills/security-review and .opencode/skills/security-review in your project.
Going by SKILL.md and its folder, Security Review needs the command-line tools its instructions call (bundle and gem).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Security Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Security Review: Security Patterns (CloudAI-X/claude-workflow-v2, 1.4k stars), Clickup Security Basics (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Better Auth Security Best Practices (EpicenterHQ/epicenter, 4.8k stars) and Cb Security Hardening (BlkLeg/CircuitBreaker, 201 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
doorkeeper-gem (a GitHub organization) maintains it in doorkeeper-gem/doorkeeper, which has 5,523 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: doorkeeper-gem/doorkeeper on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.