update

GitHub

用于重新生成AltGallery仓库中所有应用的配置源及新闻图片。通过执行update.sh和update_news.sh脚本,从配置文件自动合成JSON数据并渲染PNG图像,支持全量刷新或单应用验证。

.claude/skills/update/SKILL.md bebound/AltGallery

Trigger Scenarios

用户希望刷新或更新所有应用的来源数据和新闻图片 需要重新生成已更改配置对应的应用元数据

Install

npx skills add bebound/AltGallery --skill update -g -y
More Options

Non-standard path

npx skills add https://github.com/bebound/AltGallery/tree/master/.claude/skills/update -g -y

Use without installing

npx skills use bebound/AltGallery@update

指定 Agent (Claude Code)

npx skills add bebound/AltGallery --skill update -a claude-code -g -y

安装 repo 全部 skill

npx skills add bebound/AltGallery --all -g -y

预览 repo 内 skill

npx skills add bebound/AltGallery --list

SKILL.md

Frontmatter
{
    "name": "update",
    "description": "Regenerate everything in the AltGallery repo — run .\/update.sh (regenerate every apps\/<AppName>\/apps.json from config.toml and merge them into all-apps.json) and .\/update_news.sh (re-render every app's images\/news.png from its news.toml). apps.json \/ all-apps.json are gitignored (committed by the workflow); leave re-rendered images\/news.png files uncommitted for the user to review. Use when the user wants to refresh \/ update \/ regenerate all app sources and news images."
}

Update All App Sources & News Images

Refresh every generated artifact in the repo:

  1. Regenerate every app source + merge — each apps/<AppName>/apps.json from its config.toml, then merged into the repo-root all-apps.json:
    ./update.sh
    
  2. Re-render every news image — each apps/<AppName>/images/news.png from its news.toml:
    ./update_news.sh
    
    Needs the uv venv set up once (uv venv && uv pip install -r requirements.txt); the image is drawn entirely with Pillow — no external rasterizer needed.

Notes:

  • To verify a single app after a config.toml change, use the single-app form ./update.sh <AppName> — it regenerates only that app and is enough for local verification; the full update here is for refreshing everything.
  • update.sh reads the GitHub Releases API; if rate-limited, retry with a token, e.g. GITHUB_TOKEN=$(gh auth token) uvx altgen -c config.toml.
  • apps/<AppName>/apps.json and all-apps.json are gitignored — after update.sh they won't show in git status; the workflow (.github/workflows/update.yml) regenerates and commits them. Only the re-rendered images/news.png files stay in the working tree for you to review and commit.
  • AGENTS.md rule: never leave a config.toml and its apps.json out of sync; all-apps.json is regenerated whenever any source changes.

Version History

  • 7e916c6 Current 2026-11-13 18:24

Same Skill Collection

.claude/skills/add-app/SKILL.md
.claude/skills/update-app/SKILL.md

Metadata

Files
0
Version
7e916c6
Hash
389edf26
Indexed
2026-11-13 18:24

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-13 19:14
浙ICP备14020137号-1