← Back to list

project-scanner
by KhaiHuynhVN
⭐ 28🍴 8📅 Jan 19, 2026
SKILL.md
name: project-scanner description: Codebase analysis tool for quality-first editing. Scan before edit to understand relationships, patterns, and impact.
Project Scanner Workflow
Scanner Location
C:\Users\BLogic\.cursor\user-scripts\project-scanner\
Commands
# 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 |
|---|---|
output.json | Full scan |
output-query.json | 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 | calledBy |
| Class extends another | inheritance |
| Shared service | summary.mostUsedServices |
| Delete/rename | All references |
Reading Output (Token-Efficient)
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 services
Pattern-First Principle
Before CREATE → Query similar existing code
Before EDIT → Check existing patterns
Follow 100% existing style
Example 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 safely
Integration
Scanner được reference từ:
angular-coding/SKILL.md→ Pre-edit analysis
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon