Check consistency

From Alexander-M-Dickerson/ai-asset-pricing · View interactive version

Check consistency is an AI agent skill from the GitHub repository Alexander-M-Dickerson/ai-asset-pricing. Fast cross-section consistency scan for numbers, terminology, and references

How to use this skill

Skill file

Check Consistency Skill

Fast, focused scan for cross-section inconsistencies in main.tex. Lighter than /full-paper-audit -- designed for iterative use during editing.

Examples

Workflow

Step 1: Load Reference Values

Read guidance/paper-context.md to get canonical values (if it exists):

If no paper-context file exists, the skill still works by cross-referencing sections against each other (without a canonical reference).

Step 2: Quantitative Consistency

Grep main.tex for all quantitative claims and cross-reference:

Flag: mismatches between text claims and canonical values (if available), or between sections.

Step 3: Terminology Consistency

If guidance/paper-context.md defines a terminology table, grep across all sections for violations.

Also check for within-paper drift regardless of paper-context:

Step 4: Cross-Reference Integrity

  1. Extract all \ref{...} and \eqref{...} targets
  2. Extract all \label{...} definitions
  3. Flag any \ref or \eqref that points to a non-existent label
  4. Flag any \ref used where \eqref should be (equation references)
  5. Check that all tables and figures are cited at least once in the text

Step 5: Section Cross-References

Check that claims about other sections are accurate:

Step 5b: Caption Consistency

Run /audit-captions. Include CRITICAL and IMPORTANT findings in the output.

Step 6: Output

CONSISTENCY CHECK
=================

QUANTITATIVE MISMATCHES: [N found]
- Line X: claims "[value]" but canonical value is "[value]" for [variable]
- Line Y: says "[count]" but paper-context.md says "[count]"
(or: "No paper-context.md — cross-section comparison only")

TERMINOLOGY VIOLATIONS: [N found]
- Line X: "[deprecated term]" (should be "[correct term]")
- Line Y: "[term A]" in this section vs "[term B]" in [other section]

REFERENCE INTEGRITY: [N issues]
- Line X: \ref{eq:decomp} should be \eqref{eq:decomp}
- Line Y: \ref{fig:missing} -- label not found

CROSS-SECTION CONSISTENCY: [N issues]
- Line X claims "Table 3 shows..." but Table 3 actually shows...

SUMMARY:
- Critical issues: N
- Warnings: M
- All clear: [list of checks that passed]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.