Chat SDK
databuddy-analytics/Databuddy
Build multi-platform chat bots with Chat SDK (chat npm package).
Maintain interaction flow — Interaction typing, resolved data caching, command routing, autocomplete, modal responses, and interaction builders.
$ npx skills add discord-php/DiscordPHP --skill interaction-flow-keeper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install discord-php/DiscordPHP interaction-flow-keeper --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/.agents/skills/interaction-flow-keeper .claude/skills/interaction-flow-keeper && 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 "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .claude/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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/.agents/skills/interaction-flow-keeperType 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 interaction-flow-keeper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install discord-php/DiscordPHP interaction-flow-keeper --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/.agents/skills/interaction-flow-keeper .agents/skills/interaction-flow-keeper && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .agents/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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 interaction-flow-keeper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install discord-php/DiscordPHP interaction-flow-keeper --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/.agents/skills/interaction-flow-keeper .cursor/skills/interaction-flow-keeper && 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 "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .cursor/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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 .agents/skills/interaction-flow-keeper--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 interaction-flow-keeper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install discord-php/DiscordPHP interaction-flow-keeper --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/.agents/skills/interaction-flow-keeper .gemini/skills/interaction-flow-keeper && 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 "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .gemini/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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 interaction-flow-keeperInstalls 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 interaction-flow-keeper -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/.agents/skills/interaction-flow-keeper .github/skills/interaction-flow-keeper && 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 "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .github/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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 interaction-flow-keeper -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 interaction-flow-keeper --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/.agents/skills/interaction-flow-keeper .opencode/skills/interaction-flow-keeper && 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 "interaction-flow-keeper" agent skill from https://github.com/discord-php/DiscordPHP/tree/master/.agents/skills/interaction-flow-keeper into .opencode/skills/interaction-flow-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "interaction-flow-keeper", 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.
interaction-flow-keeperMaintain interaction flow — Interaction typing, resolved data caching, command routing, autocomplete, modal responses, and interaction builders.
Interaction Flow Keeper is an agent skill from discord-php/DiscordPHP. Maintain interaction flow — Interaction typing, resolved data caching, command routing, autocomplete, modal responses, and interaction builders. Use when touching Interactions or slash command handling.
Its SKILL.md is about 1.7k 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 Agent Workflows, covering Hooks and plugins and Caching. 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.
6 steps, taken from the first numbered list 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.
No scripts in the folder and no shell commands in SKILL.md.
From 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.
Interaction Flow Keeper loads about 1.7k tokens when it runs. Until then it costs about 57 tokens; SKILL.md has 746 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 discord-php/DiscordPHP at commit 580c66a, republished under its MIT licence (© discord-php). 746 words, ~1,677 tokens.
.claude/skills/interaction-flow-keeper/SKILL.md (or your agent's skills folder).Use this skill when work touches:
src/Discord/Parts/Interactions/*src/Discord/WebSockets/Events/InteractionCreate.phpThis is typed-interaction flow skill. Load it when work affects how interactions are received, interpreted, routed, or answered.
Keep interactions as a coherent pipeline:
InteractionCreatesrc/Discord/Parts/Interactions/Interaction.phpsrc/Discord/WebSockets/Events/InteractionCreate.phpsrc/Discord/Helpers/RegisteredCommand.phpsrc/Discord/Parts/Interactions/Request/*src/Discord/Builders/CommandBuilder.phpsrc/Discord/Builders/ModalBuilder.phpsrc/Discord/Repository/Interaction/GlobalCommandRepository.phpsrc/Discord/Repository/Guild/GuildCommandRepository.phpInteraction flow in this repo has two distinct sides:
InteractionCreateInteraction::TYPES chooses concrete subtypeDo not mix inbound part modeling with outbound builder modeling.
Interaction::TYPES is centralIf Discord adds or repo adds support for new interaction type:
Interaction::TYPESInteractionCreateInteraction and its request data parts should expose:
through typed parts or typed collections where repo already has models.
InteractionCreate rulesThis handler is latency-sensitive and still responsible for cache correctness.
Preserve these patterns:
The handler already overrides some cache behavior to stay fast. Do not "clean it up" into slower generic behavior without understanding timing tradeoffs.
There is an interaction-specific registered command tree in RegisteredCommand.
Keep these facts straight:
CommandClient\CommandDiscord::listenCommand() populates application_commandsInteractionCreate routes slash/autocomplete events into that treeRegisteredCommand supports nested subcommand treessuggest()execute()If change touches application command routing, inspect both:
Discord::listenCommand() pathInteractionCreate callback routing pathWhen payload provides users or members:
When payload provides entitlements:
Do not assume interaction payload is only for immediate response. It also updates local state for later code.
Interaction code has less patience for extra work than many other gateway paths.
Prefer:
Avoid:
CommandBuilderModalBuilderInteraction defines response type constants. Use them to keep protocol semantics readable.
If interaction response uses components or modals:
type + data response shapeThey are different layers:
RegisteredCommand and interaction partsDiscordCommandClient and CommandClient\CommandDo not unify them by shoving shared semantics into wrong layer. Shared ideas may exist, but execution paths are different.
An interaction may reference a message, but it is not a message event. Keep response and request semantics on interaction types.
Stop if you see:
Interaction::TYPES updateInteraction::TYPES still complete for supported typesInteractionCreate still types, caches, and routes correctlyInteraction code in this repo is both protocol parsing and fast command routing. Keep it typed, cache-aware, and quick.
© 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 .agents/skills/interaction-flow-keeper of discord-php/DiscordPHP.
Open the folder on GitHubat commit 580c66a
Interaction Flow Keeper 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 |
|---|---|---|---|---|---|---|
| Interaction Flow Keeper this skilldiscord-php/DiscordPHP | 1.1k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Chat SDKdatabuddy-analytics/Databuddy | 1.2k | — | ~2.6k | Automated safety check: Pass | AGPL-3.0 | |
| Test Ocas Openclawpwrdrvr/openclaw-codex-app-server | 265 | — | ~4k | Automated safety check: Pass | MIT | |
| Discord Bot Architectdavila7/claude-code-templates | 32k | 6 repos | ~2k | Automated safety check: Pass | MIT | |
| Basercms5 Developmentbaserproject/basercms | 190 | — | ~1.1k | Automated safety check: Notes | MIT | |
| Basercms5 Plugin Developmentbaserproject/basercms | 190 | — | ~4.9k | Automated safety check: Pass | MIT |
databuddy-analytics/Databuddy
Build multi-platform chat bots with Chat SDK (chat npm package).
pwrdrvr/openclaw-codex-app-server
Regression test the OpenClaw Codex App Server plugin against a live local OpenClaw instance in Telegram or Discord.
davila7/claude-code-templates
Specialized skill for building production-ready Discord bots.
baserproject/basercms
baserCMS 5系(CakePHP 5.0.5系)+ jQuery プロジェクトの共通ルール(環境・ディレクトリ構成・命名規則・ログ/エラーハンドリング・コアハック禁止・サーバ制約)を定めた基底スキル。「baserCMS 5 で開発」「5系プロジェクトの構成・規約を確認」「htdocs/plugins 配下の配置」「CakeLog…
baserproject/basercms
baserCMS 5系(CakePHP 5ベース)のプラグインを新規開発・改修する際の正本パターン集。「プラグインを作成」「bcplugin で bake」「管理画面を追加」「Table/Entity の書き方」「initialize でアソシエーション宣言」「validationDefault」「fetchTable と TableRegistry の使い分け」「BcAdminForm /…
baserproject/basercms
baserCMS 5系(CakePHP 5ベース)のテーマを新規開発・改修する際の正本パターン集。「テーマを作成」「テーマプラグインの構造」「layout/element の書き方」「固定ページテンプレート($page-contents)」「ウィジェット element の配置(element/widget)」「メールフォームテンプレート(createMailForm /…
discord-php/DiscordPHP
Maintain test and documentation alignment — PHPUnit tests, async testing patterns, PHPDoc contracts, guide pages, and documentation workflow.
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…
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.
Categories
Maintain interaction flow — Interaction typing, resolved data caching, command routing, autocomplete, modal responses, and interaction builders. Interaction Flow Keeper is an agent skill from discord-php/DiscordPHP. Maintain interaction flow — Interaction typing, resolved data caching, command routing, autocomplete, modal responses, and interaction builders.
Interaction Flow Keeper fits situations like: touching Interactions; slash command handling.
Run `npx skills add discord-php/DiscordPHP --skill interaction-flow-keeper -a claude-code`. Or copy the skill folder (.agents/skills/interaction-flow-keeper in discord-php/DiscordPHP) into .claude/skills/interaction-flow-keeper in your project. Claude Code loads it when a task matches its description.
Run `npx skills add discord-php/DiscordPHP --skill interaction-flow-keeper -a codex`. Or copy the skill folder (.agents/skills/interaction-flow-keeper in discord-php/DiscordPHP) into .agents/skills/interaction-flow-keeper 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 interaction-flow-keeper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/interaction-flow-keeper, .gemini/skills/interaction-flow-keeper, .github/skills/interaction-flow-keeper and .opencode/skills/interaction-flow-keeper in your project.
SKILL.md names no scripts, command-line tools or credentials: Interaction Flow Keeper is instructions for the agent only.
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.
Interaction Flow Keeper 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.7k tokens (SKILL.md is roughly 6.7k 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 Interaction Flow Keeper: Chat SDK (databuddy-analytics/Databuddy, 1.2k stars), Test Ocas Openclaw (pwrdrvr/openclaw-codex-app-server, 265 stars), Discord Bot Architect (davila7/claude-code-templates, 32k stars) and Basercms5 Development (baserproject/basercms, 190 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.