Agent Skills
› bebound/AltGallery
› update
update
GitHub用于重新生成AltGallery仓库中所有应用的配置源及新闻图片。通过执行update.sh和update_news.sh脚本,从配置文件自动合成JSON数据并渲染PNG图像,支持全量刷新或单应用验证。
Trigger Scenarios
用户希望刷新或更新所有应用的来源数据和新闻图片
需要重新生成已更改配置对应的应用元数据
Install
npx skills add bebound/AltGallery --skill update -g -y
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:
- Regenerate every app source + merge — each
apps/<AppName>/apps.jsonfrom itsconfig.toml, then merged into the repo-rootall-apps.json:./update.sh - Re-render every news image — each
apps/<AppName>/images/news.pngfrom itsnews.toml:
Needs the uv venv set up once (./update_news.shuv 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.tomlchange, 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.shreads 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.jsonandall-apps.jsonare gitignored — afterupdate.shthey won't show ingit status; the workflow (.github/workflows/update.yml) regenerates and commits them. Only the re-renderedimages/news.pngfiles stay in the working tree for you to review and commit.- AGENTS.md rule: never leave a
config.tomland itsapps.jsonout of sync;all-apps.jsonis regenerated whenever any source changes.
Version History
- 7e916c6 Current 2026-11-13 18:24


