Turn Your GitHub Contribution Graph Into an ASCII City
说明与用途
使用 GitHub Actions 自动生成并更新基于贡献图的 SVG 城市图,嵌入到 README 中。
问题
GitHub contribution graphs are useful but lack visual appeal and personal expression.
结果
The workflow produces a dynamic SVG skyline that updates nightly, providing a personalized visual representation of coding activity on a GitHub profile.
工作流
- Install Skyline CLI via Go:
go install github.com/pinkpixel-dev/skyline@latest - Run Skyline locally:
skyline your-usernameto render in terminal - Generate SVG:
skyline -svg skyline.svg your-username - Create GitHub Actions workflow in
.github/workflows/skyline.ymlto regenerate SVG nightly - Commit workflow, trigger manually once to create
outputbranch - Add SVG to README:

证据
I made Skyline, a small Go CLI that takes your GitHub contribution history and turns it into an ASCII city.
Skyline needs access to the GitHub API, but it tries to make authentication fairly painless.
You can have GitHub Actions regenerate your city automatically every night so your skyline changes along with your contribution graph.
The generated SVG lives on the separate output branch, so you also don't end up with a year's worth of "update skyline" commits cluttering the main branch of your profile repo.
- 记录日期: 2026-10-03T19:55:56.199Z