Skip to content

GeoGeekLab/nature-reviewer-skills / nature-earth-system-reviewer-skills/skills/nature-remote-sensing-reviewer-skill

nature-remote-sensing-reviewer

Verified

Nature-style remote-sensing manuscript reviewer skill for evaluating Earth-observation products, retrievals, machine-learning maps, validation design, uncertainty propagation, spatial transferability and claim-scope calibration.

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}")
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall