How interfacex-co-jp/genshijin works
Genshijin is a set of AI-agent skills and integrations for concise communication, with mode selection and automatic prompt reinforcement as its central workflow. Claude Code hooks resolve the active mode, persist it, and inject the matching rules; additional skills handle commits, reviews, memory compression, statistics, and agent delegation. The README also documents IDE installation and MCP description compression, represented as separate capabilities. Hook and compression wiring is supported by sampled source; some skill and crew behavior is documented only in the README, so uncertain internal links are omitted.
Main entry points: genshijin-activate.js Session Activation · genshijin.md Slash Commands · index.js MCP Shrink Proxy · genshijin-mode-tracker.js Mode Tracker
Components 24
Mode and Hooks
- Mode Tracker
hooks/genshijin-mode-tracker.js - Mode Config
hooks/genshijin-config.js - Session Activation
hooks/genshijin-activate.js - Mode State
hooks/genshijin-config.js
Agent Skills
- Core Style Skill
skills/genshijin/SKILL.md - Slash Commands
commands/genshijin.md - Commit Skill
skills/genshijin-commit/SKILL.md - Review Skill
skills/genshijin-review/SKILL.md - Crew Presets
skills/genshijin-crew/SKILL.md
Compression
- Memory Compress Skill
skills/genshijin-compress/SKILL.md - Compression CLI
skills/genshijin-compress/scripts/cli.py - Memory Compressor
skills/genshijin-compress/scripts/compress.py - Output Validator
skills/genshijin-compress/scripts/validate.py
Agent Integrations
- Multi-Agent Installer
cli/install.js - Repository Rule Init
tools/genshijin-init.js - MCP Shrink Proxy
mcp-servers/genshijin-shrink/index.js - Description Compressor
mcp-servers/genshijin-shrink/compress.js
Usage Statistics
- Stats Hook
hooks/genshijin-mode-tracker.js - Stats Reporter
hooks/genshijin-stats.js - Session and Mode Logs
hooks/genshijin-config.js
Other components
- User
- AI Coding Agent
- Compression Model
- Upstream MCP Server
Connections 31
- User → AI Coding Agent: prompts
- AI Coding Agent → Mode Tracker: submits prompt
- Mode Tracker → Mode State: writes mode
- Mode Tracker → Mode Config: resolves settings
- AI Coding Agent → Session Activation: starts session
- Session Activation → Mode Config: resolves mode
- Session Activation → Mode State: reads and records
- Session Activation → Core Style Skill: loads rules
- Session Activation → AI Coding Agent: injects context
- User → Slash Commands: invokes
- Slash Commands → Commit Skill: selects skill
- Slash Commands → Review Skill: selects skill
- Slash Commands → Memory Compress Skill: selects skill
- Memory Compress Skill → Compression CLI: runs
- Compression CLI → Memory Compressor: compresses file
- Memory Compressor → Compression Model: requests rewrite
- Memory Compressor → Output Validator: validates output
- Memory Compress Skill → AI Coding Agent: presents result
- User → Crew Presets: delegates task
- AI Coding Agent → Stats Hook: submits stats command
- Stats Hook → Stats Reporter: launches
- Stats Reporter → Session and Mode Logs: reads usage history
- Stats Hook → AI Coding Agent: injects report
- User → Multi-Agent Installer: requests install
- Multi-Agent Installer → AI Coding Agent: installs integrations
- User → Repository Rule Init: requests rule setup
- Repository Rule Init → AI Coding Agent: writes agent rules
- AI Coding Agent → MCP Shrink Proxy: starts proxy
- MCP Shrink Proxy → Upstream MCP Server: forwards requests
- MCP Shrink Proxy → Description Compressor: compresses listings
- MCP Shrink Proxy → AI Coding Agent: returns transformed listings