agentleFS
niksavisniksavis/basicly/.claude/skills/work-tracker/SKILL.md

work-tracker

Skill0 starsChanged 56 days agoMITView on GitHub

Reads, files, claims and closes records in the ledger tracker. Use to plan work, check what is ready, file a bug or claim an issue.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never edit, delete or reorder a line in an event file: Every derived answer changes and nothing detects it.

    line 34
  2. Very specific:

    Start a session with the one report that takes no id.

    line 48
  3. Distinctive:

    Every write goes through the engine seam:

    line 91
  4. Very specific:

    Put the id in parentheses after the Conventional Commits description: feat(cli): add fragment loader (<prefix>-<id>).

    line 115
  5. Very specific:

    Run dor. When it passes, remove the label with --remove-label refine.

    line 143
  6. Distinctive:

    Keep the intent of the person.

    line 145
  7. Very specific:

    When a board serves, write an id as a link to /record/<id> on it.

    line 154
  8. Very specific:

    Run it as its own pull request when fsck warns about the shard count, or when the hook printed *the pending shards are not folded*.

    line 199
  9. Distinctive:

    Run the positive control before you report a zero.

    line 222

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Work Tracker

The tracker is an append-only event log in .basicly/ledger/, committed with the code. A record is the fold of its events. The engine reads and writes the log directly.

Rules

  • Name a record by its title, with the id as the address. A person cannot read a bare id.
  • File or find the record before you do the work. The tracker-commit-msg hook refuses a commit that names an id the ledger does not hold.
  • Run create alone, then read the id from its reply. The id is random, so a commit chained after it with a guessed id is refused.
  • Many people share this tracker. Never take a story that someone holds. ready names the holder of each reserved story, and the supervisor skips stories that another person holds. --take is for an agreed handover only.
  • Reserve a story before you plan it, and push at once. Others see a reservation only after they pull:

    python3 .basicly/core/kit/tracker/cli.py assign .basicly/ledger <id>    # reserve it for you
    python3 .basicly/core/kit/tracker/cli.py claim .basicly/ledger <id>     # reserve it and start
    python3 .basicly/core/kit/tracker/cli.py unassign .basicly/ledger <id>  # give it back
    python3 .basicly/core/kit/tracker/cli.py ready .basicly/ledger --mine   # what you hold

    The holder name is git config user.name, or --to. basicly loop records the person who runs it as the holder, and it stops on a story that someone else holds.

  • Never edit, delete or reorder a line in an event file. Every derived answer changes and nothing detects it. Append the write that supersedes the wrong one.
  • Count from the file, interpret through the engine. Grants, gate results and phases derive from ordered events under rules that a regex cannot see.
  • Probe against a scratch ledger directory, never the live one. The log has no undo, and the loop commits every probe event into project history.
  • Check the output shape before you parse it. show on an absent record prints {"found": false}. create prints created: <id> unless the argv carries --json.
  • Use one ledger per repository, never one per worktree. The git-ignored .basicly/ledger/redirect points every worktree at the same log. A per-worktree ledger loses the writes of a lane at teardown.

Read

Start a session with the one report that takes no id. Its first line is the newest note tagged [session handover <date>]:

basicly session start                     # last handover, ready, blocked, live grants, decision targets

Then ask one question at a time. These commands find the ledger themselves:

basicly tracker ready --limit 10          # the ranked ready set: what to work on now
basicly tracker blocked                   # each dispatchable record that is not ready, and why
basicly tracker stats                     # totals by status
basicly tracker show <id>                 # one record's folded state and dates, as JSON
basicly tracker list --status open        # the set, as JSON

ready ranks by priority, then by the number of records that depend on each one. A record with children is an anchor, not the work, so it is never ready. ready leaves out a record labelled refine, and a record created under the current rule that fails dor. Pass acceptance criteria and requirements as --acceptance and --requirements; a description that holds either heading is refused.

The loop views answer about one unit:

basicly loop status <id>                  # phase, worktree, gates, checkpoints, rework
basicly policy grant <id>                 # the integrity level and budget of the session
basicly policy dor <id>                   # Definition of Ready

The kit CLI does the same with no engine. Its first positional is always the ledger directory:

python3 .basicly/core/kit/tracker/cli.py ready .basicly/ledger
python3 .basicly/core/kit/tracker/cli.py show .basicly/ledger <id>
python3 .basicly/core/kit/tracker/cli.py list .basicly/ledger --status open --limit 20
python3 .basicly/core/kit/tracker/cli.py fields .basicly/ledger      # each field, its role and its reader

Write

Every write goes through the engine seam:

basicly tracker write -- create "Title" -t task -p 2 -d "<the trigger>" --acceptance "<the check>" --requirements "<the standard>" --json
basicly tracker write -- update <id> --status in_progress       # claims it: you become the holder
basicly tracker write -- update <id> --acceptance-criteria "When <event>, the <system> shall <response>."
basicly tracker write -- update <id> --add-label <label>      # adds to the current set
basicly tracker write -- update <id> --remove-label <label>
basicly tracker write -- comments add <id> "<what you learned>"
basicly tracker write -- dep add <child-id> <parent-id> -t parent-child
basicly tracker write -- close <id> --reason "<what shipped, the command and its result>"

The argv after -- uses this grammar and no other. The seam refuses an invented form. --add-label and --remove-label change the current set. Every other update flag replaces the value. A label selects lanes for a supervised pass (basicly loop supervise --label).

Commit the tracker state

  • Work in the base checkout: close the record before the commit that resolves it. Stage the ledger with the code in that commit. Do not make a separate close commit.
  • Work in the loop: do not touch the ledger. The engine commits tracker state at provisioning, landing and ship. See the harness-loop skill.
  • Put the id in parentheses after the Conventional Commits description: feat(cli): add fragment loader (<prefix>-<id>). The conventional-commits skill writes the message.

What a record must carry

basicly policy dor <id> refuses a record that has no trigger, no acceptance criteria, or a section that [policy.type_sections] requires for its type.

  • A template.json in the ledger directory changes the rule for the engine and the kit. "mode": "extend" adds its sections and per-type types. "mode": "override" replaces the whole rule. The tracker refuses a malformed template by name.
  • tracker write has no --field. Meet a template section with that heading and its content in the description.
  • The tracker refuses a write of a field that no code reads. fields prints the table.

Refine a record

A person writes or edits a story, often in the served page, and the page adds the label refine. The record is not ready to build until a refinement pass:

python3 .basicly/core/kit/tracker/cli.py refine .basicly/ledger     # labelled refine, or failing dor
  1. For each record, read it with show.
  2. Rewrite it with update: the trigger, the acceptance criteria, the requirements, the type, the priority and the dep edges.
  3. Run dor. When it passes, remove the label with --remove-label refine.

Keep the intent of the person. When the intent is not clear, add a comment with the question and leave the label on.

Show a person the state

basicly tracker serve                     # page and HTTP API on 127.0.0.1:8765; --host, --port, --web

When a board serves, write an id as a link to /record/<id> on it. Make sure that the port answers before you link, and name the port. A link to a dead port is worse than the bare id.

What the tracker refuses

Each refusal writes nothing and names the cause:

  • an argv that the seam cannot translate, for example update --estimate 5 (has no owned-ledger equivalent);
  • dep add with no -t, because the edge type is part of the fact;
  • a label flag on an update that names two ids (a label write accumulates against one record's own set ... issue one write per record);
  • a status outside open, in_progress, blocked, deferred, closed (the nearest one is suggested), a priority outside 0-4, and a close without --reason;
  • a field that no code reads (is not in the field table, so nothing reads it), an import-history field, and a derived date.

A return to a status that the record held before is recorded.

Import from another tracker

basicly tracker import .beads/issues.jsonl --source beads --dry-run   # writes nothing
basicly tracker import .beads/issues.jsonl --source beads
  • The import keeps the source ids, so old commit messages still resolve.
  • It copies unknown source fields without change.
  • It is an upsert. It reports a field that disagrees and does not change it.
  • Absence is not a deletion. Pass --deleted <id> for a record you confirmed deleted.
  • It rejects by name an id that the commit hook would refuse, and imports the rest. The exit code is not zero when it refused something, so read the report.
  • A second run is a replay, so a partial import completes and does not double.

Fold the writer shards

A writer appends to pending-<branch>.jsonl, never to the trunk log, so two branches do not conflict. Every read folds the shards with the trunk log. A fold only limits the file count:

basicly tracker fold
  • Run it as its own pull request when fsck warns about the shard count, or when the hook printed the pending shards are not folded.
  • It refuses while the tree has a change outside the ledger. Commit your work first.
  • Its commit takes a record id from the events in the shard, so the commit hook admits it.
  • basicly install adds a post-merge fold hook only when [tracker] fold_on_merge = true. The hook folds only on the default branch. Leave it off where the default branch takes pull requests, because two folds conflict on the forge.

Bulk queries with jq

  • record holds the record id, and id holds the event id (<record>#ev-<hash>). select(.id=="<record>") matches nothing.
  • The body of a record is in the payload of its created event. The other kinds (comment, status, field, edge, gate) carry only their own fact.
  • A folded record nests its fields under fields. That is the shape of show and list, not of the raw payload.
jq -c 'select(.record=="<id>" and .kind=="created").payload' .basicly/ledger/events-*.jsonl .basicly/ledger/pending-*.jsonl
jq -r 'select(.kind=="created")|.record' .basicly/ledger/events-*.jsonl .basicly/ledger/pending-*.jsonl | sort -u | wc -l
jq -r '.kind' .basicly/ledger/events-*.jsonl .basicly/ledger/pending-*.jsonl | sort | uniq -c   # positive control

Run the positive control before you report a zero. An empty result can also mean a wrong key.

Reference

  • Statuses: open, in_progress, blocked, deferred, closed. There is no rework status. A rework cycle stays in_progress, with a failed gate result and a comment.
  • Ready set: each record that is not closed or deferred, has no open blocker and has no children. An in_progress record is in it.
  • Folded record: record, status, fields, comments, dates (created, updated, closed, derived from the events), max_seq, tombstoned, totals, dependencies, dependents. The two edge keys are always present, and each edge names its type and the status of the other record.
  • Ids: <prefix>-<code>, with one hyphen. The commit hook refuses a slug id with more hyphens. Let the tracker make the id.
  • Priority: 0 critical to 4 backlog, default 2. Use 0 and 1 only for release-blocking or next work.
  • Types: the harness work types are bug, chore, epic, feature, task; the default is task. The field accepts any string, but the loop cannot classify another type. File a document, a question or a spike as task.
  • A lane builds only the leaf types bug, chore, task; an epic or a feature splits into children. Show hierarchy with a parent-child edge, not a new type.

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.