Pdd Entropy Reductionのロゴ

Pdd Entropy Reduction

コミュニティ
wonderslife
pdd-entropy-reduction

システムの劣化を防ぐため、技術的負債を継続的に監視して解消するPDD Entropy Reduction Agentです。コードの整理、ドキュメントの更新、技術的負債の管理、アーキテクチャの整合、エントロピーの低減、ガベージコレクションが必要な場合に自動で実行されます。主な目的:エージェントを定期的に実行し、ドキュメントの不整合やアーキテクチャ制約への違反を検出することで、システムの「エントロピー増大」と「劣化」に対処します。実行される場面:- ユーザーが「エントロピーを低減」「技術的負債を整理」「コードを整理」「ガベージコレクション」と依頼した場合 - ドキュメントとコードの整合性確認を依頼された場合 - アーキテクチャ制約の確認を依頼された場合 - 技術的負債の監査を依頼された場合 - スケジュール実行(毎週を推奨) - コードのコミット後に自動実行(任意) - PRのマージ後に自動実行(任意)中国語でのトリガーにも対応:エントロピー低減、技術的負債の整理、コード整理、ドキュメント更新、技術的負債管理、アーキテクチャ整合、ガベージコレクション、PDDエントロピー低減。

概要

公開者wonderslife
リポジトリpdd-skills
スキル名pdd-entropy-reduction
スター
41
フォーク
11
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    wonderslifeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pdd Entropy Reduction」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wonderslife/pdd-skills/tree/main/pdd-entropy-reduction
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wonderslife/pdd-skills.git /tmp/pdd-skills
mkdir -p .claude/skills
cp -r /tmp/pdd-skills/pdd-entropy-reduction .claude/skills/pdd-entropy-reduction
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPdd Entropy Reductionを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPdd Entropy Reductionを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pdd Entropy Reductionは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

PDD Entropy Reduction Agent

Core Philosophy

"Technical debt is like a high-interest loan: it's better to continuously repay the debt in small amounts than to let it accumulate and then painfully resolve it all at once." —— OpenAI Harness Engineering

In the PDD (PRD-Driven Development) methodology, the core objective of the entropy reduction mechanism is to combat system "entropy increase" and "decay" by periodically running agents to discover documentation inconsistencies or architecture constraint violations.

Natural Trend of Entropy Increase

Entropy Increase (Natural Trend):
- Code decay: Duplicate code, overly long functions, inconsistent naming
- Documentation obsolescence: Code and documentation out of sync, outdated comments
- Technical debt accumulation: Unhandled TODOs, unoptimized temporary solutions
- Architecture drift: Violating dependency directions, blurred boundaries
- Test deficiency: Decreasing coverage, outdated tests

Entropy Reduction (Requires Energy Input):
- Refactoring: Eliminate duplication, simplify complexity
- Documentation updates: Synchronize documentation with code
- Technical debt repayment: Handle TODOs, optimize temporary solutions
- Architecture alignment: Fix violations, strengthen boundaries
- Test supplementation: Increase coverage, update tests

Four Professional Sub-Skills

The entropy reduction agent coordinates four professional sub-skills to form a complete entropy reduction closed loop:

┌─────────────────────────────────────────────────────────────┐
│                  pdd-entropy-reduction                       │
│                      (Main Coordinator)                      │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐│
│  │ pdd-doc-    │  │ expert-arch │  │ expert-     │  │ expert-auto ││
│  │ gardener    │  │ -enforcer   │  │ entropy-    │  │ -refactor   ││
│  │             │  │             │  │ auditor     │  │             ││
│  │ Document    │  │ Architecture│  │ Entropy     │  │ Auto        ││
│  │ Gardener    │  │ Enforcer    │  │ Auditor     │  │ Refactor    ││
│  └─────────────┘  └─────────────┘  └─────────────┘  └─────────────┘│
│                                                             │
└─────────────────────────────────────────────────────────────┘

1. pdd-doc-gardener (Document Gardener)

Responsibility: Periodically scans the docs/ directory in the code repository to identify outdated or deprecated documentation that no longer reflects actual code behavior.

Detection Items:

  • Code and documentation inconsistency
  • Outdated comments (TODOs existing for more than N days)
  • Code referenced in documentation has been deleted
  • API documentation doesn't match implementation

