project-scanner
Original:🇺🇸 English
Translated
Codebase analysis tool for quality-first editing. Scan before edit to understand relationships, patterns, and impact.
1installs
Added on
NPX Install
npx skill4agent add khaihuynhvn/mcp-server_ai-interaction project-scannerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Project Scanner Workflow
Scanner Location
C:\Users\BLogic\.cursor\user-scripts\project-scanner\Commands
bash
# Full scan
npx tsx scan.ts --path "<project-src-path>" --framework angular
# Query specific
npx tsx scan.ts --path "<project-src-path>" --framework angular --query "ClassName"Output Files
| File | When |
|---|---|
| Full scan |
| Query mode |
When to Scan
| Situation | Action |
|---|---|
| First time với project | Full scan |
| Edit shared service/utility | Query class |
| Change method signature | Query class → check calledBy |
| Delete/rename | Query → check all references |
| Create new code | Query similar existing |
When NOT to Scan
- Simple typo fix
- Private method internal change
- New isolated code (0 callers)
- Already have context
- Comment/doc updates
Quality Gates (MANDATORY)
| Trigger | MUST Check |
|---|---|
| Change method signature | |
| Class extends another | |
| Shared service | |
| Delete/rename | All references |
Reading Output (Token-Efficient)
Full scan → Read ONLY summary section first
Query → Read calledBy + inheritanceKey sections:
- : Ai gọi method này
calledBy - : Multi-level call path
callChain - : Parent/child classes
inheritance - : Unused methods
deadCode - : High-impact services
summary.mostUsedServices
Pattern-First Principle
Before CREATE → Query similar existing code
Before EDIT → Check existing patterns
Follow 100% existing styleExample Workflow
User: "Sửa SalonService.list()"
1. Query SalonService
2. Read calledBy → Biết SalonsComponent gọi
3. Check signature → Không đổi thì OK
4. Edit safelyIntegration
Scanner được reference từ:
- → Pre-edit analysis
angular-coding/SKILL.md