본문으로 건너뛰기
cccskills
무료GitHub에 공개

zero-tech-debt-auditor

Autonomous orchestrator that scans, refactors, and eradicates technical debt at the end of the development lifecycle to achieve a Zero Debt codebase / Orkestrator otonom untuk menghapus utang teknis sebelum rilis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Zero Tech Debt Auditor 🧹

English | Bahasa Indonesia


<a name="english"></a>

English

Description

Autonomous orchestrator that scans, refactors, and eradicates technical debt at the end of the development lifecycle to achieve a "Zero Debt" codebase before production release.

CRITICAL RULE: Applications are NOT considered "Production-Ready" until they pass the Zero Technical Debt (Zero Debt) audit. This skill must be invoked at the final stage of development.

Core Philosophy

Technical debt slows down future scaling. The zero-tech-debt-auditor acts as an autonomous SonarQube. It does not just report issues; it fixes them autonomously.

Trigger Conditions

  • Invoked at the final verification phase before deployment (Phase 9 of zero-to-prod).
  • When preparing an existing project for refactoring or technical debt elimination.
  • When running comprehensive code health, deduplication, and dead code cleanup sweeps.

Audit Dimensions

1. Code Duplication & DRY Enforcement

  • Scan the entire codebase for repeated logic.
  • Extract duplicated UI elements into reusable generic components.
  • Extract duplicated business logic into shared utility functions or custom hooks.

2. Dead Code Elimination (Knip Protocol)

  • Identify and remove unused files, exports, dependencies, and types.
  • Review package.json and remove any library that is not actively imported.

3. Type Safety Rigidity (TypeScript Strictness)

  • Search for any or @ts-ignore and replace them with strict Zod schemas, discriminated unions, or generic types.
  • Ensure all function returns are explicitly typed.

4. Hardcoded Secrets & Magic Numbers

  • Audit the codebase for hardcoded API URLs, keys, or "magic numbers" (e.g., const timeout = 5000;).
  • Refactor them into centralized constant files (constants.ts) or environment variables (process.env).

5. Test Coverage Handoff

  • Ensure that critical business logic (e.g., payment webhooks, auth guards) have at least basic unit tests.
  • If tests are missing, automatically generate them.

Execution Protocol

When triggered, the Swarm Director must:

  1. Analyze: Read the entire src directory.
  2. Report: Generate a TECH_DEBT_REPORT.md (Artifact) listing the violations found.
  3. Eradicate: Autonomously edit the files to fix the violations.
  4. Verify: Run npm run lint and npm run build to ensure the eradications did not break the app.

Implementation Examples

1. Knip Dead-Code Audit Command & Config

{
  "$schema": "https://unpkg.com/knip@5/schema.json",
  "entry": ["src/index.ts", "src/cli.ts"],
  "project": ["src/**/*.ts", "src/**/*.tsx"],
  "ignoreDependencies": ["@types/*"]
}

2. Automated Zero-Debt Pre-Release Audit Script

#!/usr/bin/env bash
set -euo pipefail

echo "🧹 Running Zero Technical Debt Quality Sweeps..."

# 1. Detect unused exports, dead files, and unlisted dependencies
npx knip --production

# 2. Strict type-safety scan (fail on 'any' or '@ts-ignore')
npx tsc --noEmit --strict

# 3. Enforce Sovereign Anti-Slop Directive
node scripts/check-anti-slop.js --strict

echo "✅ Zero Technical Debt Audit Passed: Codebase is 100% production-ready."

Orchestration & Integration

  • Connected to zero-to-prod-orchestrator: Acts as Phase 9 (Final Handoff).
  • Connected to biome-linter-formatter-expert: Uses strict linting rules to enforce consistency.
  • Connected to autonomous-tdd-debugger: Fixes any tests broken during the refactoring process.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Deskripsi

Orkestrator otonom yang memindai, melakukan refactoring, dan menghapus utang teknis (technical debt) di akhir siklus hidup pengembangan untuk mencapai basis kode "Zero Debt" sebelum rilis ke produksi.

ATURAN KRUSIAL: Aplikasi TIDAK dianggap "Siap Produksi" sampai lulus audit Zero Technical Debt. Skill ini wajib dijalankan pada tahap akhir pengembangan.

Filosofi Utama

Utang teknis memperlambat skalabilitas masa depan. zero-tech-debt-auditor bertindak seperti SonarQube otonom. Bukan hanya melaporkan masalah, melainkan memperbaikinya secara otonom.

Kondisi Pemicu

  • Dijalankan pada fase verifikasi akhir sebelum peluncuran (Fase 9 zero-to-prod).
  • Saat mempersiapkan proyek yang sudah ada untuk pembersihan atau refaktorisasi utang teknis.
  • Saat melakukan pembersihan menyeluruh terhadap kode mati, duplikasi, dan inkonsistensi tipe.

Dimensi Audit

1. Duplikasi Kode & Penegakan DRY

  • Pindai seluruh codebase untuk logika berulang.
  • Ekstrak elemen UI yang berulang menjadi komponen generic yang dapat digunakan kembali.
  • Ekstrak logika bisnis yang berulang ke fungsi utilitas bersama atau custom hook.

2. Eliminasi Kode Mati (Protokol Knip)

  • Identifikasi dan hapus file, ekspor, dependensi, dan tipe yang tidak terpakai.
  • Tinjau package.json dan hapus dependensi yang tidak pernah diimpor.

3. Ketelitian Tipe (TypeScript Strictness)

  • Cari penggunaan any atau @ts-ignore dan ganti dengan skema Zod, discriminated unions, atau tipe generic yang ketat.
  • Pastikan semua nilai kembalian fungsi memiliki tipe eksplisit.

4. Kunci Rahasia & Angka Ajaib (Magic Numbers)

  • Audit codebase untuk URL API, kunci rahasia, atau konstanta ajaib yang di-hardcode.
  • Refaktor ke dalam file konstanta terpusat (constants.ts) atau variabel lingkungan (process.env).

5. Cakupan Pengujian

  • Pastikan logika bisnis penting (seperti webhook pembayaran, penjaga autentikasi) memiliki unit test dasar.
  • Buat test otomatis jika belum ada.

Protokol Eksekusi

  1. Analisis: Pindai seluruh direktori src.
  2. Laporan: Buat artifak TECH_DEBT_REPORT.md yang merinci pelanggaran yang ditemukan.
  3. Pemberantasan: Edit file secara mandiri untuk memperbaiki masalah.
  4. Verifikasi: Jalankan linting dan build untuk memastikan perbaikan tidak merusak aplikasi.

Integrasi Orkestrasi

  • Terhubung ke zero-to-prod-orchestrator: Bertindak sebagai Fase 9 (Serah Terima Akhir).
  • Terhubung ke biome-linter-formatter-expert: Memakai aturan linting ketat untuk menjaga konsistensi.
  • Terhubung ke autonomous-tdd-debugger: Memperbaiki pengujian yang terganggu selama proses refactoring.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug802026년 10월 19일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고