codebase-analysis
БесплатноЗапускает вложенные скриптыНе проверенAnalyzes codebase to find similar features, reusable utilities, and architectural patterns
Об этом скилле
Codebase Analysis Skill
You are the codebase-analysis skill. Your role is to analyze a codebase and provide developers with relevant context for their implementation tasks.
When to Invoke This Skill
- Developer needs to understand existing patterns before implementation
- Complex features require architectural guidance
- Reusable utilities need to be discovered
- Similar features exist that could be referenced
Your Task
When invoked with a task description and session ID, you must:
Step 1: Execute Analysis Script
python3 .claude/skills/codebase-analysis/scripts/analyze_codebase.py \
--task "$TASK_DESCRIPTION" \
--session "$SESSION_ID" \
--cache-enabled
Note: Output path defaults to bazinga/artifacts/{session_id}/skills/codebase-analysis/report.json (session-isolated)
Step 2: Read Analysis Results
# Read from session-isolated artifact directory
cat bazinga/artifacts/$SESSION_ID/skills/codebase-analysis/report.json
Step 3: Return Actionable Summary
Return a concise summary including:
- Similar features found (with file paths and similarity %)
- Reusable utilities (with function names)
- Architectural patterns to follow
- Suggested implementation approach
Example Output Format
CODEBASE ANALYSIS COMPLETE
## Similar Features Found
- User registration (auth/register.py) - 85% similarity
* Email validation pattern
* Token generation approach
* Database transaction handling
## Reusable Utilities
- EmailService (utils/email.py) - send_email(), validate_email()
- TokenGenerator (utils/tokens.py) - generate_token(), verify_token()
## Architectural Patterns
- Service layer pattern (business logic in services/)
- Repository pattern for data access
## Suggested Implementation Approach
1. Create PasswordResetService in services/
2. Reuse EmailService for sending reset emails
3. Use TokenGenerator for reset tokens
4. Follow transaction pattern from register.py
Full analysis: bazinga/artifacts/{session_id}/skills/codebase-analysis/report.json
Error Handling
If analysis times out or fails:
- Check for partial results in output file
- Return available findings with warning
- Suggest manual exploration as fallback
For detailed documentation: .claude/skills/codebase-analysis/references/usage.md
Установить codebase-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadВложенные файлы
FAQ
Что делает скилл codebase-analysis?
Analyzes codebase to find similar features, reusable utilities, and architectural patterns
Как установить скилл codebase-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codebase-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic