genshijin-crew

genshijin-crew

Popular

Decision guide for delegating tasks to primitive-style subagents. Shows when to spawn `genshijin-investigator` (code location), `genshijin-builder` (1-2 file edits), or `genshijin-reviewer` (diff review) instead of performing inline work or using vanilla `Explore`. Subagent outputs are compressed in primitive style, reducing tool-result payload returned to the main context by ~60% to sustain long sessions. Triggers: "subagent delegation", "use genshijin-crew", "start investigator/builder/reviewer", "save context", "compressed agent output".

308stars
11forks
Updated 8/7/2026
SKILL.md
read-only
name
genshijin-crew
description

Decision guide for delegating tasks to primitive-style subagents. Shows when to spawn `genshijin-investigator` (code location), `genshijin-builder` (1-2 file edits), or `genshijin-reviewer` (diff review) instead of performing inline work or using vanilla `Explore`. Subagent outputs are compressed in primitive style, reducing tool-result payload returned to the main context by ~60% to sustain long sessions. Triggers: "subagent delegation", "use genshijin-crew", "start investigator/builder/reviewer", "save context", "compressed agent output".

genshijin-crew is a 3-subagent preset outputting in primitive format. Roles match Anthropic defaults (Explore, edit agents, reviewer). The difference is that returned tool-results are compressed, reducing main context consumption with each delegation.

genshijin-crew vs. Alternatives

Task Use
"Where is X defined / Callers of Y / All usages of Z" genshijin-investigator
Same as above + need architecture explanations/proposals Explore (vanilla)
Surgical edits, ≤2 files, clear scope genshijin-builder
New features / 3+ files / cross-cutting refactor Main thread or feature-dev:code-architect
Bug review of diff/branch/file genshijin-reviewer
Deep code review with rationale + alternatives Code Reviewer (vanilla)
Simple questions solvable in 1 line Main thread, no subagent needed

Decision rule: Use genshijin-crew if you want subagent output at 1/3 the token count; use vanilla if you want prose.

Practical Benefits

Subagent tool-results are injected verbatim into the main context. When vanilla Explore returns 2k tokens of prose, it consumes 2k of main context every time. The same finding via genshijin-investigator takes about 700 tokens. Across 20 delegations in a single session, this is the difference between context exhaustion and task completion.

Output Contracts

Structured output format the main thread can rely on per agent:

genshijin-investigator

<Header>:
- path:line — `symbol` — short note
Totals: <counts>.

or No match. File paths must come first, include line numbers, and symbols must be backticked. Grep-able via path:\d+.

genshijin-builder

<path:line-range> — <change ≤10 words>.
verified: <re-read OK | mismatch @ path:line>.

or one of the following: too-big. / needs-confirm. / ambiguous. / regressed. (terminal first token).

genshijin-reviewer

path:line: <emoji> <severity>: <problem>. <fix>.
totals: N🔴 N🟡 N🔵 N❓

or No issues. Sorted by file, then line number ascending.

Chaining Patterns

Locate → Fix → Verify (Most common):

  1. Run genshijin-investigator to get the site list.
  2. Main thread selects 1-2 sites and passes paths to genshijin-builder.
  3. genshijin-reviewer audits the diff.

Parallel Scouting (Broad investigation):
Launch 2-3 genshijin-investigator instances in parallel in a single message (different angles: defs vs callers vs tests). Aggregate in the main thread.

Single Edit (Site already known):
Skip investigator. Pass path:line directly to genshijin-builder.

Prohibited Actions

  • Do not use genshijin-builder without identifying files first. Run investigator first; otherwise, the main thread wastes tokens passing context.
  • Do not use the genshijin-investigator → genshijin-builder chain for 5-file refactors. Builder will return too-big. and waste a turn.
  • Do not request general feedback from genshijin-reviewer. It returns findings only, no architectural opinions. Use Code Reviewer for general feedback.
  • Do not expect prose. genshijin-crew output is structured and sometimes terse. Paraphrase in the main thread if human-readable text is needed.

Automatic Fallback (Bypass)

Subagents switch from primitive style to standard prose when outputting security warnings, requesting confirmation for irreversible operations, or providing ambiguous code fragments with risk of misinterpretation. They revert to primitive style afterward.