Action: When documentation is found to be out of sync with implementation, automatically initiate a Pull Request for fixes.

2. expert-arch-enforcer (Architecture Constraint Enforcer)

Responsibility: Monitors whether code violates preset invariants and architecture boundaries.

Detection Items:

  • Module dependency direction violations (e.g., Types → Config → Repo → Service → Runtime → UI)
  • Missing boundary data validation
  • File size exceeding limits
  • Naming convention violations

Tool Integration: Utilizes custom Linters or structural tests (like ArchUnit), running periodically in the background to scan for deviations.

3. expert-entropy-auditor (Entropy Increase Auditor)

Responsibility: Discovers gaps between "design intent" and "code implementation".

Detection Items:

  • PRD and code implementation inconsistency
  • Spec documentation and code inconsistency
  • Duplicate code (AI residue)
  • Guessed data structures
  • Scattered utility tools

Function: Like a garbage collector, identifies "AI residue" scattered in the codebase and recommends consolidating them into shared utility packages.

4. expert-auto-refactor (Automated Refactoring)

Responsibility: Transforms collected quality improvement tasks into concrete code operations.

Strategy: Periodically initiates targeted refactoring PRs using a "small loan repayment" approach to prevent technical debt accumulation.

Refactoring Types:

  • Extract common methods
  • Eliminate duplicate code
  • Simplify complex logic
  • Optimize naming

Workflow

Entropy Reduction Execution Process

┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Trigger   │ ──→ │   Scan      │ ──→ │   Analyze   │ ──→ │   Execute   │
│             │     │             │     │             │     │             │
│ • Manual    │     │ • Doc scan  │     │ • Entropy   │     │ • Auto fix  │
│ • Scheduled │     │ • Code scan │     │   score     │     │ • Create PR │
│ • Event     │     │ • Arch scan │     │ • Classify  │     │ • Update    │
│             │     │             │     │ • Prioritize│     │   docs      │
└─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘

Entropy Score System

Entropy score range: 0-100 (100 = most orderly)

Score RangeStatusRecommended Action
90-100ExcellentMaintain current state
70-89GoodSmall improvements
50-69FairPlanned cleanup
30-49WarningPriority handling
0-29CriticalEmergency refactoring

Execution Guide

Step 1: Entropy Detection

Based on user request or trigger condition, select appropriate detection scope:

  1. Full Detection: Scan all entropy increase points
  2. Documentation Detection: Only scan documentation-related issues
  3. Architecture Detection: Only scan architecture constraint violations
  4. Code Detection: Only scan code quality issues

Step 2: Generate Entropy Report

Use references/entropy-report-template.md to generate entropy report, including:

  • Entropy score
  • Issue list (sorted by priority)
  • Fix recommendations
  • Estimated workload

Step 3: Entropy Reduction Execution

Select execution strategy based on issue type:

Issue TypeExecution MethodManual Confirmation
Simple fixes (naming, formatting)Auto fix and commitNo
Medium fixes (documentation updates)Create PRYes
Complex fixes (refactoring)Create Issue + PRYes

Integration with PDD Framework

PDD Forward Process                      PDD Entropy Reduction Process
    │                                     │
    ▼                                     ▼
┌─────────────┐                    ┌─────────────┐
│ PRD Document │                    │ Entropy     │
├─────────────┤                    │ Detection   │
│ Feature     │                    ├─────────────┤
│ Extraction  │                    │ Entropy     │
├─────────────┤                    │ Report      │
│ Spec Design │                    ├─────────────┤
├─────────────┤                    │ Entropy     │
│ Code        │  ←───────────────  │ Reduction   │
│ Implementation│                   │ Execution   │
├─────────────┤                    ├─────────────┤
│ Acceptance  │                    │ Auto Fix    │
│ Testing     │                    ├─────────────┤
└─────────────┘                    │ PR Creation │
                                   └─────────────┘

Golden Principles

Based on Harness Engineering best practices, define the following golden principles:

  1. Use Shared Toolkits, Avoid Handwritten Helper Functions

    • Centralize invariant management
    • Reduce duplicate code
  2. Validate Boundary Data, Don't Guess Data Structures

    • All API entry points must have Schema validation
    • Don't rely on implicit type inference
  3. Keep Code Concise, Prioritize Readability

    • Single file no more than 300 lines
    • Single function no more than 50 lines
  4. Documentation as Code, Keep Synchronized

    • Code changes must synchronize documentation
    • Outdated documentation is considered technical debt
  5. Small Loan Repayment, Continuous Improvement

    • Every commit is an improvement opportunity
    • Don't let technical debt accumulate

Configuration File

Entropy reduction behavior can be configured via entropy-config.yaml:

yaml
# entropy-config.yaml
entropy_reduction:
  # Trigger configuration
  triggers:
    schedule: "0 2 * * *"  # Daily at 2 AM
    on_commit: false       # Trigger on commit
    on_pr_merge: true      # Trigger on PR merge
  
  # Detection configuration
  detection:
    docs:
      enabled: true
      paths: ["docs/", "*.md"]
      max_age_days: 30     # Maximum documentation age in days
    architecture:
      enabled: true
      layers: ["types", "config", "repo", "service", "runtime", "ui"]
    code:
      enabled: true
      max_file_lines: 300
      max_function_lines: 50
    tests:
      enabled: true
      min_coverage: 80
  
  # Execution configuration
  execution:
    auto_fix: true         # Auto fix simple issues
    create_pr: true        # Create PR
    max_pr_per_run: 5      # Maximum PRs per run
  
  # Scoring configuration
  scoring:
    weights:
      docs: 0.25
      architecture: 0.25
      code: 0.25
      tests: 0.25

Output Format

Entropy Report Format

After each entropy reduction execution, generate an entropy report saved to the docs/entropy-reports/ directory:

markdown
# Entropy Reduction Report - YYYY-MM-DD

## Entropy Score: XX/100

## Issue List

### Critical (Must Fix)
- [ ] Issue description

### Warning (Recommended Fix)
- [ ] Issue description

### Info (Optional Fix)
- [ ] Issue description

## Fix Recommendations

### Critical Fixes
1. Fix recommendation details

## Execution Results
- Auto fixed: X items
- Created PR: X items
- Skipped: X items

Usage Examples

Example 1: Full Entropy Reduction

User: Execute full entropy reduction

AI:
1. Trigger all detectors
2. Generate entropy report
3. Execute fixes by priority
4. Report results

Example 2: Documentation Entropy Reduction

User: Check documentation consistency

AI:
1. Trigger pdd-doc-gardener
2. Scan docs/ directory
3. Compare code with documentation
4. Generate fix PR

Example 3: Architecture Entropy Reduction

User: Check architecture constraints

AI:
1. Trigger expert-arch-enforcer
2. Run custom Linter
3. Detect dependency violations
4. Generate fix recommendations

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Pdd Entropy Reduction」では何ができますか?

システムの劣化を防ぐため、技術的負債を継続的に監視して解消するPDD Entropy Reduction Agentです。コードの整理、ドキュメントの更新、技術的負債の管理、アーキテクチャの整合、エントロピーの低減、ガベージコレクションが必要な場合に自動で実行されます。主な目的:エージェントを定期的に実行し、ドキュメントの不整合やアーキテクチャ制約への違反を検出することで、システムの「エントロピー増大」と「劣化」に対処します。実行される場面:- ユーザーが「エントロピーを低減」「技術的負債を整理」「コードを整理」「ガベージコレクション」と依頼した場合 - ドキュメントとコードの整合性確認を依頼された場合 - アーキテクチャ制約の確認を依頼された場合 - 技術的負債の監査を依頼された場合 - スケジュール実行(毎週を推奨) - コードのコミット後に自動実行(任意) - PRのマージ後に自動実行(任意)中国語でのトリガーにも対応:エントロピー低減、技術的負債の整理、コード整理、ドキュメント更新、技術的負債管理、アーキテクチャ整合、ガベージコレクション、PDDエントロピー低減。

TypingMindでPdd Entropy Reductionを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pdd Entropy Reductionはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPdd Entropy Reductionをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wonderslife/pdd-skills/tree/main/pdd-entropy-reductionを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Pdd Entropy Reductionを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pdd Entropy Reductionで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPdd Entropy Reductionを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pdd Entropy Reduction」は無料ですか?

はい。wonderslifeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