astro-sync
БесплатноБез исполняемых скриптовНе проверенConvert and polish a Markdown article into AstroPaper-compatible post format for the astro_journal blog (everbox.io). Use when the user wants to publish or…
от j3ffyang1 479 установок в других каталогахОб этом скилле
Astro Sync
Convert a polished Markdown draft into a ready-to-publish AstroPaper post in the astro_journal repo (/home/jeff/pool/git/astro_journal), copying and rewriting image references to match the blog's conventions.
Approval gate — read before anything else
- Never sync, write, or publish anything without explicit user approval. This skill converts on demand only; it does not run automatically.
- The user decides which article is ready to sync and publish (from
ai-thoughtsorhistorytoastro_journal) and points it out explicitly. Do not guess, propose candidates, or sync articles on your own. - When the user names an article, still confirm the plan (target category, draft/featured, tags) before writing to the blog repo.
- Never commit or push without explicit user approval. After writing the post, ask for go-ahead first; only then stage the post + new images, commit, and push. The blog repo (
astro_journal) has a single remoteorigin.
Blog conventions (source of truth: astro_journal/AGENTS.md)
- Posts live in
src/data/blog/<category>/— categories:tech,travel,photo,philosophy,culture. Notsrc/content/. - Filenames:
yymmdd-lowercase-slug.md— 6-digit date prefix, lowercase, hyphens only. No underscores, camelCase, or 10-digit timestamps. - URLs derive from the filename; never hardcode
/posts/...links. - Cross-links to other articles use absolute GitHub URLs on
j3ffyang. A relative link such as261108-hermes-guest-hardening.mdis resolved by the browser against the post URL, producing/posts/<category>/<slug>/261108-hermes-guest-hardening.md— a path the build never creates, becausedistholds<slug>/index.htmland zero.mdfiles. Publishing the target does not fix it; the path itself is wrong. Writehttps://github.com/j3ffyang/ai-thoughts/blob/main/docs/<file>instead. - Frontmatter follows the AstroPaper schema (see below).
- Images live in
src/assets/images/, referenced by literal relative path../../../assets/images/<file>from a post insrc/data/blog/<category>/. - Renaming a published post requires adding a redirect (old URL → new URL) to
postRedirectsinastro.config.ts. .origfiles anywhere in the repo are intentional references — never modify or delete them.
Inputs
source— Path to the source Markdown article (e.g.ai-thoughts/docs/260803-ollama-to-llamacpp.mdorhistory/docs/260629-luoshenfu-literary-analysis.md). Required. If the user only names an article, locate it by slug or date.category— Blog category:tech,travel,photo,philosophy, orculture. Optional. Defaulttech.draft—true/false. Optional. Defaultfalse(published).featured—true/false. Optional. Defaultfalse.true: homepage-worthy — a signature/opinion essay, deep dive, or milestone post that defines the blog's voice. Use sparingly (aim ≤ 20% of posts) so the homepage stays curated.false: everything else — how-tos, quick notes, release/changelog posts, and*-zh-hans.md(legacy*-chn.md) translations of an already-published post.- When the user doesn't specify, ask which it is (per Procedure step 2); never auto-pick
true. - See
astro_journal/AGENTS.md→ "Featured posts" for the full criteria, cap, and rotation rule; never flipfeaturedwithout the user's explicit approval.
tags— List of lowercase hyphen-separated tags. Optional. Default derived from the article topic. When the source is fromhistory/(Chinese history / literature / culture), always also include the four base tagschinese,history,culture,literaturealongside the topic-specific tags; dedupe against tags already present.
Outputs
postPath— Path to the created post, e.g.src/data/blog/tech/260803-ollama-to-llamacpp.md.imagesCopied— List of image files copied intosrc/assets/images/.
Procedure
- Wait for the user to point out the article to sync. Do not start until they name it explicitly.
- Confirm the plan with the user: target category,
draft/featured, and tags. Get their go-ahead before writing anything toastro_journal. - Locate the blog: confirm
astro_journalis checked out at/home/jeff/pool/git/astro_journal. - Read the source article from
source. If it has no frontmatter, infer the title from the first#/##heading. Theyymmddprefix in the filename is only a file-creation record — it does not set the publish date (see step 9). - Fact-check before sync (for history/culture articles). If syncing from
history/docs/and a matching corrections doc exists (e.g.docs/260808-corrections-by-citation.md), confirm the article's 已修正 (confirmed fixes) are already applied, and surface any 待核实 (unverified) items to the user. Historical/literary claims must be verified against at least two independent reliable sources. - Determine the filename:
yymmdd-lowercase-slug.md. Normalize th
Установить astro-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл astro-sync?
Convert and polish a Markdown article into AstroPaper-compatible post format for the astro_journal blog (everbox.io). Use when the user wants to publish or sync an article (e.g. from ai-thoughts/docs/ or history/docs/) to the Astro blog, convert Markdown to Astro format, add AstroPaper frontmatter, or move images into src/assets/images/.
Как установить скилл astro-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл astro-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic