Conversation
Stopping mid-task to fix what you just noticed costs more than the fix. This writes down the alternative that has been happening informally: capture in one line during the day, triage and clear in the evening. The repository had no CLAUDE.md, so every fresh agent -- and every @claude run, if one is ever set up -- rediscovers the rules or ignores them. Anthropic's own best-practices section names this as the first thing to fix, so CLAUDE.md now carries the six that actually bite here: the scope test from the README, rules-in-config rather than in the binary, branch-PR-CI-squash with no commits to main, English commits with Japanese docs, measure before diagnosing (which has caught the real cause every time reasoning from the code missed it), and the test conventions. The issue templates are deliberately thin, with blank issues left enabled. A template that demands reproduction steps and an environment raises report quality and lowers capture rate, and an idea that is not captured in the moment is gone. Quality is added at triage instead. docs/issue-workflow.md is the procedure, and records what was taken from how others run this: issues as a coordination surface independent of the working tree, one issue per branch because several agents editing one plan file is the most common source of silent corruption, and templates as a way to cut round trips. It also covers what auto-continue at usage limit means for evening work, and where handing an issue to @claude is and is not appropriate. No GitHub Action workflow is included. It needs a secret only the owner can add and spends Actions minutes and tokens on every run, so the setup steps are documented and the decision left open. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Writes down the working pattern you described — capture during the day, clear in the evening — and fixes the one thing that was actually missing for it to work.
The gap this closes
There was no
CLAUDE.md. Every fresh agent rediscovers the rules or ignores them; I have re-derived "English commits, Japanese docs, branch → PR → CI → squash, never commit to main" from memory in every session. An@clauderun in CI would not have had even that. Anthropic's own best-practices section names CLAUDE.md as the first thing to set up, and warns to keep it short because it is read on every run.It now carries the six rules that have actually bitten here:
## Why/## Not goals) before adding a feature[agent]and[paste]already followmain; one issue, one branch, one PRdocs/Templates are deliberately thin
.github/ISSUE_TEMPLATE/has two short forms and leaves blank issues enabled. A form demanding reproduction steps, expected behaviour and environment raises report quality and lowers capture rate — and an idea not captured in the moment is gone. The bug form asks for the one-line symptom, optionally a log line (with theTERMIT_FRAME_LOG/TERMIT_KEYLOGincantations inline so you do not have to remember them), and the build. The feature form asks for the problem, not the solution, plus a soft scope question with "not sure" as an allowed answer.Quality is added at triage, not at capture.
docs/issue-workflow.mdThe procedure: capture in one line during the day; triage everything in one 15-minute pass before touching any of it; then clear one issue per branch. It includes the parts specific to this repo — triage means measuring, not guessing at a cause; "is this the terminal's job?" is a triage question and not one to hand to a machine.
What it takes from how others run this, with sources:
It also covers what the
autoContinueAtUsageLimitbehaviour means for evening work — a session left open resumes by itself when the limit resets, and quitting during the wait cancels that.No workflow file
claude.ymlis not included. It needs a secret only you can add, and it spends Actions minutes and tokens on every run. The setup steps (/install-github-app, the two secret options) and the cost controls (--max-turns,timeout-minutes,concurrency) are documented, and the decision is left to you.Test
cargo test— 233 pass, 1 ignored (unchanged; no code touched). The three issue-form YAML files parse.Left unmerged for your review, as asked.
🤖 Generated with Claude Code