Passport Development
trypostit/trypost
Develops OAuth2 API authentication with Laravel Passport. An agent skill from trypostit/trypost.
Audit checklist for DiscordPHP bots and API libraries — stop the bot token leaking to third-party APIs or logs, keep secrets out of customids and exception messages, use constant-time comparison and…
$ npx skills add discord-php/DiscordPHP --skill discord-php-bot-security -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install discord-php/DiscordPHP discord-php-bot-security --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/discord-php/DiscordPHP.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/discord-php-bot-security .claude/skills/discord-php-bot-security && 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 "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .claude/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-securityType 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 discord-php/DiscordPHP --skill discord-php-bot-security -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install discord-php/DiscordPHP discord-php-bot-security --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/discord-php/DiscordPHP.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/discord-php-bot-security .agents/skills/discord-php-bot-security && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .agents/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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 discord-php/DiscordPHP --skill discord-php-bot-security -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install discord-php/DiscordPHP discord-php-bot-security --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/discord-php/DiscordPHP.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/discord-php-bot-security .cursor/skills/discord-php-bot-security && 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 "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .cursor/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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/discord-php/DiscordPHP.git --path .github/skills/discord-php-bot-security--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 discord-php/DiscordPHP --skill discord-php-bot-security -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install discord-php/DiscordPHP discord-php-bot-security --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/discord-php/DiscordPHP.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/discord-php-bot-security .gemini/skills/discord-php-bot-security && 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 "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .gemini/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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 discord-php/DiscordPHP discord-php-bot-securityInstalls 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 discord-php/DiscordPHP --skill discord-php-bot-security -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/discord-php/DiscordPHP.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/discord-php-bot-security .github/skills/discord-php-bot-security && 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 "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .github/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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 discord-php/DiscordPHP --skill discord-php-bot-security -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install discord-php/DiscordPHP discord-php-bot-security --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/discord-php/DiscordPHP.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/discord-php-bot-security .opencode/skills/discord-php-bot-security && 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 "discord-php-bot-security" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.github/skills/discord-php-bot-security into .opencode/skills/discord-php-bot-security/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discord-php-bot-security", 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.
discord-php-bot-securityAudit checklist for DiscordPHP bots and API libraries — stop the bot token leaking to third-party APIs or logs, keep secrets out of customids and exception messages, use constant-time comparison and…
Discord Php Bot Security is an agent skill from discord-php/DiscordPHP. Audit checklist for DiscordPHP bots and API libraries — stop the bot token leaking to third-party APIs or logs, keep secrets out of customids and exception messages, use constant-time comparison and crypto-random for auth/CSRF/webhook flows, and don't log OAuth codes / full headers / PII. Use when reviewing an HTTP client, an error handler, an OAuth or webhook endpoint, or before publishing a repo.
Its SKILL.md is about 1.2k 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 Webhooks, Third-party API integration and Web application vulnerabilities. It works with Discord and PHP. The repository describes itself as: An API to interact with the popular messaging app Discord. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 580c66a. 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:
rggitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
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.
Discord Php Bot Security loads about 1.2k tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 450 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 noted patterns worth knowing about, such as sudo or a known installer.
- `.gitignore` must cover `.env`, `.env.*`, `composer.lock` (in these repos),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 discord-php/DiscordPHP at commit 580c66a, republished under its MIT licence (© discord-php). 450 words, ~1,160 tokens.
.claude/skills/discord-php-bot-security/SKILL.md (or your agent's skills folder).A concrete checklist built from real findings across DiscordPHP-MTG,
DiscordPHP-NHA, DiscordPHP-Voice and Civilizationbot.
The classic bug: an extension's Http client for api.example.com is
constructed with 'Bot '.$this->token and adds Authorization: <token> to
every request — so the Discord bot token is sent to an unrelated host on
every call.
Authorization when a real value is present:$h = ['User-Agent' => $this->getUserAgent()];
if ($this->token !== '') $h['Authorization'] = $this->token;
if ($this->apiKey !== null) $h['X-Api-Key'] = $this->apiKey; // that API's own keyX-Ratelimit-Precision) from non-Discord clients.getUserAgent() to identify your library, not DiscordPHP-HTTP.input — for an auth'd POST that includes the
token. Redact before logging and before putting it in an exception message:$body = preg_replace('/("(?:nha_)?token"\s*:\s*)"[^"]*"/i', '$1"***"', $body) ?? $body;Manager/gateway code: log ['token' => '*****'], and give payload parts a
__debugInfo() that redacts the token (see VoicePayload::__debugInfo()).
Log identify with ['op' => $payload->op], not the whole payload.file:line:function from
debug_backtrace() (no ['args']). getTraceAsString() still inlines scalar
args truncated to 15 chars — a token prefix can leak. Prefer the arg-free
form.custom_idComponent custom_ids are sent to Discord and visible in the client. Capture the
agent/session token in the server-side listener closure, never in the id or a
button label. (NHA's AgentObservation::toContainer($nha, $token) does this
right — $token lives only in the $submit closure.)
bin2hex(random_bytes(16)), never uniqid()
(predictable microtime).hash_equals(), not === / !== — HMAC signatures and CSRF
state tokens. Reject empty/absent values up front; make the state single-use
(delete it after a successful exchange).hash_equals(), prefer
X-Hub-Signature-256, and fail closed when the shared secret env var is
unset (an unset secret makes hash_hmac key '' and every request "valid").redirect_uri against an
allow-list — a caller-supplied value must not bypass the check (open redirect /
auth-code interception).code (an exchangeable credential), the
full request header set on a rejected request (a mistyped Authorization lands
in the log), or contact-form email/message bodies (PII — send them to the
private channel, not the log).curl in an OAuth path: set CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_CONNECTTIMEOUT, CURLOPT_TIMEOUT,
curl_close(), and null-check the result..gitignore must cover .env, .env.*, composer.lock (in these repos),
/var/* (state files with tokens), and any bespoke secret file
(token.php, /json, botlog.txt).git ls-files | grep -iE '\.env|token|secret|\.pem|\.key|credential'.Referer).rg -n "addQuery\(\s*['\"](token|key|secret|password)" src/ # token in URL
rg -n "(debug|info|warn|error).*(token|Authorization|getBody|payload|->data\b)" src/
rg -n "!==|===" src/ | rg -i "hash_hmac|signature|hash_equals" # non-constant-time
rg -n "uniqid\(" src/ # weak randomness© discord-php, 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 .github/skills/discord-php-bot-security of discord-php/DiscordPHP.
Open the folder on GitHubat commit 580c66a
Discord Php Bot Security 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 |
|---|---|---|---|---|---|---|
| Discord Php Bot Security this skilldiscord-php/DiscordPHP | 1.1k | — | ~1.2k | Automated safety check: Notes | MIT | |
| Passport Developmenttrypostit/trypost | 676 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Frappe Core APIImpertio-Studio/Frappe_Claude_Skill_Package | 187 | 1 repos | ~3.2k | Automated safety check: Pass | MIT | |
| Frappe Errors APIImpertio-Studio/Frappe_Claude_Skill_Package | 187 | 1 repos | ~4k | Automated safety check: Pass | MIT | |
| Shopify ExpertJeffallan/claude-skills | 12k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Web Ssrfs0ld13rr/pentestcode | 817 | — | ~660 | Automated safety check: Warn | MIT |
trypostit/trypost
Develops OAuth2 API authentication with Laravel Passport. An agent skill from trypostit/trypost.
Impertio-Studio/Frappe_Claude_Skill_Package
A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.
Impertio-Studio/Frappe_Claude_Skill_Package
A skill your agent uses when debugging or handling API errors in Frappe/ERPNext v14/v15/v16.
Jeffallan/claude-skills
Builds Shopify themes in Liquid, custom apps, Storefront API storefronts and checkout extensions, using the Shopify CLI to lint, run locally and deploy.
s0ld13rr/pentestcode
Server-Side Request Forgery detection→internal-access→proof for web apps.
Microck/ordinary-claude-skills
Complete API integration guide for Shopify including GraphQL Admin API, REST Admin API, Storefront API, Ajax API, OAuth authentication, rate limiting, and webhooks.
discord-php/DiscordPHP
Maintain test and documentation alignment — PHPUnit tests, async testing patterns, PHPDoc contracts, guide pages, and documentation workflow.
discord-php/DiscordPHP
Scaffold and maintain a DiscordPHP-based bot or an API-library-on-DiscordPHP (the DiscordPHP-MTG / DiscordPHP-NHA / DiscordPHP-Sabacc pattern) — client subclass, third-party HTTP layer, Parts…
discord-php/DiscordPHP
Build DiscordPHP slash commands and message components — global command trees with subcommands, user- AND guild-installable commands usable in DMs / group DMs / guild channels, Components V2…
discord-php/DiscordPHP
Work with DiscordPHP's infrastructure utilities — CacheWrapper, CacheConfig, BigInt, Multipart, Endpoint::bind URL templates, Collection base class, and domain Exceptions.
discord-php/DiscordPHP
Maintain Part domain models — fillable attributes, mutators, typed nested data, save/fetch behavior, permission checks, PHPDoc, and repository bindings.
discord-php/DiscordPHP
Maintain Discord.php runtime bootstrapping, startup options, event loop, gateway connection, reconnection, member chunking, cache configuration, and process lifecycle.
Categories
Audit checklist for DiscordPHP bots and API libraries — stop the bot token leaking to third-party APIs or logs, keep secrets out of customids and exception messages, use constant-time comparison and…. Discord Php Bot Security is an agent skill from discord-php/DiscordPHP. Audit checklist for DiscordPHP bots and API libraries — stop the bot token leaking to third-party APIs or logs, keep secrets out of customids and exception messages, use constant-time comparison and crypto-random for auth/CSRF/webhook flows, and don't log OAuth codes / full headers / PII.
Discord Php Bot Security fits situations like: reviewing an HTTP client; an error handler; webhook endpoint; before publishing a repo.
Run `npx skills add discord-php/DiscordPHP --skill discord-php-bot-security -a claude-code`. Or copy the skill folder (.github/skills/discord-php-bot-security in discord-php/DiscordPHP) into .claude/skills/discord-php-bot-security in your project. Claude Code loads it when a task matches its description.
Run `npx skills add discord-php/DiscordPHP --skill discord-php-bot-security -a codex`. Or copy the skill folder (.github/skills/discord-php-bot-security in discord-php/DiscordPHP) into .agents/skills/discord-php-bot-security 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 discord-php/DiscordPHP --skill discord-php-bot-security -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/discord-php-bot-security, .gemini/skills/discord-php-bot-security, .github/skills/discord-php-bot-security and .opencode/skills/discord-php-bot-security in your project.
Going by SKILL.md and its folder, Discord Php Bot Security needs the command-line tools its instructions call (rg and git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Discord Php Bot Security 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.2k tokens (SKILL.md is roughly 4.6k 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 Discord Php Bot Security: Passport Development (trypostit/trypost, 676 stars), Frappe Core API (Impertio-Studio/Frappe_Claude_Skill_Package, 187 stars), Frappe Errors API (Impertio-Studio/Frappe_Claude_Skill_Package, 187 stars) and Shopify Expert (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
discord-php (a GitHub organization) maintains it in discord-php/DiscordPHP, which has 1,080 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 6, 2026.
Source: discord-php/DiscordPHP on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.