shiplog

skill
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 7 GitHub stars
Code Basarisiz
  • exec() — Shell command execution in scripts/digest.mjs
  • fs.rmSync — Destructive file system operation in scripts/digest.mjs
  • os.homedir — User home directory access in scripts/digest.mjs
  • process.env — Environment variable access in scripts/digest.mjs
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Claude Code plugin that writes your end-of-day ticket log from your sessions, git history and notes, posts the entries you approve to a private Work Log page with charts, and writes your standup update.

README.md

shiplog

A Claude Code plugin that writes your ticket log for you. At the end of the day
you run one command. It reads that day's Claude Code sessions and git history on
your machine, drafts one entry per finished ticket (what the problem was, what
fixed it, and why), shows you the draft, and posts the entries you approve to a
private Work Log artifact on claude.ai with a day-by-day log and charts.

/shiplog:today                 draft and post today's entries
/shiplog:today yesterday       or another day: yesterday, 2026-12-03
/shiplog:note <what you did>   note work that leaves no commit: a call, a review, a deploy
/shiplog:standup [project]     a standup update since your last standup, ready to paste
/shiplog:standup days mon wed fri   say once which days you have standups

Each finished ticket becomes one row in the log. A row opens to show the
problem, the fix and the reason, and the totals stay beside it:

The Work Log page in its dark theme: a grid of daily activity, figures for the last 90 days, the log as a table with one ticket opened, and tickets by project and by type

The page follows your system's light or dark setting:

The same Work Log page in its light theme

Both pictures show invented sample data. Your own page starts empty.

Notes during the day

Calls, reviews, deploys and investigations rarely leave a commit. Note them
when they happen:

/shiplog:note Call with the Kestrel team about the launch date, 45 min
/shiplog:note Reviewed the PR for ACME-7244
/shiplog:note

The last one, with no text, lists today's notes. Notes stay on your machine
until you run /shiplog:today, which shows them next to the day's git work. A
note that names a ticket you also committed to goes into that ticket's entry;
any other note becomes an entry of its own. As with everything else, nothing is
posted until you approve it. A note that only plans work, such as "look into
the cache tomorrow", is shown to you but not drafted.

A note is filed under the repository of the folder you wrote it in. A note
written outside a repository is asked about at the end of the day. Notes are
kept to one line of up to 500 characters, at most 30 a day, and go through the
same secret redaction as the rest. Redaction sometimes catches an ordinary
word after "password:" or "token:"; when it changes a note, the command shows
you what was stored. Notes from a day you never logged are pointed out on the
next run, and a note written while the end-of-day draft is on screen is kept
for the next run.

Standup

/shiplog:standup
/shiplog:standup Kestrel
/shiplog:standup days mon wed fri
/shiplog:standup since 2026-12-01

Writes a standup update you can paste into chat:

  • Done: the entries in your Work Log since your last standup. Tell it
    once which days you have standups, with days mon wed fri, and each update
    covers the work from the previous standup day up to yesterday: Monday's
    covers Friday and the weekend, Wednesday's covers Monday and Tuesday. With
    no days set, it covers the last day before today that has entries. since <date> sets the start for one update.
  • Today: work from the most recent day worked that is still open (worked on but not
    committed, or committed but not pushed), and today's notes. It is a
    suggestion, not a plan.
  • Blockers: "none", unless a note names one. Claude asks whether to add
    any.

With a project name, only that project's entries, open work and notes are
used, so you can give separate updates to separate teams. Nothing is posted or
saved: the update is text for you to copy.

What counts as finished

A conversation about a ticket is not a finished ticket, so the plugin looks for
evidence:

  • The ticket id comes from the branch name: feature/ACME-7244-vat-export
    gives ACME-7244, and an issue number such as feature/486-part-page
    gives #486.
  • A branch counts as finished work when you made commits on it that day, on
    that machine. The plugin reads this from git's own local history (the
    reflog), so commits that arrived through a merge, a pull or a rebase onto
    another branch are not counted as yours, and neither is a stash.
  • A commit you later squashed, reworded or rebased still counts, as the commit
    the branch holds now. A commit you reset away, or deleted with its branch,
    does not. A branch you merged and deleted is counted once, under its own
    name.
  • A branch that is fully pushed to a remote, or whose work a remote branch
    already holds after a merge, is marked as such.
  • Work with no commits is listed separately and not logged unless you say so.
  • Commits you made that day without a Claude Code session are found too: on
    other branches, and in other repositories you used with Claude Code in the
    last 30 days. They are offered separately and logged only if you say so.
  • Work on main, or on a branch with no id, is offered with a question about
    its ticket.
  • If git is missing, or a folder no longer exists, the plugin says so. It does
    not report that as "nothing was committed".

