원클릭으로
원클릭으로
Smart temporal analysis using git history - Hotspots, Coupling, and Recent Contributors
Analyze the impact scope of code changes using static dependency analysis
Get project overview - scan <5% of files to achieve 70-80% understanding
List saved SourceAtlas analysis results
Clear saved SourceAtlas analysis results
Analyze dependency usage for library/framework/SDK upgrades
Constitution: ANALYSIS_CONSTITUTION.md v1.0
Pattern requested: $ARGUMENTS Goal: Learn how THIS specific codebase implements the requested pattern Time Limit: 5-10 minutes maximum
--force flag present)find-patterns.sh script.sourceatlas/patterns/You are analyzing how THIS codebase implements a specific pattern by:
| Parameter | Behavior | Use Case |
|---|---|---|
--brief | List files only | Quick file browser |
--full | Analyze all files | Deep learning |
| (default) | Smart: ≤5 files→full; >5→selection UI | Balanced |
Execute these steps in order. See workflow.md for complete details.
Purpose: Determine how much analysis to perform.
Detect flags:
--brief → List files only, no analysis--full → Analyze all found files→ See workflow.md#step-0
Purpose: Find relevant files using optimized search.
Use find-patterns.sh script first:
# Locate script (global → local)
if [ -f ~/.claude/scripts/atlas/find-patterns.sh ]; then
SCRIPT_PATH=~/.claude/scripts/atlas/find-patterns.sh
elif [ -f scripts/atlas/find-patterns.sh ]; then
SCRIPT_PATH=scripts/atlas/find-patterns.sh
fi
bash "$SCRIPT_PATH" "$ARGUMENTS"
Supported patterns:
If unsupported: Fallback to manual Glob/Grep search
→ See workflow.md#step-1
Purpose: More precise search for content-based patterns.
Use ast-grep-search.sh for:
Graceful degradation: Script handles ast-grep unavailability
→ See workflow.md#step-1-5
Purpose: Decide analysis depth based on file count.
Smart mode logic:
FILE_COUNT = 0 → "No files found"
FILE_COUNT ≤ 5 → Full analysis
FILE_COUNT > 5 → Selection interface
Brief mode: List files, end immediately
Full mode: Analyze all files (warn if >10)
→ See workflow.md#step-2
Purpose: Extract patterns from 2-3 best examples.
High-entropy priority:
Focus areas:
→ See workflow.md#step-3
Purpose: Distill findings into reusable guidance.
Extract:
→ See workflow.md#step-4
Purpose: Understand how pattern is tested.
find . \( -path "*/test/*" -o -path "*/tests/*" -o -name "*.test.*" \) \
-type f -not -path "*/node_modules/*" | head -20
→ See workflow.md#step-5
Purpose: Provide concrete steps to follow.
Create actionable, step-by-step guide with:
→ See workflow.md#step-6
Your analysis should follow this Markdown structure:
🗺️ SourceAtlas: Pattern
───────────────────────────────
🧩 [Pattern Name] │ [N] files found
## Overview
[2-3 sentence summary]
## Best Examples
### 1. [File Path]:[line]
[Purpose, Key Code, Key Points]
### 2. [File Path]:[line]
[Same structure]
## Key Conventions
- [Convention 1]
- [Convention 2]
- [Convention 3]
## Testing Pattern
[Test location, approach, examples]
## Common Pitfalls to Avoid
1. [Pitfall 1]
2. [Pitfall 2]
## Step-by-Step Implementation Guide
1. [Step 1]
2. [Step 2]
...
## Related Patterns (Optional)
[If applicable]
## Recommended Next (Optional)
[Dynamic suggestions based on findings]
→ See output-template.md for complete specification and examples
Follow ANALYSIS_CONSTITUTION.md:
After generating your analysis, execute verification steps:
verification_summary:
checks_performed: [...]
confidence_level: "high" # high|medium|low
notes: [...]
→ See verification-guide.md for complete checklist
--force.sourceatlas/patterns/${PATTERN_NAME}.md→ See reference.md#cache-behavior
Complete Markdown report auto-saves after verification:
💾 Saved to .sourceatlas/patterns/[pattern-name].md
→ See reference.md#auto-save-behavior
Based on findings, suggest:
/sourceatlas:flow "[entry point]"/sourceatlas:impact "[core file]"/sourceatlas:pattern "[related]"→ See reference.md#handoffs
Detailed documentation available in:
Start your output with:
🗺️ SourceAtlas: Pattern
───────────────────────────────
🧩 [Pattern Name] │ [N] files found
Then follow complete structure in output-template.md.