SuperAPI AI Directory

add-plugin-doc

Writing & research

View repository

Updated 10-15 21:55

About this skill

Add Plugin Documentation

You are creating documentation for a new official GramIO plugin.

Arguments

The user provides [plugin-name] — e.g., media-cache or session.

Steps

  1. Read an existing plugin page for reference — e.g., docs/plugins/official/session.md — to match the exact format.

  2. Read AGENTS.md for conventions.

  3. 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

npm JSR JSR Score

{Short description of the plugin.}

Installation

::: code-group

npm install @gramio/{plugin-name}
yarn add @gramio/{plugin-name}
pnpm add @gramio/{plugin-name}
bun install @gramio/{plugin-name}

:::

Usage

import { Bot } from "gramio";
// TODO: Add usage example

4. **Create the RU translation** at `docs/ru/plugins/official/{plugin-name}.md`:
- Translate the frontmatter (`title`, `description`, `keywords`) to Russian.
- Translate all body content to Russian (headings, descriptions, paragraphs).
- Preserve code blocks, twoslash annotations, badges, and markdown structure exactly.

5. **Register in EN sidebar** — edit `en.locale.ts`, add to the Official plugins list.

6. **Register in RU sidebar** — edit `ru.locale.ts`, add to the Официальные plugins list.