Scan
Scan Tech Debt — example output
Technical debt identification
$ nowaikit run scan-debt
███╗ ██╗ ██████╗ ██╗ ██╗ █████╗ ██╗ ██╗ ██╗██╗████████╗
████╗ ██║██╔═══██╗██║ ██║ ██╔══██╗██║ ██║ ██╔╝██║╚══██╔══╝
██╔██╗██║██║ ██║██║ █╗ ██║ ███████║██║ █████╔╝ ██║ ██║
██║╚████║██║ ██║██║███╗██║ ██╔══██║██║ ██╔═██╗ ██║ ██║
██║ ╚███║╚██████╔╝╚███╔███╔╝ ██║ ██║██║ ██║ ██╗██║ ██║
╚═╝ ╚══╝ ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ✦
NowAIKit — The #1 AI App for ServiceNow
- Running scan-debt in direct mode (ollama)...
# TECHNICAL DEBT REPORT
=====================
Scope: demo2 instance (limited data provided)
Date: 2024-01-15
Analysis Type: Partial assessment (data limitations apply)
---
## ⚠️ DATA LIMITATIONS NOTICE
This analysis is incomplete due to truncated dataset. The provided samples lack:
- Script body contents
- Creation/last modified dates
- Reference counts
- ACL/security configurations
- Notification/transform configurations
- Script include API usage data
Findings below are based on available data only. Full analysis requires complete API exports.
---
## DEBT SUMMARY
| Category | Cou✔ Capability completed (4 data points gathered)
# TECHNICAL DEBT REPORT
Scope: Full instance (demo2)
Date: 2025-06-18
Analyst: NowAIKit
Capability: Technical Debt Analysis
---
## DEBT SUMMARY
| Category | Count | Est. Cleanup Effort |
|---------|-------|---------------------|
| Inactive artifacts | 3 | 30 min |
| Unreferenced Script Includes | 0 | 0 min |
| Duplicate artifacts | 0* | 0 min |
| Stale update sets | 0* | 0 min |
| Empty/stub scripts | 0 | 0 min |
| Orphaned records | 0* | 0 min |
| Deprecated API usage | 0* | 0 min |
| Debug/test artifacts | 0* | 0 min |
| TOTAL | 3 | 30 min |
*`*` = Cannot determine with provided sample data (not included in sample)
---
## DETAILED FINDINGS
### 1. INACTIVE ARTIFACTS
| Type | Name | Sys ID | Table | Last Modified | Days Inactive | Risk Level |
|------|------|--------|-------|---------------|----------------|------------|
| Scheduled Job | Update remediation status for stale test results | 0015cb165111f110f8771e2d9f98dba2 | scheduled_job | N/A | N/A | MEDIUM |
| Scheduled Job | Populate new CR Count Column | 0031c28773e40010a3c96039faf6a73e | scheduled_job | N/A | N/A | LOW |
| Scheduled Job | Delete Old Resource Types | 00d997fe4ce85110f87715198e6dcc17 | scheduled_job | N/A | N/A | LOW |
Evidence: All three scheduled_jobs have `"active": "false"`.
Recommendation: Remove all three immediately if not required. These represent legacy cleanup jobs likely from previous project phases.
Effort: Trivial (~5 min each = 15 min total)
---
### 2. UNREFERENCED SCRIPT INCLUDES
Status: Data not provided in sample inventory.
Recommendation: Run `list_script_includes` with reference scanning to identify unreferenced SI artifacts.
---
### 3. DUPLICATE ARTIFACTS
Status: Cannot determine without script body content.
Recommendation: Use `query_records` with script content extraction to compare for similarity thresholds.
---
### 4. STALE UPDATE SETS
Status: Data not provided.
Recommendation: Run `list_update_sets` and filter for `sys_state="in_progress"` or `sys_state="ready_for_publish"` with age > 30 days.
---
### 5. EMPTY & STUB SCRIPTS
Status: All sampled business_rules and client_scripts have functional names suggesting implementation.
... (129 more lines — full output truncated for screenshot)



