一键导入
rb-brief
Walking through a Ruby/Rails/Grape plan, diff, or review in a concise summary. Triggers: "explain plan", "summarize review", "walk me through".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Walking through a Ruby/Rails/Grape plan, diff, or review in a concise summary. Triggers: "explain plan", "summarize review", "walk me through".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | rb:brief |
| description | Walking through a Ruby/Rails/Grape plan, diff, or review in a concise summary. Triggers: "explain plan", "summarize review", "walk me through". |
| argument-hint | [plan|diff|review path] |
| effort | low |
Read the supplied artifact, then explain what matters in a concise summary.
Briefs provide high-signal explanations for busy developers. After planning, working, or reviewing, use /rb:brief to understand:
START ──▶ READ ARTIFACT(S) ──▶ EXTRACT SIGNAL ──▶ SYNTHESIZE
│
▼
STRUCTURE BRIEF
│
▼
OUTPUT
The goal in 10-15 words.
What changed or will change:
What could go wrong:
What to do now:
Read: plan.md
Extract:
Format:
## Plan Brief: {Feature Name}
**Goal**: {one line}
**Scope**: {N} tasks across {N} phases
- Phase 1: {summary}
- Phase 2: {summary}
...
**Key Risks**:
- {risk} ({severity})
- {risk} ({severity})
**Next Step**: {action}
Read: plan.md (updated), changed files
Extract:
Format:
## Work Brief: {Feature Name}
**Completed**: {N}/{N} tasks
**Changes**:
- Created: {files}
- Modified: {files}
- Deleted: {files}
**Blockers**: {N}
- {blocker description}
**Verification**: {status}
- Tests: {pass/fail}
- Linter: {clean/issues}
**Next Step**: {action}
Read: Review files in reviews/
Extract:
Format. Each bucket count uses singular form only when its value
is exactly 1, plural otherwise (including 0). Example summary:
3 Blockers, 1 Warning, 0 Suggestions.
## Review Brief: {Feature Name}
**Summary**: 3 Blockers, 1 Warning, 0 Suggestions
**Blockers**:
1. {description} ({file}:{line})
2. ...
**Top Warnings**:
1. {description}
2. ...
**Verdict**: PASS | PASS WITH WARNINGS | REQUIRES CHANGES | BLOCKED
**Next Step**: {action}
Don't include in briefs:
| Section | Length |
|---|---|
| Summary | 1 line |
| Moving parts | 3-5 bullets |
| Risk areas | 2-4 items |
| Next action | 1 clear step |
| Total | < 30 lines |
## Plan Brief: User Authentication
**Goal**: Add Devise-free authentication to the API
**Scope**: 12 tasks across 3 phases
- Phase 1: Database & models (4 tasks)
- Phase 2: Controllers & sessions (5 tasks)
- Phase 3: Security & verification (3 tasks)
**Key Risks**:
- Session storage (HIGH) - need Redis config
- Password hashing (Blocker) - use bcrypt, not MD5
**Next Step**: Run `/rb:work .claude/plans/user-auth/plan.md`
## Review Brief: Payment Processing
**Summary**: 3 Blockers, 2 Warnings, 2 Suggestions
**Blockers**:
1. Float used for money calculation (app/models/order.rb:45)
- Must use Decimal to prevent rounding errors (Iron Law 1)
2. N+1 query in checkout flow (app/controllers/checkout_controller.rb:23)
- Use `.includes()` / `.preload()` (Iron Law 3)
3. Missing authorization check in `PaymentsController#charge` (Iron Law 13)
**Top Warnings** (non-Iron-Law):
1. No rate limiting on payment endpoint
2. Missing test for refund edge case
**Verdict**: BLOCKED
**Next Step**: Run `/rb:triage` to prioritize fixes
Brief after:
/rb:plan - to understand the plan/rb:work - to see what was done/rb:review - to understand findingsDon't brief:
Briefs synthesize; reviews analyze.
Present the brief directly to the user:
| Need | Reference |
|---|---|
| pre-work + post-work section templates with rules per artifact type | ${CLAUDE_SKILL_DIR}/references/briefing-guide.md |
| when to suggest visual-explainer third-party skill for HTML diagram output | ${CLAUDE_SKILL_DIR}/references/visual-explainer.md |
CONTRIBUTOR TOOL - Track CC changelog, extract new versions since last check, analyze impact on plugin (breaking changes, opportunities, deprecations). Run periodically or before releases. NOT part of the distributed plugin.
CONTRIBUTOR TOOL - Check the plugin against current cached Claude Code docs. Use before releases or after Claude docs changes to separate real schema drift from stale local assumptions. Not part of the distributed plugin.
Guide plugin development workflow for this repo. Use when editing shipped plugin files under plugins/ruby-grape-rails/, release/docs metadata, or contributor tooling under .claude/.
Analyze observational skill-effectiveness signals across scanned sessions. Use for exploratory monitoring and recommendation triage, not as a release gate.
Initializing the Ruby/Rails/Grape plugin: writes stack notes (queues, ORM-per-package, layout) into CLAUDE.md. Triggers: "initialize plugin", "setup ruby plugin", "configure Claude for Rails".
Walking a user through the Ruby/Rails/Grape plugin commands, capabilities, and workflow. Tutorial-style intro for newcomers who want to learn what the plugin offers rather than tackle a specific task.