brycewang-stanford/Auto-Empirical-Research-Skills / skills/35-bahayonghang-academic-writing-skills/skills/paper-audit
paper-audit
VerifiedDeep-review-first audit for Chinese and English academic papers across LaTeX, Typst, and PDF formats. Use whenever the user wants reviewer-style paper critique, pre-submission readiness checks, pass/fail gate decisions, structured revision roadmaps, or re-audits of revised manuscripts. Trigger even if the user only says "review my paper", "check if this is ready to submit", "audit this PDF", "simulate peer review", "find the biggest problems in this manuscript", or "re-check whether I fixed the review issues". Do not use for direct source editing or compilation-heavy repair; route those to the format-specific writing skills instead.
scripts/verify_quotes.py
View on GitHub"""Verify that deep-review issue quotes can be located in the source text."""
from __future__ import annotations
import argparse
import json
from pathlib import Path
def verify_quotes(full_text: str, issues: list[dict]) -> list[dict]:
"""Annotate issues with quote verification status."""
updated: list[dict] = []
for issue in issues:
quote = issue.get("quote", "").strip()
verified = bool(quote and quote in full_text)
patched = dict(issue)
patched["quote_verified"] = verified
updated.append(patched)
return updated
def main() -> int:
parser = argparse.ArgumentParser(description="Verify quotes in final_issues.json")
parser.add_argument("review_dir", help="Path to a deep-review workspace")
parser.add_argument(
"--write-back",
action="store_true",
help="Rewrite final_issues.json with quote_verified annotations",
)
args = parser.parse_args()
review_dir = Path(args.review_dir).resolve()
full_text = (review_dir / "full_text.md").read_text(encoding="utf-8")
issues_path = review_dir / "final_issues.json"
issues = json.loads(issues_path.read_text(encoding="utf-8"))
updated = verify_quotes(full_text, issues)
verified_count = sum(1 for issue in updated if issue.get("quote_verified"))
if args.write_back:
issues_path.write_text(json.dumps(updated, indent=2, ensure_ascii=False), encoding="utf-8")
print(f"Verified {verified_count}/{len(updated)} quotes")
return 0 if verified_count == len(updated) else 1
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |