inceptyon-labs/tenet-skills/tenet-debt
Claude Code and agent skill by inceptyon-labs/tenet-skills
- community
Checking that the SKILL.md file is still in the repository.
Audits TODO/FIXME debt, commented code, deprecated APIs, stubs, and temporary flags.
Install
npx vskill@latest install inceptyon-labs/tenet-skills/tenet-debtSKILL.md
The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-debt.
Tenet Debt — Technical Debt Auditor
"Debt compounds in silence."
Detects and ages technical debt markers across any language: TODO/FIXME/HACK/XXX comments, commented-out code blocks, deprecated API usage, stub implementations, and feature flags that outlived their "temporary" intent. All detection is grep-based with git blame aging, requiring no external toolchain dependencies.
Purpose
Technical debt is invisible until it compounds into a crisis. This skill surfaces debt systematically by scanning for known debt markers, aging them via git blame, and classifying severity by how long the debt has festered. A TODO from last week is healthy engineering practice; a TODO from two years ago is a lie.
Calibration — read first
Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).
A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.
Language Support Matrix
Toolchain Inputs
This skill does not consume .healthcheck/toolchain/ files. It operates independently using grep and git blame directly on the repository.
Comment Syntax Reference
The skill recognizes comment markers across languages:
| Pattern | Languages | |
|---|---|---|
// | JS, TS, Java, C, C++, C#, Go, Rust, Swift, Kotlin, Dart, Scala | |
# | Python, Ruby, Bash, YAML, TOML, Perl, R, Elixir, Terraform | |
-- | SQL, Lua, Haskell, Elm | |
/* ... */ | JS, TS, Java, C, C++, C#, Go, Rust, CSS, Swift, Kotlin | |
{- ... -} | Haskell | |
<!-- ... --> | HTML, XML, SVG, Vue, Svelte | |
''' / """ | Python (docstring abuse for commenting-out) | |
=begin / =end | Ruby |
Procedure
Step 0: Ensure Git Repository
If not a git repo, all findings default to minor severity since aging is impossible. Log a warning.
Step 1: Scan for TODO/FIXME/HACK/XXX Markers
Search the entire repo (respecting .gitignore) for debt markers:
For each match, capture:
- File path (repo-relative)
- Line number
- The full line content
- The marker type (TODO, FIXME, HACK, XXX, KLUDGE, WORKAROUND)
- Any inline annotation (e.g.,
TODO(username):,FIXME @jira-123)
Filter out false positives:
- Skip lines inside
node_modules/,vendor/,.git/,dist/,build/,__pycache__/,.venv/,venv/ - Skip lines in lockfiles (
package-lock.json,yarn.lock,Gemfile.lock,poetry.lock,go.sum,Cargo.lock) - Skip lines in generated files (check for
// Code generatedheader,@generated,auto-generated)
Step 2: Age Each Marker via Git Blame
For each debt marker found, determine its age:
Convert the epoch timestamp to a date and compute days elapsed:
Classify by age:
- < 90 days →
info(healthy engineering practice, no penalty) - 90-365 days →
minor(stale, should be addressed) - > 365 days →
major(chronic debt, likely forgotten)
Special escalation rules:
HACKorXXXmarkers > 90 days → escalate one tier (minor->major, major->critical)- Markers with a ticket reference (e.g.,
FIXME @JIRA-123) that is > 365 days →major(the ticket may itself be forgotten) - Markers in critical paths (auth, payment, data validation files) > 180 days → escalate one tier
Step 3: Detect Commented-Out Code Blocks
Scan for contiguous blocks of commented-out code (not documentation comments):
Code-like patterns inside comments:
- Assignment:
=,+=,-=,:= - Function calls:
word(,word.word( - Control flow:
if,else,for,while,return,switch - Brackets/braces:
{,},[,] - Semicolons at end of line:
;$ - Import/require:
import,require(,from,use,include
Algorithm:
- Walk each file line by line
- Track runs of consecutive comment lines (allowing up to 1 blank line gap)
- For runs of 5+ lines, check if >60% match code-like patterns
- If yes, flag as commented-out code
Severity for commented-out code:
- 5-15 lines →
minor - 16-50 lines →
major - 50+ lines →
major(with a note suggesting extraction or deletion)
Age the block using git blame on the first line of the block.
Step 4: Detect Deprecated API Usage
Scan for common deprecated API patterns:
JavaScript/TypeScript:
@deprecatedJSDoc tag in consumed code (not declarations)argumentskeyword in non-legacy contextsdocument.write(with (statements__proto__direct accessnew Buffer((deprecated since Node 6)url.parse((deprecated in favor ofnew URL())require('domain'),require('sys')
Python:
@deprecateddecoratorsimpmodule usage (useimportlib)optparse(useargparse)os.popen((usesubprocess)cgimodule (deprecated in 3.11)unittest.makeSuite(removed in 3.13)asyncio.get_event_loop()in scripts (useasyncio.run())typing.Dict,typing.List,typing.Optional(use builtins since 3.9)
Java:
@Deprecatedannotations on consumed methodsDate()constructor (usejava.time)StringBufferin non-threaded contexts (useStringBuilder)Vector(useArrayList)Hashtable(useHashMap)
Go:
// Deprecated:comment conventionioutilpackage (deprecated in Go 1.16)io/ioutil.ReadAll(useio.ReadAll)io/ioutil.ReadFile(useos.ReadFile)
General:
console.logused as debugging (in production code, not test files) — classify asinfoonly
Each deprecated API finding:
minorif the deprecated API still works in current runtime versionsmajorif the API is removed or scheduled for removal in the next major version
Step 5: Detect Stub Implementations
Scan for stub/placeholder implementations:
Stub patterns per language:
- JS/TS:
throw new Error("not implemented"),throw new Error("TODO"),return undefined // TODO - Python:
raise NotImplementedError,pass # TODO,... # placeholder - Go:
panic("not implemented"),panic("TODO"),return nil // stub - Rust:
unimplemented!(),todo!() - Java:
throw new UnsupportedOperationException() - C#:
throw new NotImplementedException()
Filter: Skip test files (stubs in tests are normal mocking patterns).
Severity:
- Stub in test file → skip (not a finding)
- Stub in non-test file < 90 days old →
minor - Stub in non-test file > 90 days old →
major - Stub in critical path (auth, payment, validation) →
majorregardless of age
Step 6: Detect Long-Lived Feature Flags
Scan for feature flag patterns that have been "temporary" for too long:
For each flag:
- Use
git blameto determine when the flag was introduced - Check if the flag is used in only one branch of a conditional (dead toggle — always on or always off)
- Check for comments like
// temporary,// remove after,// experiment
Severity:
- Flag < 90 days old →
info(active experiment, no penalty) - Flag 90-180 days with
// temporarycomment →minor - Flag > 180 days →
minor - Flag > 365 days →
major(this is permanent code pretending to be temporary)
Step 6b: Cross-Reference Hardcoded Credentials as Debt
Hardcoded credentials are primarily a secrets issue, but they are also technical debt — someone took a shortcut that was never cleaned up. Scan for patterns that the secrets skill would catch, but classify them through a debt lens:
If found, emit as:
major— "Hardcoded credential used instead of environment variable" (the debt dimension concerns itself with why the shortcut exists and when it should be fixed, not the security implication which the secrets skill handles)- Use git blame to age these — if > 90 days, the shortcut has calcified into debt
This is intentional overlap with tenet-secrets. The secrets skill flags the security severity; the debt skill flags the engineering practice. The dashboard can deduplicate by file+line if desired.
Step 7: Compute Score
Apply the standard scoring formula:
Info findings do NOT affect the score.
Step 8: Write Report
Write the dimension report to .healthcheck/reports/debt.json:
Each finding follows the schema in shared/schema.json and includes a fix_prompt following the template in shared/fix_prompt_template.md.
Confidence Tiers
| Detection Method | Confidence | |
|---|---|---|
| TODO/FIXME/HACK/XXX grep match + git blame age | deterministic | |
| Commented-out code block (heuristic ratio) | heuristic | |
| Deprecated API usage (pattern match) | native | |
| Stub implementation (pattern match) | native | |
| Feature flag age (git blame) | heuristic |
fix_prompt Examples
Example 1: Old TODO Comment (major — over 365 days)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tenet-debt/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-debt)