Codebase analysis tool for quality-first editing. Scan before edit to understand relationships, patterns, and impact.
C:\Users\BLogic\.cursor\user-scripts\project-scanner\
# 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"
| File | When |
|------|------|
| output.json | Full scan |
| output-query.json | Query mode |
| 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 |
| Trigger | MUST Check |
|---------|------------|
| Change method signature | calledBy |
| Class extends another | inheritance |
| Shared service | summary.mostUsedServices |
| Delete/rename | All references |
Full scan → Read ONLY summary section first
Query → Read calledBy + inheritance
Key sections:
calledBy: Ai gọi method nàycallChain: Multi-level call pathinheritance: Parent/child classesdeadCode: Unused methodssummary.mostUsedServices: High-impact servicesBefore CREATE → Query similar existing code
Before EDIT → Check existing patterns
Follow 100% existing style
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 safely
Scanner được reference từ:
angular-coding/SKILL.md → Pre-edit analysisSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer