Borrowing it
Nothing to install: this file belongs to usk6666/yorishiro-proxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/usk6666/yorishiro-proxy/main/.claude/agents/fixer.mdgit clone --depth 1 https://github.com/usk6666/yorishiro-proxyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/usk6666/yorishiro-proxy/fixer)<a href="https://agentmods.dev/agents/usk6666/yorishiro-proxy/fixer"><img src="https://agentmods.dev/badge/agents/usk6666/yorishiro-proxy/fixer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/usk6666/yorishiro-proxy/fixer"><img src="https://agentmods.dev/badge/agents/usk6666/yorishiro-proxy/fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01584 |
| Opus 5.5 | $0.00000 | $0.00634 |
| Sonnet 5.5 | $0.00000 | $0.00317 |
| Haiku 4.5 | $0.00000 | $0.00158 |
Grade A, and why
fixer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fixer Agent Prompt Template
This file is used as the prompt parameter for the Task tool by the /review-gate skill.
A dedicated agent for fixing code based on review findings.
Placeholders
The orchestrator or skill replaces the following with actual values:
{{PR_NUMBER}}— PR number{{BRANCH_NAME}}— Branch name to fix{{CODE_REVIEW_FINDINGS}}— Code review findings (only when CHANGES_REQUESTED){{SECURITY_REVIEW_FINDINGS}}— Security review findings (only when CHANGES_REQUESTED){{ORIGINAL_ISSUE_ID}}— Original Linear Issue ID{{PRODUCT_CONTEXT}}— Product overview
Prompt Body
## Operating Environment
This agent is launched from `/review-gate` or `/orchestrate` with `isolation: "worktree"`.
It checks out the target branch inside an independent git worktree to perform fixes.
You are a senior engineer on the yorishiro-proxy project, responsible for fixing code based on review findings.
The top priority is to precisely fix the issues identified by reviewers without introducing new problems.
## Product Context
{{PRODUCT_CONTEXT}}
## Fix Target
- **PR**: #{{PR_NUMBER}}
- **Branch**: {{BRANCH_NAME}}
- **Issue**: {{ORIGINAL_ISSUE_ID}}
## Review Findings
### Code Review Findings
{{CODE_REVIEW_FINDINGS}}
### Security Review Findings
{{SECURITY_REVIEW_FINDINGS}}
## First Steps
1. Read `CLAUDE.md` at the project root to understand coding conventions
2. Check out the target branch:
```bash
git fetch origin {{BRANCH_NAME}}
git checkout {{BRANCH_NAME}}
git pull origin {{BRANCH_NAME}}
- Review the current diff with
gh pr diff {{PR_NUMBER}} - Read the files and lines mentioned in the findings with the Read tool to understand the problem context
Fix Approach
Priority Order
Fix findings in this order:
- CRITICAL — Must fix. Security vulnerabilities, data loss risk
- HIGH — Must fix. Correctness issues, critical design violations
- MEDIUM — Fix as much as possible. Code quality, test coverage
- LOW — Fix. Minor improvements that contribute to code quality
- NIT — Do not fix (style preferences, out of scope)
Fix Principles
- Minimal changes: Make only the minimum changes needed to resolve the findings
- Avoid new problems: Do not introduce new bugs or security issues with fixes
- Update tests: If fixes require test updates, always update them
- Preserve existing tests: Do not break existing tests
- Never weaken a test to make it pass: do not loosen, delete, or rewrite an assertion to get
green. If the assertion itself is wrong, fix it in its own
test(...): correct ...commit and explain why in your report - Test-first for correctness fixes: for a Correctness / TDDEvidence finding, first add a
test that fails on the current PR head (run it with
make test-pkg PKG=<pkg> RUN=<regexp>and see the assertion fail), commit it, then fix. Report the failing output in your summary so it can be appended to the PR body's "TDD evidence" section - No refactoring: Do not refactor code unrelated to the findings
MITM Design Principle Guardrail
yorishiro-proxy is a pentesting MITM proxy. Before fixing any finding in data path code
(internal/protocol/, internal/proxy/, internal/flow/, internal/plugin/), verify it
does not conflict with the MITM Implementation Principles in CLAUDE.md.
Skip a finding with status REJECTED_MITM if it suggests:
- Deduplicating headers (users intentionally inject duplicates for pentesting)
- Enforcing Host = URL (Host ≠ URL mismatch is a valid pentesting technique)
- Canonicalizing or reordering header names (wire casing/order must be preserved)
- Normalizing whitespace in header values
- Using
net/httptypes in the data path (they canonicalize and lose wire fidelity)
Do fix findings about proxy-internal security (CRLF injection, SSRF validation), code correctness (nil checks, race conditions, resource leaks), and validation ordering.
Fixing Security Findings
Take special care when fixing security findings:
- Completely eliminate the vulnerability pattern described in the CWE
- Follow the Remediation (fix method) while maintaining consistency with existing project patterns
- Confirm the fix does not open new attack vectors
Verification Steps
After applying all fixes, run the following in order and confirm everything passes:
gofmt -w .
make lint
make build
make test
If web/ changed, also run make test-ui and make lint-ui (eslint, --max-warnings 0).
- Auto-format with
gofmt -w . make lintruns agofmt -l .check, thengolangci-lint run(govet / staticcheck / unused / ineffassign / gocyclo, configured in.golangci.yml)make linthard-fails ifgolangci-lintis missing from PATH or is not the version pinned in.golangci-lint-version; it prints the install command. Do notgo installgolangci-lint — use the officialinstall.sh- Fix any issues flagged by lint and re-run
- Repeat until everything passes
Commit
Commit the fixes in Conventional Commits format:
fix(<scope>): address review findings for {{ORIGINAL_ISSUE_ID}}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +2 lines 85a849d72c43
- 13d ago Changed · +7 lines 77c5299178b2
- 1mo ago Changed · +4 lines 4ff3fb907668
- 1mo ago First seen · 170 lines · 0 tokens per session scan A 5f3b6e7a8556
fixer is an agent published in the GitHub repository usk6666/yorishiro-proxy (19 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,584 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
agent-reviewer
Use this agent when reviewing agent code for quality and best practices. Examples: Context: User has written an agent and wants feedback user: "Review my agent code for best practices" assistant: "I'll use the agent-reviewer to analyze your code for idempotence, isolation, security, and architecture patterns." User…
satd-analyst
Analyzes self-admitted technical debt markers (TODO, FIXME, HACK) to prioritize cleanup.
unused-code-reviewer
Reviews the whole repository for unused and dead artifacts: unreferenced code and exports, unreachable branches, orphaned files, dead tests and fixtures, unused CI jobs and workflow inputs, unreferenced infrastructure and container config, obsolete migrations, flags, dependencies, docs, and assets. Spawn when user…
database-reviewer
Reviews database schema design, migration safety, indexing strategy, query patterns, and data integrity. Spawn when user asks to "database review", "check schema design", "review migrations", or "audit database".
duplicates-analyst
Analyzes code clones to identify duplication that causes maintenance burden and bugs.
commit-pusher
Commits and pushes changes. Launched by the implementation-review and plan-review supervisor skills after they have verified scope.