content-fingerprint
Usar cuando se necesita un identificador corto, deterministico y reproducible derivado del contenido de una cadena o fichero — cache keys, ids de patrones…
от gonzalezpazmonica★ 52 звезды на GitHub
Установить content-fingerprint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Skill: content-fingerprint
Cuando usar
Cuando un script necesita derivar un identificador corto, reproducible y resistente a colisiones a partir de un contenido (cadena, fichero, agregado). Casos tipicos:
- Cache keys (
ado-bridge.sh) - Pattern signatures (
failure-pattern-memory.sh) - Doc fingerprints de auditoria (
semantic-map.sh) - Test attempt hashes (
test-auditor.sh)
Cuando NO usar
- Si necesitas hash criptografico para integridad fuerte: usa
sha256sumdirecto (ya disponible). - Si necesitas detectar near-duplicates con tolerancia a 1 byte: SHA truncado NO sirve. Considera SimHash/MinHash o embeddings (
memory-vector.py). - Si necesitas buscar por similitud semantica: usa
memory-vector.py(HNSW + MiniLM).
Como usar
# Identificador corto
ID=$(echo "agente:tarea:contexto" | scripts/content-fingerprint.sh 8)
# Output: 8 chars hex deterministicos
# Cache key 16 chars
KEY=$(printf '%s|%s' "$query" "$context" | scripts/content-fingerprint.sh 16)
# Fichero completo
FP=$(scripts/content-fingerprint.sh 16 < my-doc.md)
# Self-test
scripts/content-fingerprint.sh --self-test
Acceptance criteria validados (SE-151)
- AC-1: longitudes 8/16/32/64 producen hex de tamaño exacto.
- AC-1: avalanche — 1 byte de diferencia → fingerprint distinto.
- AC-1: determinismo — mismo input → mismo output.
- AC-4: dataset etiquetado de 30 fixtures (15 pares) verifica precision/recall.
- AC-5: 100 invocaciones <5s total (sanity check de latencia).
Tests: bats tests/scripts/content-fingerprint.bats (30/30 verde; auditor 95/100).
Limitaciones honestas
- No detecta near-duplicates: 1 char de cambio cambia el fingerprint entero (avalanche). Esto es una propiedad deseable para identificadores, una limitacion para clustering.
- No es LSH biologico: Dasgupta 2017 requiere vectorizacion previa + sparse expansion, no implementado aqui.
- Coliciones a 8 chars: para corpus muy grandes (>10^6 docs), considerar 16 chars o mas (paradoja del cumpleanos).
Referencias
- Spec:
docs/specs/SE-151-content-fingerprint-consolidation.spec.md - Tests:
tests/scripts/content-fingerprint.bats - Fixtures:
tests/fixtures/fingerprint/ - Sesion previa archivada:
experiments/brainless/RESEARCH-LOG.md
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- DOMAIN.md
FAQ
Что делает скилл content-fingerprint?
Usar cuando se necesita un identificador corto, deterministico y reproducible derivado del contenido de una cadena o fichero — cache keys, ids de patrones, fingerprints de docs.
Как установить скилл content-fingerprint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-fingerprint запускает скрипты?
Нет, скилл состоит только из инструкций (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…