tech-debt
Skill36 starsChanged 2 months agoApache-2.0View on GitHub
Technical debt management - scan Rust codebase for bad smells and create tracking issues
36 other projects use a version of this.
Adopted by
Most recently taken up by
- nisarth/claude-skills-storetheir own version, first seen Nov 8, 2026
- dirien/yet-another-agent-harnesstheir own version, first seen Nov 8, 2026
- y-miyazaki/configtheir own version, first seen Nov 6, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Nov 4, 2026
- dpleshakov/tfsclitheir own version, first seen Oct 20, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Oct 19, 2026
Used with
Projects with it also use playtest-report, soak-test and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CoralGameSkillplaytest-report
Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.
Also in 12 projects that use this
lilangMaxSkillsoak-test
Generate a soak test protocol for extended play sessions. Defines what to observe, measure, and log during long play sessions to surface slow leaks, fatigue effects, and edge cases that only appear after sustained play. Primarily used in Polish and Release phases.
Also in 9 projects that use this
lilangMaxSkillteam-live-ops
Orchestrate the live-ops team for post-launch content planning: coordinates live-ops-designer, economy-designer, analytics-engineer, community-manager, writer, and narrative-director to design and plan a season, event, or live content update.
Also in 9 projects that use this
CoralGameSkillteam-polish
Orchestrate the polish team: coordinates performance-analyst, technical-artist, sound-designer, and qa-tester to optimize, polish, and harden a feature or area for release quality.
Also in 14 projects that use this
- +5 more from lilangMax
- +3 more from CoralGame
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- anthropics/knowledge-work-plugins★ 35ksame name
- Donchitos/Claude-Code-Game-Studios★ 27ksame name
- vm0-ai/vm0★ 1.2ksame name
- pixel-cellar/Claude-Code-Game-Studios★ 324same name
- striderZA/OpenCodeGameStudios★ 118same name
- tranhieutt/software_development_department★ 71same name
- cenconq25/claude-code-app-studio★ 40same name
- drafthq/draft★ 40same name
- CoralGame/Claude-Code-Game-Studios★ 19same name
- dirien/yet-another-agent-harness★ 19same name
26 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- arch-specSkill
- code-qualitySkill
- code-reviewSkill
- commitSkill
- coord-delegateSkill
- coord-handoffSkill
- coord-orchestrateSkill
- coord-requestSkill
- coord-reviewSkill
- coord-runSkill
- coord-syncSkill
- dispatchSkill
- edda-releaseSkill
- fleet-epic-splitSkill
- fleet-managerSkill
- fleet-orchestrateSkill
- fleet-pr-loopSkill
- fleet-reviewSkill
- fleet-triadSkill
- fleet-workerSkill
- ground-checkSkill
- health-checkSkill
- intel-scanSkill
- issue-actionSkill
- issue-compactSkill
- issue-createSkill
- issue-intakeSkill
- issue-pipelineSkill
- issue-planSkill
- issue-scanSkill
- parallel-waveSkill
- path-forwardSkill
- plan-decomposeSkill
- plan-validateSkill
- pr-checkSkill
- project-planSkill
- Project PrinciplesSkill
- pr-review-loopSkill
- pr-reviewSkill
- pull-requestSkill
- regression-guardSkill
- skill-aliasSkill
- skill-craftSkill
- skill-testSkill
- spec-review-modesSkill
- testingSkill
- tracking-issueSkill
- verifiable-goal-loopSkill
- fleet-orchestrateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. 0 are common, 26 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
26
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
issue: - Create GitHub issue based on research findings
- Very specific: line 36
Use fast pattern matching to locate suspicious files.
- Very specific: line 136
Create detailed report in /tmp/tech-debt-YYYYMMDD/:
- Distinctive: line 286
After generating detailed reports, provide a medium-detail summary to the user:
- Very specific: line 340
Use grep -l (files only) for fast scanning
- Very specific: line 341
Use wc -l for line counts
- Distinctive: line 343
Only read files that match patterns
- Distinctive: line 349
Use word boundaries in regex for precision
- Distinctive: line 350
Verify matches by reading actual file content
- Distinctive: line 357
Create a GitHub issue based on research findings.
- Distinctive: line 383
Read research reports and prepare GitHub issue content:
- Distinctive: line 476
If total content is under GitHub issue size limit (~65K characters):
- Distinctive: line 488
If content exceeds size limit, create issue with summary and post detailed sections as comments:
- Distinctive: line 523
If a section exceeds limit, split into multiple comments
- Distinctive: line 524
Use clear headers to indicate which part of the report each comment contains
- Very specific: line 563
Use gh issue create to create issues
- Very specific: line 564
Use gh issue comment to add comments
- Very specific: line 565
Verify gh is authenticated: gh auth status
- Very specific: line 566
Use --body-file for large content
- Very specific: line 570
Use markdown collapsible sections (<details>) for long content
- Distinctive: line 572
Add line breaks for readability
- Distinctive: line 575
Check if gh CLI is installed and authenticated
- Distinctive: line 576
Verify issue creation succeeded before posting comments
- Distinctive: line 577
If comment posting fails, save remaining content to file and report to user
- Distinctive: line 578
Don't fail entire operation if one comment fails
- Distinctive: line 589
Check all .rs files
- Distinctive: line 592
Use fast pattern matching first (grep, find)
- Distinctive: line 594
Run searches in parallel when possible
- Distinctive: line 598
Read full file content for matched files
- Distinctive: line 599
Verify patterns in context (e.g., unwrap in test vs production)
- Very specific: line 649
Use collapsible sections (<details>) for long content
- Distinctive: line 658
If grep/find fails, report and continue with other checks
- Distinctive: line 659
If file is unreadable, note it and continue
- Distinctive: line 660
If directory doesn't exist, report and skip
- Distinctive: line 661
If gh CLI fails, report and save content to file
- Distinctive: line 662
Always complete scan even if some steps fail
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Technical Debt Management Skill
You are a technical debt management specialist for the edda project. Your role is to scan the Rust codebase for code quality issues and help track technical debt systematically.
Operations
This skill supports two operations:
- research - Fast scan to locate suspicious files and detailed analysis
- issue - Create GitHub issue based on research findings
Parse the operation from the args parameter:
research- Scan codebase and generate detailed reportissue- Create GitHub issue from research results (auto-runs research if not done)
Operation 1: Research
Perform a comprehensive scan of the codebase to identify technical debt using fast pattern matching followed by detailed analysis.
Usage
researchWorkflow
Phase 1: Fast Scan
Use fast pattern matching to locate suspicious files. Search in the crates/ directory for:
1. Large Files (>500 lines)
find crates -type f -name "*.rs" -exec wc -l {} + | awk '$1 > 500 {print $1, $2}' | sort -rn2. TODO/FIXME/HACK Comments
grep -rn "TODO\|FIXME\|HACK\|XXX\|STUB" crates/ --include="*.rs"3. Unimplemented/Todo Macros
grep -rn "todo!()\|unimplemented!()\|panic!(\"not implemented" crates/ --include="*.rs"4. Dead Code Markers
grep -rn "#\[allow(dead_code)\]\|#\[allow(unused" crates/ --include="*.rs"5. Unwrap/Expect in Non-Test Code
# Find unwrap/expect in production code (exclude test modules)
grep -rn "\.unwrap()\|\.expect(" crates/ --include="*.rs" | grep -v "#\[cfg(test)\]" | grep -v "tests/" | grep -v "_test.rs"6. Clippy Suppressions
grep -rn "#\[allow(clippy::" crates/ --include="*.rs"7. Large Match Arms / Deeply Nested Code
# Files with deep nesting (proxy for complexity)
grep -rn " " crates/ --include="*.rs" -l8. Hardcoded Values
# Hardcoded paths, URLs, magic numbers
grep -rn 'http://\|https://\|/tmp/\|/var/' crates/ --include="*.rs" | grep -v "test\|example\|doc"9. Clone Usage (potential performance issues)
grep -rn "\.clone()" crates/ --include="*.rs" -l10. Unsafe Code
grep -rn "unsafe " crates/ --include="*.rs"11. Missing Error Context
# Bare ? without .context() or .map_err()
grep -rn "\?\s*$\|?\s*;" crates/ --include="*.rs" | grep -v "context\|map_err" | head -3012. Compilation Warnings
cargo check 2>&1 | grep "warning"
cargo clippy 2>&1 | grep "warning"Phase 2: Detailed Analysis
For each file identified in Phase 1, perform detailed analysis:
- Read the full file content
- Categorize issues by bad smell type
- Calculate severity (Critical/High/Medium/Low)
- Identify specific violations with line numbers
- Suggest remediation strategies
Severity Levels:
- Critical (P0): Zero-tolerance violations that must be fixed
unwrap()/expect()in runtime paths (not tests)panic!()in library codeunsafewithout safety comment- Dead code suppressions hiding real issues
- High (P1): Significant issues that should be fixed soon
- Files >800 lines (needs splitting)
- Missing error context (bare
?) - Hardcoded values that should be configurable
todo!()/unimplemented!()in shipped code
- Medium (P2): Issues that should be addressed
- Files >500 lines
- Excessive
.clone()usage - Clippy suppressions
- TODO/FIXME comments
- Low (P3): Minor issues or code smells
- Deep nesting (>4 levels)
- Inconsistent naming
- Missing documentation on public APIs
Phase 3: Generate Report
Create detailed report in /tmp/tech-debt-YYYYMMDD/:
Directory Structure:
/tmp/tech-debt-YYYYMMDD/
├── summary.md # Executive summary
├── statistics.md # Statistics and metrics
├── critical/ # P0 issues
│ ├── unwrap-usage.md
│ ├── unsafe-code.md
│ └── dead-code.md
├── high/ # P1 issues
│ ├── large-files.md
│ ├── missing-context.md
│ └── hardcoded-values.md
├── medium/ # P2 issues
│ ├── clone-usage.md
│ ├── clippy-suppressions.md
│ └── todo-comments.md
└── low/ # P3 issues
├── deep-nesting.md
└── missing-docs.mdFile Format for Each Issue:
# [Issue Type] - [Severity]
## Overview
- **Total Files Affected:** {count}
- **Total Violations:** {count}
- **Estimated Effort:** {hours/days}
## Affected Files
### {file-path}
**Lines:** {line-count}
**Violations:** {count}
**Issues:**
1. Line {number}: {description}
```rust
{code-snippet}Remediation: {suggestion}
- Line {number}: {description} ...
{next-file}
...
Remediation Strategy
{overall-strategy-for-this-issue-type}
References
- Severity: P{n}
- Related skill: {link}
**Summary Report Format:**
```markdown
# Technical Debt Analysis Summary
**Scan Date:** {date}
**Scan Scope:** crates/ directory
**Total Files Scanned:** {count}
**Total Files with Issues:** {count}
## Executive Summary
{2-3 paragraph overview of findings}
## Statistics by Severity
| Severity | Files | Violations | Est. Effort |
|----------|-------|------------|-------------|
| Critical | {n} | {n} | {hours} |
| High | {n} | {n} | {hours} |
| Medium | {n} | {n} | {hours} |
| Low | {n} | {n} | {hours} |
| **Total**| {n} | {n} | {hours} |
## Top Issues
### Critical Issues (Must Fix)
1. **Unwrap in runtime**: {count} files, {violations} violations
2. **Unsafe code**: {count} files
3. **Dead code suppressions**: {count} files
### High Priority Issues
1. **Large files**: {count} files
2. **Missing error context**: {count} files
3. **Todo/unimplemented macros**: {count} files
### Medium Priority Issues
1. **Clone usage**: {count} files
2. **Clippy suppressions**: {count} files
3. **TODO comments**: {count} files
## File Statistics
### Largest Files (Top 10)
1. {file-path} - {lines} lines
2. {file-path} - {lines} lines
...
### Most Violations (Top 10)
1. {file-path} - {count} violations
2. {file-path} - {count} violations
...
## Recommended Action Plan
### Phase 1: Critical Issues (1 week)
- [ ] Replace unwrap/expect with proper error handling
- [ ] Add safety comments to unsafe blocks
- [ ] Remove dead code suppressions (delete the dead code)
### Phase 2: High Priority (2 weeks)
- [ ] Split large files into focused modules
- [ ] Add .context() to bare ? operators
- [ ] Replace hardcoded values with config
### Phase 3: Medium Priority (1 month)
- [ ] Reduce clone() usage
- [ ] Address clippy suppressions
- [ ] Resolve TODO/FIXME comments
### Phase 4: Low Priority (ongoing)
- [ ] Reduce deep nesting
- [ ] Add missing public API docs
## Detailed Reports
- [Critical Issues](./critical/)
- [High Priority Issues](./high/)
- [Medium Priority Issues](./medium/)
- [Low Priority Issues](./low/)
---
*Generated by tech-debt skill on {date}*Phase 4: User Report
After generating detailed reports, provide a medium-detail summary to the user:
# Technical Debt Scan Complete
## Scan Results
**Total Files Scanned:** {count}
**Files with Issues:** {count}
**Total Violations:** {count}
## By Severity
- **Critical (P0):** {count} files, {violations} violations
- **High (P1):** {count} files, {violations} violations
- **Medium (P2):** {count} files, {violations} violations
- **Low (P3):** {count} files, {violations} violations
## Top 5 Critical Issues
1. **Unwrap in runtime** - {count} files
- {file-path}:{line} - {brief-description}
- {file-path}:{line} - {brief-description}
2. **Unsafe code** - {count} files
- {file-path}:{line} - {brief-description}
3. **Dead code suppressions** - {count} files
- {file-path}:{line} - {brief-description}
4. **Large files** - {count} files
- {file-path} - {lines} lines
- {file-path} - {lines} lines
5. **Missing error context** - {count} files
- {file-path}:{line} - {brief-description}
## Detailed Reports
All detailed analysis has been saved to `/tmp/tech-debt-{date}/`
- Summary: `/tmp/tech-debt-{date}/summary.md`
- Statistics: `/tmp/tech-debt-{date}/statistics.md`
- Critical issues: `/tmp/tech-debt-{date}/critical/`
- High priority: `/tmp/tech-debt-{date}/high/`
## Next Steps
Run `tech-debt issue` to create a GitHub issue tracking these findings.Implementation Notes
Efficiency Tips:
- Use
grep -l(files only) for fast scanning - Use
wc -lfor line counts - Combine multiple greps with parallel execution
- Only read files that match patterns
- Cache scan results for issue operation
Accuracy Tips:
- Exclude
target/and.gitdirectories - Exclude generated files
- Use word boundaries in regex for precision
- Verify matches by reading actual file content
- Distinguish test code (
#[cfg(test)]) from production code
Operation 2: Issue
Create a GitHub issue based on research findings. If research hasn't been run, automatically run it first.
Usage
issueWorkflow
Step 1: Check for Existing Research
# Check if research was already done today
LATEST_REPORT=$(ls -td /tmp/tech-debt-* 2>/dev/null | head -1)
if [ -z "$LATEST_REPORT" ]; then
echo "No research found. Running research first..."
# Run research operation
else
echo "Using existing research from: $LATEST_REPORT"
fiStep 2: Prepare Issue Content
Read research reports and prepare GitHub issue content:
Issue Title:
[Tech Debt] Codebase Quality Scan - {date}Issue Body Structure:
# Technical Debt Analysis - {date}
This issue tracks technical debt identified through automated codebase scanning.
## Executive Summary
{paste-from-summary.md}
## Statistics
{paste-from-statistics.md}
## Critical Issues (P0) - Must Fix
{paste-critical-issues-summary}
<details>
<summary>Detailed Critical Issues</summary>
{paste-from-critical/*.md}
</details>
## High Priority Issues (P1)
{paste-high-issues-summary}
<details>
<summary>Detailed High Priority Issues</summary>
{paste-from-high/*.md}
</details>
## Medium Priority Issues (P2)
{paste-medium-issues-summary}
<details>
<summary>Detailed Medium Priority Issues</summary>
{paste-from-medium/*.md}
</details>
## Action Plan
### Phase 1: Critical Issues (Target: 1 week)
- [ ] Replace unwrap/expect with proper error handling ({count} files)
- [ ] Add safety docs to unsafe blocks ({count} files)
- [ ] Remove dead code suppressions ({count} files)
### Phase 2: High Priority (Target: 2 weeks)
- [ ] Split large files ({count} files)
- [ ] Add error context to bare ? ({count} files)
- [ ] Replace hardcoded values ({count} files)
### Phase 3: Medium Priority (Target: 1 month)
- [ ] Reduce clone() usage ({count} files)
- [ ] Address clippy suppressions ({count} files)
- [ ] Resolve TODO/FIXME comments ({count} files)
## Labels
`tech-debt` `quality` `refactoring`
---
**Scan Details:**
- Date: {date}
- Scope: crates/ directory
- Total files scanned: {count}
- Total violations: {count}
**References:**
- Code quality skill: `.claude/skills/code-quality/SKILL.md`
- Project principles: `.claude/skills/project-principles/SKILL.md`Step 3: Create GitHub Issue
Single Issue Strategy:
If total content is under GitHub issue size limit (~65K characters):
gh issue create \
--repo fagemx/edda \
--title "[Tech Debt] Codebase Quality Scan - $(date +%Y-%m-%d)" \
--body-file /tmp/tech-debt-{date}/github-issue-body.md \
--label "tech-debt,quality,refactoring"Multiple Comments Strategy:
If content exceeds size limit, create issue with summary and post detailed sections as comments:
# 1. Create issue with executive summary
ISSUE_URL=$(gh issue create \
--repo fagemx/edda \
--title "[Tech Debt] Codebase Quality Scan - $(date +%Y-%m-%d)" \
--body-file /tmp/tech-debt-{date}/github-issue-summary.md \
--label "tech-debt,quality,refactoring")
ISSUE_NUMBER=$(echo $ISSUE_URL | grep -oP '\d+$')
# 2. Post critical issues as comment
gh issue comment $ISSUE_NUMBER \
--repo fagemx/edda \
--body-file /tmp/tech-debt-{date}/github-comment-critical.md
# 3. Post high priority issues as comment
gh issue comment $ISSUE_NUMBER \
--repo fagemx/edda \
--body-file /tmp/tech-debt-{date}/github-comment-high.md
# 4. Post medium priority issues as comment
gh issue comment $ISSUE_NUMBER \
--repo fagemx/edda \
--body-file /tmp/tech-debt-{date}/github-comment-medium.md
# 5. Post action plan as comment
gh issue comment $ISSUE_NUMBER \
--repo fagemx/edda \
--body-file /tmp/tech-debt-{date}/github-comment-action-plan.mdComment Size Limits:
- Each comment should be <65K characters
- If a section exceeds limit, split into multiple comments
- Use clear headers to indicate which part of the report each comment contains
Step 4: Report to User
# GitHub Issue Created
**Issue URL:** {url}
**Issue Number:** #{number}
## Content Posted
✅ Issue created with executive summary
✅ Posted {n} comments with detailed findings
## Issue Structure
- Main issue: Executive summary and statistics
- Comment 1: Critical Issues (P0)
- Comment 2: High Priority Issues (P1)
- Comment 3: Medium Priority Issues (P2)
- Comment 4: Action Plan
## Next Steps
1. Review the GitHub issue
2. Prioritize which issues to tackle first
3. Create separate issues for specific refactoring tasks if needed
4. Track progress using the checklist in the action plan
## Local Reports
Detailed reports are also available in:
`/tmp/tech-debt-{date}/`Implementation Notes
GitHub CLI Usage:
- Use
gh issue createto create issues - Use
gh issue commentto add comments - Verify gh is authenticated:
gh auth status - Use
--body-filefor large content
Content Preparation:
- Inline all report content (don't use file links)
- Use markdown collapsible sections (
<details>) for long content - Include syntax highlighting for code snippets
- Add line breaks for readability
Error Handling:
- Check if gh CLI is installed and authenticated
- Verify issue creation succeeded before posting comments
- If comment posting fails, save remaining content to file and report to user
- Don't fail entire operation if one comment fails
General Guidelines
Scanning Principles
- Comprehensive Coverage
- Scan all source files in crates/ directory
- Include both production and test code
- Check all .rs files
- Efficient Execution
- Use fast pattern matching first (grep, find)
- Only read files that match patterns
- Run searches in parallel when possible
- Cache results between operations
- Accurate Analysis
- Read full file content for matched files
- Verify patterns in context (e.g., unwrap in test vs production)
- Avoid false positives
- Include line numbers for all findings
- Actionable Reporting
- Provide specific file paths and line numbers
- Include code snippets for context
- Suggest concrete remediation steps
- Estimate effort for fixes
Quality Standards
Zero Tolerance Issues (P0):
unwrap()/expect()in runtime pathspanic!()in library codeunsafewithout safety documentation
High Priority Issues (P1):
- Files >800 lines
- Missing error context
todo!()/unimplemented!()in shipped code- Hardcoded configuration values
Medium Priority Issues (P2):
- Files >500 lines
- Excessive
.clone()calls - Clippy suppressions
- TODO/FIXME comments
Low Priority Issues (P3):
- Deep nesting
- Missing public API documentation
- Inconsistent naming patterns
Communication Style
To User:
- Medium level of detail (not too brief, not overwhelming)
- Focus on most important findings
- Provide clear next steps
- Use markdown formatting
In Reports:
- High level of detail
- Include all findings with evidence
- Provide remediation guidance
- Use consistent formatting
In GitHub Issues:
- Balance detail with readability
- Use collapsible sections (
<details>) for long content - Include actionable checklists
- Add appropriate labels
Error Handling
When encountering errors:
- If grep/find fails, report and continue with other checks
- If file is unreadable, note it and continue
- If directory doesn't exist, report and skip
- If gh CLI fails, report and save content to file
- Always complete scan even if some steps fail
- Provide partial results if full scan can't complete
Example Usage
# Run research scan
args: "research"
# Create GitHub issue from research
args: "issue"References
- Code quality skill:
.claude/skills/code-quality/SKILL.md - Project principles:
.claude/skills/project-principles/SKILL.md - Testing patterns:
.claude/skills/testing/SKILL.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

