スキル一覧に戻る
lajarre

worklog

by lajarre

0🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: worklog description: Use when a Codex worklog or session recap is requested, or when auditing context usage (rot/smash) across recent Codex CLI sessions.

Worklog - Codex Session Recap Generator

Generate a human-readable recap of recent Codex conversations, including context health.

Usage

/worklog                    # Sessions since yesterday 08:00 (local time)
/worklog --since today      # Today's sessions
/worklog --since week       # Last 7 days
/worklog --since "2026-01-15 08:00"  # Specific datetime
/worklog --session <id>     # Single session

Process

  1. Extract session data (default window is yesterday 08:00 local -> now):
python3 ~/.codex/skills/worklog/scripts/extract.py --since <timespec> --pretty
  1. Generate recap from the JSON output:
python3 ~/.codex/skills/worklog/scripts/conversation_recap.py --since <timespec>
  1. Quick stats (optional):
python3 ~/.codex/skills/worklog/scripts/session_stats.py --today

Output format

  • Header: Worklog: <start> -> <end>
  • Summary: 1-3 short sentences
  • Sessions grouped by cwd, each with:
    • Title line first (🗨️ "...")
    • Working folder on next line (or explicit note if missing)
    • Session ID
    • Time range + duration
    • Context percent + tokens
    • Context hits: rot >= 80%, smash >= 99%
    • What was discussed (2-4 bullets)
    • Git commits (if any)
  • Next steps prompt

Context health definitions

  • Context rot: number of times context usage crosses >= 80%.
  • Context smash: number of times context usage crosses >= 99%.

These are computed from Codex token_count events (last_token_usage / model_context_window).

Common mistakes

  • Wrong date format: use YYYY-MM-DD HH:MM (24h) or keywords yesterday, today, week.
  • Empty results: confirm the time window and that sessions exist in ~/.codex/sessions/.
  • Missing git commits: commits are only detected if the session cwd is a git repo.

Guidelines

  • Keep recaps concise (quick reference, not full logs).
  • Prefer user prompts + tool edits over raw tool outputs.
  • If context rot/smash hits are high, call it out in the summary.

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です