por Emanuel Balsa

← Todas as skills

AILC-78 · Gaveta: Finanças & contabilidade

/tidy-before-ask

Antes de a IA analisar os teus dados, procura repetições, formatos misturados e totais escondidos, e regista cada correção.

Pede-lhe: “Verifica este ficheiro antes de o analisarmos. Quero saber que clientes cresceram neste trimestre.”

tidy-before-ask.zip · 104 linhas de texto simples

Quando corre

Check an export or spreadsheet for messy data BEFORE asking AI to analyse it: duplicate rows, one customer spelled three ways, mixed dates and currencies, text stored as numbers, blanks, totals hiding among the lines. Returns a one-page data check, a fix list the user approves, and a clean copy with every change logged. Use this skill whenever the user says "analyse this export", "clean this data", "why does AI get my numbers wrong", "two systems", "is this file ready", or attaches a raw export from accounting, sales, bank or expense software. ALSO use it proactively before summarising any file that shows these problems. Do NOT use to turn a PDF statement into a spreadsheet, to check numbers in a finished draft, to check changes AI already made to a file, or to explain why two reports disagree.

O ficheiro completo

tidy-before-ask/SKILL.md
---
name: tidy-before-ask
description: >-
  Check an export or spreadsheet for messy data BEFORE asking AI to analyse
  it: duplicate rows, one customer spelled three ways, mixed dates and
  currencies, text stored as numbers, blanks, totals hiding among the lines.
  Returns a one-page data check, a fix list the user approves, and a clean
  copy with every change logged. Use this skill whenever the user says
  "analyse this export", "clean this data", "why does AI get my numbers
  wrong", "two systems", "is this file ready", or attaches a raw export from
  accounting, sales, bank or expense software. ALSO use it proactively before
  summarising any file that shows these problems. Do NOT use to turn a PDF
  statement into a spreadsheet, to check numbers in a finished draft, to check
  changes AI already made to a file, or to explain why two reports disagree.
---

# Tidy before ask

An AI will happily total a column that holds the same invoice twice, treat
"Acme Lda" and "ACME" as two customers, and read 03/04 as March when you meant
April. The answer comes back fluent and wrong, and you find out after someone
else has used it. The cheap moment to catch this is before the first question.

This skill checks the file first, asks before changing anything and keeps the
original untouched.

## Workflow

### 1. Ask what the file must answer

In one round: What is the question? Which period? Which currency? Is there a
total you already trust (from the source system or a signed report)? Remind the
user to remove names, bank details and salaries that the question does not need.

### 2. Take a fingerprint

Report row count, column names, date range and the sum of each amount column,
before any change. If part of the file could not be read, say which part.

### 3. Run the eight checks

1. **Repeats:** identical rows, and near-identical ones (same amount, date and
   party).
2. **Names:** one customer, supplier or category written several ways.
3. **Dates:** mixed formats, day and month that could swap, dates outside the
   period.
4. **Amounts:** numbers stored as text, mixed decimal marks, odd signs.
5. **Units:** mixed currencies, thousands next to units, with and without VAT.
6. **Blanks:** empty cells in columns the question depends on.
7. **Hidden totals:** subtotal or header rows sitting among the lines.
8. **Tie:** file total against the trusted total, with the difference.

### 4. Sort the findings

- **Safe to fix:** format only, meaning stays the same.
- **Your call:** merging names, removing a repeat, filling or excluding blanks.
- **Go to the source:** something only the system owner can correct.

Wait for the user's answers on every "your call" item.

### 5. Fix on a copy and prove it

Apply approved changes to a copy. Log each one: row, column, old value, new
value, reason. Show the fingerprint before and after and explain every change
in the totals.

### 6. Output

```
## Data check: [file], for [question]

**Verdict:** ready / ready with limits / not ready
**Fingerprint:** [rows] rows, [period], total [amount] (before) / [amount] (after)
**Trusted total:** [amount], difference [amount] / none given

| Finding | Rows | Type | Action |
|---|---|---|---|

**Still unresolved:** [list]
**Say this with any answer:** "[one sentence on the limits]"
```

## Judgment rules

**Never guess a value.** A blank stays blank and gets flagged.

**Similar is not same.** Two equal payments on one day may both be real. Ask.

**Not ready is a valid answer.** If the gap to the trusted total is
unexplained, say so before anyone builds on the file.

**Fix the tap.** For a problem that returns every month, name the step in the
export or data entry where it starts.

## Example

Made-up case. A manager asks which customers grew this quarter. The export has
412 rows. The check finds one customer under three spellings, six rows that
repeat, a subtotal line in the middle and some amounts stored as text. The file
total is higher than the accounting report by exactly the subtotal plus the
repeats. After the manager confirms five repeats are errors and one is real,
the verdict is "ready with limits": the gap is explained, and two rows without
a customer name are listed for the bookkeeper.

AILC-79 /close-chase →

Um email abre a biblioteca inteira.

Todas as skills, as de hoje e as novas de cada semana. Enviamos emails ocasionais sobre AI no trabalho com dinheiro. Cancelas num clique.