Skip to content

GeoGeekLab/nature-reviewer-skills / nature-earth-system-reviewer-skills/skills/nature-hydrology-reviewer-skill

nature-hydrology-reviewer

Verified

Nature-style hydrology manuscript reviewer skill for testing streamflow, runoff, groundwater, water storage, drought, flood, hydroclimate and water-resource claims against water-balance closure, hydrologic signatures, model structure and observational constraints.

scripts/extract_text_with_anchors.py

View on GitHub
from __future__ import annotations

import argparse
import json
import sys
from pathlib import Path

HERE = Path(__file__).resolve()
for candidate in HERE.parents:
    source = candidate / "src"
    if (source / "nature_reviewer_core").is_dir():
        sys.path.insert(0, str(source))
        break
else:
    raise SystemExit("Install nature-reviewer-core or run this script inside the monorepo")

from nature_reviewer_core.extractors import extract_records  # noqa: E402
from nature_reviewer_core.security import IngestionLimits, atomic_write_text  # noqa: E402

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("input", type=Path)
    parser.add_argument("--output", type=Path, required=True)
    parser.add_argument("--max-file-mib", type=int, default=25)
    parser.add_argument("--max-pages", type=int, default=500)
    args = parser.parse_args()
    limits = IngestionLimits(
        max_file_bytes=args.max_file_mib * 1024 * 1024, max_pdf_pages=args.max_pages
    )
    records = extract_records(args.input, limits)
    atomic_write_text(
        args.output, "".join(json.dumps(record, ensure_ascii=False) + "\n" for record in records)
    )
    print(f"wrote {len(records)} anchored records to {args.output}")
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall