skills/creating-telegraph-pages/SKILL.md
Create and publish public Telegra.ph articles through the official Telegraph API, including account setup, content conversion to Telegraph nodes, credential handling, and publication verification. Use when the user asks to create, publish, or post a page or article on telegra.ph.
npx skillsauth add narumiruna/agent-skills creating-telegraph-pagesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Publish structured articles with the bundled scripts/telegraph.py helper. Treat page creation as an external write: verify the final title, author details, and content before publishing unless the user's request already makes them explicit.
Resolve scripts/telegraph.py against this skill directory before running it, then use its absolute path throughout:
CREATING_TELEGRAPH_PAGES_SKILL_DIR="/absolute/path/to/creating-telegraph-pages"
Prepare the article.
Convert the body to a JSON array of Telegraph nodes in a temporary file. Use strings for text and objects shaped as {"tag": "p", "children": ["Text"]} for elements.
a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, or video.tag, attrs, and children object fields. Attribute names must be href or src, and attribute values must be strings.h3 or h4; Telegraph does not support h1 or h2 nodes.Obtain an access token.
Prefer an existing token supplied through TELEGRAPH_ACCESS_TOKEN.
Never place the token in a command argument, committed file, tool output, log, or response.
If the user has no account, ask before creating one because it changes external state. Also agree on a new secret-file path, then run:
uv run --no-project python "$CREATING_TELEGRAPH_PAGES_SKILL_DIR/scripts/telegraph.py" create-account \
--short-name '<account-name>' \
--token-file '<user-approved-secret-path>'
The helper refuses to overwrite an existing file, stores the token with owner-only permissions, and omits access_token and auth_url from its output. Do not read the token with a tool that captures output or create repeated accounts to avoid managing one.
Publish only after the content is ready:
uv run --no-project python "$CREATING_TELEGRAPH_PAGES_SKILL_DIR/scripts/telegraph.py" create-page \
--title '<title>' \
--author-name '<author>' \
/tmp/telegraph-content.json
Omit --author-name or add --author-url when appropriate. Inject TELEGRAPH_ACCESS_TOKEN through the execution environment; do not write the literal token into shell history. If using the restricted token file, load it without printing it:
TOKEN_FILE='<user-approved-secret-path>'
TELEGRAPH_ACCESS_TOKEN="$(cat "$TOKEN_FILE")" \
uv run --no-project python "$CREATING_TELEGRAPH_PAGES_SKILL_DIR/scripts/telegraph.py" create-page \
--title '<title>' \
/tmp/telegraph-content.json
Verify the result.
https://telegra.ph/... URL.ACCESS_TOKEN_INVALID, stop and request a valid token; do not create a replacement account automatically.Use the official Telegraph API documentation for methods or fields not covered by the helper.
development
Score or compare one or more agent skills across trigger clarity, workflow actionability, safety boundaries, verification rigor, incremental knowledge value, and leanness. Use only when the user explicitly asks for ratings, numerical quality scores, rubric-based scorecards, or scored comparisons; use creating-agent-skills for unscored reviews or revisions.
development
Assess or improve an existing codebase's architecture when the user asks about module boundaries, coupling, scattered ownership, testability, change locality, deep modules, seams, or behavior-preserving structural refactoring. Use for cross-module design rather than ordinary diff review or a confirmed edge-case bug fix.
development
Perform read-only security audits, vulnerability assessments, or threat-focused reviews of diffs, pull requests, code paths, or explicitly scoped repositories when security is the primary objective or acceptance criterion. Use reviewing-code for ordinary review with baseline security coverage and hardening-code-paths for fixing confirmed findings.
development
Run iterative multi-reviewer panels over a code diff, verify their findings, apply explicitly authorized fixes, and re-review the updated change until it passes or reaches a stopping condition. Use when the user asks for a panel loop, multi-model code-review consensus, or a review-fix-re-review cycle.