スキル一覧に戻る
jagreehal

entropy-loop

by jagreehal

0🍴 0📅 2026年1月14日
GitHubで見るManusで実行

SKILL.md


name: entropy-loop description: "Iteratively reduce code entropy by fixing smells and improving quality. Use when: cleanup, code smells, entropy, refactor loop, baldrick entropy. Triggers on: entropy, cleanup, code smells, reduce entropy."

Entropy Reduction Loop

Iteratively scan and fix code smells to improve codebase quality.

Philosophy: Impactful cleanup over nitpicking. Focus on changes that matter.


The Job

  1. Scan codebase for code smells
  2. Identify ONE smell to fix
  3. Fix with minimal changes
  4. Run tests to verify
  5. Commit the fix
  6. Repeat until no more meaningful improvements

Iteration Flow

┌─────────────────────────────────────────────────┐
│ 1. Scan for code smells                         │
│ 2. If no meaningful smells → COMPLETE           │
│ 3. Pick ONE smell to fix                        │
│ 4. Fix with minimal changes                     │
│ 5. Run tests to verify                          │
│ 6. Commit the fix                               │
│ 7. Append to progress.txt                       │
│ 8. Loop back to step 1                          │
└─────────────────────────────────────────────────┘

Code Smells to Look For

High Impact:

  • Duplicate code that should be a function
  • Unused exports and dead code
  • Overly complex functions (break them down)
  • Inconsistent patterns (use the established pattern)

Medium Impact:

  • Missing type annotations
  • Unreachable code branches
  • Deeply nested conditionals
  • Long parameter lists

Low Impact (skip unless asked):

  • Minor formatting
  • Comment improvements
  • Variable renaming (unless confusing)

Priority Order

  1. Unused code - Remove dead code first
  2. Duplicates - Extract shared logic
  3. Complexity - Break down large functions
  4. Inconsistency - Align with patterns
  5. Types - Add missing annotations

Progress Format

Append to progress.txt after each fix:

## Entropy Fix - [Date/Time]
- Smell: Duplicate email validation in 3 files
- Fix: Extracted to `src/utils/validation.ts`
- Files: auth.ts, profile.ts, settings.ts
- Impact: Reduced code by 45 lines
---

Stop Condition

When no more meaningful improvements exist:

  1. Output: <promise>COMPLETE</promise>

"Meaningful" means:

  • Reduces actual complexity
  • Improves maintainability
  • Removes real duplication
  • NOT just cosmetic changes

Example Usage

User: "Run entropy loop to clean up the codebase"

The skill will:

  1. Scan for code smells
  2. Fix one smell per iteration
  3. Continue until codebase is clean

Checklist Per Iteration

  • Identified ONE meaningful code smell
  • Fix is minimal and focused
  • Tests still pass
  • Committed the fix
  • Documented in progress.txt
  • Did NOT make unrelated changes

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です