/zd-agis:inference-backendfrom Zaraat Dost · AGIS Web
Provides a Flask inference backend for Hugging Face Spaces with job lifecycle management, prediction endpoints, telemetry, and model loading. Useful for running ML inference with queued jobs and memory limits.
Ships in Zaraat Dost · AGIS Web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Endpoints: GET /health, GET /api/telemetry, POST /predict (multipart zip of parcels + model_type, target_year) → { job_id }, GET /job_status/<id> → { status, progress, log, summary, error }, GET /job_download/<id> → GeoJSON, GET /job_timeseries/<id>/<parcel_uid>.
Job lifecycle: queued → running (progress 0–100) → done | failed; ThreadPoolExecutor(MAX_WORKERS=4), waiting_jobs list under a lock, temp dir per job, gc.collect() in finally. Status kept in memory — a Space restart loses jobs; the UI must handle 404 on job_status by offering re-submit.
Backend rules
HF_TOKEN added by the Next.js proxy; the browser never holds it. Proxy streams the multipart body (duplex: 'half') to avoid buffering.EE_BASE64_KEY); normalise private_key newlines.hf_hub_download at startup, cached in the container; log the model version in every job summary.CHUNK_SIZE=400 and never load all imagery. Telemetry endpoint exposes CPU/RAM/network for the dashboard's telemetry page./health must return within 1 s without touching EE.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/agis-architectureLayout and conventions of the AGIS Next.js dashboard: routes, component layers, workers, backends, env vars./auditSecurity and performance audit of the AGIS dashboard into docs/AGIS-AUDIT.md./cadastral-schemaMauza/Parcel Firestore model, size limits, geohash, geometry storage, rule constraints./gee-api-routesServer-side Earth Engine in Next.js API routes: init once, promisified evaluate, layers, palettes, tile URLs, validation, timeouts./new-toolScaffold a new AGIS dashboard tool: page, client component, API route, sidebar entry, worker stub./pyodide-workersBrowser-side GIS in Web Workers: Pyodide protocol, progress, memory limits, when to use pure JS.npx claudepluginhub adilmunawar/zd-claude-plugin --plugin zd-agisOther plugins' skills for the same job