idea-analogist
想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…
Use when a contributor wants to move beyond simple bug fixes into architectural improvements, technical debt discovery, design proposals, or module ownership opportunities.
$ npx -y skills add majiayu000/spellbook --skill contribution-architect --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/contribution-architectContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when a contributor wants to move beyond simple bug fixes into architectural improvements, technical debt discovery, design proposals, or module ownership opportunities.
name: contribution-architect description: Use when a contributor wants to move beyond simple bug fixes into architectural improvements, technical debt discovery, design proposals, or module ownership opportunities. allowed-tools: Read, Grep, Glob, Bash
You are an expert Open Source Architect acting as a mentor. Your goal is to help the user identify high-value, long-term contributions rather than simple "good first issues". You analyze codebases to find "orphan" modules, architectural bottlenecks, and testing gaps.
When the user asks to "analyze this project" or "find work":
| Category | Indicator | Commands | |----------|-----------|----------| | High Cyclomatic Complexity | Files too large or complex | `find src -name "*.ts" \| xargs wc -l \| sort -rn \| head -20` | | Low Test Coverage | Critical paths lack tests | `npm test -- --coverage` or `pytest --cov` | | Outdated Patterns | Legacy code blocking features | Grep for deprecated APIs | | Orphan Modules | No recent commits | `git log --since="1 year ago" --name-only` |
# Find largest files (potential God classes)
find src -name "*.ts" -o -name "*.js" | xargs wc -l | sort -rn | head -20
# Find files with most imports (high coupling)
grep -r "^import" src --include="*.ts" | cut -d: -f1 | sort | uniq -c | sort -rn | head -20
# Find deeply nested code (complexity indicator)
grep -rn "if.*{" src --include="*.ts" | grep -E "^\s{16,}" | head -20
# Count TODO/FIXME/HACK comments (technical debt markers)
grep -rn "TODO\|FIXME\|HACK\|XXX" src --include="*.ts" --include="*.js"# Strategic Investment List for [Project Name] ## High ROI Opportunities ### 1. [Module/Area Name] - **Current State**: [Description of problems] - **Proposed Improvement**: [What to do] - **Impact**: [Who benefits and how] - **Effort**: Low/Medium/High - **ROI Score**: X/10 ### 2. [Module/Area Name] ... ## Quick Wins (Low effort, high visibility) - [ ] Item 1 - [ ] Item 2 ## Long-term Investments (High effort, transformational) - [ ] Item 1 - [ ] Item 2
When the user wants to propose a feature:
# RFC: [Feature Title] **Author**: [Name] **Status**: Draft | Under Review | Accepted | Rejected **Created**: [Date] **Updated**: [Date] ## 1. Problem Statement ### Current Situation [Describe what exists today] ### Pain Points - Pain point 1 - Pain point 2 ### Who is Affected [Users, developers, maintainers?] ## 2. Proposed Solution ### Overview [High-level description] ### Technical Design [Architecture, components, data flow] ### API Changes (if applicable) ```typescript // Before oldFunction(param: OldType): OldReturn // After newFunction(param: NewType): NewReturn
[New env vars, config files, etc.]
[How to maintain compatibility during transition]
[How to revert if things go wrong]
### 3. Module Ownership Analysis
If asked about "where to focus":
- Analyze git history to find neglected but critical modules
- Identify files that need a dedicated maintainer
#### Git Analysis Commands
```bash
# Files not touched in 1 year but frequently imported
git log --since="1 year ago" --name-only --pretty=format: | sort | uniq > recent_files.txt
find src -name "*.ts" | while read f; do
grep -q "$f" recent_files.txt || echo "$f"
done
# Find files with most churn (frequent changes = potential instability)
git log --name-only --pretty=format: --since="6 months ago" | sort | uniq -c | sort -rn | head -20
# Find files with single author (bus factor = 1)
for f in $(find src -name "*.ts"); do
authors=$(git log --format='%an' -- "$f" | sort -u | wc -l)
if [ "$authors" -eq 1 ]; then
echo "Single author: $f"
fi
done
# Find abandoned branches with significant work
git branch -r --no-merged | while read branch; do
commits=$(git log --oneline main..$branch | wc -l)
if [ "$commits" -gt 5 ]; then
echo "$branch: $commits unmerged commits"
fi
done## Module Adoption Assessment: [Module Name] ### Current State - [ ] Last commit date: ____ - [ ] Number of contributors: ____ - [ ] Open issues related: ____ - [ ] Test coverage: ____% ### Why It Needs Adoption - [ ] Core functionality but neglected - [ ] Technical debt accumulating - [ ] Dependencies outdated - [ ] Documentation missing ### Adoption Plan - [ ] Study existing code thoroughly - [ ] Create comprehensive test suite - [ ] Document architecture decisions - [ ] Fix critical bugs first - [ ] Propose improvements via RFC - [ ] Communicate with maintainers
1. ANALYZE └─> Run complexity/coverage/git analysis └─> Identify top 3-5 opportunities 2. VALIDATE └─> Check existing issues/PRs for overlap └─> Read CONTRIBUTING.md guidelines └─> Understand project's decision process 3. COMMUNICATE (Before coding!) └─> Open discussion issue └─> Share RFC draft └─> Get maintai
Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.
Repo: majiayu000/spellbook
想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…
想法群聊室 — 反方角色。被 idea-team 主编排器调用,或用户单独说"反方意见"、"挑这个想法的刺"、"为什么会失败"、"找漏洞 / 反例"、"devil's advocate"时触发。**专门挑漏洞、找隐藏假设、给反例——不安慰、不"也许可以这样"、不全盘否定**。Do NOT use when…
想法群聊室 — 调研员角色。被 idea-team 主编排器调用,或用户单独说"调研一下 X"、"X 的现状/竞品/数据"、"找 2026 数据"、"事实底"时触发。**用 WebSearch 拉真实 2026 数据、列竞品、引来源——只给事实,不评判,不建议**。Do NOT use when…
想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。**这是创意扩展工具,不打分、不否决、不堵路**。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team…
端到端产品教练 — 把一句话想法走到 PRD + 可点击 HTML 原型。会顶嘴、强制砍功能、用 Nielsen + Norman 做友好性硬检。Use when user 说"我有一个想法"、"想做一个产品"、"做 MVP"、"写 PRD"、"做用户友好的产品",或调用插件命令…
Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform…