Saltar al contenido
Skillpedia
Pruebas48 mil · #4287

cross-platform-contract-propagation-audit

Qué hace

Esta herramienta ayuda a comprobar si un cambio en un contrato (como un campo de la base de datos o una función) se aplica de forma coherente en todos los lugares donde se usa, como servicios, aplicaciones y pruebas. Así, todos entienden y usan el cambio de la misma manera.

Cuándo usarla

  • ✓Cuando añades o cambias un campo que afecta a varios sistemas.
  • ✓Cuando distintas partes de un sistema podrían interpretar un valor de forma diferente.
  • ✓Cuando quieres asegurarte de que los cambios no rompen sistemas antiguos ni datos existentes.

Link de la skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cross-platform-contract-propagation-audit/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cross-platform-contract-propagation-audit/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Comprueba si la nueva función de modo oscuro se aplica correctamente en las aplicaciones móviles, en la web y en la recogida de datos de uso.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Primero, defines con claridad qué significa el cambio y cómo debe comportarse en distintas situaciones. Después, enumeras todos los lugares donde se usará el cambio y, por último, verificas que se haya aplicado correctamente en cada uno de ellos, documentando las pruebas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Cross-Platform Contract Propagation Audit

Overview

Audit a contract change from its source through every transformation and consumer before release. Treat a field that exists in one schema as incomplete until its meaning, defaults, wire behavior, rollout controls, client handling, analytics, and tests are proven across all relevant paths.

This is a read-only evidence workflow. It reports propagation gaps; it does not implement them.

When to Use This Skill

  • Use when adding or changing a field, enum value, status, capability, or feature flag shared by multiple components.
  • Use when database, backend, API, Web, Android, iOS, jobs, events, or analytics may interpret the same value differently.
  • Use when a change must preserve existing records, older clients, or a default-off rollout.
  • Use when a change looks complete in one endpoint but may be missing from alternate entry points or generated models.

How It Works

Step 1: Write the semantic contract

Before tracing files, state the business invariant and define every observable state. Distinguish values that languages and serializers often collapse:

State Questions to answer
missing Is the property absent on the wire or in an old record?
null Is it unknown, inherited, unsupported, or invalid?
false or zero Is this an explicit disabled value or a default?
true or non-zero What behavior becomes available?
unknown enum Must old consumers ignore, preserve, or reject it?

Record compatibility requirements, ownership, rollout condition, and the exact user-visible or system behavior for each state. Do not accept optional, nullable, and default false as equivalent without evidence.

Step 2: Enumerate the propagation graph

List every relevant node before judging completeness:

source of truth
  -> persistence and migration
  -> domain model and mapper
  -> service or policy computation
  -> every API, event, cache, and job projection
  -> generated or handwritten client model
  -> client state and presentation logic
  -> analytics and operational observability
  -> tests, rollout, and rollback checks

Include alternate read/write endpoints, list/detail projections, background consumers, offline caches, admin surfaces, older app versions, and feature-flag evaluation points when they are in scope. Mark a node not applicable only with a reason.

Step 3: Trace evidence edge by edge

For each edge, cite the producer, transformation, consumer, and test using file paths, symbols, schema names, or other inspectable evidence. Assign one status:

Status Meaning
proven Producer and consumer agree, with direct evidence and relevant test coverage.
partial Some paths or states agree, but coverage is incomplete.
missing A required propagation edge or consumer is absent.
conflict Two layers implement different semantics.
unknown Evidence is unavailable or ambiguous.
not_applicable The layer is outside scope, with a stated reason.

Do not upgrade likely, convention, type compatibility, or a framework default to proven. A declaration proves shape, not runtime mapping or behavior.

Step 4: Check the high-risk boundaries

Inspect these boundaries explicitly:

  • Migration and existing data: default, backfill, nullability, rollback, mixed-version reads and writes.
  • Domain mapping: missing/null coercion, enum fallbacks, validation, derived values, serialization symmetry.
  • Fan-out surfaces: list and detail DTOs, events, caches, jobs, search indexes, SDKs, and alternate API versions.
  • Client compatibility: missing and explicit-null decoding, unknown enums, generated-model drift, cached payloads, release or minified builds.
  • Rollout control: flag default, evaluation location, cohort consistency, kill switch, and behavior when stored data disagrees with the flag.
  • Analytics: offered, rendered, attempted, succeeded, and failed events carry enough contract and version context to join reliably.

Step 5: Build a state-by-path test matrix

Cross the semantic states from Step 1 with every material path from Step 2. At minimum, include existing-data defaults, enabled and disabled values, flag on and off, alternate endpoints, current clients, and representative older clients.

…

Preguntas frecuentes

¿Qué es un 'contrato' en este contexto?

Es un acuerdo sobre cómo debe funcionar e interpretarse una pieza de información (como un dato o una función). Piensa en él como las reglas que todos los sistemas deben seguir.

¿Por qué es importante comprobar la 'propagación'?

La propagación significa asegurarse de que el cambio se aplique de forma uniforme en todos los sistemas y lugares que lo usan. Si no se propaga bien, puede provocar errores, incoherencias o comportamientos inesperados.

¿Esta herramienta hace correcciones automáticamente?

No, esta herramienta sirve para auditar y verificar. Detecta dónde hay incoherencias, pero no las corrige. Aporta la información para que los desarrolladores hagan las correcciones necesarias.

Detalles

Descripción original del autor

Use when auditing whether a field, enum, flag, or API contract propagates consistently across storage, services, clients, analytics, and tests.

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#4287
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas