Skip to content
Back to skills

Payload

ASecurity

Compare a source table, its cleaned copy and the change log by row key, and fail when a row appears or disappears or a cell changed without a matching log entry.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 26, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 26, 2026

npx -y skills add alisonjieli-png/loop-engine --skill payload --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Payload?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Payload
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alisonjieli-png-payload-06e0f2e1/badge)](https://www.skillsdirectory.com/skills/alisonjieli-png-payload-06e0f2e1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "verify-cleaned-copy-change-log"
description: "Compare a source table, its cleaned copy and the change log by row key, and fail when a row appears or disappears or a cell changed without a matching log entry."
license: MIT
compatibility: "Python 3.10 or later, standard library only."
metadata:
  version: "0.1.0"
---

# Verify a cleaned copy against its change log

The script `scripts/verify_change_log.py` compares every row and cell of the source table with the cleaned copy, and checks each difference against the change log. It reads the three files and writes nothing. In each command, `SKILL_DIR` is the folder that holds this file. Run commands from the workspace root. Paths are relative to it.

## When to use it

Use it after a cleaning step and before anyone uses the cleaned copy, whenever that step says its log lists every change. You need the source table, the cleaned copy, the log and the key columns that identify a row. The log format and every check are in `references/log-format.md`.

## First action

```bash
python3 -I -B SKILL_DIR/scripts/verify_change_log.py --source data/raw/customers.csv --cleaned data/clean/customers.csv --log data/clean/changes.jsonl --key customer_id
```

## Steps

1. Take the three paths and the key columns from your task. Give one `--key` for each key column.
2. If the task gives the digest of the source recorded before cleaning, add `--source-sha256` with it.
3. Run the command. Read `status`, `failed_checks` and `summary`.
4. For each failed check, quote up to three items of `violations` with their `rule`, `key`, `column` and values.
5. Answer every item in `references/checklist.md`.

## Checks

- Exit code 0 and `status` `pass`: every changed cell, removed row and added row has a matching entry, and every entry matches both tables.
- Exit code 1 and `status` `fail`: the counts in `checks` are complete, even when `violations` lists only examples.
- `summary.rows_matched` plus `summary.rows_removed` equals `source.rows`.

## Done when

The report gives the status, the three `sha256` values, `summary`, each failed check with its count, and the checklist answers.

## Stop and report when

- Exit code 2: report `reason` and `detail`. A source key that is empty or repeats is refused, because rows cannot be matched.
- The task names no key column or no log.
- The copy or the log seems wrong. This step only checks. Do not edit the tables or the log to make the check pass.

## Known-wrong example

A step logs three spelling and spacing fixes. It also drops the repeated row `C-0042` and turns `N/A` in `phone` into an empty cell for `C-0007`, and logs neither. The log looks complete. The script reports `row_removed_without_log` for `C-0042` and `cell_changed_without_log` for `phone` of `C-0007`. Run `examples/known-wrong-bundle.json` with `--bundle` and `--key customer_id` to see it.

Files in this skill

  • LICENSE1 KB
  • SKILL.md2.8 KB
  • examples/cleaning-bundle.json991 B
  • examples/known-wrong-bundle.json892 B
  • references/checklist.md823 B
  • references/log-format.md3.3 KB
  • scripts/verify_change_log.py30.4 KB
  • tests/test_verify_change_log.py14.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.