fetch-abstract-to-kb
SKILL.md
Fetch Abstract to KB
Core Goal
- Provide only two DB operations:
- Fetch DOI candidates from
journals. - Batch update
abstractby DOI.
- Fetch DOI candidates from
Required Environment
KB_DB_HOSTKB_DB_PORTKB_DB_NAMEKB_DB_USERKB_DB_PASSWORD
Workflow
- Fetch DOI list (default 10 rows):
python3 scripts/fetch_abstract_to_kb.py fetch-doi
- Optionally override row limit:
python3 scripts/fetch_abstract_to_kb.py fetch-doi --limit 10
- Prepare JSON input for batch update (one of the two formats):
[
{"doi": "10.1000/a", "abstract": "text A"},
{"doi": "10.1000/b", "abstract": "text B"}
]
or
{
"10.1000/a": "text A",
"10.1000/b": "text B"
}
- Batch write abstract by DOI:
python3 scripts/fetch_abstract_to_kb.py write-abstracts --input abstracts.json
Query/Write Contract
- Fetch filter:
doinot emptyauthornot empty (fall back toauthorswhenauthoris unavailable)abstractempty (NULLor blank)
- Fetch order:
ORDER BY created_at DESC NULLS LAST
- Fetch default limit:
10
- Write guard:
- Update only when target row
abstractis still empty.
- Update only when target row
Script
scripts/fetch_abstract_to_kb.py
Weekly Installs
15
Repository
tiangong-ai/skillsGitHub Stars
4
First Seen
9 days ago
Security Audits
Installed on
openclaw15
github-copilot13
codex13
cline13
opencode13
gemini-cli12