← Back to list

codebase-explorer
by sane-apps
The privacy-first menu bar manager for macOS. Native, lightweight, and scriptable.
⭐ 109🍴 9📅 Jan 23, 2026
SKILL.md
name: codebase-explorer description: Explore SaneBar codebase efficiently using Explore subagent. Use when searching for code, understanding architecture, finding patterns, or locating implementations. Keywords: find, search, where is, how does, explore, understand, architecture, codebase allowed-tools: Read, Grep, Glob, Bash(git:), Bash(ls:)
Codebase Explorer
When This Skill Activates
Claude uses this when you ask:
- "Where is [class/function] defined?"
- "How does [feature] work?"
- "Find all uses of [pattern]"
- "Show me the [component] architecture"
- "Search for [keyword] in the codebase"
IMPORTANT: Use Explore Subagent
For large searches, delegate to Explore subagent (Haiku-powered, saves tokens):
Task tool with subagent_type: Explore
This is more efficient than direct Grep/Glob for open-ended exploration.
SaneBar Codebase Map
/Users/sj/SaneBar/
├── Core/ # Foundation
│ ├── Services/ # AccessibilityService, PermissionService
│ ├── Models/ # StatusItemModel, AppModel
│ └── Managers/ # State management
├── UI/ # SwiftUI
│ ├── Onboarding/ # Permission flow
│ ├── Settings/ # SettingsView + tabs
│ └── Components/ # Reusable components
├── Tests/ # Swift Testing (@Test, #expect)
├── scripts/ # Ruby automation
│ ├── SaneMaster.rb # Main CLI
│ └── hooks/ # Claude Code hooks
└── .claude/ # Configuration
├── rules/ # Code style rules
├── skills/ # This directory
└── CLAUDE.md # Project SOP
Common Searches
Find Definitions
# Where is a class defined?
grep -r "class StatusBarController" --include="*.swift"
# Where is a protocol?
grep -r "protocol.*Service" --include="*.swift"
Find Usage
# All uses of a type
grep -r "StatusItemModel" --include="*.swift"
# All accessibility API calls
grep -r "AXUIElement" --include="*.swift"
Find by Pattern
# All views
glob UI/**/*View.swift
# All services
glob Core/Services/*.swift
# All tests
glob Tests/**/*Tests.swift
Code Style Rules
Reference .claude/rules/ before making changes:
| Rule File | Key Points |
|---|---|
views.md | Extract if body > 50 lines, use @Observable |
services.md | Use actors, protocol-first, dependency injection |
models.md | Structs preferred, Codable/Equatable/Sendable |
tests.md | Swift Testing only (not XCTest), no tautologies |
Key Patterns in SaneBar
- Accessibility: All menu bar scanning uses
AXUIElementAPIs - Permissions:
PermissionServicehandles AX permission flow - Status Items:
StatusBarControllermanages NSStatusItem positioning - State:
@Observablefor UI, actors for concurrent services
Score
Total Score
70/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


