ruvnet/ruflo/tree/main/plugins/ruflo-jujutsu
ruflo-jujutsu
diff 분석, 위험 점수, 변경 분류, 리뷰어 추천을 제공하는 고급 git 워크플로와 PR 작업용 function-hook 가드 mod입니다.
이 mod 소개
diff 분석, 위험 점수, 리뷰어 추천을 제공하는 고급 git 워크플로입니다.
설치: /plugin marketplace add ruvnet/ruflo /plugin install ruflo-jujutsu@ruflo
기능: 위험 점수가 포함된 diff 분석, 변경 분류(feature/bugfix/refactor/...), 코드 소유권에 따른 리뷰어 추천, 파일별 위험 분석입니다.
명령: /jujutsu(현재 diff를 위험 점수와 함께 분석). 스킬: diff-analyze, git-workflow. MCP 표면: analyze_* 도구 6개(analyze_diff, analyze_diff-risk, analyze_diff-classify, analyze_diff-reviewers, analyze_file-risk, analyze_diff-stats).
mod(ADR-445, hooks/register.ts)로서 키, 토큰 또는 비밀번호가 포함된 github_pr_manage create/review와 confirm: true가 없는 merge/close를 거부하는 강화 전용 가드, /jujutsu-mod(status, recent, tools, scan), .claude-flow/jujutsu-mod/status.json 상태 파일을 추가합니다. 네트워크 호출, 프로세스 생성, 모델 호출은 하지 않습니다. claude plugin validate, claude plugin test, bash plugins/ruflo-jujutsu/scripts/smoke.sh로 검증합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add ruvnet/ruflo claude plugin install ruflo-jujutsu
원문 / README
ruflo-jujutsu
Advanced git workflows with diff analysis, risk scoring, and reviewer recommendations.
Install
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-jujutsu@ruflo
Features
- Diff analysis: Comprehensive change analysis with risk scoring
- Change classification: Auto-categorize as feature, bugfix, refactor, etc.
- Reviewer recommendations: Suggest reviewers based on code ownership
- File-level risk: Per-file risk breakdown for targeted review
Commands
/jujutsu-- Analyze current diff with risk scoring
Skills
diff-analyze-- Analyze diffs for risk, reviewers, and classificationgit-workflow-- Advanced branch management and PR lifecycle
MCP surface (6 tools)
All defined at v3/@claude-flow/cli/src/mcp-tools/analyze-tools.ts:
| Tool | Purpose |
|------|---------|
| analyze_diff | Full diff analysis (risk + classification + reviewers + stats) |
| analyze_diff-risk | Risk score for the staged/unstaged diff |
| analyze_diff-classify | Classify change as feature, bugfix, refactor, perf, security, docs, …|
| analyze_diff-reviewers | Recommend reviewers based on code ownership |
| analyze_file-risk | Per-file risk breakdown |
| analyze_diff-stats | Lines added/removed, files touched, complexity delta |
Compatibility
- CLI: pinned to
@claude-flow/cliv3.6 major+minor. - Verification:
bash plugins/ruflo-jujutsu/scripts/smoke.shis the contract.
ADR-compliance integration
This plugin's diff analysis is the substrate that ruflo-adr ADR-0001's /adr check runs on. When ADR compliance is queried for a diff:
/adr checkcallsanalyze_diffto get the structured diff- Then
analyze_diff-classifyto determine change type - Then cross-references the
adr-patternsnamespace for ADRs related to the touched files - Flags violations: code referencing deprecated/superseded ADRs, or code contradicting accepted ADRs
Without this plugin, /adr check falls back to plain git diff parsing — usable but no risk scoring or reviewer recommendations.
Namespace coordination
This plugin owns the git-patterns AgentDB namespace (kebab-case, follows the convention from ruflo-agentdb ADR-0001 §"Namespace convention"). Reserved namespaces (pattern, claude-memories, default) MUST NOT be shadowed.
Verification
bash plugins/ruflo-jujutsu/scripts/smoke.sh
# Expected: "10 passed, 0 failed"
Architecture Decisions
Related Plugins
ruflo-adr—/adr checkconsumes this plugin'sanalyze_diffoutputruflo-agentdb— namespace convention owner
As a mod
This plugin ships a function-hook mod (ADR-445, hooks/register.ts). It makes no network call, spawns no process and makes no model call.
- Guard (tighten-only, on by default): Refuses
github_pr_managecreate/review whose title or body holds a key, token or password (PR text is public), andmerge/closeunless the call carriesconfirm: true. A refusal never echoes the secret. /jujutsu-mod:status,recent,tools(which of this plugin's tools are connected) andscan <text>(would the guard refuse it). Answered locally.- Status file:
.claude-flow/jujutsu-mod/status.json({version: 1, updatedMs, guard, calls, total, blocked, recent}, counters only, never tool input), written at session start and after every call to this plugin's tools.
Options (userConfig): guard (on), confirmPrActions (on).
Test it: claude plugin validate plugins/ruflo-jujutsu, claude plugin test plugins/ruflo-jujutsu, bash plugins/ruflo-jujutsu/scripts/smoke.sh.
