Skip to content

docs(skills): write Issues and plans in Japanese with diagrams - #183

Merged
furedea merged 2 commits into
mainfrom
docs/japanese-visual-issues
Oct 17, 2026
Merged

furedea merged 2 commits into
mainfrom
docs/japanese-visual-issues

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Issues and plans are for the user to decide on. English prose was hard to skim.

  • Format. issue-workflow gains an Issue and Plan Format section:
    • a summary of at most three lines;
    • a Mermaid diagram for flows or interacting parts;
    • a before/after table;
    • a - [ ] checklist of observable outcomes;
    • details folded inside <details> at the end.
  • Language. The format section states that Issues and plan comments are written in Japanese. Code, commits, PRs, and ADRs stay English.
  • Images are left out.
    • gh --attach (gh 2.99+) accepts only user tokens. gh 2.102 returns unsupported authentication type for the agent GitHub App installation token.
    • Diagrams use Mermaid, which GitHub renders inline. Issue と plan を日本語と図で書く #182 is written in the new format.

Closes #182

Verification

  • uv run --frozen pytest tests/agents: 1361 passed.
  • lefthook pre-commit passed.

🤖 Generated with Claude Code

furedea and others added 2 commits October 17, 2026 18:43
Issues and plans are for the user to decide on, and English prose was
hard to skim. They now open with a short summary, a Mermaid diagram, a
before/after table, and a checklist, with details folded at the end.
Image uploads are left out: gh --attach rejects the agent App token.

Closes #182

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The skill already states it; a second copy in the global instructions
would drift.

Refs #182

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea-agent
furedea-agent Bot force-pushed the docs/japanese-visual-issues branch from c9a4375 to 87678de Compare October 17, 2026 09:50
@furedea
furedea merged commit a7d4f49 into main Oct 17, 2026
11 checks passed
@furedea
furedea deleted the docs/japanese-visual-issues branch October 17, 2026 09:54
furedea added a commit that referenced this pull request Oct 17, 2026
…rt (#185)

PR 2 of #181. Merged task worktrees and local branches are removed
without a person running `git branch -D`.

- **`agents/hooks/cleanup_worktrees.py`.** A branch goes only when both
hold:
  - a merged pull request's head is exactly its tip;
  - its worktree is clean.

Squash merges therefore count as merged, while later or uncommitted work
stays. The primary checkout, the caller's own worktree, and
`main`/`master` are never touched. An open Herdr workspace is closed
with its checkout (`herdr worktree remove`), and other worktrees use
`git worktree remove`.
- **Scope.** It sweeps the caller's repository and every repository with
a Herdr task worktree under `~/.herdr/worktrees`. A lane merged in one
repository therefore goes at whichever session starts next. A failure in
one repository skips only that repository.
- **Triggers.**
- The Claude SessionStart hook runs it asynchronously, so start-up never
waits on GitHub. Hooks run outside the sandbox, so agents still never
get `-D`.
  - `cleanup_worktrees.py --dry-run` reports what would go.
- It uses only git, gh (one `gh pr list --state merged` call), and
Herdr. No gh-poi.
- **`branches.md`.** Tells agents not to delete merged worktrees by
hand.

Remote branches: `delete_branch_on_merge` is already on for the active
repositories. It is off for `obsidian` (no PRs), `book-agent`,
`swe-bench-trial`, `revisiting-pgd-evaluation`, `pairs`, and older
learning repos. The agent App token cannot change repository settings,
so that is left to the user.

Closes #181

## Verification

- `uv run --frozen pytest tests`: 1498 passed. The 3 errors in
`tests/hermes/test_hermes_gateway.py` also occur on main.
- The new contracts use temporary repositories with fake `gh` and Herdr.
They cover:
  - a merged worktree;
  - a merged branch without a worktree;
  - a later commit, a dirty tree, and an open PR, all kept;
  - the primary and current checkouts, kept;
  - `--dry-run`;
  - a Herdr workspace closed with its worktree;
  - the hook never blocking;
- a merged Herdr lane of another repository swept from an unrelated
directory.
- A dry run on this repository found exactly the two squash-merged
branches from #183 and #184.
- The Herdr hand-off from PR 1 was checked live: worktree, agent start,
and prompt ran with no permission prompt.
- ruff, ty, deptry, vulture, and lefthook passed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue と plan を日本語と図で書く

1 participant