Skip to content

GeoGeekLab/nature-reviewer-skills / nature-materials-science-reviewer-skill

nature-materials-science-reviewer

Verified

Nature-style materials science manuscript reviewer skill for testing materials design, synthesis, processing, structure-property, mechanism, stability, scalability, computational prediction and application claims against materials evidence chains.

scripts/reviewer_db.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.patterns import load_patterns  # noqa: E402
from nature_reviewer_core.retrieval import search_patterns  # noqa: E402

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("--root", type=Path, default=HERE.parents[1])
    parser.add_argument("--query", required=True)
    parser.add_argument("--limit", type=int, default=10)
    parser.add_argument("--no-diversify", action="store_true")
    args = parser.parse_args()
    for result in search_patterns(
        load_patterns(args.root), args.query, limit=args.limit, diversify=not args.no_diversify
    ):
        print(
            json.dumps(
                {
                    "pattern_id": result.pattern.pattern_id,
                    "gate": result.pattern.gate,
                    "title": result.pattern.title,
                    "concern": result.pattern.concern,
                    "revision_direction": result.pattern.revision_direction,
                    "severity": result.pattern.severity,
                    "score": result.score,
                    "confidence": result.confidence,
                    "matched_terms": result.matched_terms,
                },
                ensure_ascii=False,
            )
        )
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