nlb-singapore
Search the National Library Board (NLB) Singapore catalog for books, audiovisual materials, and digital resources via the official Catalogue API. Use this skill whenever the user wants to search Singapore's national library holdings, check book availability across NLB branches, look up titles by ISBN/BRN, find new arrivals, browse checkout trends, or retrieve detailed bibliographic records from NLB. Triggers when referencing Singapore library collections, Southeast Asian library holdings, or NLB resources.
What this skill does
# NLB Singapore Catalogue API Skill Search and retrieve bibliographic records from Singapore's National Library Board catalog. ## Critical: Things Claude Won't Know Without This Skill ### API key is required — two headers on every request The NLB API requires both an API key and an app code: ``` X-API-KEY: your-api-key X-APP-Code: your-app-code ``` Without these, all endpoints return 401. Apply for free keys at https://go.gov.sg/nlblabs-form (contact: [email protected]). Set environment variables `NLB_API_KEY` and `NLB_APP_CODE`, or pass them to the Python client constructor. ### Two search endpoints with different strengths | Endpoint | Best for | Returns | |----------|----------|---------| | `SearchTitles` | Keyword search with facets and filters | Title summaries + facets | | `GetTitles` | Field-specific search (title, author, subject, ISBN) | Full title records | ``` SearchTitles: ?Keywords=singapore+history&Limit=10 GetTitles: ?Title=singapore&Author=lee&Limit=10 ``` ### BRN is the primary record identifier BRN (Bibliographic Record Number) is NLB's internal ID. Use it for `GetTitleDetails` and `GetAvailabilityInfo` lookups. Found in search results under `records[].brn` or `brn`. ### Native language fields for CJK content Most text fields have native-language variants: `title`/`nativeTitle`, `author`/`nativeAuthor`, `seriesTitle`/`nativeSeriesTitle`. Always check both for Chinese, Malay, and Tamil titles. ## Endpoints | Endpoint | Purpose | |----------|---------| | `GET /SearchTitles` | Keyword search with facets and filters | | `GET /GetTitles` | Field-specific search (title, author, subject, ISBN) | | `GET /GetTitleDetails` | Full record by BRN or ISBN | | `GET /GetAvailabilityInfo` | Check availability across branches | | `GET /GetNewTitles` | Browse new arrivals | | `GET /GetMostCheckoutsTrendsTitles` | Checkout trends by branch | ## Key Search Parameters ### SearchTitles | Param | Description | Example | |-------|-------------|---------| | `Keywords` | Search keywords (required) | `Keywords=singapore+history` | | `Limit` | Results per page (default 20, max 100) | `Limit=20` | | `Offset` | Pagination offset | `Offset=20` | | `MaterialTypes` | Filter by material type | `MaterialTypes=BOOK` | | `Languages` | Filter by language | `Languages=Chinese` | | `Locations` | Filter by library branch | `Locations=TRL` | | `DateFrom` / `DateTo` | Publication year range | `DateFrom=2020&DateTo=2025` | | `Availability` | Only available items | `Availability=true` | | `Fiction` | Fiction filter | `Fiction=true` | ### GetTitles | Param | Description | |-------|-------------| | `Keywords` | General keywords | | `Title` | Title-specific search | | `Author` | Author-specific search | | `Subject` | Subject-specific search | | `ISBN` | ISBN lookup | | `Limit` / `Offset` | Pagination | ## Response Structure ### Search Results ```json { "totalRecords": 999, "count": 20, "hasMoreRecords": true, "nextRecordsOffset": 20, "titles": [ { "title": "Singapore: A Biography", "nativeTitle": "", "author": "Frost, Mark Ravinder", "nativeAuthor": "", "records": [ { "brn": 13737742, "isbns": ["9789814385169"], "publisher": ["Editions Didier Millet"], "publishDate": "2009", "subjects": ["Singapore -- History"], "format": {"code": "BK", "name": "Books"} } ] } ], "facets": [...] } ``` ### Title Detail Fields Full records include 50+ fields: `brn`, `title`, `nativeTitle`, `author`, `nativeAuthor`, `publisher`, `publishDate`, `isbns`, `subjects`, `summary`, `contents`, `edition`, `physicalDescription`, `language`, `format`, `allowReservation`, `availability`, `activeReservationsCount`. ### Availability Info ```json { "items": [ { "brn": 13737742, "callNumber": "959.57 FRO", "location": {"code": "TRL", "name": "Lee Kong Chian Reference Library"}, "transactionStatus": {"code": "S", "name": "Available on Shelf"}, "media": {"code": "BOOK", "name": "Book"} } ] } ``` Transaction status codes: `S` (on shelf), `L` (on loan), `H` (on hold), `I` (in transit), `T` (transferred). ## Python Script ```python from scripts.nlb_api import NlbAPI nlb = NlbAPI() # reads NLB_API_KEY and NLB_APP_CODE from env # Keyword search results = nlb.search("singapore history", limit=10) # Field-specific search results = nlb.get_titles(title="dream of the red chamber", language="Chinese") # Title details by BRN detail = nlb.get_title_details(brn=13737742) # Check availability avail = nlb.get_availability(brn=13737742) for item in avail: print(f"{item['location']['name']}: {item['transactionStatus']['name']}") # New arrivals new = nlb.get_new_titles(date_range="Weekly", limit=20) # Summarize for r in results: print(nlb.summarize(r)) ``` ## Library Branch Codes Key locations: `TRL` (Lee Kong Chian Reference Library), `WRL` (Woodlands Regional Library), `CMPL` (Chinatown Public Library), `AMKPL` (Ang Mo Kio), `BIPL` (Bishan), `JWPL` (Jurong West), `TPPL` (Tampines). ## API Etiquette - Free API key required (apply at https://go.gov.sg/nlblabs-form) - Rate limits enforced (429 on excess) — exact thresholds undocumented - Data licensed under [Singapore Open Data Licence](https://data.gov.sg/open-data-licence) ## Related Skills - **hathitrust-catalog**: Use ISBNs from NLB to check HathiTrust for digitized versions - **wikidata-search**: Cross-reference NLB subjects with Wikidata entities ## Resources - `references/api_reference.md` — Complete endpoint, parameter, and response field reference - `scripts/nlb_api.py` — Python client with search, lookup, availability checking, and pagination
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.