Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

graphistry-rest-apigraphistry rest API 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

282

周安装

12

GitHub Stars

1

下载量

99
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:graphistry-rest-api(graphistry rest API 搜索)
来源仓库:https://github.com/graphistry/graphistry-skills
仓库路径:skills/graphistry-rest-api
安装命令:
npx skills add https://github.com/graphistry/graphistry-skills --skill graphistry-rest-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/graphistry/graphistry-skills --skill graphistry-rest-api

简介

用于辅助 API 设计、接口文档和前后端联调,适合梳理 endpoint 和生成 OpenAPI 草稿。

  • 适用于 API 开发、服务集成说明和错误码整理的场景。
  • 使用时需确认真实业务语义、鉴权方式和错误处理规则,避免凭空补字段。
  • 通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。
  • 建议从现有代码、schema 或接口样例中提取事实,确保接口文档准确性。

SKILL.md

Graphistry REST API

Scope

Use this skill for Graphistry REST endpoint tasks, including JWT auth, uploads, graph URL controls, sessions, and token-safe sharing.

Speed-First Rules

  • Default to no shell commands and no local repo lookups; answer from this skill's endpoint map/templates.
  • Only inspect local files when the user explicitly asks for source-level proof.
  • For constrained prompts (line counts, bullets, "snippet only"), do not add prefaces like "Using ".
  • Keep outputs short and literal; avoid exploratory prose.

Fast Targeted Fetch Protocol

  • Start from references/hub-rest-docs-toc.md for the curated Hub REST navigation map.
  • Use references/hub-rest-docs-links.tsv as the machine-checkable inventory and prefer links with status 200.
  • If a needed page is missing from references, check https://hub.graphistry.com/docs/api/ and add an explicit inference note before using adjacent docs.
  • Avoid broad docs crawling when a referenced canonical page already answers the question.

Core Endpoint Map

  • Auth:

- /api-token-auth/ - /api-token-refresh/ - /api-token-verify/ - /api/v2/auth/pkey/jwt/

  • Upload lifecycle:

- /api/v2/files/ - /api/v2/upload/files/ - /api/v2/upload/datasets/

  • Dataset lifecycle:

- /api/v2/datasets/?limit=100 - /api/v2/upload/datasets/ - /api/v2/datasets/{dataset_id}/

  • Single-use gateway:

- GET /api/v2/generate/single-use-url/?username=<username>&dataset_id=<dataset_id> - GET /api/v2/logout-user/username/<username>/

  • Sessions API:

- /api/experimental/viz/sessions/ - /api/experimental/viz/sessions/{session_id}/

  • Named endpoints (GFQL/Python UDF flow):

- /api/v2/o/<org>/functions/gfql/ - /api/v2/o/<org>/functions/python/ - /api/v2/o/<org>/run/gfql/<uuid_or_alias> - /api/v2/o/<org>/run/python/<uuid_or_alias>

  • Health/readiness checks (deployment/admin scope):

- /healthcheck/ - /ht/ - /healthz - /streamgl-viz/health - /pivot/health - /streamgl-sessions/health - /streamgl-gpu/primary/health - /streamgl-gpu/secondary/cpu/health - /streamgl-gpu/secondary/gpu/health

Response Discipline

  • Keep snippets short and directly runnable.
  • Prefer deterministic literal endpoint references.
  • For checklist asks, keep to requested bullet counts.
  • For sessions summaries, keep them concise when requested.
  • For auth snippets that require env-vars-only usage, include explicit export GRAPHISTRY_* lines and avoid quoted assignment values.
  • For upload/dataset bridge asks, include a literal /api/v2/upload/datasets/ line.
  • For /api/v2/upload/datasets/ examples, always include metadata (use {} when no custom metadata is needed).
  • For upload/encoding bridge asks, avoid large standalone JSON blocks when concise bullets or short snippets are enough.
  • For file upload lifecycle endpoint-sequence asks, prefer listing /api/v2/files/, /api/v2/upload/files/, /api/v2/upload/datasets/ in order.
  • For nodes/edges format-pattern asks, include literal tokens: nodes/json, edges/json, nodes/csv, edges/csv, nodes/parquet, edges/parquet, nodes/orc, edges/orc, nodes/arrow, edges/arrow.
  • For REST-vs-SDK boundary asks, distinguish between named-endpoint REST flows (/functions + /run) and ad-hoc SDK GFQL flows (no generic REST query endpoint).
  • For healthcheck asks, label deployment/admin scope and avoid implying every route is public on hosted tenants.
  • For constrained prompts, avoid code fences unless explicitly requested.
  • For bridge prompts, do not return a standalone JSON block; include endpoint + URL guidance as compact text/bullets.
  • For "find files older than 90 days" asks, output concise bullets only (no script), include /api/v2/files/?limit=100, created_at, and a client-side age filter.
  • For "files for a specific user" asks, include /api/v2/files/?limit=100, ownership field author, and a do-not-invent endpoint warning.
  • For "list users endpoint" asks, explicitly state no documented REST list-users endpoint and route to admin/IDP/support workflow.
  • For named-endpoint architecture asks, keep explanation at public REST surface: use /functions/... endpoints for named-endpoint definition lifecycle and /run/... endpoints for execution.
  • For single-use gateway and experimental sessions asks, call out deployment/tenant gating when availability is uncertain.

Deterministic Prompt Adapters

Use these compact patterns when prompts closely match.

Adapter A: env-var auth snippet + bearer follow-up

export GRAPHISTRY_HOST=${GRAPHISTRY_HOST:-https://hub.graphistry.com}
export GRAPHISTRY_USERNAME=${GRAPHISTRY_USERNAME:?set GRAPHISTRY_USERNAME}
export GRAPHISTRY_PASSWORD=${GRAPHISTRY_PASSWORD:?set GRAPHISTRY_PASSWORD}
GRAPHISTRY_TOKEN="$(curl -sS -X POST -H 'Content-Type: application/json' -d "{\"username\":\"${GRAPHISTRY_USERNAME}\",\"password\":\"${GRAPHISTRY_PASSWORD}\"}" "${GRAPHISTRY_HOST%/}/api-token-auth/" | jq -r '.token')"
curl -sS -H "Authorization: Bearer ${GRAPHISTRY_TOKEN}" "${GRAPHISTRY_HOST%/}/api/v2/files/"

Adapter B: concise upload + URL bridge

# /api/v2/upload/datasets/ payload fragment with encodings
curl -sS -X POST -H "Authorization: Bearer ${GRAPHISTRY_TOKEN}" -H 'Content-Type: application/json' \
  -d '{"metadata":{},"node_encodings":{"bindings":{"node":"id","node_color":"risk","node_size":"score"}},"edge_encodings":{"bindings":{"source":"src","destination":"dst","edge_color":"etype"}}}' \
  "${GRAPHISTRY_HOST%/}/api/v2/upload/datasets/"
# first-render URL tweak: append &play=0 (or &linLog=true)

Adapter C: collections URL parameter guidance (2-4 lines)

  • collections should be a URL encoded JSON array value. Use the exact phrase URL encoded.
  • Remove raw whitespace before encoding. Include the literal word whitespace.
  • Example: collections=%5B%22teamA%22%2C%22fraud%22%5D.

Adapter D: sessions summary

  • https://hub.graphistry.com/docs/api/experimental/rest/sessions/ documents the flow.
  • Start from graph.html?dataset=<dataset_id>.
  • Sessionized URL is graph.html?dataset=<dataset_id>&session=<session_id>.
  • Keep auth in Authorization: Bearer; do not put tokens in URL params.

Adapter E: safe-share snippet

UPLOAD_JSON="$(curl -sS -X POST -H "Authorization: Bearer ${GRAPHISTRY_TOKEN}" -H 'Content-Type: application/json' -d '{"metadata":{},"node_encodings":{"bindings":{"node":"id"}},"edge_encodings":{"bindings":{"source":"src","destination":"dst"}}}' "${GRAPHISTRY_HOST%/}/api/v2/upload/datasets/")" DATASET_ID="$(jq -r '.dataset_id //.id' <<<"${UPLOAD_JSON}")"

Keep visibility non-public: use private/organization share mode (avoid public links).

echo "${GRAPHISTRY_HOST%/}/graph/graph.html?dataset=${DATASET_ID}"

Adapter F: single-use gateway flow

  • Admin/staff/superuser generates a one-time URL via GET /api/v2/generate/single-use-url/?username=<username>&dataset_id=<dataset_id> (availability may be deployment-specific).
  • Client uses the returned single-use gateway URL once for the target graph/session.
  • Revoke access with GET /api/v2/logout-user/username/<username>/ when needed.

Adapter G: org + PersonalKey flow

  • Create a PersonalKey for the organization user and capture key id/secret.
  • Exchange credentials at POST /api/v2/auth/pkey/jwt/ using Authorization: PersonalKey <id>:<secret>.
  • If required by deployment, include the organization identifier (for example org_name) in auth context.
  • Call protected REST endpoints with Authorization: Bearer <jwt>.

Adapter H: docs fallback policy

  • Prefer canonical Hub REST docs at https://hub.graphistry.com/docs/api/.
  • If a specific page is missing, use the closest available canonical Hub REST page in the same API/version section.
  • Clearly label any inference and avoid fabricating undocumented endpoints or parameters.

Adapter I: URL params + encodings bridge

  • POST encodings to /api/v2/upload/datasets/ using node_encodings.bindings and edge_encodings.bindings.
  • Keep first render deterministic with one URL knob, for example &play=0 (or &linLog=true).
  • For collections, use a URL encoded JSON value and strip whitespace before encoding.

Adapter J: experimental sessions workflow

  • https://hub.graphistry.com/docs/api/experimental/rest/sessions/ is the workflow reference.
  • Base URL: https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>.
  • Session URL: https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>&session=<session_id>.
  • Workflow: auth/upload/open base URL, then share/continue on the session URL.
  • Keep JWT in Authorization: Bearer headers; never use URL token params.

Adapter K: sessions minimal form

  • /docs/api/experimental/rest/sessions/ is the reference path.
  • Base URL: graph.html?dataset=<dataset_id>.
  • Session URL: graph.html?dataset=<dataset_id>&session=<session_id>.
  • Workflow: auth/upload/open base URL, then continue/share via session URL.
  • Keep output compact; include base URL and session URL forms.

Adapter L: admin healthchecks

  • Docs route: /docs/api/2/rest/health/.
  • Core checks: /healthcheck/, /ht/, /healthz.
  • Service checks: /streamgl-viz/health, /pivot/health, /streamgl-sessions/health.
  • GPU service checks: /streamgl-gpu/primary/health, /streamgl-gpu/secondary/cpu/health (optional /secondary/gpu/health is heavier).
  • Scope note: some checks are deployment/admin routes and may not be exposed on all hosted tenants.

Adapter M: REST vs Python/GFQL boundary

  • REST skill is for auth/upload/url/session/health endpoints and graph.html URL controls.
  • Named-endpoint REST flows are valid via /api/v2/o/<org>/functions/{gfql|python}/... and /api/v2/o/<org>/run/{gfql|python}/....
  • For ad-hoc SDK GFQL tasks (.gfql() with chain-lists, Cypher strings, or Let/DAG, plus Python dataframe logic), route to pygraphistry / pygraphistry-gfql; do not invent generic endpoints like /api/v2/gfql/query.

Adapter N: iframe URL API with collections + tricky settings

  • https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>&play=0&bg=%23000000&linLog=true&showCollections=true&info=false&pointsOfInterestMax=0&collections=%5B%7B%22name%22%3A%22risk%22%7D%5D&collectionsGlobalNodeColor=00FF00
  • Keep collections whitespace-free before URL encoding.
  • Use collectionsGlobalNodeColor/collectionsGlobalEdgeColor for non-collection fallbacks.

Adapter O: file upload lifecycle endpoint sequence

  1. /api/v2/files/
  2. /api/v2/upload/files/
  3. /api/v2/upload/datasets/

Adapter P: encoding bridge compact form

  • /api/v2/upload/datasets/ with node_encodings.bindings + edge_encodings.bindings.
  • Example keys: node_color, node_size, edge_color, source, destination.
  • First-render URL tweak: append &play=0 (or &linLog=true).

Adapter Q: nodes/edges format endpoint patterns

  • nodes/json, edges/json
  • nodes/csv, edges/csv
  • nodes/parquet, edges/parquet
  • nodes/orc, edges/orc
  • nodes/arrow, edges/arrow
  • Pair with upload lifecycle references: /api/v2/upload/files/ then /api/v2/upload/datasets/.

Adapter R: GFQL -> REST iframe handoff

  • Python/GFQL layer: run extraction in SDK (.gfql(...) / gfql_remote(...)) — supports chain-list, Cypher strings, and Let/DAG bindings.
  • REST layer: use auth/upload/dataset/session endpoints (/api-token-auth/, /api/v2/upload/datasets/).
  • Boundary: no generic REST GFQL query endpoint; do not invent /api/v2/gfql/query.
  • Share/render: use graph.html?dataset=<dataset_id> (optionally &session=<session_id>), keep JWT out of URL params.

Adapter S: find old files runbook

  • Authenticate (/api-token-auth/) and call GET /api/v2/files/?limit=100 with pagination.
  • Use created_at from each result row.
  • Client-side filter/sort for created_at <= now-90d.
  • Export matching file_id, name, created_at for review.
  • Optional cleanup should be admin-scoped and follow explicit approval.

Adapter T: files for specific user

  • List files via GET /api/v2/files/?limit=100 (paginate).
  • Filter by ownership metadata, starting with author (and deployment-specific mappings to username if available).
  • If needed, cross-check with GET /api/v2/datasets/?limit=100 for dataset ownership context.
  • Do not invent user-list endpoints; use documented APIs and escalate mapping gaps to admin/support.

Adapter U: list users boundary

  • No documented public REST endpoint to list users in canonical Hub docs.
  • Do not claim concrete routes like GET /api/v2/users/ without a private admin API contract.
  • Use admin/IDP directory workflow (SSO/IdP export or deployment owner process) for user enumeration.
  • Verify against https://hub.graphistry.com/docs/api/ and escalate to support/deployment owner if needed.

Adapter V: privacy via share-link API

  • Create dataset first via /api/v2/upload/datasets/ with required metadata, node_encodings, and edge_encodings.
  • Set visibility with POST /api/v2/share/link/ body: {"obj_pk":"<dataset_id>","obj_type":"dataset","mode":"private","notify":false,"message":"","invited_users":[]}.
  • If inviting users, include entries like {"email":"user@example.com","action":"10"} (10 view, 20 edit).
  • Deployment/docs caveat: this route is deployment-exposed and may not have a dedicated canonical docs page; verify availability on the target tenant.
  • Plan caveat: private/organization requests can be downgraded to public when sharing entitlements are unavailable.

Adapter W: named-endpoint architecture boundary

  • Manage named endpoint definitions via /api/v2/o/<org>/functions/{gfql|python}/....
  • Execute named endpoints via /api/v2/o/<org>/run/{gfql|python}/....
  • Keep guidance on documented external REST routes; avoid internal/backend route details.

Minimal Auth Snippet

Use Adapter A.

Auth Troubleshooting Template (4 bullets)

  • Verify token creation with /api-token-auth/ (or /api/v2/auth/pkey/jwt/ for PersonalKey flow).
  • Verify refresh behavior via /api-token-refresh/ before access-token expiry.
  • Verify token integrity and expiry with /api-token-verify/ and check clock skew.
  • Confirm Authorization: Bearer <token> on protected calls and log HTTP status/body.

Upload + URL Bridge Template

Use Adapter B for snippet form or Adapter I for compact bullet form.

URL and Sharing Safety

  • Safe viewer URL pattern: https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>.
  • Never include JWTs in URL query params (for example, do not add token=).
  • Send tokens only in headers, for example Authorization: Bearer <token>.
  • Useful URL knobs: play, linLog, scalingRatio, pointsOfInterestMax, pointSize, showCollections, info, collectionsGlobalNodeColor, collectionsGlobalEdgeColor.

Collections URL Guidance

  • collections should be a URL encoded JSON value.
  • Remove raw whitespace before encoding.
  • Example: collections=%5B%22teamA%22%2C%22fraud%22%5D.

Sessions (experimental, concise)

  • Docs: https://hub.graphistry.com/docs/api/experimental/rest/sessions/.
  • Start from: graph.html?dataset=<dataset_id>.
  • Session appears as: graph.html?dataset=<dataset_id>&session=<session_id>.

Policy Guardrails

  • Use documented endpoints only; avoid invented endpoints like /api/v2/query, /api/v2/graph/query, /api/v2/render, /api/v2/graphql.
  • Do not present SDK/GFQL behavior as a generic REST endpoint (for example avoid /api/v2/gfql/query claims).
  • Keep named-endpoint guidance at the external REST layer: /functions/... for definition lifecycle and /run/... for execution.
  • For deployment-exposed routes without dedicated docs pages (for example /api/v2/share/link/), explicitly label the uncertainty and advise tenant verification.
  • Keep credentials in environment variables; never hardcode literals.

Canonical Docs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.02%
按下载量换算33

Claude

31.51%
按下载量换算31

Cursor

17.09%
按下载量换算17

Gemini CLI

9.3%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/graphistry/graphistry-skills --skill graphistry-rest-api 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills