sustainability-fulltext-fetch
Fetch and persist content for DOI-keyed sustainability RSS entries from a separate fulltext SQLite DB, using OpenAlex/Semantic Scholar API metadata first and webpage fulltext extraction as fallback. Use when building resilient DOI-first content enrichment after relevance labeling.
What this skill does
# Sustainability Fulltext Fetch ## Core Goal - Read relevant DOI entries from RSS metadata DB. - Write fetched content into a separate fulltext DB. - Process only relevant entries (`is_relevant=1`). - Prefer API metadata retrieval by DOI (OpenAlex first, Semantic Scholar fallback). - Fallback to webpage fulltext extraction when API metadata is unavailable. - Persist one content row per DOI in `entry_content`. ## Triggering Conditions - Receive a request to enrich relevant DOI records with abstract/fulltext content. - Receive a request to replace webpage-first crawling with API-first enrichment. - Need retry-safe incremental updates without duplicate rows. ## Workflow 1. Ensure upstream DOI/relevance data exists. ```bash export SUSTAIN_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/sustainability_rss.db" export SUSTAIN_FULLTEXT_DB_PATH="/absolute/path/to/workspace-rss-bot/sustainability_fulltext.db" python3 scripts/fulltext_fetch.py init-db --content-db "$SUSTAIN_FULLTEXT_DB_PATH" ``` 2. Run incremental sync (API first, webpage fallback). ```bash python3 scripts/fulltext_fetch.py sync \ --rss-db "$SUSTAIN_RSS_DB_PATH" \ --content-db "$SUSTAIN_FULLTEXT_DB_PATH" \ --limit 50 \ --openalex-email "[email protected]" \ --api-min-chars 80 \ --min-chars 300 ``` 3. Fetch one DOI on demand. ```bash python3 scripts/fulltext_fetch.py fetch-entry \ --rss-db "$SUSTAIN_RSS_DB_PATH" \ --content-db "$SUSTAIN_FULLTEXT_DB_PATH" \ --doi "10.1038/nature12373" ``` 4. Inspect stored content state. ```bash python3 scripts/fulltext_fetch.py list-content \ --rss-db "$SUSTAIN_RSS_DB_PATH" \ --content-db "$SUSTAIN_FULLTEXT_DB_PATH" \ --status ready \ --limit 100 ``` ## Data Contract - Reads from RSS DB `entries`: - `doi`, `doi_is_surrogate`, `is_relevant`, `canonical_url`, `url`, `title`. - Writes to fulltext DB `entry_content` (primary key `doi`): - source URL/status/extractor - `content_kind` (`abstract` or `fulltext`) - `content_text`, `content_hash`, `content_length` - retry fields and timestamps. ## Extraction Priority 1. API metadata path: - OpenAlex by DOI. - Semantic Scholar fallback by DOI. - If accepted (`--api-min-chars`), persist as `content_kind=abstract`. 2. Webpage fallback path: - Use `canonical_url` then `url`. - Extract with `trafilatura` when available, else built-in HTML parser. - Persist as `content_kind=fulltext`. ## Update Semantics - Upsert key: `doi`. - Success: status `ready`, reset retry counters. - Failure with existing ready row: keep old content, record latest error. - Failure without ready row: set `status=failed`, increment retry state. ## Configurable Parameters - `--rss-db` - `--content-db` - `SUSTAIN_RSS_DB_PATH` - `SUSTAIN_FULLTEXT_DB_PATH` - `--limit` - `--force` - `--only-failed` - `--refetch-days` - `--timeout` - `--max-bytes` - `--min-chars` - `--openalex-email` / `OPENALEX_EMAIL` - `--s2-api-key` / `S2_API_KEY` - `--api-timeout` - `--api-min-chars` - `--disable-api-metadata` - `--max-retries` - `--retry-backoff-minutes` - `--user-agent` - `--disable-trafilatura` - `--fail-on-errors` ## Error Handling - Missing DOI-keyed `entries` table: stop with actionable message. - RSS DB and fulltext DB path collision: fail fast and require separate files. - API/network/HTTP failures: record failures and continue queue. - Webpage non-text content: mark failed for that DOI. - Short extraction: fail by threshold to avoid low-quality content. ## References - `references/schema.md` - `references/fetch-rules.md` ## Assets - `assets/config.example.json` ## Scripts - `scripts/fulltext_fetch.py`
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.