一键导入
add-plugin-doc
Create documentation for a new official GramIO plugin with proper template, badges, installation instructions, and sidebar registration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create documentation for a new official GramIO plugin with proper template, badges, installation instructions, and sidebar registration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Invoke for ANY Telegram bot code — `gramio`/`@gramio/*` imports, `new Bot()`, `bot.command`/`bot.callbackQuery`/`bot.on`/`bot.updates.on`, scenes/FSM, inline & reply keyboards, message entities, file uploads, sessions, plugins, webhooks vs long-polling, Telegram Stars, Mini Apps (TMA), broadcasting, Docker. Type-safe TypeScript framework (Node.js/Bun/Deno) with full Bot API coverage. Also covers migrations from Telegraf/grammY/puregram/node-telegram-bot-api. When delegating to a subagent, pass relevant reference files (callback-data, scenes, formatting, context, middleware-routing, ux-patterns) inline — this skill does not auto-load in subagent sessions.
Generate changelog pages from gramiojs org patches using ghlog CLI. Tracks last-seen commit SHAs per repo via --since-map for precise incremental updates. Also updates docs and skills to reflect changes, and maintains the per-package GramIO upgrade data (public/migrations.json) that generates the upgrade skill, the upgrading guide, and the version picker.
Upgrade an existing GramIO project to newer gramio / @gramio/* versions. Detects the installed versions, looks up the breaking changes, deprecations, and new features between current and target in MIGRATIONS.md, presents an ordered migration plan with before/after code, applies the edits, verifies, and then proactively suggests the new features the upgrade unlocks that could help the project. Use whenever the user says "upgrade gramio", "update gramio to latest", "обнови грамио до последней", "what breaks if I update gramio", "migrate to gramio 0.10", "почему перестало работать после обновления", "bump @gramio/* versions".
Pick an available Telegram bot username. Takes a topic (and optional audience/language), generates candidates respecting BotFather's rules, batch-checks availability on t.me via the bundled `check-usernames.mjs` script, and returns a ranked shortlist of free names. Use whenever the user asks "find a bot username", "check if @foo_bot is taken", "придумай юзернейм для бота", "неминг бота".
Create a new documentation page in both EN and RU with proper frontmatter, sidebar registration, and automatic Russian translation.
Research and fill user-maintained content for Telegram API reference pages — SEO meta, GramIO usage examples, errors with context annotations, tips & gotchas, and see-also links. Supports multiple page names at once.
| name | add-plugin-doc |
| description | Create documentation for a new official GramIO plugin with proper template, badges, installation instructions, and sidebar registration. |
| allowed-tools | Read, Write, Edit, Glob, Grep |
| metadata | {"internal":true} |
You are creating documentation for a new official GramIO plugin.
The user provides [plugin-name] — e.g., media-cache or session.
Read an existing plugin page for reference — e.g., docs/plugins/official/session.md — to match the exact format.
Read AGENTS.md for conventions.
Create the EN plugin page at docs/plugins/official/{plugin-name}.md:
---
title: {Plugin Name} Plugin for GramIO
head:
- - meta
- name: "description"
content: "{Brief description of the plugin for SEO}."
- - meta
- name: "keywords"
content: "Telegram bot, GramIO, {plugin-name}, {relevant keywords}"
---
# {Plugin Name} Plugin
<div class="badges">
[](https://www.npmjs.org/package/@gramio/{plugin-name})
[](https://jsr.io/@gramio/{plugin-name})
[](https://jsr.io/@gramio/{plugin-name})
</div>
{Short description of the plugin.}
### Installation
::: code-group
```bash [npm]
npm install @gramio/{plugin-name}
yarn add @gramio/{plugin-name}
pnpm add @gramio/{plugin-name}
bun install @gramio/{plugin-name}
:::
import { Bot } from "gramio";
// TODO: Add usage example
Create the RU translation at docs/ru/plugins/official/{plugin-name}.md:
title, description, keywords) to Russian.Register in EN sidebar — edit en.locale.ts, add to the Official plugins list.
Register in RU sidebar — edit ru.locale.ts, add to the Официальные plugins list.