Expert Entropy Auditor 标志

Expert Entropy Auditor

社区
wonderslife
expert-entropy-auditor

熵审计技能,用于发现“设计意图”与“代码实现”之间的差距。当用户需要审计技术债务、检查 PRD 与代码的一致性或检测 AI 残留时自动触发。核心职责:识别散落在代码库中的“AI 残留”,并建议将其整合到共享工具包中。触发场景:- 用户请求“审计技术债务”“检查 PRD 一致性”“检测 AI 残留”- 由 pdd-entropy-reduction 协调器调用- 按计划触发(建议每周一次) 支持中文触发:熵增审计、技术债务审计、PRD一致性检查、AI残渣检测、PDD熵审计。

Add to TypingMind

概览

发布者wonderslife
代码仓库pdd-skills
技能名称expert-entropy-auditor
星标数
41
复刻数
11
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 wonderslife 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Expert Entropy Auditor AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/wonderslife/pdd-skills/tree/main/expert-entropy-auditor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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/expert-entropy-auditor .claude/skills/expert-entropy-auditor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Expert Entropy Auditor,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Expert Entropy Auditor。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Expert Entropy Auditor 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Entropy Audit (expert-entropy-auditor)

Core Philosophy

"Like a garbage collector, identify 'AI residue' scattered in the codebase and suggest consolidating them into shared utility packages." —— Harness Engineering

The entropy audit skill is specifically designed to discover the gap between "design intent" and "code implementation", identifying entropy increase points in the codebase.

Audit Dimensions

1. PRD and Code Consistency

Audit Method:

  • Parse feature points in PRD documents
  • Scan code implementation
  • Compare feature points with implementation

Example:

PRD Feature: Display welcome message after user login
Code Implementation: Redirect to homepage directly after user login
→ Audit Result: Implementation inconsistent with PRD

2. Spec Document and Code Consistency

Audit Method:

  • Parse technical specifications in Spec documents
  • Check if code conforms to specifications
  • Mark deviations

Example:

Spec Specification: API returns { code, data, message }
Code Implementation: API returns { status, result }
→ Audit Result: Return format does not conform to specification

3. AI Residue Detection

What is AI Residue:

  • Repeatedly generated similar code
  • Guessed data structures
  • Inconsistent naming patterns
  • Scattered helper utilities

Detection Method:

  • Code similarity analysis
  • Naming pattern analysis
  • Duplicate code detection

Example:

File A: function formatDate(date) { ... }
File B: function formatDateString(d) { ... }
File C: function dateFormat(dateVal) { ... }
→ Audit Result: AI residue, suggest extracting to shared utility package

4. Technical Debt Accumulation

Detection Method:

  • Scan TODO/FIXME/HACK comments
  • Check temporary solution markers
  • Count technical debt items

Example:

Technical Debt Statistics:
- TODO: 15 items
- FIXME: 3 items
- HACK: 2 items
→ Audit Result: Technical debt accumulated, suggest handling

Audit Process

┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Collect   │ ──→ │   Analyze   │ ──→ │    Score    │ ──→ │   Report    │
│             │     │             │     │             │     │             │
│ • PRD Docs  │     │ • Consistency│    │ • Entropy   │     │ • Issues    │
│ • Spec Docs │     │ • Duplication│    │ • Debt Eval │     │ • Suggestions│
│ • Code Impl │     │ • Pattern    │     │ • Risk Rate │     │ • Prioritize │
└─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘

Entropy Score System

Scoring Dimensions

DimensionWeightScoring Criteria
PRD Consistency25%Feature point and implementation match rate
Spec Consistency25%Technical specification compliance rate
AI Residue25%Duplicate code ratio
Technical Debt25%Debt quantity and severity

Score Calculation

Entropy Score = 100 - (Inconsistencies × 5 + AI Residues × 3 + Tech Debts × 2)

Example:
- PRD Inconsistencies: 2 items → Deduct 10 points
- Spec Inconsistencies: 1 item → Deduct 5 points
- AI Residues: 5 items → Deduct 15 points
- Tech Debts: 10 items → Deduct 20 points

Entropy Score = 100 - (10 + 5 + 15 + 20) = 50

Status Determination

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

Output Format

Entropy Audit Report

markdown
# Entropy Audit Report - YYYY-MM-DD

## Entropy Score: XX/100

## Audit Scope
- PRD Documents: X
- Spec Documents: X
- Code Files: X

## Consistency Audit

### PRD and Code Inconsistencies
| PRD Feature | Code Implementation | Deviation Description |
|-----------|---------|---------|
| FP-001 User login welcome message | Not implemented | Missing welcome message display |

### Spec and Code Inconsistencies
| Spec Specification | Code Implementation | Deviation Description |
|----------|---------|---------|
| API return format | Non-compliant | Missing message field |

## AI Residue Detection

### Duplicate Code
| File A | File B | Similarity | Suggestion |
|-------|-------|-------|------|
| utils/formatDate.js | utils/dateFormat.js | 85% | Extract to shared utility package |

### Guessed Data Structures
| File | Issue | Suggestion |
|------|------|------|
| service/UserService.ts | Hardcoded field names | Define type interfaces |

## Technical Debt Statistics

| Type | Count | Average Age |
|------|------|-------------|
| TODO | 15 | 14 days |
| FIXME | 3 | 7 days |
| HACK | 2 | 30 days |

## Improvement Suggestions

### High Priority
1. Fix PRD inconsistencies (2 items)
2. Extract duplicate code to shared utility package (5 items)

### Medium Priority
1. Handle FIXME comments (3 items)
2. Define missing type interfaces (3 items)

### Low Priority
1. Clean up outdated TODOs (12 items)

Configuration Options

yaml
# entropy-auditor-config.yaml
entropy_auditor:
  # Audit scope
  scope:
    prd_paths: ["docs/prd/", "docs/业务分析/"]
    spec_paths: ["docs/specs/", "docs/dev-specs/"]
    code_paths: ["src/"]
  
  # Detection thresholds
  thresholds:
    code_similarity: 0.8      # Code similarity threshold
    max_todo_age_days: 30     # Maximum TODO age
    max_fixme_age_days: 14    # Maximum FIXME age
  
  # Scoring weights
  weights:
    prd_consistency: 0.25
    spec_consistency: 0.25
    ai_residue: 0.25
    tech_debt: 0.25

Usage Examples

Example 1: Comprehensive Entropy Audit

User: Execute technical debt audit

AI:
1. Collect PRD, Spec, code
2. Analyze consistency
3. Detect AI residue
4. Calculate entropy score
5. Generate audit report

Example 2: PRD Consistency Check

User: Check if PRD is consistent with code

AI:
1. Parse PRD feature points
2. Scan code implementation
3. Compare feature points with implementation
4. Generate deviation report

Example 3: AI Residue Detection

User: Detect AI residue in code

AI:
1. Code similarity analysis
2. Naming pattern analysis
3. Identify duplicate code
4. Suggest extracting to shared utility package

Collaboration with Other Skills

  • pdd-entropy-reduction: Called as a sub-skill by the coordinator
  • pdd-doc-gardener: Pass document inconsistency issues
  • expert-auto-refactor: Pass refactoring suggestions
  • pdd-code-reviewer: Integrate entropy checks into code review

常见问题

Expert Entropy Auditor AI 技能有什么作用?

熵审计技能,用于发现“设计意图”与“代码实现”之间的差距。当用户需要审计技术债务、检查 PRD 与代码的一致性或检测 AI 残留时自动触发。核心职责:识别散落在代码库中的“AI 残留”,并建议将其整合到共享工具包中。触发场景:- 用户请求“审计技术债务”“检查 PRD 一致性”“检测 AI 残留”- 由 pdd-entropy-reduction 协调器调用- 按计划触发(建议每周一次) 支持中文触发:熵增审计、技术债务审计、PRD一致性检查、AI残渣检测、PDD熵审计。

为什么在 TypingMind 中使用 Expert Entropy Auditor?

因为您只需安装一次,就能搭配任何模型使用。Expert Entropy Auditor 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Expert Entropy Auditor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/wonderslife/pdd-skills/tree/main/expert-entropy-auditor。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Expert Entropy Auditor?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Expert Entropy Auditor 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Expert Entropy Auditor 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Expert Entropy Auditor AI 技能免费吗?

是的。wonderslife 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