Skill for AI coding agents that need to design, implement, review, or debug integrations with the MAX messenger developer platform.
It bundles the MAX developer documentation and official client library knowledge inside the skill, so the agent can answer and code from local reference files instead of relying on live links.
Use this skill when working on:
- MAX chat bots and Bot API integrations.
- Mini apps / web apps, MAX Bridge, init data validation, and trusted session flows.
- Webhook and Long Polling event handling.
- Messages, formatting, attachments, keyboards, uploads, chats, subscriptions, and callback answers.
- Official JavaScript/TypeScript client usage.
- Official Go client usage.
- Platform onboarding, moderation, partner integration, Digital ID, and legal/compliance requirements.
The skill also includes a high-priority migration note for the API host change from platform-api.max.ru to platform-api2.max.ru.
skills/max-messenger/
├── SKILL.md
├── agents/
│ └── openai.yaml
├── references/
│ ├── max-api-migration-notes.md
│ ├── max-api-reference.md
│ ├── max-platform-docs.md
│ ├── max-js-client.md
│ ├── max-go-client.md
│ └── scrape-manifest.json
└── scripts/
├── scrape-max-docs.mjs
└── run-skill-validator.mjs
For new code and examples, use:
https://platform-api2.max.ru
Some generated documentation still contains:
https://platform-api.max.ru
Treat that old host as stale unless you are explicitly diagnosing a legacy integration. See skills/max-messenger/references/max-api-migration-notes.md.
Do not disable TLS verification to work around certificate errors. Add the required Ministry of Digital Development certificate to the trusted certificate store used by your runtime, container, or CI environment.
Codex reads skills from .agents/skills locations. For a personal install available across projects:
mkdir -p ~/.agents/skills
cp -R skills/max-messenger ~/.agents/skills/max-messengerNew-Item -ItemType Directory -Force "$HOME\.agents\skills" | Out-Null
Copy-Item -Recurse -Force ".\skills\max-messenger" "$HOME\.agents\skills\max-messenger"For a repo-local install, copy the skill into the target repository:
<repo>/.agents/skills/max-messenger/
Invoke it explicitly in Codex with:
$max-messenger
Codex can also invoke it automatically when the request matches the skill description. If a new or updated skill does not appear, restart Codex.
Claude Code reads personal skills from ~/.claude/skills and project skills from .claude/skills.
macOS / Linux:
mkdir -p ~/.claude/skills
cp -R skills/max-messenger ~/.claude/skills/max-messengerWindows PowerShell:
New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null
Copy-Item -Recurse -Force ".\skills\max-messenger" "$HOME\.claude\skills\max-messenger"Invoke it explicitly in Claude Code with:
/max-messenger
Copy the skill into a project:
<repo>/.claude/skills/max-messenger/
Claude Code watches skill directories for changes. If the top-level skills directory did not exist when the session started, restart Claude Code.
Install Node dependencies:
npm installRefresh the local reference files:
npm run scrapeUse PinchTab rendering only if the MAX docs become client-rendered or the static scrape misses content:
npm run scrape:pinchtabValidate the skill:
npm run validate:skillThe generated manifest is written to:
skills/max-messenger/references/scrape-manifest.json
- Keep
SKILL.mdconcise and usereferences/for large documentation. - Put manual operational overrides in
max-api-migration-notes.mdinstead of editing generated files directly. - Re-run
npm run scrapewhen official MAX docs or client libraries change. - Re-run
npm run validate:skillbefore publishing changes. - Do not commit
node_modules/.
The embedded references are generated from:
- https://dev.max.ru/docs
- https://dev.max.ru/docs-api
- https://github.com/max-messenger/max-bot-api-client-ts
- https://github.com/max-messenger/max-bot-api-client-go
Installation paths follow the current Codex and Claude Code skill documentation: