compare-sources-for-shared-principles
Compare two sources to find shared and divergent principles — discover what survives independent observation.
от rondoflow★ 37 звёзд на GitHub
Установить compare-sources-for-shared-principles в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Principle Comparator
Agent Identity
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.
When to Use
Activate this skill when the user asks to:
- "Compare these two extractions"
- "What do these sources have in common?"
- "Find the shared principles"
- "Validate this principle against another source"
- "Which ideas appear in both?"
Important Limitations
- Compares STRUCTURE, not correctness — both sources could be wrong
- Cannot determine which source is better
- Semantic alignment requires judgment — verify my matches
- Works best with extractions from pbe-extractor/essence-distiller
- N=2 is validation, not proof
Input Requirements
User provides ONE of:
- Two extraction outputs (from pbe-extractor or essence-distiller)
- Two raw text sources (I'll extract first, then compare)
- One extraction + one raw source
Input Format
{
"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.
Methodology
This skill compares extractions to find shared and divergent principles using N-count validation.
N-Count Tracking
| 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 |
Semantic Alignment (on Normalized Forms)
Two principles are semantically aligned when their normalized forms express the same core value:
Aligned (same normalized meaning):
- A: "Values truthfulness over comfort"
- B: "Values honesty in difficult situations"
- Alignment: HIGH — both normalize to "Values honesty/truthfulness"
Not Aligned (different meanings):
- A: "Values speed in delivery"
- B: "Values safety in delivery"
- Alignment: NONE — speed ≠ safety despite similar structure
Aligned: "Fail fast" (Source A) ≈ "Expose errors immediately" (Source B) Not Aligned: "Fail fast" ≈ "Fail safely" (keyword overlap, different meaning)
Normalized Form Selection (Conflict Resolution)
When two principles align, select the canonical normalized form using these criteria (in order):
- More abstract: Prefer the form with broader applicability
- Higher confidence: Prefer the form from the higher-confidence source
- Tie-breaker: Use Source A's normalized form
This ensures reproducible outputs when principles from different sources are semantically equivalent but have different normalized phrasings.
Promotion Rules
- N=1 → N=2: Requires semantic alignment between two extractions
- Contradiction handling: If sources disagree, principle stays at N=1 with
divergence_note
Comparison Framework
Step 0: Normalize All Principles
Before comparing, normalize all principles from both sources:
- Transform to actor-agnostic, imperative form
- This enables semantic alignment across different phrasings
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:
- Remove pronouns (I, we, you, my, our, your)
- Use imperative: "Values X", "Prioritizes Y", "Avoids Z", "Maintains Y"
- Abstract domain terms, preserve magnitude in parentheses
- Keep conditionals if present
- Single sentence, under 100 characters
When NOT to normalize (set normalization_status: "skipped"):
- Context-bound principles
- Numerical thresholds integral to meaning
- Process-specific step sequences
Step 1: Align Extractions
For each principle in Source A:
- Search Source B for semantic match using normalized forms
- Score alignment confidence
- Note evidence from both sources
Step 2: Classify Results
| Category | Definition |
|---|---|
| Shared | Principle appears in both w |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл compare-sources-for-shared-principles?
Compare two sources to find shared and divergent principles — discover what survives independent observation.
Как установить скилл compare-sources-for-shared-principles?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compare-sources-for-shared-principles запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…