Log: Work Log Entry

Append a timestamped entry to the project’s work log. When the active log exceeds 1000 lines, rotate it.

Directory

All logs live in worklog/ at the repo root.

Process

  1. Check if worklog/WORK_LOG.md exists. If not, create it with a # Work Log header.
  2. Count lines in the active log.
  3. If the line count exceeds 1000:
    • Rename the current file to worklog/WORK_LOG-{timestamp}.md using the current datetime.
    • Create a fresh worklog/WORK_LOG.md with the # Work Log header.
  4. Determine entry content:
    • If the user provides an argument, use it as the entry content.
    • If the user provides no argument, summarize the most recent work from the conversation: what was done, what was decided, what’s next. Write it in the same voice as the conversation — concise, specific, no filler. Include file paths, commit messages, or prediction records if relevant.
  5. Append the entry to worklog/WORK_LOG.md with this format:

### {HH:MM} — {short summary of the action}

{entry content}

If the last ## {date} header in the file matches today’s date, append under it. Otherwise, add a new ## {YYYY-MM-DD} header before the entry.

  1. Report: line count after append, and whether rotation occurred.

Rules