The draft lists the commits each entry rests on. Nothing is posted until you
approve it.

Projects

Each entry is filed under the repository it came from, named as GitHub or
GitLab names it: the last part of the repository's origin address, such as
Juniper for [email protected]:you/Juniper.git. A project you cloned
into a folder with another name, or on another machine, is still one project.
A repository with no remote is named after its folder. Only the name is used:
the address itself, which can hold a user name or a token, is never passed on.

The Work Log has a project filter and a chart by project. The first three
projects in your log each get a marker of their own beside their name. "Copy as text"
copies what the filters show, so a copy made with one project selected holds
only that project's entries.

Entries logged without a repository, such as work you add by hand, fall back to
their ticket's letters (ACME for ACME-7244), or to "No project". A
project split across several repositories, such as a front end and an API,
shows as one project per repository.

Requirements

  • Claude Code, signed in with a claude.ai account (/login). Artifacts are not
    available to sessions that use an API key or a cloud provider.
  • Node.js 18 or later.
  • git, for the commit checks.

If artifacts are unavailable in a session, approved entries are queued on the
machine and offered again on the next run.

Install

To try it for one session without installing, clone this repository and start
Claude Code with its --plugin-dir option pointing at the clone.

From the marketplace in this repository:

claude plugin marketplace add kushtrimhyseni/shiplog
claude plugin install shiplog@kushtrimhyseni

Updates

Each release has a version number, a v<version> tag in git, and an entry in
CHANGELOG.md. claude plugin update shiplog@kushtrimhyseni
installs a new release only when the version changes, not on every commit. To
see exactly what a release changes before you install it, compare the tags,
for example git diff v1.0.0..v1.1.0 in a clone of this repository.

Auto-update is off for this marketplace unless you turn it on, so nothing
changes on your machine until you run the update yourself.

On the first run the command asks whether to create a new Work Log artifact from
the bundled template or to use one you already have. The artifact is created in
your own claude.ai account and is private to you. The plugin's author has no
access to it.

What the plugin runs

The plugin has three commands and no hooks, MCP servers or background processes.
When you run /shiplog:today, /shiplog:note or /shiplog:standup, Claude runs the bundled script
scripts/digest.mjs with Node.js. The script reads local files and runs
read-only git commands (rev-parse, log, rev-list, for-each-ref,
merge-base, symbolic-ref, config --get, config --get-regexp). It never changes a repository, never contacts the network and
installs nothing. git is started with only the environment variables it needs
to run, so nothing else from your shell is passed to it. After you approve the draft, Claude publishes the approved
entries to your own Work Log artifact with Claude Code's artifact tool. See
PRIVACY.md.

What it reads, and what leaves your machine

scripts/digest.mjs reads the session files Claude Code keeps under
~/.claude/projects/ and runs read-only git commands in the repositories your
sessions touched in the last 30 days. It has no network code and no dependencies.

Those session files hold everything from your sessions, including anything a
tool printed. The script passes Claude a reduced summary only:

  • your own prompts, cut to 240 characters each
  • the last two notes Claude wrote per branch
  • git commands that were run, and the subjects, short ids and times of that
    day's commits
  • names of edited files and branches, and the full folder path of each
    repository, which includes your account name and the folders above it
  • when each session started and ended, how long it was active, and your time
    zone
  • for commits made without a session, in any repository used with Claude Code
    in the last 30 days: its folder path, the branch and the commit subjects
  • each repository's name as its remote names it (never the remote's address)
  • entries you approved earlier that are still queued, and the address of your
    Work Log
  • the notes you wrote that day with /shiplog:note, and how many notes are kept
    for other days

The prompts, notes, commands, commit subjects and file names go through secret
redaction: common API key and token formats, passwords in key=value form, on
command lines and in sentences such as "the password is hunter22", credentials
in URLs, private keys, and long random strings.
Branch names, folder paths and repository names are passed as they are. The whole
summary is capped at about 24,000 characters.

Redaction is best effort and will miss things. Read the draft before you
approve it. What you approve is published to your artifact, which is private
until you share it. Check that your employer allows ticket details to be kept
there.

Entry text is escaped before it is written into the page, so text such as
</script> in an entry cannot break the Work Log or run in it.

Security

What protects you:

  • The script reads and writes only what is described above. A file it reads
    or writes for Claude, such as the approved entries or a copy of your page,
    must be a plain file directly in the plugin's data folder: any other path,
    and any link, is refused. The settings, the queue and the notes are readable
    by your user account only.
  • git runs without a shell, with the settings that could make a repository
    run a program switched off, and with only the environment variables it needs.
  • The Work Log page shows every entry as text, never as markup, and loads
    nothing from another site.
  • Nothing is posted until you approve the draft.

