From literature
Literature retrieval and local literature cache workflows through nong lit. Trigger on CNKI-like search expressions, literature search planning, DOI lookup, OpenAlex/Crossref/Unpaywall metadata or OA lookup, cache import/query/export, Word template fill from cached papers, or bibliography preparation for agricultural papers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/literature:literatureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use `nong lit` as the deterministic literature retrieval entrypoint. Nong.Toolkit.Net prepares CNKI-like search expressions, checks provider plans, reads normalized JSON records, maintains the local literature cache, and exports references. It does not use Python literature packages, browser automation, scraping, or paywall bypass.
Use nong lit as the deterministic literature retrieval entrypoint. Nong.Toolkit.Net prepares CNKI-like search expressions, checks provider plans, reads normalized JSON records, maintains the local literature cache, and exports references. It does not use Python literature packages, browser automation, scraping, or paywall bypass.
AMiner and Metaso are separate command groups and separate skills. Keep nong lit for OpenAlex/Crossref/Unpaywall and local cache workflows only.
Read ../../.claude/references/nong-cli-preflight.md before the first Nong CLI command in a session. Confirm the nong CLI is installed and the needed command group.
Current nong commands --json exposes these 11 implemented lit commands:
nong lit parse --query "<expr>" --json
nong lit validate --query "<expr>" --json
nong lit plan --query "<expr>" --sources openalex,crossref,unpaywall --json
nong lit search --query "<expr>" --sources openalex,crossref,unpaywall --limit 50 --profile balanced --cache -o refs.json --json
nong lit export --input refs.json --format markdown -o refs.md --json
nong lit batch <dir> --sources openalex,crossref,unpaywall --limit 10 --profile balanced --json
nong lit cache-import --input refs.json --json
nong lit cache-query --keyword humic --min-year 2020 --limit 20 --json
nong lit cache-stats --json
nong lit cache-export --limit 20 --max-chars 8000 -o cache.md --json
nong lit word --template template.docx --limit 1 -o filled.docx --json
The stable contract is the CNKI-like Nong DSL, not any provider's native query language.
Supported fields:
SU TI KY AB FT AU FI F AF JN RF YE FU CLC SN CN IB CF DOI
Supported syntax:
FIELD=...
'quoted phrase'
unquoted terms
+ * -
AND OR NOT
()
YE BETWEEN ('2000','2013')
Operator mapping:
+ means OR.* means AND.- means NOT.AND, OR, and NOT keep their usual boolean meanings.Useful examples:
nong lit parse --query "SU=('鑵愭閰?+'鑵愭畺閰?)*('绋€鍦?+'寰偉')" --json
nong lit validate --query "AU=閽变紵闀?AND (AF=娓呭崕澶у OR AF=涓婃捣澶у)" --json
nong lit plan --query "DOI='10.1016/j.chemgeo.2007.05.018'" --sources openalex,crossref,unpaywall --json
Unsupported operators such as %, /SEN, /NEAR, /PREV, /AFT, /PRG, and $N must fail with E006 validation_failed. Do not silently reinterpret them.
nong lit validate --query "<expr>" --json
nong lit plan --query "<expr>" --sources openalex,crossref,unpaywall --json
Use the plan to explain field coverage, generated rough queries, provider limitations, and credential availability. Credential diagnostics expose environment variable names and booleans only; do not print real values.
nong lit search --query "<expr>" --sources openalex,crossref,unpaywall --limit 50 --profile balanced -o refs.json --json
Ranking profiles are balanced, classic, and recent.
--cache to nong lit search so the search result is stored immediately in the unified nong.db as a literature-list object with paper relationships.nong lit cache-import --input refs.json --json
nong lit cache-query --keyword humic --min-year 2020 --limit 20 --json
nong lit cache-stats --json
nong lit cache-export --limit 20 --max-chars 8000 -o cache.md --json
nong lit export --input refs.json --format markdown -o refs.md --json
nong lit export --input refs.json --format bibtex -o refs.bib --json
nong lit word --template template.docx --limit 1 -o filled.docx --json
Do not treat export success as valid unless the output artifact exists and is non-empty.
For provider credentials, query planning, cache workflow, and boundaries, read references/provider-contract.md.
Implemented providers:
NONG_LIT_OPENALEX_API_KEY or NONG_LIT_OPENALEX_KEY.NONG_LIT_MAILTO.NONG_LIT_UNPAYWALL_EMAIL or fallback NONG_LIT_MAILTO.Unpaywall is DOI-only. If selected without a DOI or without the required email variable, report the machine-readable issue instead of pretending the provider searched broadly.
nong lit does not implement Semantic Scholar, PubMed, PMC, arXiv, Wanfang, Sciverse, Tavily, iFlow, Lewen, DBLP, Qinyan, local PDF literature providers, scraping, browser automation, CAPTCHA bypass, institutional login automation, commercial database scraping, paywall bypass, full-text search, or automatic Chinese-English synonym translation.
AMiner and Metaso are separate skills. If the task needs AMiner scholar/paper/patent/org endpoints, route to the aminer skill. If the task needs multi-scope web search, reader, or citation-backed RAG answers, route to the metaso skill.
If users need English synonyms, include them explicitly in the query. If users need full-text evidence from PDFs, use the pdf skill to slice local PDFs first, then reason over content.nongmark and cite that local evidence separately from lit metadata.
Always pass --json when output feeds another tool or model decision. Treat status: "error" as failed.
Common codes:
E001 file_not_found: fix the input or export path.E005 dependency_missing: provider credential or runtime prerequisite is missing.E006 validation_failed: query syntax, unsupported field/operator, provider name, rank profile, source selection, or template request is invalid.E007 read_failed: input literature JSON cannot be parsed.E008 write_failed: output artifact was not created or is empty.E004 internal_error: unexpected bug; keep command JSON and stderr/stdout for diagnosis.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub angri450/nong.toolkit.net --plugin literature