Add P0 infrastructure for the Volve-DIA benchmark

Set up the data, parsing and quality-control layer for a public benchmark
on the Volve daily drilling reports (DDR) and WITSML real-time data.

- Data manifest with SHA-256 hashes of the three Volve subtrees in use.
- DDR XML parser into DuckDB (1,759 reports, 26 wellbores, 23,447
  activities, 17 tables) with locked expected counts.
- Render QC of the publisher HTML against the XML (272,544 items).
- OCR client for the shared chandra vLLM service, with a page cache keyed
  on model, prompt hash, dpi, max_tokens and temperature, and OCR QC
  against the HTML on a 26-report pilot.
- Run logging (scripts/runlog.sh, logs/index.csv), the P0 runner and
  40 tests.
- Research plan, technical overview and progress page (in Vietnamese).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 12:45:34 +00:00
commit a3c175638f
172 changed files with 145856 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
# Authorship, CRediT, AI, and Confidentiality
## Human authorship and accountability
Use the current target-journal authorship policy. For biomedical work, ICMJE's four
criteria require substantial contribution, drafting or critical revision, final
approval, and accountability for all aspects of the work [SW-S01].
AI systems and other nonhuman tools are not authors. They cannot approve the work,
accept accountability, disclose conflicts, or manage copyright and license agreements
[SW-S01, SW-S03].
Do not:
- add or remove an author without all required human approvals;
- infer contributions from author order, affiliations, or email;
- generate an author-contribution statement from incomplete records;
- use CRediT roles as a substitute for the venue's authorship criteria.
## CRediT
CRediT is the ANSI/NISO Z39.104-2022 taxonomy of 14 contributor roles. The standard
explicitly describes contributions and does not define authorship [SW-S19].
Record only roles confirmed by the contributor and accountable author team:
- Conceptualization
- Data curation
- Formal analysis
- Funding acquisition
- Investigation
- Methodology
- Project administration
- Resources
- Software
- Supervision
- Validation
- Visualization
- Writing – original draft
- Writing – review & editing
One person may have multiple roles; a project need not use every role. Non-author
contributors may also receive appropriate credit and acknowledgment subject to consent
and journal policy.
## AI-use disclosure
The January 2026 ICMJE Recommendations call for disclosure of the AI tool and purpose
in the cover letter and appropriate manuscript section. Writing assistance belongs
in acknowledgments; use for data collection, analysis, or figure generation belongs
in Methods as applicable
[SW-S01, SW-S02]. COPE's formal position likewise requires disclosure and keeps full
responsibility with human authors [SW-S03].
Journal and publisher rules differ and evolve. Check them at the time of use and again
before submission. Record:
- tool, provider, and version or access date;
- purpose and affected stage;
- whether output entered text, code, analysis, tables, or figures;
- human verification performed;
- disclosure locations required by the venue;
- what material, if any, was sent outside the approved environment;
- authorization and policy review for any restricted transfer.
Do not fabricate an AI-use statement or claim that no AI was used. Obtain confirmation
from the human authors.
## Confidentiality boundary
Do not send any of the following to an external service without explicit authorization
and a documented policy review:
- unpublished manuscripts or drafts;
- peer-review or editorial material;
- sensitive or restricted data;
- protected health information or other personal data;
- proprietary or contract-restricted content;
- source documents, including full articles, reports, protocols, and datasets.
Authorization must come from a person or body empowered to grant it and must be
consistent with journal policy, consent, ethics approval, contracts, law, institutional
policy, and data-use terms. Removing obvious names does not by itself make content safe.
When authorization is absent or unclear, keep processing local and use only minimal
metadata. This skill's bundled tools make no network calls and do not read environment
variables or `.env` files.
ICMJE treats submitted manuscripts as privileged communications and warns editors and
reviewers not to upload them to AI systems where confidentiality cannot be assured
without author permission [SW-S01]. JAMA provides a journal-policy example with the same
confidentiality concern [SW-S24].
## COPE status as of the research date
COPE's 2017 Core Practices were retired in 2024. The Code of Conduct for COPE
Members was published on 21 July 2026, with 12 months from first publication for
implementation. It sits alongside the 2026 Core Principles [SW-S04, SW-S05]. Use
current topic-specific guidance; distinguish formal positions from discussion
documents, webinars, comments, and case advice.
## Validation
Populate `authorship.json`, then run:
```bash
python3 scripts/validate_authorship.py authorship.json
```
The validator checks human authorship gates, exact CRediT role names, guarantors, final
approval, declaration-hash syntax, AI disclosure, and restricted external-transfer
gates. It does not compare declaration hashes against manuscript statements.
These are ICMJE-style local gates, not a universal authorship standard. For example,
Nature Portfolio uses a different contribution criterion [SW-S23]. The guarantor
record is a local accountability convention, not a claim that all journals require
one. Do not falsely attest to a gate to pass the tool; document the actual venue
criteria and any local-validator limitation. The tool cannot adjudicate contribution
disputes or determine who deserves authorship.

View File

@@ -0,0 +1,94 @@
# Citation Integrity and Reference Formatting
## Verification before style
Formatting cannot repair an unverified reference. For every cited source:
1. Open the source or authoritative bibliographic record.
2. Confirm the cited proposition at a precise locator.
3. Confirm authors or organization, title, publication state, venue, year, and version.
4. Copy identifiers exactly from the verified record.
5. Record corrections, retractions, expressions of concern, updates, and preprint status.
6. Assign an evidence ID and human verification record.
Do not cite a source that was not read for the proposition. Do not copy a DOI, PMID,
quotation, or reference from generated text, a search snippet, or another article
without verification. ICMJE assigns authors responsibility for reference accuracy and
rejects AI-generated material as a primary source [SW-S01].
## Quotations and paraphrases
- Verify every quotation character-for-character and record a stable locator.
- Preserve context, qualifications, and negation.
- Mark changes, omissions, or translations according to venue policy.
- Paraphrase from understanding, not by superficial word substitution.
- Obtain permissions where copyright or license terms require them.
- For personal communications or unpublished information, obtain required permission
and follow current journal policy [SW-S01].
## Source choice
Prefer the original source for a reported method, dataset, result, policy, or guideline.
Use a review for synthesis when it actually supports the synthesized claim. Clearly
identify preprints and other non-peer-reviewed versions. Check that a later correction
or published version does not supersede the cited record.
Do not use citation counts, venue prestige, recency, or a target percentage of recent
references as a substitute for relevance and evidentiary fit.
## Identifiers
The local checker validates syntax and duplicates only. It does not resolve identifiers
and cannot establish that an identifier belongs to the recorded work.
Supported local checks include:
- DOI;
- PMID;
- PMCID;
- ISBN checksum;
- HTTP or HTTPS URL shape;
- duplicate normalized titles and identifiers.
After the local check, a human must compare each identifier with the opened source.
## NLM and journal styles
For biomedical references, use *Citing Medicine* and NLM's sample references for the
relevant source type [SW-S20, SW-S21]. These cover articles, books, datasets, software,
and online material. The current target journal's instructions override generic style
examples. JAMA currently advises against using AI/LLMs to generate or format
references; use a standard reference manager and manually verify its output for that
venue [SW-S25].
For APA, AMA, Chicago, IEEE, ACS, Vancouver-derived, or publisher-specific styles:
- use the current official manual or journal style;
- render from verified structured metadata;
- check author truncation, title case, journal abbreviation, version, date, locator,
and identifier rules;
- inspect the rendered list manually after conversion.
Do not invent a complete-looking example reference. Templates should use explicit
fields or evidence IDs until verified metadata exists.
## Citation audit
Before submission:
- every factual or numeric claim maps to verified evidence IDs;
- each in-text citation maps to a source-manifest record;
- every reference-list entry is cited unless the venue explicitly permits a
bibliography;
- citation ordering and repeated citation behavior match the target style;
- reused figures, tables, datasets, software, protocols, and standards are attributed;
- direct quotations have locators and permissions where needed;
- duplicate and malformed identifiers are resolved;
- no retracted or corrected status is concealed.
Run:
```bash
python3 scripts/audit_claims.py manuscript.md claims.csv source_manifest.json
python3 scripts/check_references.py source_manifest.json
```

View File

@@ -0,0 +1,120 @@
# Local CLI Reference
All bundled commands use only the Python standard library. They:
- accept explicit UTF-8 JSON, CSV, or Markdown files;
- reject symbolic-link inputs;
- cap file size, records, fields, JSON nodes, and nesting;
- make no network calls;
- read no environment variables or `.env` files;
- perform no dynamic evaluation or pickle loading;
- report issue codes, IDs, and line numbers without echoing manuscript or source text.
Run from the skill directory with Python 3.11 or newer.
## Scaffold
```bash
python3 scripts/scaffold_manuscript.py \
--output-dir ./draft-workspace \
--document-id local-draft \
--study-design randomized_trial \
--guideline consort-2025
```
The output directory must not exist. The command never overwrites files. Generated
documents are explicitly incomplete and not submission-ready.
## Manifest validation
```bash
python3 scripts/validate_manifest.py manuscript_manifest.json --kind manuscript
python3 scripts/validate_manifest.py source_manifest.json --kind source
python3 scripts/validate_manifest.py source_manifest.json --kind source --require-verified
```
The validator checks structure, IDs, verification gates, confidentiality status, and
required-statement status. It does not read files named inside the manifest.
## Reporting-guideline routing and coverage
```bash
python3 scripts/select_reporting_guidelines.py select --study-design systematic_review
python3 scripts/select_reporting_guidelines.py check reporting_coverage.json
```
Selection and coverage are non-scoring. Open the official guideline after selection.
## Claim and citation audit
```bash
python3 scripts/audit_claims.py manuscript.md claims.csv source_manifest.json
```
Required CSV headers:
```text
claim_id,section,claim_kind,claim_text_sha256,evidence_ids,verification_status,uncertainty,analysis_intent
```
Separate multiple evidence IDs with semicolons in CSV. Use inline Markdown markers:
```text
[claim:C001] [evidence:E001,E002]
```
Use exactly one claim per physical line. The audit checks the SHA-256 digest against
that line after removing `[claim:...]`, `[evidence:...]`, and `[@E...]` markers
and collapsing whitespace.
It also validates source-manifest verification metadata and flags numeric content
without a claim marker. See `evidence_workflow.md` for normalization and limits.
## Numeric and methods-results consistency
```bash
python3 scripts/check_consistency.py consistency_manifest.json
```
The command checks duplicate concepts across sections, units, percentages against
numerators and denominators, sample sizes, evidence IDs, declared methods, outcome
mappings, and confirmatory or exploratory status.
## Reference identifiers and duplicates
```bash
python3 scripts/check_references.py source_manifest.json
```
The command checks local syntax and duplicates for DOI, PMID, PMCID, ISBN, URL, and
normalized title. It never resolves an identifier; a human must compare each value with
the opened source.
## Authorship and disclosure
```bash
python3 scripts/validate_authorship.py authorship.json
```
The command checks human authorship criteria, exact CRediT role names, corresponding
author and guarantor IDs, final approval, declaration-hash syntax, AI disclosure, human
verification, journal-policy review, and authorization gates for restricted material.
Its authorship criteria are ICMJE-style local gates, not all journals' criteria.
Declaration hashes are not compared with manuscript text; manually reconcile the
actual statements. Recorded dates must be valid calendar dates in YYYY-MM-DD form.
## Language, placeholder, and confidentiality lint
```bash
python3 scripts/lint_manuscript.py manuscript.md \
--manifest manuscript_manifest.json
```
Possible sensitive-content findings are review prompts, not a de-identification
certificate. The linter intentionally fails on unresolved placeholders.
## Exit behavior
- exit `0`: no error-level findings;
- exit `1`: invalid input or one or more error-level findings.
Warnings still require human review. JSON output is deterministic for the same inputs.

View File

@@ -0,0 +1,110 @@
# Evidence and Provenance Workflow
## Core separation
Drafting and evidence verification are different activities.
- **Drafting** organizes language from already recorded evidence IDs. A draft may remain
incomplete and uncertain.
- **Verification** requires an accountable human to open the source, confirm the exact
support and locator, check bibliographic metadata, and record who verified it and
when.
- A fluent sentence is not evidence. Search snippets, generated summaries, memory, and
another paper's reference list are discovery aids, not verified support.
## Registries
The scaffold creates five linked records:
1. `source_manifest.json` assigns each source an `E` ID and records identifiers,
location, confidentiality class, and verification state.
2. `claims.csv` assigns each claim a `C` ID, stores a hash rather than raw claim text,
and maps the claim to one or more verified `E` IDs.
3. `consistency_manifest.json` binds numeric facts, methods, outcomes, analysis intent,
units, denominators, sample sizes, and result locations.
4. `authorship.json` records human authorship criteria, CRediT roles, accountability,
declarations, and AI use.
5. `reporting_coverage.json` records high-level coverage without scoring or certifying
the manuscript.
These registries contain metadata, not full source documents. Do not paste unpublished
manuscripts, peer-review files, PHI, sensitive datasets, proprietary content, or source
documents into them.
## Claim markers
Append machine-readable markers to every factual or numeric assertion while drafting:
```text
[claim:C001] [evidence:E001,E002]
```
An alternative citation marker is `[@E001]`. Keep the claim and evidence markers on the
same physical line until the audit passes. Use exactly one claim marker per line.
Each line can express a composite claim only when its evidence supports every part.
A final publisher conversion may replace evidence IDs with rendered citations only
after preserving an auditable mapping.
## Verification procedure
For each source:
1. Open the authoritative source or record.
2. Confirm title, author or organization, publication state, year, and identifiers.
3. Record the exact supporting location, such as section, page, table, figure, or
registry field.
4. Confirm that the source supports the claim's direction, population, intervention or
exposure, outcome, time point, and uncertainty.
5. Record caveats, retractions, corrections, expressions of concern, or version status.
6. Mark the source verified only after a named human completes the check.
For each claim:
1. Classify it as factual, numeric, method, result, interpretive, or declaration.
2. Remove `[claim:C...]`, `[evidence:E...]`, and `[@E...]` markers from the
entire physical line, collapse whitespace with `" ".join(text.split())`, then
SHA-256 the UTF-8 bytes and store the lowercase hexadecimal digest in
`claims.csv`. Preserve case, punctuation, and other Markdown syntax. The bundled
`audit_claims.claim_text_hash` function implements this exact normalization.
3. Map it to verified evidence IDs.
4. Record uncertainty and whether the analysis was confirmatory, exploratory,
descriptive, or not applicable.
5. Keep unsupported or conflicting claims out of submission-ready prose. If useful,
retain them in a clearly marked unresolved-issues log.
## Drafting gates
Do not infer or complete missing:
- citations, identifiers, quotations, or source locators;
- data values, denominators, units, sample sizes, or statistical results;
- methods, protocol details, analysis decisions, or deviations;
- approvals, consent, registrations, author contributions, conflicts, funding, or
availability statements.
Use explicit missing states. Preserve negative, null, adverse, unexpected, and
inconclusive findings. Never convert absence of evidence into evidence of no effect.
## Final audit
Run:
```bash
python3 scripts/validate_manifest.py source_manifest.json --kind source --require-verified
python3 scripts/audit_claims.py manuscript.md claims.csv source_manifest.json
python3 scripts/check_consistency.py consistency_manifest.json
python3 scripts/check_references.py source_manifest.json
```
Tool output contains IDs and line numbers, not manuscript or source text. A passing
machine audit supports review; it does not replace human scientific judgment.
The claim audit compares that digest with the current manuscript line and rejects
changed text or multiple claim markers on a line. Re-verify the evidence fit before
replacing an old digest. A matching hash detects text changes; it proves neither
scientific truth nor that a human performed the recorded verification. Hashes are
not encryption and do not anonymize predictable sensitive statements.
The lightweight audit skips headings, comment-start lines, and fenced code; numeric
text outside these regions must be tagged. It cannot identify every untagged
non-numeric assertion or inspect the contents of linked files. Review those manually.

View File

@@ -0,0 +1,94 @@
# Optional Figures and Tables
Figures and tables are optional. Include a display only when it communicates verified
evidence more clearly than prose and the target venue permits it. This skill does not
generate images, schematics, graphical abstracts, or synthetic scientific visuals.
## Provenance gate
Each display needs a record containing:
- stable display ID and version;
- source data or evidence IDs;
- code, query, or manual transformation used;
- accountable creator and reviewer;
- date generated or revised;
- analysis population, exclusions, and sample size;
- units, scales, denominators, and uncertainty definitions;
- license, attribution, and permission status for reused material;
- documented adjustments, cropping, compositing, or preprocessing.
Do not recreate missing source data from a screenshot or published graphic. Do not
alter an image in a way that hides, removes, duplicates, or misrepresents information.
Retain original files and an audit trail.
## Choosing a form
Use:
- prose for a small number of directly relevant values;
- a table when exact values and multidimensional comparison matter;
- a figure when pattern, distribution, relationship, sequence, or spatial information
matters.
Avoid duplicating the same information in prose, a table, and a figure. There is no
universal minimum, maximum, or display-per-word rule.
## Tables
Check:
- title and notes define population, time point, analysis set, units, and abbreviations;
- rows and columns preserve denominators and distinguish missing from zero;
- percentages can be recomputed from the recorded numerator and denominator;
- precision is consistent with the measurement and analysis;
- uncertainty and statistical quantities are named, not implied by symbols alone;
- values match the abstract, prose, figures, supplements, and consistency registry;
- cells remain accessible as text rather than an image when the venue allows.
## Figures
Check:
- axes, scales, transformations, units, and reference lines are explicit;
- truncated or nonlinear scales are visible and justified;
- individual observations or distributions are shown when scientifically appropriate;
- uncertainty is defined;
- group sizes and exclusions are available;
- legends identify all encodings;
- colors, shapes, line styles, labels, or patterns provide redundant cues;
- image panels include scale and orientation information where relevant;
- the final exported file matches current journal format and size instructions.
Do not add significance stars or trend lines unless they map to a verified analysis.
## Captions and alt text
A caption should state what is shown, define panels and encodings, identify the analysis
population, units, uncertainty, and relevant methods, and link to evidence IDs during
drafting.
Alt text should:
- identify the display type and purpose;
- summarize the principal visible pattern without adding a new conclusion;
- describe axes, groups, direction, and uncertainty needed to understand the display;
- avoid repeating the full caption or listing every data point;
- be reviewed manually with the final display.
Automated accessibility checks do not verify scientific correctness. Inspect contrast,
color independence, reading order, label size, keyboard or screen-reader behavior where
applicable, and legibility at final size.
## Flow diagrams
Use the current official flow-diagram resource for the selected guideline, such as
CONSORT 2025 or PRISMA 2020 [SW-S07, SW-S10]. Populate it only from verified counts.
Reconcile every branch and denominator with the methods, results, and registry.
## Final manual review
An accountable human should compare each display against source data and analysis
output, inspect permissions and confidentiality, verify captions and alt text, and
confirm the rendered export. Passing a file-format or consistency check does not certify
the display.

View File

@@ -0,0 +1,114 @@
# Manuscript Structure and Consistency
IMRAD is a useful default for many original-research reports, but the study design,
reporting guideline, article type, and current journal instructions control the final
structure [SW-S01, SW-S06].
## Title and abstract
The title should identify the work accurately without adding novelty, causality, design,
or population claims that the manuscript does not support.
Draft the abstract after the main text. Mirror, do not reinterpret:
- objective or question;
- design, setting, population or material, and key methods;
- analysis population and prespecified primary result;
- estimate, uncertainty, denominator, and harms where relevant;
- conclusion limited to the reported evidence.
Structured versus unstructured format is a venue decision. Do not apply a universal
format. Any number in the abstract must match the same concept and analysis set in the
main text and consistency registry.
## Introduction
Build a short evidence chain:
1. verified context;
2. what is known and uncertain;
3. the specific gap;
4. the objective, question, or prespecified hypothesis.
Do not claim that no prior work exists unless a suitable search verifies that claim.
Avoid previewing unsupported results or inflating significance.
## Methods
Methods should permit evaluation and, where feasible, reproduction. Cover the elements
applicable to the design:
- design, setting, dates, and protocol or registration;
- participants, specimens, datasets, or source population;
- eligibility, selection, sampling, exclusions, and analysis populations;
- interventions, exposures, comparators, materials, instruments, and versions;
- outcomes, predictors, thresholds, time points, and measurement methods;
- bias controls, randomization, allocation, and masking where applicable;
- sample-size rationale;
- missing data, transformations, covariates, multiplicity, sensitivity analyses, and
statistical or computational methods;
- confirmatory, exploratory, and descriptive status;
- ethics, consent, privacy, data governance, and approvals only when verified;
- data, code, materials, and protocol access conditions.
Record deviations and timing. Never reconstruct a method from a result merely to make
the paper appear consistent.
## Results
Follow the declared objectives and outcomes. Report:
- participant, sample, or record flow;
- exclusions, missingness, attrition, and analysis populations;
- descriptive information needed for interpretation;
- prespecified primary and secondary results;
- estimates with units, denominators, sample sizes, and uncertainty;
- exploratory, sensitivity, subgroup, negative, null, adverse, unexpected, and
inconclusive findings with correct labels;
- protocol or analysis deviations that affect interpretation.
Describe results before interpretation unless the venue combines Results and
Discussion. Do not equate a threshold crossing with scientific or practical importance.
## Discussion
Start from the verified findings, then:
- answer the objective at the supported level of certainty;
- compare with verified prior evidence;
- consider alternative explanations;
- distinguish statistical, scientific, clinical, and practical interpretation;
- explain limitations and likely consequences;
- bound generalizability to the studied population, material, setting, and period;
- identify implications without prescribing action beyond the evidence.
Do not introduce new results, methods, approvals, or citations that bypass verification.
## Declarations and end matter
Treat each statement as data, not boilerplate:
- author contributions and accountability;
- acknowledgments and permissions;
- funding and the funder's role;
- competing interests;
- ethics, consent, and registration;
- data, code, materials, and protocol availability;
- AI-use disclosure;
- references, figure legends, tables, and supplements.
Use verified or explicit not-applicable states. Never generate an approval identifier,
grant number, registration, author role, conflict declaration, or availability promise.
## Cross-section audit
Before submission, compare:
- objective ↔ outcome ↔ result ↔ conclusion;
- methods ↔ results;
- abstract ↔ main text ↔ tables ↔ figures ↔ supplement;
- units, denominators, sample sizes, labels, and time points;
- registration and protocol ↔ manuscript;
- in-text citations ↔ source manifest ↔ reference list.
Run `scripts/check_consistency.py` and complete a manual scientific review.

View File

@@ -0,0 +1,62 @@
# Journal and Publisher Policy Review
Generic guidance never overrides the target journal's current instructions.
## Capture a dated policy record
Before drafting and again before submission, record:
- journal, article type, and policy URL;
- date accessed;
- word, abstract, reference, table, figure, and supplement limits;
- required structure and reporting guideline;
- registration, protocol, and analysis-plan requirements;
- ethics, consent, participant privacy, and image requirements;
- authorship, contributor, acknowledgment, and change-of-authorship rules;
- funding, conflicts, and sponsor-role disclosures;
- data, code, materials, and repository policies;
- preprint, prior dissemination, duplicate submission, and copyright policies;
- AI use by authors and any restrictions on external tools;
- peer-review model and confidentiality;
- file, accessibility, and submission-system requirements.
Do not guess an absent policy. Ask the journal or leave the decision unresolved.
## Official examples
- JAMA's current Instructions for Authors illustrate article-type-specific requirements
and should be consulted directly for a JAMA submission [SW-S25].
- JAMA's AI guidance illustrates author disclosure, human responsibility, and
confidentiality limits for peer review [SW-S24].
- Nature Portfolio's reporting and availability policy illustrates venue requirements
for data, materials, code, protocols, restrictions, and access [SW-S22].
- Nature Portfolio's authorship policy illustrates publisher-specific accountability
and contribution statements [SW-S23].
- PLOS Biology's data policy illustrates how sharing expectations interact with
consent, privacy, legal, ethical, and sensitive-data restrictions [SW-S26].
JAMA's live instructions prohibit AI/LLM drafting of Opinion manuscripts, Letters to
the Editor, and Online Comments, and advise against AI generation or formatting of
references; standard reference managers may be used [SW-S25]. A disclosure does not
make a prohibited use permissible. Check article-type restrictions at intake, before
drafting. These restrictions are not universal publisher rules.
These are examples, not defaults for other journals. Publisher-level policy and
journal-level instructions may both apply.
## Submission review
Perform a manual comparison against the live instructions:
1. Select the exact article type.
2. Confirm the latest reporting guideline and extensions.
3. Verify every required statement from source records.
4. Confirm whether checklists or flow diagrams must be uploaded.
5. Confirm data, code, and materials deposits actually exist and are accessible as
stated.
6. Confirm author order, corresponding author, CRediT roles, and approvals.
7. Confirm AI-use disclosure wording and location with the human authors.
8. Verify files, anonymization, accessibility, permissions, and metadata.
9. Save the access date and policy URLs in the submission record.
Passing local tools does not establish venue compliance.

View File

@@ -0,0 +1,82 @@
# Safe Formatting for Reports and Manuscripts
## Content before presentation
The former LaTeX style and demonstration report were removed. They could turn
plausible-looking placeholder findings into a polished PDF. This version uses
format-neutral Markdown and JSON/CSV registries so incompleteness remains visible.
Do not format a draft as submission-ready while any verification gate is incomplete.
Visual polish is not evidence.
## Workflow
1. Create a local scaffold.
2. Draft and verify content in Markdown.
3. Run manifest, claim, reference, consistency, authorship, coverage, and lint checks.
4. Obtain accountable human approval.
5. Copy the verified content into the current venue template.
6. Re-run checks that remain applicable and inspect the rendered output manually.
For a journal or conference, use its current author instructions and official template.
For an institutional report or thesis, use the institution's controlled template.
## Fail-closed placeholder policy
Permitted draft markers are intentionally conspicuous, such as `[[TODO:...]]`. The
language linter treats them as errors. Never replace an unresolved marker with generic
boilerplate, a guessed number, a fabricated statement, or an invented citation.
Keep:
- `submission_ready` false;
- the draft banner visible;
- missing declaration statuses explicit;
- human and confidentiality gates incomplete;
until the underlying records are verified.
## Headings and navigation
- Use a single title and logical heading levels.
- Preserve heading order when converting formats.
- Include lists of tables or figures only when useful or required.
- Use stable internal labels for tables, figures, appendices, and supplements.
- Ensure generated bookmarks and reading order match the visible structure.
## Typography and layout
- Use the venue's prescribed font, spacing, margins, page size, and line numbering.
- Do not use color, weight, or position as the only carrier of meaning.
- Keep equations, symbols, units, subscripts, and superscripts intact through
conversion.
- Check widows, orphans, clipped content, broken links, and misplaced floats manually.
## Tables, figures, and accessibility
Follow `figures_tables.md`. Verify alt text, captions, provenance, permissions, color
independence, reading order, label legibility, and final-size rendering. Do not create a
decorative visual simply to make a report appear complete.
## References and declarations
References must render from verified metadata. After conversion, inspect identifier
links, special characters, author order, and citation order.
Declarations must come from validated records. A style template must never supply a
default ethics approval, consent statement, funding source, conflict statement, author
contribution, data or code promise, or AI disclosure.
## Archival handoff
Retain:
- the verified Markdown source;
- the structured registries;
- the exact venue template version;
- conversion instructions and software versions;
- the final rendered file;
- validator outputs and human approval record.
Do not archive sensitive source documents alongside a public manuscript package unless
authorization, consent, law, contracts, and policy permit it.

View File

@@ -0,0 +1,107 @@
# Reporting-Guideline Selection and Coverage
## Purpose and limits
Reporting guidelines help authors report study design, conduct, analysis, and findings
completely enough for appraisal. They do not make a study rigorous, replace a protocol,
repair missing methods, appraise risk of bias, certify compliance, or predict acceptance.
The bundled selector and coverage checker are deliberately non-scoring [SW-S06, SW-S12].
Always open the current official statement, checklist, explanation-and-elaboration
document, relevant extensions, and target-journal instructions. The bundled registry is
a dated routing aid, not a copy of any official checklist.
## Current major guidance as researched
- **Randomized-trial results:** CONSORT 2025. The joint official site provides the
statement, checklist, expanded checklist, flow diagram, and explanation and
elaboration [SW-S07, SW-S08].
- **Randomized-trial protocols:** SPIRIT 2025 and its participant-timeline resources
[SW-S07, SW-S09].
- **Systematic reviews and meta-analyses:** PRISMA 2020. Choose relevant extensions,
such as protocol, scoping-review, search, or diagnostic-accuracy guidance, from the
official PRISMA and EQUATOR sites [SW-S10, SW-S06].
- **Cohort, case-control, and cross-sectional studies:** STROBE and the applicable
design-specific checklist [SW-S11].
- **Diagnostic-accuracy studies:** STARD 2015; add STARD-AI for an AI-centered
diagnostic-accuracy study [SW-S12, SW-S13].
- **Clinical prediction models:** TRIPOD+AI 2024 covers regression and machine-learning
prediction-model studies and replaces TRIPOD 2015; add TRIPOD-LLM for biomedical or
healthcare LLM studies within its scope [SW-S14].
- **Case reports:** CARE 2013, including consent-sensitive reporting [SW-S15].
- **In vivo animal research:** ARRIVE 2.0, using both the Essential 10 and Recommended
Set as appropriate [SW-S16].
- **Healthcare quality improvement:** SQUIRE 2.0 [SW-S17].
- **Health economic evaluations:** CHEERS 2022 [SW-S18].
- **Qualitative research:** use SRQR generally and verify whether COREQ or another
design-specific guideline is more appropriate through EQUATOR [SW-S06].
For AI intervention trials or protocols, check CONSORT-AI or SPIRIT-AI in addition to
the current parent statement. For routinely collected data, harms, equity, patient-
reported outcomes, clusters, noninferiority, pilot studies, and other special designs,
search EQUATOR for a current extension [SW-S06].
## Selector
Use the offline registry:
```bash
python3 scripts/select_reporting_guidelines.py select --study-design randomized_trial
python3 scripts/select_reporting_guidelines.py select --study-design randomized_trial --protocol
python3 scripts/select_reporting_guidelines.py select --study-design diagnostic_accuracy --ai
python3 scripts/select_reporting_guidelines.py select --study-design prediction_model --ai --llm
```
The result is a candidate set. A human must confirm:
- the actual design and article type;
- whether a protocol or results report is being written;
- every relevant extension;
- current version and corrections;
- target-journal requirements.
If no local match exists, search the official EQUATOR library rather than forcing the
nearest guideline.
## Coverage record
The bundled `coverage_topics` are original high-level prompts. They do not reproduce
official item wording or numbering.
For each topic, record:
- `addressed`, with manuscript locations;
- `not_applicable`, with a rationale;
- `missing`.
Then run:
```bash
python3 scripts/select_reporting_guidelines.py check reporting_coverage.json
```
A pass means every bundled topic has an allowed status and location or rationale. It
does not mean every official checklist item is satisfied or well reported.
## Workflow
1. Select candidate guidance during planning.
2. Open the official statement and explanation document.
3. Record prospective items in the protocol, registry, or analysis plan where
applicable.
4. Draft the manuscript from evidence and methods records.
5. Complete the official checklist with actual manuscript locations.
6. Record missing items honestly; do not invent information to fill them.
7. Submit the official checklist or flow diagram if the journal requires it.
8. Re-check guideline and journal versions immediately before submission.
## Frequent errors
- treating a checklist as a design-quality score;
- claiming adherence when only a subset was reviewed;
- using an outdated parent statement while overlooking a current update;
- omitting a relevant extension;
- writing a missing method into the paper as though it occurred;
- checking boxes without recording manuscript locations;
- assuming a journal endorsement means submission requirements are identical across
article types.

View File

@@ -0,0 +1,97 @@
# Research Integrity and Responsible Open Science
## Integrity principles
The ALLEA 2023 Code frames research integrity around reliability, honesty, respect, and
accountability across disciplines and research settings [SW-S27]. Apply those principles
throughout drafting, not only at submission.
- Preserve the original record and an audit trail.
- Report methods, deviations, uncertainty, and findings honestly.
- Correct material errors promptly and transparently.
- Respect participants, communities, collaborators, animals, the environment, and
legitimate rights in knowledge and data.
- Assign credit fairly and accept accountability.
- Do not fabricate, falsify, plagiarize, selectively omit, or conceal provenance.
If potential misconduct or a material error appears, preserve records and follow the
institutional, funder, journal, and legal process. Do not investigate by exposing
sensitive material to unapproved systems.
## Open science with safeguards
UNESCO's Recommendation supports accessible, inclusive, equitable, and sustainable open
science while recognizing legitimate restrictions for confidentiality, personal
information, intellectual property, threatened resources, and protected knowledge
[SW-S28].
For every data, code, materials, and protocol statement:
1. Confirm ownership, consent, ethics terms, contracts, law, and repository policy.
2. Identify what underlies the reported claims.
3. Choose an appropriate repository and access model.
4. Record versions, persistent identifiers, licenses, metadata, and retention.
5. State restrictions and an actual access process.
6. Verify that the deposited files match the analysis and do not expose restricted
information.
Do not promise public availability merely because a template asks for it. "Available on
request" must describe a real, authorized, sustainable process if the venue permits that
form.
## Prospective transparency
Where applicable, record:
- study registration;
- protocol and amendments;
- analysis plan and timing;
- outcome and model definitions;
- data-management and sharing plan;
- materials, software, environment, and versions;
- departures from prespecification.
The Center for Open Science's TOP 2025 framework provides practices for registration,
protocols, analysis plans, materials, data, code, reporting transparency, and
verification [SW-S30]. These practices are flexible policy components, not a universal
score for an individual manuscript.
NIH's Data Management and Sharing Policy applies to covered NIH research and expects
planning, budgeting, submission of a plan, and compliance with the approved plan
[SW-S29]. Check the specific funder, award, institute, and effective requirements.
## Reproducibility package
When policy and rights permit, preserve:
- immutable raw-data references rather than uncontrolled copies;
- cleaned or analysis-ready data with provenance;
- executable analysis code and environment information;
- software and model versions;
- randomization or seed handling where relevant;
- machine-readable tables behind reported displays;
- a mapping from outputs to manuscript claims;
- checksums, releases, and persistent identifiers.
Never share secrets, credentials, direct identifiers, restricted variables, proprietary
source code, or licensed source documents in a public package.
## Corrections and versions
Before submission, check for corrected, retracted, superseded, or updated sources. After
dissemination:
- preserve the original version where policy requires;
- describe what changed and why;
- link corrections to the affected record;
- update downstream data, code, tables, and claims;
- notify the appropriate journal, repository, collaborators, and oversight bodies.
Do not silently edit a scientific record in a way that hides a material change.
## Negative and null findings
Open science includes an accurate record of outcomes that do not support the preferred
narrative. Preserve negative, null, adverse, failed, and inconclusive results when they
are part of the study record. Describe their uncertainty and limitations; do not
reinterpret them as proof of absence.

View File

@@ -0,0 +1,286 @@
# Source Ledger
Current review date: **2026-10-01** (initial research: 2026-07-24)
Method: current official-page reads plus `parallel-cli extract` (600-second maximum
cache age, no stale fallback), restricted to
official guideline organizations, standards bodies, government sites, and original
statement publications. No search-result artifacts are bundled. Re-check every source
and the target journal immediately before submission because policies can change.
Source IDs in this ledger ground factual statements in the skill. They are not evidence
IDs for a user's manuscript.
## Publication ethics, authorship, and AI
### SW-S01 — ICMJE Recommendations
- Organization: International Committee of Medical Journal Editors
- Version: Updated January 2026
- URL: https://www.icmje.org/icmje-recommendations.pdf
- Used for: authorship criteria, human accountability, AI disclosure, reference
verification, confidentiality, peer review, reporting guidelines, corrections, and
data-access expectations.
### SW-S02 — ICMJE January 2026 update notice
- Organization: ICMJE
- Date: January 2026
- URL: https://www.icmje.org/news-and-editorials/updated_recommendations_jan2026.html
- Used for: confirmation that the 2026 update added expanded AI guidance and author
access-to-data guidance.
### SW-S03 — COPE position on authorship and AI tools
- Organization: Committee on Publication Ethics
- Formal position last reviewed: 2023; current page rechecked 2026-10-01
- URL: https://publicationethics.org/guidance/cope-position/authorship-and-ai-tools
- Used for: AI cannot be an author; authors disclose use and remain responsible.
### SW-S04 — COPE Code of Conduct status
- Organization: COPE
- Version history: current version published 2026-07-21
- URL: https://publicationethics.org/membership/code-of-conduct
- Used for: published Code of Conduct for Members, replacing the retired Core
Practices, with a 12-month implementation transition from first publication.
### SW-S05 — COPE history of Code and Core Practices
- Organization: COPE
- URL: https://publicationethics.org/about/what-we-do/our-story/history-code-conduct
- Used for: Core Practices retired in 2024; new Code published July 2026 alongside
Core Principles (2026). Archived practices are not current membership standards.
## Reporting guidelines
### SW-S06 — EQUATOR reporting-guideline library
- Organization: EQUATOR Network
- URL: https://www.equator-network.org/reporting-guidelines/
- Used for: study-type discovery, extensions, translations, and current official links.
### SW-S07 — Joint SPIRIT–CONSORT resource
- Organization: SPIRIT–CONSORT
- Version: CONSORT 2025 and SPIRIT 2025
- URL: https://www.consort-spirit.org/
- Used for: current statements, editable checklists, expanded checklists, flow or
timeline diagrams, and explanation-and-elaboration resources.
### SW-S08 — CONSORT 2025 statement
- Original statement publication: BMJ
- Date: 2025
- URL: https://www.bmj.com/content/389/bmj-2024-081123
- Used for: current randomized-trial reporting statement and scope.
### SW-S09 — SPIRIT 2025 statement
- Original statement publication: JAMA
- Date: 2025-04-28
- URL: https://jamanetwork.com/journals/jama/fullarticle/2833408
- Used for: current randomized-trial protocol reporting statement and scope.
### SW-S10 — PRISMA 2020
- Organization: PRISMA
- URL: https://www.prisma-statement.org/prisma-2020
- Checklist URL: https://www.prisma-statement.org/prisma-2020-checklist
- Used for: systematic review and meta-analysis reporting.
### SW-S11 — STROBE checklists
- Organization: STROBE Initiative
- Version: original 2007 statement; current official checklist page
- URL: https://www.strobe-statement.org/checklists/
- Used for: cohort, case-control, and cross-sectional study reporting.
### SW-S12 — STARD
- Organization: UK EQUATOR Centre
- Version shown by source: STARD 2015 v1.1
- URL: https://resources.equator-network.org/reporting-guidelines/stard
- Used for: diagnostic-accuracy reporting and the explicit distinction between
reporting completeness and appraisal of study quality.
### SW-S13 — STARD-AI
- Original consensus statement publication: Nature Medicine
- Date: 2025-09-15; author correction dated 2026-07-13 adds a consortium member
- Correction: https://www.nature.com/articles/s41591-026-04570-9
- URL: https://www.nature.com/articles/s41591-025-03953-8
- Used for: diagnostic-accuracy studies evaluating AI systems.
### SW-S14 — TRIPOD+AI and TRIPOD-LLM
- Organization: TRIPOD
- Versions: TRIPOD+AI 2024; TRIPOD-LLM 2025
- URL: https://www.tripod-statement.org/
- EQUATOR record: https://www.equator-network.org/reporting-guidelines/tripod-statement
- Used for: prediction-model studies using regression or machine learning and the LLM
extension. The official site states that TRIPOD+AI replaces TRIPOD 2015.
### SW-S15 — CARE
- Organization: CARE
- Version: 2013
- URL: https://www.care-statement.org/checklist
- Used for: case-report reporting and consent-sensitive coverage.
### SW-S16 — ARRIVE 2.0
- Organization: NC3Rs ARRIVE
- Date: 2020
- URL: https://arriveguidelines.org/arrive-guidelines
- Author checklists: https://arriveguidelines.org/resources/author-checklists
- Used for: in vivo animal research, Essential 10, and Recommended Set.
### SW-S17 — SQUIRE 2.0
- Organization: SQUIRE
- Date: 2015
- URL: https://www.squire-statement.org/index.cfm?fuseaction=page.viewPage&pageID=471&nodeID=1
- Used for: healthcare quality-improvement reporting.
### SW-S18 — CHEERS 2022
- Organization: ISPOR
- Date: 2022
- URL: https://www.ispor.org/heor-resources/good-practices/article/consolidated-health-economic-evaluation-reporting-standards-2022-cheers-2022-statement-updated-reporting-guidance-for-health-economic-evaluations
- EQUATOR record: https://www.equator-network.org/reporting-guidelines/cheers/
- Used for: health economic evaluation reporting.
### SW-S31 — CONSORT-AI extension
- Organization: EQUATOR Network record for the CONSORT-AI Working Group
- Date: 2020; EQUATOR record updated 2026-04-04
- URL: https://www.equator-network.org/reporting-guidelines/consort-artificial-intelligence/
- Used for: trial reports evaluating interventions with an AI component.
### SW-S32 — SPIRIT-AI extension
- Organization: EQUATOR Network record for the SPIRIT-AI Working Group
- Date: 2020; EQUATOR record updated 2025-05-30
- URL: https://www.equator-network.org/reporting-guidelines/spirit-artificial-intelligence/
- Used for: protocols for trials evaluating interventions with an AI component.
### SW-S33 — SRQR
- Organization: EQUATOR Network record for the original guideline
- Date: 2014; EQUATOR record updated 2023-01-18
- URL: https://www.equator-network.org/reporting-guidelines/srqr/
- Used for: reporting qualitative research studies.
## Contributions and references
### SW-S19 — CRediT Contributor Role Taxonomy
- Standards body: NISO
- Standard: ANSI/NISO Z39.104-2022
- URL: https://credit.niso.org/
- Role definitions: https://credit.niso.org/contributor-roles/
- Used for: the 14 contribution roles and the rule that CRediT describes
contributions but does not determine authorship.
### SW-S20 — NLM Citing Medicine
- Organization: U.S. National Library of Medicine
- URL: https://www.ncbi.nlm.nih.gov/books/NBK7256/
- Used for: source-type-specific biomedical reference formatting.
### SW-S21 — NLM sample references
- Organization: U.S. National Library of Medicine
- URL: https://www.nlm.nih.gov/bsd/uniform_requirements.html
- Used for: verified examples for articles, datasets, software, and online material.
## Journal-policy examples
### SW-S22 — Nature Portfolio reporting and availability policies
- Publisher: Nature Portfolio
- URL: https://www.nature.com/nature-portfolio/editorial-policies/reporting-standards
- Used for: journal-specific reporting, materials, data, code, protocol, and restriction
disclosures as an example of a publisher policy.
### SW-S23 — Nature Portfolio authorship policy
- Publisher: Nature Portfolio
- URL: https://www.nature.com/nature-portfolio/editorial-policies/authorship
- Used for: authorship, contribution statements, and accountability as a journal-policy
example.
### SW-S24 — JAMA guidance on AI use
- Publisher: JAMA Network
- Date: 2023-07-27
- URL: https://jamanetwork.com/journals/jama/fullarticle/2807956
- Used for: an example journal policy on authors, reviewers, editors, disclosure, and
confidential peer-review material.
### SW-S25 — JAMA Instructions for Authors
- Journal: JAMA
- URL: https://jamanetwork.com/journals/jama/pages/instructions-for-authors
- Used for: venue-specific article types, limits, statements, and submission
requirements; current restrictions on AI drafting of Opinion/Letters/Online Comments
and AI generation/formatting of references.
### SW-S26 — PLOS Biology data availability policy
- Publisher: PLOS
- URL: https://journals.plos.org/plosbiology/s/data-availability
- Used for: an example policy that balances availability with consent, privacy, legal,
ethical, and other sensitive-data restrictions.
## Research integrity and open science
### SW-S27 — European Code of Conduct for Research Integrity
- Organization: ALLEA
- Version: 2023 revised edition
- DOI: 10.26356/ECOC
- URL: https://allea.org/portfolio-item/european-code-of-conduct-2023
- Used for: reliability, honesty, respect, accountability, data practices, open science,
and responsible research culture.
### SW-S28 — UNESCO Recommendation on Open Science
- Organization: UNESCO
- Adopted: 2021
- URL: https://www.unesco.org/en/open-science/about
- Used for: openness that is equitable and as open as possible while respecting
confidentiality, personal information, intellectual property, and other legitimate
restrictions.
### SW-S29 — NIH Data Management and Sharing Policy
- Organization: U.S. National Institutes of Health
- Effective: 2023-01-25
- URL: https://grants.nih.gov/policy-and-compliance/policy-topics/sharing-policies/dms/policy-overview
- Used for: planning, budgeting, submitting, and complying with data-management and
sharing plans where the policy applies.
### SW-S30 — TOP Guidelines
- Organization: Center for Open Science
- Version: TOP 2025
- URL: https://www.cos.io/initiatives/top-guidelines
- Used for: study registration, protocols, analysis plans, materials, data, code,
reporting transparency, and verification-oriented policy practices.
## Verification boundaries for this refresh
The current official statements still identify CONSORT/SPIRIT 2025, PRISMA 2020,
STROBE 2007, STARD 2015 v1.1, STARD-AI 2025, TRIPOD+AI 2024, TRIPOD-LLM 2025,
CARE 2013, ARRIVE 2.0, SQUIRE 2.0, CHEERS 2022 and SRQR 2014. The bundled topics
remain original routing prompts, not reproduced official checklists. Extensions
are not exhaustive; use EQUATOR and the parent statement for the actual study.
NLM Bookshelf returned a browser challenge for *Citing Medicine* during this refresh;
its continued role is corroborated by the current NLM sample-references page and
ICMJE Recommendations. No claim is made to have inspected every book chapter.
Journal policy examples were rechecked at their official pages; they do not establish
compliance for any particular manuscript. No authenticated submissions were made.
The bundled scripts have no external API endpoints, authentication, or pagination.

View File

@@ -0,0 +1,97 @@
# Evidence-Bound Scientific Writing Principles
## Accuracy before fluency
The accountable human authors are responsible for accuracy, integrity, originality,
attribution, and disclosure, including material prepared with AI assistance
[SW-S01, SW-S03]. Do not improve prose by changing scientific meaning.
Apply these rules:
- Preserve the distinction between observation, estimate, interpretation, and
speculation.
- Match the strength of each verb to the design and evidence.
- Do not turn association into causation.
- Do not turn statistical non-significance into equivalence or proof of no effect.
- Report uncertainty with the estimate and keep its interpretation proportional.
- Preserve conflicting evidence and credible alternative explanations.
- State what is unknown instead of filling a gap.
## Confirmatory and exploratory work
Label analyses according to their actual provenance.
- **Confirmatory**: prespecified before the relevant analysis or unblinding threshold,
with deviations recorded.
- **Exploratory**: generated or materially changed after examining relevant data.
- **Descriptive**: summarizes observed data without a confirmatory inferential claim.
Do not relabel a post hoc analysis as prespecified. Explain amendments, timing, and
rationale. Keep exploratory results useful but visibly exploratory.
## Complete reporting
Retain findings regardless of direction:
- primary and secondary outcomes;
- negative, null, adverse, and unexpected findings;
- missing data and attrition;
- sensitivity and subgroup analyses with their status;
- protocol or analysis-plan deviations;
- failed or inconclusive experiments when relevant to interpretation.
Selective omission can distort the record. Corrections should be prompt, transparent,
and linked to the affected version [SW-S01, SW-S27].
## Numbers and units
Every reported number needs:
- a stable concept name;
- unit and scale;
- numerator and denominator when applicable;
- analysis population and sample size;
- time point;
- estimate and uncertainty where applicable;
- method or result ID;
- evidence ID.
Keep precision justified by measurement and analysis. Distinguish zero from missing,
below detection, not measured, and not applicable. Run the consistency checker after
every substantive edit.
## Methods and results
Methods describe what was actually done, not what would have been ideal. Results must
not introduce an undeclared method. For each result, verify:
- the outcome was defined;
- the analysis method exists in the methods registry;
- the analysis intent agrees;
- exclusions and analysis populations agree;
- transformations, covariates, multiplicity handling, and missing-data methods agree;
- the reported value, unit, denominator, sample size, and uncertainty agree everywhere.
## Limitations and generalizability
Name concrete sources of bias, imprecision, missingness, measurement error, model
limitations, multiplicity, and limited transportability. Explain likely direction or
consequence when evidence supports that explanation. Do not add a generic limitations
paragraph merely to satisfy form.
## Language review
Prefer direct, precise prose, but do not impose arbitrary sentence length, citation
density, recency percentage, figure count, or reference count. Those heuristics can
encourage unsupported content and vary by field and venue.
Use person-centered or identity-affirming language according to community preference,
study context, and current venue policy. Preserve participant self-description when
appropriate. Define abbreviations and use one term for one concept.
## Draft status
Bullets, notes, and placeholders are acceptable in an internal outline. They are not
submission-ready. Final structure may include lists when the target venue or content
benefits from them; there is no universal rule that every scientific section must be
continuous prose.