What it does not protect against:

  • Text that tries to give Claude instructions. The summary can hold text
    written by someone else: a file name, the subject of a commit you picked up
    from another branch, or something a tool printed that Claude repeated. The
    instructions tell Claude to treat all of it as data, and you approve what is
    posted, but that is a rule Claude follows, not a guarantee. Read the draft.
  • Secrets the redaction does not recognise. Folder paths, branch names
    and repository names are passed as they are, and redaction is best effort.
  • A compromised account. Whoever controls this repository controls what
    the next release contains. Read the changelog and the change before you
    update.

To see what the script finds without any content, run:

node scripts/digest.mjs --inspect

Limits

  • It sees Claude Code sessions on the machine where you run it, and commits
    made on that machine. Run it on each machine you worked on; entries with the
    same date and ticket are not posted twice.
  • A repository you have never opened in Claude Code, or not in the last 30
    days, is not looked at. Only the 40 most recently used projects are checked,
    and at most 8 branches with such commits are listed; the command says so
    when either limit is reached.
  • It cannot see work that never reaches git, such as reviews and meetings,
    unless you note it with /shiplog:note or tell Claude when it shows the
    draft.
  • A commit is evidence of work, not proof that a ticket is finished. The draft
    lists the commits each entry rests on, so check them before you approve.
  • A project is named after its repository, not its owner. Two repositories with
    the same name under different owners are one project, so the same issue
    number, such as #12, from both on the same day is posted once.
  • Commits made outside Claude Code are found through each repository's own
    history of the folders you used with Claude Code. A commit made in a second
    working folder of the same repository (git worktree) that no session used
    is not offered.
  • A branch counts as pushed when its upstream holds its work, or, when it has
    no upstream, when any remote branch holds it. A branch whose upstream is
    behind while another remote branch already holds its work is shown as not
    pushed, so the standup may suggest pushing it.
  • Claude Code deletes session files after 30 days by default, so older days
    cannot be rebuilt.
  • The session file format is not documented and may change. The command warns
    when the files do not look as expected; run --inspect and open an issue
    with the field names it prints. Remove the root line first: it holds your
    home folder path.
  • Ticket ids are read from branch names. An id that is only a guess, such as
    #404 from fix/404-page, is shown to you for confirmation. Set
    ticketPattern if your ids do not look like ACME-1234 or #486.
  • The page is a copy of the template taken when your Work Log was created.
    When a plugin update changes the template, the command offers to move your
    entries onto the new one.
  • The log lives inside one page. At about 500 bytes an entry, it reaches 1 MB
    after roughly 2,000 entries. Start a new Work Log artifact each year if you
    log heavily.
  • The charts count tickets, not time. hours is recorded only when you state
    it, or when you turn on recordSessionTime, which measures activity in
    Claude Code and not time worked. Such entries are labelled "in session".
  • The tests run on Linux, macOS and Windows with Node 18, 22 and the current LTS
    on every change. One check, that git is not handed the shell's other
    variables, is skipped on Windows.

Settings

Ask Claude to change a setting, or run the script yourself:

node scripts/digest.mjs --data-dir <plugin data dir> --set ticketPattern='(?:^|/)(T\d{4,})'

That example reads T10482 from feature/T10482-login. An id captured
without a # in front is treated as one ticket across all repositories, so
two repositories with the same id on the same day make one entry.

Setting Meaning
artifact Address of your Work Log artifact
ticketPattern Regular expression for ticket ids in branch names, when yours do not look like ACME-1234. The first capture group is used if there is one
recordSessionTime true to fill hours from session activity
standupDays The days of the week you have standups, such as mon,wed,fri. /shiplog:standup days mon wed fri sets it

Development

node tests/run.mjs          # builds throwaway repositories and session folders, then checks the digest
claude plugin validate .

Layout:

.claude-plugin/plugin.json        manifest
.claude-plugin/marketplace.json   lets the repository be added as a marketplace
skills/today/SKILL.md             the /shiplog:today command
skills/note/SKILL.md              the /shiplog:note command
skills/standup/SKILL.md           the /shiplog:standup command
scripts/digest.mjs                reads sessions and git, prints redacted JSON
templates/work-log.html           the Work Log artifact page
PRIVACY.md                        privacy policy
CHANGELOG.md                      what each release changed
tests/run.mjs                     tests
docs/                             the pictures in this README, made from sample data
.github/workflows/test.yml        runs the tests on Linux, macOS and Windows

Licence

MIT

Yorumlar (0)

Sonuc bulunamadi