resource-and-api
БесплатноБез исполняемых скриптовНе проверенRoute and operate GeoNode resource REST workflows, safe uploads, asynchronous execution requests, downloads, metadata changes, and resource-level permissions…
от lza6★ 19 звёзд на GitHubОб этом скилле
Resource and API
Use this sub-skill when the task touches a GeoNode resource through HTTP: list or inspect resources, upload or update data, create maps or geoapps, attach metadata/assets, follow an execution request, download content, or change resource-facing permissions.
First route
- Establish the deployed site origin explicitly. Do not infer it from a
payload, a service URL, or a browser address. Use the API helper only with
an explicit
--base-url. - Establish the identity and permissions needed for the operation. Anonymous reads may work for advertised public resources; uploads and mutations need an authenticated account and resource-level permissions.
- Read api-reference.md for the exact route, method, serializer shape, response wrapper, and request example.
- For an upload, update, copy, delete, permission, or remote-resource action, read resource-lifecycle.md before sending the request, then read upload-formats.md for file and data assumptions.
- Use troubleshooting.md when a response is not the expected status or an execution remains pending.
API boundaries
- Prefer the versioned REST resources below
/api/v2/for resource operations. The legacy Tastypie resources below/api/api/have different serializers, filters, and authorization; do not mix their payloads with v2 payloads. - The v2 resource collection is
/api/v2/resources/; typed collections are/api/v2/datasets/,/api/v2/documents/,/api/v2/maps/, and/api/v2/geoapps/. The deployed upload route must be confirmed with the namedimporter_uploadroute or the instance's published API documentation; some deployments expose it as/api/v2/uploads/upload, while the snapshot's root URL declaration is not version-prefixed. - Treat response
execution_idorexec_idas opaque UUIDs. Never guess an execution URL or assume that HTTP 201 means the resource is published. - A package import or serializer check proves neither database persistence, GeoServer publication, object storage, Redis/Celery execution, nor remote OGC access.
Operating procedure
Read and preflight
- Start with
GET /api/v2/resources/or the typed collection. Record the returnedpk,uuid,resource_type,subtype,perms,is_published,is_approved, anddownload_urlsbefore mutating anything. - Use
search, repeatedsearch_fields,filter{...},extent,metadata_only,favorite,page, andpage_sizedeliberately. Preserve thelinks,total,page, andpage_sizepagination envelope. - For a private resource, authenticate before interpreting an empty list as absence. A filtered permission result is not proof that the resource does not exist.
Mutate
- Use typed
PATCHfor ordinary metadata changes where supported. Use the dedicated dataset metadataPUTfor an ISO metadata file and the metadata API for schema-shaped JSON. Check the required permission before attempting either. - Use typed map/geoapp
POSTonly with a serializer-valid payload; map layer relations are embedded and are transactionally saved. Document creation is intentionally a file/URL upload workflow, not a typedPOST. - For dataset data, use the importer with an explicit
action:upload,replace,upsert,create,resource_style_upload, orresource_metadata_upload. Capture the returned execution identifier. - Poll the returned status endpoint with bounded delay and a deadline. Terminal
finishedis success;failedis failure;readyandrunningrequire worker/service diagnosis, not repeated unbounded requests.
Safety-sensitive operations
- Obtain and inspect
permsorGET .../permissionsbefore changing access.PUTreplaces the proposed compact permission set;PATCHmerges it. Do not send a partialPUTunless replacement is intended. - Treat
DELETE /api/v2/resources/{pk}/delete, uploadreplace,upsert, and asset removal as destructive. Confirm thepk, backup/retention policy, and target dataset type first. Prefer a dry read and a saved execution id. - Download only through a URL returned by the resource and only after checking
download_resourcebase. Dataset downloads require a locally available, downloadable resource; maps and geoapps normally have no data download URL. - Do not place Basic credentials, bearer tokens, remote-service passwords, or full secret-bearing payloads in shell history, logs, or issue reports.
Checks and handoff
A successful call must be checked at three levels: HTTP status and content
shape, resource/execution state, and service-side consequences when applicable.
For uploads, validate the archive before sending it with
scripts/validate-upload-archive.py; it inspects without extracting. For a
read-only request, use `scripts/api_request.py --hel
Установить resource-and-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл resource-and-api?
Route and operate GeoNode resource REST workflows, safe uploads, asynchronous execution requests, downloads, metadata changes, and resource-level permissions for datasets, documents, maps, and geoapps.
Как установить скилл resource-and-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resource-and-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic