Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

MAX Messenger Agent Skill

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.

What It Is For

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.

Repository Layout

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

Important API Migration Note

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.

Install In Codex

Codex reads skills from .agents/skills locations. For a personal install available across projects:

macOS / Linux

mkdir -p ~/.agents/skills
cp -R skills/max-messenger ~/.agents/skills/max-messenger

Windows PowerShell

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

Install In Claude Code

Claude Code reads personal skills from ~/.claude/skills and project skills from .claude/skills.

Personal Install

macOS / Linux:

mkdir -p ~/.claude/skills
cp -R skills/max-messenger ~/.claude/skills/max-messenger

Windows 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

Project Install

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.

Update Embedded Documentation

Install Node dependencies:

npm install

Refresh the local reference files:

npm run scrape

Use PinchTab rendering only if the MAX docs become client-rendered or the static scrape misses content:

npm run scrape:pinchtab

Validate the skill:

npm run validate:skill

The generated manifest is written to:

skills/max-messenger/references/scrape-manifest.json

Development Notes

  • Keep SKILL.md concise and use references/ for large documentation.
  • Put manual operational overrides in max-api-migration-notes.md instead of editing generated files directly.
  • Re-run npm run scrape when official MAX docs or client libraries change.
  • Re-run npm run validate:skill before publishing changes.
  • Do not commit node_modules/.

Source Material

The embedded references are generated from:

Installation paths follow the current Codex and Claude Code skill documentation:

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages