agentleFS
jonathascostajonathascosta/claude-code-workflow/.claude/skills/worklog/SKILL.md

worklog

Skill2 starsChanged 13 days agoMITView on GitHub

Record and report how long each stage of a task takes - development, self-review, checks before the pull request, the team's review, fixes, waiting to merge, approvals, deploys and tests in each environment. Use when the user asks for timings, how long something took, a timing report of tasks or stories, or when another skill moves a task to a new stage.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use handoff.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add --at <ISO time> to record a time learned after the fact (an approval that arrived an hour ago, a deploy whose start and end come from …

    line 22
  2. Distinctive:

    Use these names so the reports can be compared across tasks:

    line 26
  3. Very specific:

    Record what waits for the user: When work stops for an approval, start <task> waiting_user --note "<what is waiting>".

    line 48
  4. Distinctive:

    Do not reconstruct silently: If a stage was not recorded, say so in the report instead of estimating it.

    line 50
  5. Distinctive:

    When presenting a report to the user, translate the headings to their language and add, below the tables:

    line 69

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Worklog

A task is always in exactly one stage. Every time it changes stage, one line is added to its log; the report is computed from those lines. The log is outside the repository (~/.claude/worklog/<owner>__<repo>/<task>.jsonl), so it is never committed.

W=.claude/skills/worklog/scripts/worklog.py
python $W start <task> <stage> [--note "..."] [--title "..."] [--story "<id> <title>"]   # closes the open stage, opens this one
python $W end   <task> [--note "..."]                           # parks the task (end of day); it is resumed with start
python $W close <task> [--note "..."]                           # the task is finished
python $W mark  <task> <label> [--note "..."]                    # an instant: pr_opened, merged, review_clean, once_done
python $W open                                                   # each unfinished task: its stage now (with its note), or PARKED and its last stage
python $W report [<task> ...] [--review-hours HH:MM-HH:MM]       # the tables, per task
python $W report --by-story [--columns "<col1>,<col2>,<col3>"]   # per story, by board column

Add --at <ISO time> to record a time learned after the fact (an approval that arrived an hour ago, a deploy whose start and end come from the pipeline).

Stages

Use these names so the reports can be compared across tasks:

StageFromUntilWhose time
developmentwork on the task starts or resumesreviewers are launchedours
self_reviewAtlas and Spock are launchedthe round's fixes are done, or the clean round endsours
pre_pr_checksthe project's steps before a pull request start (for example a deploy to dev and tests there)they passours
waiting_usersomething was shown to the user and needs their approval (a commit, a pull request, replies)they answerwaiting
team_reviewthe pull request is opened, or our replies are posteda teammate reviewswaiting
fixesa review with comments arrivesour replies are postedours
waiting_mergethe last approval arrivesthe mergewaiting
approval_<env>the run reaches that environment's gateit is approvedwaiting
deploy_<env>the deploy stage startsit finishesours (machine time)
tests_<env>the deploy finishesthe tests there passours
blockedwork cannot continue for an outside reasonit canwaiting

Rules

  • Record at the moment of the change, as part of the step that causes it. A stage recorded from memory an hour later is wrong by an hour.
  • Use the real time of outside events. When a review, an approval or a deploy is noticed late, take its time from the pull request or the pipeline and pass it with --at. Events are kept in time order whatever order they are recorded in; if the script says an event was placed before later ones, look at report and correct what no longer makes sense.
  • Park our own work at the end of the working day with end, and start the same stage again next morning; otherwise the night counts as work. Do not park a waiting stage (team_review, waiting_user, approval_*, waiting_merge, blocked): the people we wait on may act while we are away, and their time must keep counting.
  • close is for a finished task, after it is verified in production. end only parks. A parked task still shows in open; a closed one does not.
  • Record what waits for the user. When work stops for an approval, start <task> waiting_user --note "<what is waiting>". The note is what lets a later session, or status, remind the user.
  • One task, one log. A story with three tasks has three logs; the story's time is their sum.
  • Do not reconstruct silently. If a stage was not recorded, say so in the report instead of estimating it.
  • Recording a stage writes only to the local log: it needs no approval.

Reporting

report prints, per task: every stage with its start, end and duration; the marks; the total per stage; the split between our work and waiting on others; and the time from first start to last end. With --review-hours (the reviewers' working window from project.md, in local time), the team's review is also shown counted only inside that window, which is the fair measure of how long a review took.

report --by-story groups the tasks under their story (given once with --story "<id> <title>" on the task's first start; tasks are grouped by the id, the first word) and shows, in calendar time, how long each task spent in each of three phases:

PhaseFromUntilWhat it includes
Developmentthe task's first startthe pull request is opened (pr_opened mark)Writing code and tests, the Atlas and Spock review rounds run before the pull request, and the checks before the pull request. On the developer's own task the two reviewers are part of their way of developing, so that time is development time.
Reviewthe pull request is openedthe merge (merged mark)The team's review, our fixes and replies, the Atlas and Spock rounds run on those fixes, and the wait for the merge. Once the pull request is open, everything counts as review, including the two reviewers' rounds on changes a review comment asked for.
Deploymentthe mergethe task's last end, when it is closedWaiting for each environment's approval, the deploys themselves, and the tests after each deploy. Waiting for approvals and testing after a deploy are part of the deployment work.

These phases correspond to the board columns a task passes through; pass the project's own column names with --columns if the report should use them instead. A last column shows how much of the total was our own work. The row "Sum of the tasks" adds the tasks up; it is not the story's elapsed time when tasks ran in parallel.

Two cases to read with care. A task that was closed and started again is shown by its latest cycle only in the by-story report, while the per-task report shows everything. A task that needs a second pull request keeps the first pr_opened and merged marks, so the second round of development and review is counted as Deployment: after the first merge the task is in deployment until it is closed.

When presenting a report to the user, translate the headings to their language and add, below the tables:

  1. the three largest stages and what they were;
  2. what was not measured, and why;
  3. one or two observations that could shorten the next task (for example a pull request opened after the reviewers' cut-off, or a deploy repeated for a small fix).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.