weekly

weekly is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 41 tokens per session (1,353 once invoked), scanned A, original, MIT.

A weekly-report workflow that combines Git history with records from Claude Code and Codex sessions. It turns work from a selected date range into a report for two related software repositories.

In plain words
What is it for?
Use it to collect a developer's commits, inspect changed files, review session records, and prepare a weekly engineering summary.
Why use it?
It saves time spent reconstructing completed work from commits and assistant sessions across multiple projects.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Good fit Use it to collect a developer's commits, inspect changed files, review session records, and prepare a weekly engineering summary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/weekly
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiayu000/spellbook --skill weekly
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for weekly

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/weekly.svg)](https://agentmods.dev/skills/majiayu000/spellbook/weekly)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/weekly"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/weekly.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01353
Opus 5 $0.00020 $0.00677
Sonnet 5 $0.00008 $0.00271
Haiku 4.5 $0.00004 $0.00135

Measured 4d ago against content hash 491bfac28d86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

weekly scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/weekly.SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

生成周报

根据用户提供的日期范围 $ARGUMENTS,收集 om-generator 前后端两个仓库的工作记录,生成周报文档。

步骤 1:解析日期范围

$ARGUMENTS 中提取起止日期。支持格式:

  • 2-1到2-7 → 2026-02-01 ~ 2026-02-07
  • 1-27到2-2 → 2026-01-27 ~ 2026-02-02
  • 2026-02-01到2026-02-07 → 完整日期
  • 无参数 → 默认本周一到今天

将解析结果存为变量 DATE_STARTDATE_END(格式 YYYY-MM-DD)。年份默认 2026。

步骤 2:收集 Git 提交记录

先获取当前用户名:

git config user.name

然后分别从两个仓库收集该用户在日期范围内的提交:

前端仓库

git -C $HOME/Desktop/code/work/mutil-om/om-generator-web log --author="<用户名>" --after="<DATE_START>" --before="<DATE_END + 1天>" --oneline --no-merges --all

后端仓库

git -C $HOME/Desktop/code/work/mutil-om/om-generator log --author="<用户名>" --after="<DATE_START>" --before="<DATE_END + 1天>" --oneline --no-merges --all

对每个有意义的提交,用 git show --stat <hash> 查看改动范围。

步骤 3:收集 Claude Code 会话记录

读取两个项目的 sessions-index.json:

  • 前端:~/.claude/projects/<om-generator-web 绝对路径转义>/sessions-index.json
  • 后端:~/.claude/projects/<om-generator 绝对路径转义>/sessions-index.json

注:Claude Code 把项目 cwd 绝对路径转义为目录名(/ 替换为 -),例如 $HOME/Desktop/code/work/mutil-om/om-generator-Users-<用户名>-Desktop-code-work-mutil-om-om-generator

JSON 结构为 { version, entries: [{ sessionId, summary, firstPrompt, created, modified, gitBranch, messageCount }] }

过滤 createdmodified 在日期范围内的会话,提取 summaryfirstPrompt

步骤 4:收集 Codex 会话记录

遍历日期范围内每天的 Codex 会话目录:

~/.codex/sessions/2026/MM/DD/*.jsonl

对每个 JSONL 文件,读取第一行(type: session_meta),检查 payload.cwd 是否包含 om-generator。 如果匹配,提取:

  • payload.cwd — 工作目录(区分前端/后端)
  • payload.timestamp — 会话时间
  • payload.git.branch — 分支

然后读取文件中 typemessagepayload.roleuser 的第一条消息作为会话主题。

步骤 5:补充本机会话/记忆记录

如果当前环境提供可用的记忆搜索工具或本机记忆索引,搜索日期范围内与 om-generator 相关的记录,并把有明确证据的 session 摘要和工作记录补充到周报中。

如果没有可用的记忆工具,不要阻塞生成;在“数据来源”里写明未使用记忆补充数据。

步骤 6:分类整理

将所有收集到的信息按以下类别分类:

  1. 架构重构 — 代码结构调整、模块拆分、技术债清理
  2. 新功能 — 新增的用户可见功能
  3. Bug 修复 — 问题修复
  4. 研究与设计 — 技术调研、方案设计、原型验证
  5. 其他 — 文档、配置、依赖更新等

每个条目包含:

  • 简短描述(一句话)
  • 涉及的仓库(前端/后端/两者)
  • 关键改动文件(可选)

Read the full file on GitHub · 148 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 148 lines · 41 tokens per session scan A 491bfac28d86

Subscribe to this mod's changes

weekly is a skill published in the GitHub repository majiayu000/spellbook (276 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 1,353 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

pneuma-session

Instructions for renaming an active Pneuma session and replacing its default preview with a useful title and summary. A Pneuma session is one work area inside a larger project.

pandazki/pneuma-skills · 127 tokens

handoff

Write a portable, secret-scrubbed handoff doc so this work can continue in any AI tool or on any machine. Use when saying "handoff", "running out of tokens", or "continue elsewhere".

anton-abyzov/specweave · 44 tokens

lov-gh-tidy

Interactive GitHub repo hygiene skill. Lists all open issues, PRs, stale branches, and orphan labels, shows a summary of each with analysis, then asks the user how to handle each item (close, merge, comment, delete, keep). Executes all chosen actions via gh CLI. Use when the user says "清理 GitHub", "tidy repo", "clean…

lovstudio/skills · 95 tokens

session-handoff-resume

Skill to save ultra-compact project checkpoints and seamlessly resume work across accounts or new chat sessions with minimum token consumption / Skill untuk menyimpan checkpoint proyek yang super ringkas dan melanjutkan pekerjaan secara efisien saat ganti akun/sesi tanpa boros token.

roedyrustam/vibes-plug · 59 tokens

ag-teleportar

Switch rapido entre projetos no workspace com contexto preservado. Carrega CLAUDE.md, detecta stack, verifica .env, mostra branch atual, e resume estado. Nao e cd — e context-aware switching.

andregusman-raiz/a-gusman-claude · 50 tokens

task-copilot

Use when work should be tracked with tc, including creating PRDs, tasks, handoffs, logs, and work products, or when preserving detailed outputs outside the chat context.

Everyone-Needs-A-Copilot/claude-copilot · 40 tokens