almazsr

Yokotenkai — Development skill for Claude Code

Development community

Claude agent skill that makes "fix it everywhere" mandatory: after every code change it finds the same pattern across code, tests, configs and docs, fixes it, and reports how many places it occurs.

How to install Yokotenkai

This entry records only its repository, not the path inside it, so there is no exact command to give. Open almazsr/yokotenkai and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Yokotenkai does

Claude agent skill that makes "fix it everywhere" mandatory: after every code change it finds the same pattern across code, tests, configs and docs, fixes it, and reports how many places it occurs. Includes evals: Haiku 54%→94%, Sonnet 56%→98%.

Alternatives in Development

  • Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
  • Odoo Plugins — Comprehensive Odoo ERP upgrade skill for Claude Code - Automates migrations between Odoo versions 14-19 with p 74 ★
  • Edit Meta Creative — Edit a Meta ad's creative content — landing page URL, primary text, headline, description, CTA, link descripti 48 ★

README

yokotenkai — fix the pattern, not just the instance

*Yokotenkai* (横展開, "horizontal deployment") is a practice from Japanese manufacturing: when you learn something in one place, you roll the lesson out to every other place where it applies. A bug found in one function usually has siblings. They come from copy-paste, from an API misunderstood the same way in several modules, from a test fixture that encodes the bug, or from a doc that still describes the old behaviour.

This repository contains a **Claude agent skill** that makes this a mandatory closing step for every code change. It also contains the evaluation suite and the results.

After any code change, the skill makes the agent:

  1. Name the pattern: the exact code, and the underlying mistake.
  2. Search everything it can reach: all modules, tests, configs, CI, scripts and docs. It looks for exact text, variants and aliases, all call sites, and the same idea written differently.
  3. Fix the mechanical cases everywhere in the same change. It only proposes a fix when making it needs the user's decision.
  4. Always report how many other places the pattern was found in, even when the answer is zero.
## Yokotenkai report
**Pattern:** naive datetime.now() / utcnow() compared with aware-UTC values from the DB
**Original change:** services/auth/tokens.py:8
**Same pattern found in 6 other places** (fixed: 6 · proposed: 0 · needs judgment: 0) · already correct: 2

### Fixed
- services/auth/sessions.py:8 — datetime.now() - session.last_seen would raise the same TypeError
- services/billing/subscriptions.py:8 — dt.now() > sub.renews_at (aliased import)
- services/billing/jobs/renewals.py:5 — utcnow() is naive too
- scripts/cleanup_expired_tokens.py:6 — cron script, same comparison
- tests/test_tokens.py:8 — fixture built naive datetimes and hid the bug
- docs/architecture.md:6 — documented the wrong rule

### Already correct / not applicable
- services/notifications/scheduler.py:6 — already datetime.now(timezone.