journal
Update JOURNAL.md, the rolling project journal, after a work session. Writes a dated work-log entry with exact names and before/after numbers, classifies eval failures, syncs PLAN.md checkboxes to reality, and commits. Use at the end of a work session or when the user asks to journal, log, or write up what happened.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- journal
- description
- Update JOURNAL.md, the rolling project journal, after a work session. Writes a dated work-log entry with exact names and before/after numbers, classifies eval failures, syncs PLAN.md checkboxes to reality, and commits. Use at the end of a work session or when the user asks to journal, log, or write up what happened.
- argument-hint
- [notes about the session]
02 资源文件 2
- 参考文档references/journal-template.md3.0 KB
- 参考文档references/worklog-rules.md2.3 KB
03 SKILL.md 正文
/journal — record what actually happened
The journal is the anti-relearning device: a fresh collaborator (or future-you) opens the repo and resumes in five minutes without re-deriving a single decision. It records reality, not intentions — the plan says what should happen; the journal says what did.
Adjacent skills: /retro (trends across many sessions; /journal records
one) · /learn (one durable lesson; /journal the whole session) · /resume
(reads what /journal wrote).
<!-- acstack:runtime --> Run before the skill's steps — per invocation, not per session (4.36); failures degrade to markdown:
link="$(readlink "$HOME/.claude/skills/health" 2>/dev/null || true)" # empty = not symlinked
pack="$(dirname "$(dirname "$link")")" # NEVER trust this unless $link was non-empty
if [ "${link#/}" != "$link" ] && [ -x "$pack/bin/acstack-config" ] && ! "$pack/bin/acstack-config" runtime | grep -q '=off'; then
"$pack/bin/acstack-config" || true # resolved keys, with sources
"$pack/bin/acstack-update-check" || true # ≤1 fetch/day; silent ONLY if already checked today
"$pack/bin/acstack-recall" || true # LEARNINGS.md + bug-class names, capped 3KB
else
echo "runtime off — proceeding without recall/update-check"
fi
<!-- /acstack:runtime -->
<!-- acstack:principles -->
Operating principles
- Be direct. Push back in writing when the plan or the user is wrong. No sycophancy.
- Never delete a decision. Supersede it:
~~old~~ → **Verdict (YYYY-MM-DD):** new call — reason. - Never fix, tune, or delete a test or eval case to raise a score. Log the miss honestly and leave the case unchanged.
- Name exact things: regex patterns, function signatures, model names, before → after numbers. Never "fixed bugs".
- Attribution: follow the project's
attributionsetting (defaultnone) — no AI-tool mentions in generated docs, no attribution trailers in commits or PRs. Commit with explicit-m/-Fmessages only. - Config: read
.claude/acstack.mdat the project root (fall back to~/.claude/acstack.md) before acting.## Settingskeys override pack defaults; a## <skill-name>section overrides both. Unknown keys and sections are ignored. - Docs: BRIEF.md (frozen seed) / PLAN.md (living plan) / JOURNAL.md (rolling journal). If the repo uses legacy names (PLANNING_PROMPT.md / PLANNING.md / STATUS.md), use those instead — never create both.
- Recall: if
LEARNINGS.mdexists at the project root, read it before starting. - Conduct: follow the
acstack-conductblock in this repo's AGENTS.md — the word is the mode; the user sets the pace. - Hackathon lane: if the project's AGENTS.md carries the
acstack:hackathon-laneblock, only/dochanges the repository during the event. Any other skill that would write a tracked file, commit or push says what it would have done and stops; a change that is not a task goes through the lane's operator route. <!-- /acstack:principles -->
One document set. Resolve exactly ONE BRIEF/PLAN/JOURNAL set and name
its path in the report's scope line. If more than one candidate set exists
— a monorepo, nested products, an apps/* tree each with its own docs —
list the candidates and STOP. Never pick one silently: a confident answer
about the wrong product is worse than no answer (conduct rule 8).
Procedure
-
Gather. Read the config, JOURNAL.md (create from
references/journal-template.mdif missing), PLAN.md, andgit logsince the last journal commit — or, for a first entry (no prior journal commit exists), the full log, said as such. Get current test counts — run the suite if it's cheap; otherwise use the last recorded counts and say you did. -
Write the entry under
## Key decisions and journey, newest first, heading### <what changed> (YYYY-MM-DD[ morning/evening]). Followreferences/worklog-rules.mdfor granularity — exact bugs, exact numbers, why-X-not-Y, what did NOT change, validation close.Two sessions journaling the same day will conflict here, and that is the tolerable outcome. Every entry goes in at the same anchor, so concurrent writes collide — measured 2026-09-14:
CONFLICT (content): Merge conflict in JOURNAL.md. A conflict is safe; it stops and asks. Resolve it by keeping both entries, newest first, never by dropping one or merging them into a single heading — two sessions did two pieces of work and the record should show both. What must NOT happen silently is a wrong number: if the skeleton stores a derived count, re-derive it with the project's own tool after resolving rather than accepting whichever side git kept. -
Classify any eval results. Every failure gets a bucket from the canonical table in
../audit/references/eval-review-rules.md: prompt issue / grader brittleness / provider flake / data issue / parser issue / genuinely ambiguous. Genuinely-ambiguous survives only asacceptable_failure: <written reason>. UseFAIL → fixednotation for resolved ones, and add a "Read" column giving the interpretation, not just the verdict. Never adjust a case to raise the number. -
Update the skeleton sections: the top blockquote (
**Last update**:date + 2-3 sentence delta), TL;DR, the what's-built table, pending-from- you table, deferred list. Keep "how to run" honest — rerun it if it may have drifted. -
Sync PLAN.md. Check off boxes whose Acceptance actually passes now (verify — don't assume). A regression is recorded as
~~[x]~~ → **Verdict (date):** re-opened — reason, never a silent uncheck. -
Commit with subject from
journal-commit-format(defaultJournal YYYY-MM-DD: <summary>) plus a brief body, per CONDUCT rule 10. Include the PLAN.md sync in the same commit. Stage explicitly — nevergit add -A. Stage JOURNAL.md and PLAN.md by name. A blanket add sweeps whatever else was in the tree into a commit labelled "Journal", which is how unrelated work lands under a subject nobody would look under. Other files already modified → say so, list them, and leave them unstaged.
When the preconditions are not met
Each of these stops rather than guessing; naming the gap is the deliverable.
- Not a git repo. Write the entry, then say plainly that no commit was made and why. The journal is still worth having; a fabricated commit step is not.
- Nothing to record. A session with no commits and no plan movement gets that stated in one line, not an entry padded to look like progress. An honest "no work landed since <date>" is a true record.
- No PLAN.md. Write the entry and skip the sync step, saying so — never invent a task list to sync against.
Hard rules
- Numbers over adjectives:
60/90 → 8/123 flagged,94.2s → 71.2s (~25%),88 passed, 40 skipped (was 79/40). If a claim has no number, ask whether it deserves to be in the journal. - Log incidental discoveries, including self-indicting ones ("the test was already stale before this change").
- Deferrals get a reason and a sequence ("after X, so Y is measured against real data"), never a bare "later".
04 同仓库更多 Skills
why
Decision archaeology - answers why the code, config, or plan is the way it is by searching the record in a fixed order: BRIEF constraints, dated PLAN decisions, JOURNAL entries, then git history. Stops at the first real answer, cites it with a date, and says no recorded rationale rather than inventing one. Use when someone asks why something is this way, why a choice was made, or where a decision is written down.
verify
Audit a completion claim made by someone else - another session, agent, or teammate - against the running system rather than the diff. Re-derives what the claim's acceptance demands, runs it, and returns CONFIRMED, OVERSTATED, FALSE or UNVERIFIABLE with the command and its output. Never fixes, never edits the claim or the acceptance. Use when handed a "done", "all green", "merged" or "it works" you did not produce yourself.
triage
Backlog hygiene sweep - stale items, duplicate pairs, missing acceptance criteria, unblocked-but-unassigned work, and milestone burn, delivered as a report first with only user-approved actions applied. Works on GitHub Issues in tickets mode and on PLAN.md checkboxes in document mode. Use when the user asks to triage, groom, or clean up the backlog or the plan's open tasks.
ticket
Capture a brain-dump as a well-formed work item - verb-first title, acceptance criteria, file paths when known, an out-of-scope line. Files a GitHub issue in tickets mode or appends a numbered PLAN.md task in document mode; unknowns are marked TBD, never invented. Use when the user brain-dumps an idea, bug, or task to capture for later, or asks to ticket, file, or note something as work.
ship
Branch-level release with five gates before the act - clean-state, tests, eval-vs-target, docs drift, and attribution sweep; any failing gate stops the release with its output. Then push, and under push: branch-pr open a report-shaped PR wiring the issue-closing reference in tickets mode or PLAN task IDs in document mode. Use when the user asks to ship, release, cut, or open the PR for a feature or branch.
secure
Security review with a confidence gate - a finding exists only with a concrete exploit scenario and a high/medium/low confidence rating; everything else goes to a worth-hardening list, never inflated. Sweeps five surfaces: auth gates, secrets hygiene, injection and unsafe sinks, unsafe deserialization/crypto/transport, and LLM tool-use trust boundaries. Reports only, never fixes. Use when the user asks for a security review or to check vulnerabilities, secrets, or auth.