weekly-aeoncard
БесплатноЗапускает вложенные скриптыНе проверенBuild a weekly token-consumption recap image from memory/token-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.
от aeonfun★ 801 звезда на GitHubОб этом скилле
${var} — window + delivery control.
- empty → weekly card: last 7 days + all-time, render the image, notify.
dry-run→ render the image + report + dashboard spec but send no notification (artifacts still write). Combine with a window, e.g.dry-run 30.- integer
N→ override the weekly window to the lastNdays (default 7, cap 90). Example:14,30.
Today is ${today}. Turn this instance's own token ledger (memory/token-usage.csv) into a one-glance recap: how many tokens it burned this week, how many since it started, which skills dominate — rendered as a self-contained SVG card an operator can screenshot and share. Every number is measured from the ledger; nothing is fetched, sampled, or estimated. The heavy lifting is in skills/weekly-aeoncard/render_card.py (pure Python stdlib, deterministic) so you orchestrate, not hand-compute.
Steps
Shell shape. Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (V=$(...), SUMMARY="$(python3 ...)"), uses if / case / [ ... ] && tests, pipes into tr / xargs / sed, or joins commands with ;, && or ||, and each refusal costs a model turn. So parse ${var} and derive the instance name yourself, run each command in its own call, read printed values off the output and write them into later commands literally (the <WINDOW_DAYS>, <INSTANCE>, <REPO> placeholders), and write the notify body with Write.
Parse
${var}→ window + mode in your head, not in a shell script. Lowercase and trim${var}:- It starts with
dry-run:MODE=dry-run, and drop that prefix (then trim again). OtherwiseMODE=execute. - What is left is all digits:
WINDOW_DAYS= that number, then above 90 becomes 90 and below 1 becomes 7. Anything else (or empty):WINDOW_DAYS= 7.
- It starts with
Guard the ledger. The recap is synthesis-only - no ledger, nothing to show. Check
memory/token-usage.csvwith Glob. If it is there, count its lines in one call:wc -l memory/token-usage.csvIf the file is absent, empty, or has fewer than 2 lines, send this, log
WEEKLY_AEONCARD_NO_DATAand stop:./notify "weekly-aeoncard skipped: memory/token-usage.csv absent or empty (no runs recorded yet)"Derive the instance name + image link. From the git origin, so the card self-labels and the notification deep-links the committed SVG:
git remote get-url originIt prints the remote URL. Work out
REPO= theowner/nameaftergithub.com/orgithub.com:(no trailing.gitor/), andINSTANCE= the part ofREPOafter the/(aeonwhen that is empty or the call failed). ThenSVG=output/images/weekly-aeoncard-${today}.svgandIMG_LINK=https://github.com/<REPO>/blob/main/output/images/weekly-aeoncard-${today}.svg.Render the card + artifacts. One call writes the SVG (canonical image), a best-effort PNG, the markdown report, the dashboard spec, and appends the run log. It prints a one-line JSON summary on stdout - read it off the output. First create the folders as their own call:
mkdir -p output/images output/articles apps/dashboard/outputsThe PNG (a raster copy committed next to the SVG) needs a rasterizer. The workflow stages
rsvg-convert(librsvg2-bin) for this skill before the run - the agent allowlist blocks in-run pip/apt. render_card.py uses cairosvg if importable, else rsvg-convert, else SVG-only. Then one render call, with<WINDOW_DAYS>,<INSTANCE>and<REPO>written in literally:python3 skills/weekly-aeoncard/render_card.py \ --csv memory/token-usage.csv --today "${today}" --window-days "<WINDOW_DAYS>" \ --instance "<INSTANCE>" --img-link "https://github.com/<REPO>/blob/main/output/images/weekly-aeoncard-${today}.svg" \ --out "output/images/weekly-aeoncard-${today}.svg" \ --png "output/images/weekly-aeoncard-${today}.png" \ --report "output/articles/weekly-aeoncard-${today}.md" \ --dashboard "apps/dashboard/outputs/weekly-aeoncard.json" \ --log "memory/logs/${today}.md"If the call exits non-zero (RC = its exit code), send this with the code written in and stop:
./notify "weekly-aeoncard: render failed (rc=<RC>) - ledger unreadable"All writes land under
output/andapps/dashboard/outputs/- paths the run commits. The PNG is a raster copy committed next to the SVG (needscairosvgorrsvg-convert); if neither is available the SVG stands alone as the canonical image. Either way the notify is a text recap + link.Read the numbers back. Read them straight off the JSON summary the render call printed (it holds
week_human,week_runs,life_human,life_runs,since,cache_read_pct,top_week,png); no extra call is needed:WK=.week_human,WKR=.week_runs,LF=.life_human,LFR=.life_runs,SINCE= `
Установить weekly-aeoncard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл weekly-aeoncard?
Build a weekly token-consumption recap image from memory/token-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.
Как установить скилл weekly-aeoncard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл weekly-aeoncard запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic