Content fingerprint

From gonzalezpazmonica/pm-workspace · View interactive version

Content fingerprint is an AI agent skill from the GitHub repository gonzalezpazmonica/pm-workspace. 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.

How to use this skill

Skill file

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:

Cuando NO usar

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)

Tests: bats tests/scripts/content-fingerprint.bats (30/30 verde; auditor 95/100).

Limitaciones honestas

Referencias

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.