agent-deck
Управление сессиями AI агентов через agent-deck CLI. Триггеры (RU): "запусти агента", "запусти саб-агента", "создай сессию",…
Publish and manage Telegraph pages with media, page-view statistics, and auto-split for long articles. ALWAYS read SKILL.md before first use.
$ npx -y skills add artwist-polyakov/polyakov-claude-skills --skill telegraph-publisher --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/telegraph-publisherContext preview
The summary Claude sees to decide when to auto-load this skill.
Publish and manage Telegraph pages with media, page-view statistics, and auto-split for long articles. ALWAYS read SKILL.md before first use.
name: telegraph-publisher description: "Publish and manage Telegraph pages with media, page-view statistics, and auto-split for long articles. ALWAYS read SKILL.md before first use."
Publish content to Telegraph via API with media support. Best for: articles, research reports, documentation, illustrated content.
No token? → sh scripts/create_account.sh --name "Name" Have token? → Save to config/.env Publish page? → sh scripts/create_page.sh --title "Title" --html "<p>Content</p>" Edit page? → sh scripts/edit_page.sh --path "Path-03-09" --title "Title" --html "<p>New</p>" List pages? → sh scripts/list_pages.sh Page views? → sh scripts/page_views.sh --path "Page-Title-03-09" Account info? → sh scripts/account_info.sh Permanent media? → sh scripts/github_upload.sh --file hero.webp --page-path page-path
Telegraph accounts are API-only (no password/email). Key concepts:
1. `create_account.sh` generates `access_token` + one-time `auth_url` 2. Open `auth_url` in browser to bind API account to browser session 3. Pages belong to the account whose token was used in `createPage` 4. After browser binding: pages visible at telegra.ph, editable both via browser and API 5. Use `--revoke` to rotate token if compromised
See [config/README.md](config/README.md) for full ownership model.
Scripts are POSIX sh compatible — work in cloud sandboxes (`/bin/sh`) and locally. Python scripts use stdlib only (`html.parser`, `json`, `sys`).
`create_page.sh`, `edit_page.sh`, `list_pages.sh`, and `account_info.sh` require `TELEGRAPH_ACCESS_TOKEN` in `config/.env` or environment. Creating an account and reading public page-view statistics do not require an existing Telegraph token.
Optional `TELEGRAPH_AUTHOR_NAME` and `TELEGRAPH_AUTHOR_URL` in `config/.env` or the environment provide author defaults. Explicit flags override each field, including empty strings, in `create_page.sh` and `edit_page.sh`. With neither a setting nor a flag, these scripts omit the field. These defaults also apply to edits: do not replace a page's different author unintentionally; pass the intended author explicitly. See [config/README.md](config/README.md#author-defaults) for precedence and account naming.
If the user supplies an author as `[Channel Name](https://t.me/channel)`, pass `Channel Name` and `https://t.me/channel` as separate name and URL values. Scripts accept plain values, not Markdown author links.
For permanent media hosting, prefer a separate public GitHub repo + jsDelivr CDN. Reason: Telegraph's unofficial upload endpoint is unstable and should not be the default publishing path.
The agent should assume this is the default permanent media backend.
Required GitHub config:
GITHUB_TOKEN=ghp_... GITHUB_ASSETS_REPO=owner/repo GITHUB_ASSETS_BRANCH=main GITHUB_ASSETS_BASE_DIR=pages GITHUB_MANIFESTS_DIR=manifests
Recommended setup: 1. Create a **separate public GitHub repo only for Telegraph media** 2. Create a **fine-grained PAT only for that repo** 3. Grant only:
4. Save token and repo to `config/.env`
Why this matters:
Agent rule:
Telegraph API accepts an array of Node objects. This skill converts **HTML fragments** to Node JSON automatically.
Supported HTML tags (Telegraph API whitelist): `a`, `aside`, `b`, `blockquote`, `br`, `code`, `em`, `figcaption`, `figure`, `h3`, `h4`, `hr`, `i`, `iframe`, `img`, `li`, `ol`, `p`, `pre`, `s`, `strong`, `u`, `ul`, `video`
Only `href` and `src` attributes are preserved. Unsupported tags are stripped (children kept).
Special case:
See [references/CONTENT_FORMAT.md](references/CONTENT_FORMAT.md) for Node format details.
sh scripts/create_account.sh --name "Author Name" [--author-url "https://..."] sh scripts/create_account.sh --revoke # rotate token
With a nonempty `TELEGRAPH_AUTHOR_NAME` configured, `--name` is optional. The public author name is kept in full; the private account label uses its first 32 Unicode characters.
sh scripts/account_info.sh sh scripts/account_info.sh --with-auth-url # include auth_url in output
# From HTML string sh scripts/create_page.sh --title "Article" --html "<h3>Hello</h3><p>World</p>" # From HTML file sh scripts/create_page.sh --title "Article" --html-file article.html # From pre-built Node JSON sh scripts/create_page.sh --title "Article" --content-file nodes.json # With author info sh scripts/create_page.sh --title "Article" --html-file a.html --author-name "Name"
| Param | Required | Description | |-------|----------|-------------| | `--title` | yes | Page title (1-256 chars) | | `--html` | one of three | Inline HTML strin
Управление сессиями AI агентов через agent-deck CLI. Триггеры (RU): "запусти агента", "запусти саб-агента", "создай сессию",…
Workflow кросс-агентного ревью с Codex. Triggers (RU): "кодекс ревью". Triggers (EN): "with codex review", "codex review…
SEO-краулер сайтов на базе Crawl4AI. Полный аудит страниц: title, meta, H1, canonical, breadcrumbs, навигация, внутренние ссылки.…
Fill Word document templates (contracts, forms) with structured data using docxtpl. Use when user uploads a .docx template with…
Generate/edit images via fal.ai. Supports Google Nano Banana Pro and OpenAI GPT Image 2 selected from config/.env. Supports…
Анализирует генетические данные пользователя из VCF файла. Используй когда пользователь спрашивает о своей генетике,…