Agent skill
Update Gallery
Sync articles, activity logs, and memory to the GitHub Pages site
Install this agent skill to your Project
npx add-skill https://github.com/aaronjmars/aeon/tree/main/skills/update-gallery
SKILL.md
${var} — Optional single article filename to sync (e.g.
article-2026-04-01.md). If empty, syncs all articles.
Publish Aeon's article outputs to the GitHub Pages gallery at docs/_posts/.
Steps
-
Read
memory/MEMORY.mdfor context on recent articles. -
Run the site data sync script to populate
docs/_data/with logs, memory, topics, and article metadata:bashbash scripts/sync-site-data.sh -
List all markdown files in
articles/(excluding.gitkeepandfeed.xml):bashls articles/*.md 2>/dev/null | grep -v feed.xml | sort -
For each article file (or just the one in
${var}if set), process it into a Jekyll post:a) Parse the filename to extract date and slug. Filenames follow patterns like:
article-2026-04-01.md→ date2026-04-01, slugarticlechangelog-2026-03-19.md→ date2026-03-19, slugchangelogrepo-actions-2026-03-30.md→ date2026-03-30, slugrepo-actionstoken-report-2026-04-02.md→ date2026-04-02, slugtoken-report
The date is the YYYY-MM-DD portion extracted from the filename using regex
([0-9]{4}-[0-9]{2}-[0-9]{2}). The slug is everything before the date pattern, with trailing hyphens removed.b) Extract the title from the first
# Headingin the file. If no heading exists, convert the filename slug to title case (e.g.,repo-actions→Repo Actions).c) Determine the category from the slug:
article,research-brief,repo-article→articlechangelog,push-recap,code-health→changelogtoken-report,token-alert,defi-overview→cryptodigest,rss-digest,hacker-news→digest- Everything else →
article
d) Check if the article already has Jekyll frontmatter (starts with
---). If it does, preserve existing frontmatter and skip re-adding.e) Build the Jekyll post filename:
docs/_posts/YYYY-MM-DD-<slug>-<sanitized-title-excerpt>.mdwhere the title excerpt is the title lowercased, spaces replaced with hyphens, special chars removed, truncated to 50 chars.f) Write the post file with this structure:
markdown--- title: "<extracted title>" date: YYYY-MM-DD categories: [<category>] source_file: "<original-filename>" --- <article body — everything after the frontmatter if present, or the full content> -
After processing all articles, check if any new files were added to
docs/_posts/ordocs/_data/:bashgit status docs/ -
If there are new or changed files, stage and commit them:
bashgit add docs/_posts/ docs/_data/ git diff --cached --quiet || git commit -m "chore(gallery): sync articles and site data $(date +%Y-%m-%d)" -
Push to the current branch (main or default):
bashgit push -
Update
memory/logs/${today}.mdwith:- How many articles were processed
- How many new posts were added to
docs/_posts/ - Any articles that were skipped (already present)
- Whether site data (logs, memory, topics) was synced
-
Send a notification via
./notify: "Gallery updated: N articles published to GitHub Pages.\n\nhttps://aaronjmars.github.io/aeon"
Notes
- Jekyll post filenames must start with
YYYY-MM-DD-and end with.md. - Frontmatter values with colons or special chars must be quoted.
- If an article already exists in
docs/_posts/(same source_file), skip it unless the source has changed (compare file sizes or first 100 bytes). - Articles that have no date in their filename: fall back to the git commit date using
git log -1 --format="%as" -- articles/<filename>. - Never delete posts from
docs/_posts/— only add or update.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Polymarket
Trending and top markets on Polymarket — volume, new markets, biggest movers
Daily Article
Research trending topics and write a publication-ready article
DeFi Monitor
Check pool health, positions, and yield rates for tracked protocols
Skill Evals
Evaluate skill output quality against assertion manifests — detects regressions before users notice
Monitor Polymarket
Monitor specific prediction markets for 24h price moves, volume changes, and fresh comments
Self Review
Weekly audit of what Aeon did, what failed, and what to improve
Didn't find tool you were looking for?