Skip to content
Back to skills

Aea Report Finalize

ASecurity

Use when finishing an AEA Data Editor replication review — REPLICATION.md in an aearep-NNNN repo is filled out except SUMMARY and it's time to consolidate tags, verify the RA's findings, and draft the summary before the editor approves. Triggers on "finalize this report", "write the summary", "run the editor pass", "run aea-parse-tags", "prepare this for approval", or being asked to review/finish a REPLICATION.md.

  • 24 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
documentationpythonrustgobashgit

Works with

  • cli

Security analysis

A100/100

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

Scanned December 5, 2026

npx -y skills add AEADataEditor/replication-template --skill aea-report-finalize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aea Report Finalize?

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

Security grade badge for Aea Report Finalize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aeadataeditor-aea-report-finalize/badge)](https://www.skillsdirectory.com/skills/aeadataeditor-aea-report-finalize)

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: aea-report-finalize
description: Use when finishing an AEA Data Editor replication review — REPLICATION.md in an aearep-NNNN repo is filled out except SUMMARY and it's time to consolidate tags, verify the RA's findings, and draft the summary before the editor approves. Triggers on "finalize this report", "write the summary", "run the editor pass", "run aea-parse-tags", "prepare this for approval", or being asked to review/finish a REPLICATION.md.
allowed-tools: Bash(git rev-parse *) Bash(git log *) Bash(git tag *) Bash(git merge-base *) Bash(git show *) Bash(grep *) Bash(head *) Bash(cut *) Bash(ls *) Bash(find *) Bash(source *) Bash(python3 *) Bash(aea-parse-tags *) Bash(pip show *)
---

# AEA Replication Report — Editor's Finishing Pass

`REPLICATION.md` is filled except `## SUMMARY`. Consolidate
`[REQUIRED]`/`[SUGGESTED]` tags, sanity-check the findings, draft the summary.
**Never approve, commit the approval, or publish** (Restrictions).

Derive repo root, deposit dir, phrase library and ticket from the repo; never
hard-code them. Ask the user for decisions with `AskUserQuestion` (clickable
options, recommended first, evidence in the question).

Human version of this pass: [LDI 13-1 approving (first round)](https://labordynamicsinstitute.github.io/ldilab-manual/13-1-approving-issues-original.html),
[13-2 (revision)](https://labordynamicsinstitute.github.io/ldilab-manual/13-2-approving-issues-revision.html);
report sections explained in [LDI 08](https://labordynamicsinstitute.github.io/ldilab-manual/08-details-replication-report.html)
(Markdown sources: `https://github.com/labordynamicsinstitute/ldilab-manual/blob/main/<page>.md`).

## Critical path — every time, in order

Long inputs push toward writing a plausible summary from memory. Don't.

1. Run `aea-parse-tags` (Step 4) before drafting; write the SUMMARY from its
   checklists. Tool missing → stop (Step 0).
2. Read `sample-language-report.md` this session (Step 5). It is a lookup
   table, not background.
3. Copy tags and the decision sentence **verbatim**. Custom tag only when no
   predefined one fits (Step 3).
4. SUMMARY's last line verbatim from `template/original-REPLICATION.md`.
5. Run Step 5b and report it in Step 6.

## Models

Interactive use: run as the coordinator on **Opus**; the judgment calls (Step 3
mismatches, classification, the SUMMARY's voice) are where a smaller model
slips. On a smaller model, say so at the start and suggest `/model opus`;
continue if the user prefers. **Sonnet** sub-agents can take the read-only
checks in Step 3 (items 1–4 and 6: scan-vs-tag cross-check, output-file
existence, log scan, requirements comparison, unnamed-provider search) and the
Step 5b grep loop; ask each for a short list with file:line evidence. Edits to
`REPLICATION.md`, the SUMMARY, and every decision stay with you. Batch runs
(`aea-multi-agent-report-review`) set the worker model there.

## Writing style

**The SUMMARY must be written in natural, everyday English. Avoid stiff or
overly formal phrasing.** It is a letter to the authors from the Data Editor:
warm, direct, short sentences, plain verbs ("please add", "we could not run"),
no bureaucratic padding ("it should be noted that", "in accordance with"). Read
it aloud in your head; if it sounds like a form letter, rewrite it.

The same applies to everything else you write in the report (Findings notes,
`### Previously` sentences, custom-tag specifics) and to your Step 6 message.
Exempt: library tags, the decision sentence and the fixed last line, which are
copied verbatim.

## Modes

- **Rounds**: no revision found in Step 1 = first round. Revision found → read
  [references/revision-rounds.md](references/revision-rounds.md) (adds Steps
  1b/1c and extra work in Steps 3 and 5).
- **Summary-only** ("just write the summary", "skip verification"): skip
  Step 3, treat tags as final, and say in Step 6 that verification was skipped.
- **Pre-approver or approver.** Both use this skill. A pre-approver's pass is
  optional and, when it happens, comes before the approver's. The two runs
  may use different agents and share no context, so learn what came before
  from the repo only (Step 1), never from memory or a previous conversation.
  The steps are the same either way; what changes is the starting point:
  - **No pre-approval in this round** → draft from scratch.
  - **Pre-approval in this round** (a commit after the last approval, if any,
    whose message matches
    `-i 'pre-?approv'`, e.g. `Preapproved. Ready for approval.` or
    `Pre-approval of report`) → you are the approver. The SUMMARY and
    action items already exist: review and correct them against this skill
    (Steps 3–5b) rather than rewriting from nothing, and keep the
    pre-approver's wording where it is already right. Rerunning
    `aea-parse-tags` is safe. In Step 6, list what you changed relative to
    the pre-approval commit (`git diff <pre-approval sha> -- REPLICATION.md`).
  A pre-approval is never an approval: it doesn't end the round or count as
  `LAST_APPROVAL_SHA`.

## Step 0 — Locate the repo

```bash
REPO_ROOT=$(git rev-parse --show-toplevel); cd "$REPO_ROOT"
. ./tools/resolve_project_id.sh   # $projectID = deposit dir
command -v aea-parse-tags && pip show aea-editor-scripts | grep -i '^version'
```

- No `REPLICATION.md` → stop.
- `aea-parse-tags` missing → stop and tell the user; don't substitute another
  tool. Older than 0.3.73 → tell the user to upgrade editor-scripts (Step 4
  relies on it), then continue.
- Repo tooling stale (e.g. `tools/resolve_project_id.sh` missing, or a
  `tools/jira_get_info.py` option this skill uses is unknown) → update it in
  place first: `update_repo_tools.sh` (editor-scripts) or
  `bash tools/update_tools.sh`, which make a local `[skip ci] Update of tools`
  commit. Never call tools from another checkout by absolute path.

**The deposit dir is a partial copy.** `.gitignore` excludes data-like
extensions (`*.dta`, `*.csv`, `*.txt`, ~100 more), so absence from the tree is
not absence from the deposit. Authorities: `generated/manifest.txt`, the
"Programs and data files provided" appendix,
`generated/{duplicate-files,large-file,zero-byte-files}-report.md`,
`generated/pii-summary.md`. Raise nothing about a missing file unless the
manifest says it's missing.

## Step 1 — Gate: already approved? revision underway?

```bash
LAST_APPROVAL_SHA=$(git log --oneline | grep -E '#comment (Approved\. )?Ready to submit' | head -1 | cut -d' ' -f1)
[ -n "$LAST_APPROVAL_SHA" ] && { git log --oneline "${LAST_APPROVAL_SHA}..HEAD"; git tag -l 'update*'; }
```

- **No approval** → first round → Step 2.
- **Approval, then revision evidence** (pipeline commits such as `Adding code
  from <deposit-id>`, `Adding generated files and logs`, `Downloaded Jira
  attachments`, `Update of tools`; or an `updateN` tag descending from
  `LAST_APPROVAL_SHA`, checked with `git merge-base --is-ancestor`) → revision
  round: follow `references/revision-rounds.md` Steps 1b/1c before Step 2.
- **Approval, nothing after** → finalized. Stop, tell the user, and ask before
  touching anything.

Then look for a pre-approval in the current round (see Modes):
`git log --oneline -i --grep='pre-\?approv' ${LAST_APPROVAL_SHA:+${LAST_APPROVAL_SHA}..HEAD}`.

## Step 2 — Draft-readiness and TRO

```bash
grep -n '> INSTRUCTIONS:' REPLICATION.md
grep -n 'action items go here' REPLICATION.md
find . -path "*/tro/tro-*.jsonld" -not -path "./.git/*"
```

- `> INSTRUCTIONS:` left → draft unfinished; list their sections and tell the
  user first.
- Note whether `-----action items go here------` exists (Step 4). Absence is
  expected on revision rounds.
- TRO found → read [references/tro.md](references/tro.md) and apply it here, in
  Step 5.4 and in Step 6.

## Step 3 — Independent verification

Skipped in summary-only mode. Read `## Findings`, `### Missing computational
requirements`, `### Tables and Figures`, `### In-Text Numbers`,
`## Classification`, `### Reason for incomplete reproducibility`,
`## Replication steps`. Cross-check (items 1–4 and 6 suit Sonnet sub-agents):

1. **Embedded scan output** (`### PII Checks`, `#### File Paths Summary`,
   candidate-package and possible-PII appendices):
   - packages: likely used, unlisted, no matching tag = gap (fix per "How to
     act");
   - PII: false positives are common and a missing tag often means a human
     dismissed it. Check `git log -p -- REPLICATION.md`; deliberately removed
     PII tags stay removed. Tag only hits nobody addressed;
   - file/Windows paths: a `NOTE` only, never an action item or in the SUMMARY.
2. **Outputs exist** for exhibits marked reproduced, only for tracked types
   (`*.png`, `*.pdf`, `*.eps`, `*.tex`, `*.log`). For gitignored types confirm
   via `generated/manifest.txt`. If an exhibit can only be checked from a
   gitignored file's content, read
   [references/gitignored-files.md](references/gitignored-files.md) (ask
   first, never fetch silently).
3. **Replicator logs** (`logs/*.log`, cited in `## Replication steps`): errors
   worked around but not recorded as "Bugs in code"; unresolved errors missing
   from Classification/Reason.
4. **Stated vs. actual requirements**: stated/missing requirements vs. the
   candidate-package tables.
5. **`### Reason for incomplete reproducibility`**, in order:
   1. vs. Classification (mechanical): full reproduction ⇔ `None.` is the only
      box checked; otherwise `None.` unchecked and at least one real reason.
   2. vs. Findings, both ways: every documented issue has its box; every
      checked box has a documented issue.
   3. vs. live Jira (credentials as in `references/revision-rounds.md` 1b;
      unset → skip and say so): `python3 tools/jira_get_info.py <ticket>
      reasonforfailure`. Empty = nothing checked. Compare on substance; option
      mapping and the two Jira-only options (never flag their absence) in
      [references/pipeline-context.md](references/pipeline-context.md). You
      can't fix Jira; report mismatches in Step 6.
6. **Unnamed/anonymous data providers** (special Data Editor protocol nobody
   else will catch):
   ```bash
   grep -rniE 'unnamed|anonymous|anonymi[sz]ed (data )?provider|remain anonymous|cannot be named|undisclosed' REPLICATION.md "$projectID"/ manuscript_parsed/ 2>/dev/null
   ```
   The grep is a first pass: also read the data-availability statement and
   data-source descriptions for a provider described without a name ("a large
   retailer", "a major bank", a citation with no organization). Keep only data
   *sources*, not anonymized respondents. On a hit, don't judge: ask whether
   the protocol for unnamed data providers was followed, quoting each passage
   (file:line), and leave tags and SUMMARY language for that source alone. No
   hit → say "no unnamed/anonymous provider found" in Step 6.

**How to act:**

- **Mechanical gap** (scan hit, no tag) → insert the standard tag from
  `sample-language-report.md` into `### Missing computational requirements` or
  `## Findings`, never an `## Appendix`.
- **Missing package/setup program** → all three, in `### Missing computational
  requirements`: (1) the verbatim `[REQUIRED]` setup-program tag for the
  language, with specifics in a short untagged line beneath; (2) the section's
  checklist with missing items checked and non-missing lines deleted (Hygiene
  §1); (3) the standing `[REQUIRED] Please amend README to contain complete
  computational requirements.`
- **Classification vs. `None.`** → fix directly; don't guess the substantive
  reason.
- **Findings vs. reason mismatch**, or any other judgment (unsupported
  reproduction claim, classification too generous or harsh) → ask, with
  evidence ("RA marked Table 4 reproduced but `$projectID/Output/Tables/` has
  no matching file"). Never silently edit.
- **REPLICATION.md vs. Jira** → edit neither; alert in Step 6.
- **Freehand annotations** (`@name:`, `QUESTION:`/`TODO:`/`CHECK:`, RA asides)
  → never delete; quote verbatim in Step 6 and let the user decide.

**Custom `[SUGGESTED]` tag** (nothing predefined fits): a short generic tagged
line (`aea-parse-tags` lifts exactly this line), a blank line, then untagged
specifics:

```
- [SUGGESTED] Review candidate package dependencies not listed in requirements.

  The scan detected `haven` (R) used in `analysis/clean.R` but not listed
  under `### Stated computational requirements`.
```

Revision rounds: also assess the Step 1c baseline. Figures marked reproduced
with differences beyond tick intervals → you may offer a side-by-side appendix:
[references/cosmetic-figures-appendix.md](references/cosmetic-figures-appendix.md)
(only with the editor's approval).

## Step 4 — Consolidate with `aea-parse-tags`

Run from `$REPO_ROOT`. What it does (routing by `{{ CATEGORY destination }}`,
priority order, pluralizing single-dataset wording, placing manuscript items
above the fixed blockquotes) is documented at
<https://aeadataeditor.github.io/editor-scripts/> (`aea-parse-tags` page);
don't re-implement any of it.

- **Marker missing**: revision round, or a deposit checklist already
  consolidated (by a pre-approver or the RA) → put `-----action items go
  here------` in `### Action Items (openICPSR)` **in place of** any existing
  `- [ ]` lines (before the `>` blocks), delete the `- [ ]` lines in
  `### Action Items (manuscript)` too, and rerun, without asking. Never
  append the marker after an existing checklist: the tool reads those lines
  as tags and duplicates them. Clear both lists before **every** rerun: the
  tool skips tags already in the manuscript list, so a `both` tag would
  silently drop out of the deposit list. Otherwise ask: restore, or
  `aea-parse-tags force`. Never force on your own.
- Report the deposit/manuscript tag counts it prints.
- **Spot-check routing**: nothing manuscript-only in the deposit list or vice
  versa (data-citation and IRB tags often lack `{{ METADATA m }}`). An
  unmarked tag lands in deposit/lowest; if wrong, add the
  marker to the tag line and rerun rather than hand-reordering.
- **Leftover singular wording** (after the last run; a rerun discards these
  edits): the tool fixes only "this dataset"-type phrasing. If another `- [ ]`
  line in the generated checklists reads wrong because the tag was raised in
  several places ("this file", "this program"), generalize it; if raised once,
  you may name the item. Edit only those `- [ ]` lines, keep prefix, links and
  order, leave the narrative tags and the fixed `>` blocks alone, and list each
  change (before → after) for Step 6.
- **Order check**: in `### Action Items (manuscript)` the first `- [ ]` line
  must come before the first `>` line. If not, editor-scripts is outdated:
  move the `- [ ]` block above the blockquotes unchanged, and say so in Step 6.
- Strip leftover `{{ }}` markers (Hygiene §3) before Step 6.
- Revision rounds: do all this before writing `### Previously`.

## Step 5 — Draft the SUMMARY

Read `sample-language-report.md` (repo root or `template/`), including
"Decisions". Never use memorized phrasing for tags or decisions. Target
~150–220 words, in the style described above.

1. **Opening**: "Thank you for your replication archive." (revision: see
   `references/revision-rounds.md`).
2. **One or two short paragraphs**: what was and wasn't reproduced; remaining
   `[REQUIRED]` items grouped by theme (code/bugs, data citations and access,
   README, RCT/IRB, PII, metadata) as polite requests; `[SUGGESTED]` items
   folded into a brief "please also consider…". **Categories, not
   specifics**: no file or function names, no root causes.
3. **One bolded decision sentence** from "Decisions", chosen by
   `## Classification` and whether `[REQUIRED]` items remain: full and none →
   acceptance; requireds remain → conditional accept; partial/failed → "look
   forward to reviewing again".
   **R&R override**: Jira title starts "Invitation to Review..." or `MCStatus`
   = `RR` → always "**We look forward to reviewing the final replication
   package again after conditional acceptance.**"
4. Boilerplate notes (e.g. SIVACOR pilot `[NOTE]`) only if they apply. TRO
   deposit → the "trusted verification system" wording from the library.
5. **Last line, verbatim** from `template/original-REPLICATION.md` (after
   `> INSTRUCTION: KEEP the next line AS-IS...`), immediately before
   `### Action Items (manuscript)`. Never drop, paraphrase or fold it into
   prose, even when replacing the SUMMARY wholesale.

No meta-commentary, hedging or checklist restatement; in doubt, cut. Write into
`## SUMMARY`, replacing the placeholder.

## Step 5b — Verbatim and style self-check

1. Every non-custom `[REQUIRED]`/`[SUGGESTED]` line occurs character for
   character in the library or the template (`grep -F -c -- "<tag text>"
   sample-language-report.md template/original-REPLICATION.md`; the template
   holds tags the library lacks, such as the openICPSR metadata ones); 0 →
   replace with library text or reformat as a custom tag. Exempt: the checklist lines rewritten in Step 4 (check their
   narrative tags instead).
2. The decision sentence is in "Decisions"; the last line matches the template.
3. The SUMMARY names categories only.
4. The SUMMARY's own sentences read as natural, everyday English (no stiff or
   formal phrasing); rewrite any that don't.

Fix failures, then report in Step 6.

## Report hygiene — every edit in Steps 2–5

Edits not listed as mechanical in Step 3 or here are judgment calls: surface
them in Step 6. `{{ }}` markers and `> INSTRUCTION` lines are the only text
you may remove without asking.

1. **Never delete unchecked checklist items.** Checklists are fixed menus; the
   unchecked lines show what was rejected. Exceptions only where the template's
   own `> INSTRUCTIONS:` line says so: whole sections to delete when
   inapplicable (e.g. `### Experimental/Survey instructions`), and `### Missing
   computational requirements` (complete → replace with "None"; incomplete →
   check missing items, delete the rest).
2. **Checkboxes are exactly `[x]` / `[ ]`**, on lines starting with `- ` (or
   nested `  - `). Normalize without asking:
   `sed -i -E 's/\[ x\]/[x]/g; s/\[x \]/[x]/g' REPLICATION.md`.
3. **Strip every `{{ ... }}` marker** after Step 4 (`aea-parse-tags` leaves
   them on tag lines it skips, e.g. a standing `[REQUIRED] {{ METADATA m }}`):
   ```bash
   sed -i -E 's/(> \[(REQUIRED|SUGGESTED|STRONGLY SUGGESTED)\]) \{\{ [^}]*\}\} /\1 /g' REPLICATION.md
   grep -n '{{' REPLICATION.md   # must be empty
   ```

## Step 6 — Report back

In plain, natural English, show:

- Step 5b result (fixed, or "clean");
- the drafted SUMMARY and the consolidated Action Items checklists;
- lines rewritten in Step 4 (before → after), or "none", and whether the
  manuscript block had to be moved;
- Step 3: what you fixed automatically and what needs a decision (with quoted
  annotations); the unnamed-provider result; gitignored files fetched; whether
  the figures appendix was offered;
- TRO: found?, Part B generated?, "trusted verification system" box state;
- the `### Reason for incomplete reproducibility` cross-check, in order: vs.
  Classification (and any `None.` fix), vs. Findings, and **always explicitly**
  vs. the live Jira field (discrepancies as an operator alert);
- approver after a pre-approval: what you changed relative to the pre-approver's
  draft, or "no changes";
- revision rounds: the current ticket if it differs from the repo's, the
  drafted `### Previously`, complete/incomplete calls.

## Restrictions

- **Never** create the approval commit, tag, push, or run `aeaready`; those are
  the editor's ([references/pipeline-context.md](references/pipeline-context.md)).
- **Never** fabricate findings, package names or paths, or invent canned
  language; use `sample-language-report.md`.
- **Never** write to Jira; read only via `tools/jira_find_task_by_icpsr.py` /
  `tools/jira_get_info.py`.
- **Never** modify anything from `# Automatically Generated Appendices` to the
  end of `REPLICATION.md`, nor `generated/REPLICATION_appendix.md`. Read freely;
  respond in narrative sections.
- **Never** resolve the `.../openicpsr/xxxxx` placeholder URL or add a DOI
  (`aeaready` fills both from Jira).
- Finalized repo (Step 1, nothing after approval): stop and ask. A revision in
  progress is not a reason to stop.

Files in this skill

  • SKILL.md20 KB
  • references/cosmetic-figures-appendix.md1.8 KB
  • references/gitignored-files.md1.4 KB
  • references/pipeline-context.md2 KB
  • references/revision-rounds.md3.7 KB
  • references/tro.md1.8 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.

View all in documentation →

Comments

Loading comments…

Newsletter

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