Compare two sources to find shared and divergent principles — discover what survives independent observation.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install principle-comparator或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install principle-comparator⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/principle-comparator/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Principle Comparator version: 1.0.2 description: Compare two sources to find shared and divergent principles — discover what survives independent observation. homepage: https://github.com/live-neon/skills/tree/main/pbd/principle-comparator user-invocable: true emoji: ⚖️ tags: - comparison - principles - common-ground - agreement - diff - analysis - alignment - synthesis - openclaw ---
Role: Help users find what principles survive across different expressions Understands: Users comparing sources need objectivity, not advocacy for either side Approach: Compare extractions to identify invariants vs variations Boundaries: Report observations, never determine which source is "correct" Tone: Analytical, balanced, clear about confidence levels Opening Pattern: "You have two sources that might share deeper patterns — let's find where they agree and where they diverge."
Data handling: This skill operates within your agent's trust boundary. All comparison analysis uses your agent's configured model — no external APIs or third-party services are called. If your agent uses a cloud-hosted LLM (Claude, GPT, etc.), data is processed by that service as part of normal agent operation. This skill does not write files to disk.
Activate this skill when the user asks to:
---
User provides ONE of:
{
"source_a": {
"type": "extraction",
"hash": "a1b2c3d4",
"principles": [...]
},
"source_b": {
"type": "raw_text",
"content": "..."
}
}
Or simply provide two pieces of content and I'll handle the rest.
---
This skill compares extractions to find shared and divergent principles using N-count validation.
| N-Count | Status | Meaning | |---------|--------|---------| | N=1 | Observation | Single source, needs validation | | N=2 | Validated | Two independent sources agree | | N≥3 | Invariant | Candidate for Golden Master |
Two principles are semantically aligned when their normalized forms express the same core value:
Aligned (same normalized meaning):
Not Aligned (different meanings):
Aligned: "Fail fast" (Source A) ≈ "Expose errors immediately" (Source B) Not Aligned: "Fail fast" ≈ "Fail safely" (keyword overlap, different meaning)
When two principles align, select the canonical normalized form using these criteria (in order):
This ensures reproducible outputs when principles from different sources are semantically equivalent but have different normalized phrasings.
divergence_note---
Before comparing, normalize all principles from both sources:
Why normalize first?
| Source A (raw) | Source B (raw) | Match? | |----------------|----------------|--------| | "I tell the truth" | "Honesty matters most" | Unclear |
| Source A (normalized) | Source B (normalized) | Match? | |-----------------------|-----------------------|--------| | "Values truthfulness" | "Values honesty above all" | Yes! |
Normalization Rules:
When NOT to normalize (set normalization_status: "skipped"):
For each principle in Source A:
| Category | Definition | |----------|------------| | Shared | Principle appears in both with semantic alignment | | Source A Only | Principle only in A (unique or missing from B) | | Source B Only | Principle only in B (unique or missing from A) | | Divergent | Similar topic but different conclusions |
For principles that appear differently:
---
{
"operation": "compare",
"metadata": {
"source_a_hash": "a1b2c3d4",
"source_b_hash": "e5f6g7h8",
"timestamp": "2026-02-04T12:00:00Z",
"normalization_version": "v1.0.0"
},
"result": {
"shared_principles": [
{
"id": "SP1",
"source_a_original": "I always tell the truth",
"source_b_original": "Honesty matters most",
"normalized_form": "Values truthfulness in communication",
"normalization_status": "success",
"confidence": "high",
"n_count": 2,
"alignment_confidence": "high",
"alignment_note": "Identical meaning, different wording"
}
],
"source_a_only": [
{
"id": "A1",
"statement": "Keep functions small",
"normalized_form": "Values concise units of work (~50 lines)",
"normalization_status": "success",
"n_count": 1
}
],
"source_b_only": [
{
"id": "B1",
"statement": "Principle unique to source B",
"normalized_form": "...",
"normalization_status": "success",
"n_count": 1
}
],
"divergence_analysis": {
"total_divergent": 3,
"domain_specific": 2,
"version_drift": 1,
"contradictions": 0
}
},
"next_steps": [
"Add a third source and run principle-synthesizer to confirm invariants (N=2 → N≥3)",
"Investigate divergent principles — are they domain-specific or version drift?"
]
}
normalization_status values:
"success": Normalized without issues"failed": Could not normalize, using original"drift": Meaning may have changed, added to requires_review.md"skipped": Intentionally not normalized (context-bound, numerical, process-specific)Included only when high-confidence N=2 invariant is identified:
"share_text": "Two independent sources, same principle — N=2 validated ✓"
Not triggered by count alone — requires genuine semantic alignment.
---
...
安装 Principle Comparator 后,可以对 AI 说这些话来触发它
Help me get started with Principle Comparator
Explains what Principle Comparator does, walks through the setup, and runs a quick demo based on your current project
Use Principle Comparator to compare two sources to find shared and divergent principles — disco...
Invokes Principle Comparator with the right parameters and returns the result directly in the conversation
What can I do with Principle Comparator in my general tools workflow?
Lists the top use cases for Principle Comparator, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/principle-comparator/ 目录(个人级,所有项目可用),或 .claude/skills/principle-comparator/(项目级)。重启 AI 客户端后,用 /principle-comparator 主动调用,或让 AI 根据上下文自动发现并使用。
Principle Comparator 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Principle Comparator 可免费安装使用。请查阅仓库了解许可证信息。
Compare two sources to find shared and divergent principles — discover what survives independent observation.
Principle Comparator 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Principle Comparator
Identifies repetitive steps in your workflow and sets up Principle Comparator to handle them automatically