- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill tech-debt-audit -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill tech-debt-audit -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill tech-debt-audit -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add omagents/omagents --skill tech-debt-audit -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/omagents/omagents/tree/HEAD/packages/core/skills/tech-debt-auditTừ nhà phát hành
Systematically scan a codebase for technical debt using a durable task queue. Each audit category is scanned independently, findings are collected, and a prioritized report is generated.
Initialize the loop with one task per audit category:
loop_engine.py init tech-debt-audit '[
{"category": "todo-fixme", "description": "Scan for TODO/FIXME/HACK comments"},
{"category": "duplication", "description": "Find duplicated code blocks"},
{"category": "complexity", "description": "Identify complex functions"},
{"category": "dependencies", "description": "Check for outdated dependencies"},
{"category": "missing-tests", "description": "Find source files without tests"},
{"category": "inconsistencies", "description": "Detect inconsistent patterns"}
]'
Repeat until next returns null:
Step 1: Get next task
loop_engine.py next tech-debt-audit
If output is null, go to Phase 3.
Step 2: Scan for the category
Execute the appropriate scan:
# TODO/FIXME
grep -rn "TODO\|FIXME\|HACK\|XXX\|WORKAROUND" --include="*.py" --include="*.ts" --include="*.js" --include="*.go" --include="*.rs" --include="*.java"
# Complex functions (Python example)
grep -n "def " --include="*.py" -A 50 | head -100
# Outdated dependencies
npm outdated 2>/dev/null || pip list --outdated 2>/dev/null || true
# Missing tests
glob "**/*.{py,ts,js}"
# Compare source files with test file patterns
Step 3: Collect findings
For each finding, record:
git blame for TODOs)Step 4: Record result
loop_engine.py complete tech-debt-audit <id> "Found 12 TODOs (2 High, 7 Medium, 3 Low), 3 FIXMEs (1 Critical)"
If the scan fails:
loop_engine.py fail tech-debt-audit <id> "Could not run npm outdated: package.json not found"
loop_engine.py summary tech-debt-audit
Generate a consolidated report:
## Tech Debt Audit Report
**Overall Health:** [Good/Fair/Poor/Critical]
| Category | Findings | Severity |
|----------|----------|----------|
| TODO/FIXME | 15 items | 1 Critical, 2 High, 12 Medium |
| Code Duplication | 5 blocks | 2 High, 3 Medium |
| Complex Functions | 8 functions | 3 High, 5 Medium |
| Outdated Dependencies | 4 packages | 1 High, 3 Low |
| Missing Tests | 12 files | 5 High, 7 Low |
| Inconsistent Patterns | 3 issues | 3 Low |
### Prioritized Action Items
1. [CRITICAL] Fix race condition in src/cache.py:15 (FIXME, 3 months old)
2. [HIGH] Add rate limiting in src/auth.py:42 (TODO, 6 months old)
3. [HIGH] Add tests for 5 core modules
4. [MEDIUM] Refactor 3 functions over 100 lines
5. [LOW] Update 3 outdated dependencies
Systematically audit a codebase for technical debt using a durable loop workflow. Each audit category is scanned, findings collected, and recorded before moving to the next. Trigger when the user says
---name: tech-debt-auditdescription: Systematically audit a codebase for technical debt using a durable loop workflow. Each audit category is…---# packages/core/skills/tech-debt-audit/SKILL.mdTổng quan
Systematically audit a codebase for technical debt using a durable loop workflow. Each audit category is scanned, findings collected, and recorded before moving to the next. Trigger when the user says 'tech debt audit', 'audit code', 'code health check'.
Câu hỏi thường gặp
Tải packages/core/skills/tech-debt-audit/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/omagents/omagents.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.