跳到正文
cccskills
免费在 GitHub 公开

prismatic-api

Prismatic API access patterns and GraphQL reference. Covers the two-tier access hierarchy (MCP tools → Prism CLI), CLI usage rules, GraphQL query patterns, pagination, authentication, and managing platform resources programmatically.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(12)

  • SKILL.md7.7 KB
  • references/api-access-methods.md6.1 KB
  • references/authentication.md2.8 KB
  • references/common-patterns.md3.6 KB
  • references/components.md4.1 KB
  • references/config-variables.md3.1 KB
  • references/connections.md5.8 KB
  • references/customers.md2.8 KB
  • references/execution-and-logs.md3.0 KB
  • references/instances.md6.4 KB
  • references/integrations.md5.0 KB
  • references/pagination-and-filtering.md3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Prismatic API

Reference documentation for Prismatic platform operations and the standardized API access hierarchy.

API Access Method Hierarchy

Prismatic API access follows a two-tier priority system for interactive agents (e.g., Orby). Builder agents (cni-builder, component-builder) use their own script-based pipelines and should not use MCP tools directly — see their agent docs for details.

Priority 1: MCP Tools (Interactive Agents Only)

Use MCP tools when operating within an interactive agent conversation (e.g., Orby). These handle auth, retries, and output formatting automatically.

MCP ToolOperation
mcp__plugin_prismatic-skills_prism__prism_meCheck auth / user profile
mcp__plugin_prismatic-skills_prism__prism_components_listList / search components
mcp__plugin_prismatic-skills_prism__prism_components_initInitialize new component
mcp__plugin_prismatic-skills_prism__prism_components_publishPublish component
mcp__plugin_prismatic-skills_prism__prism_components_generate_manifestGenerate component manifest
mcp__plugin_prismatic-skills_prism__prism_integrations_listList / search integrations
mcp__plugin_prismatic-skills_prism__prism_integrations_initInitialize new CNI
mcp__plugin_prismatic-skills_prism__prism_integrations_importImport / update CNI
mcp__plugin_prismatic-skills_prism__prism_integrations_convertConvert YAML to CNI
mcp__plugin_prismatic-skills_prism__prism_integrations_flows_listList flows for integration
mcp__plugin_prismatic-skills_prism__prism_integrations_flows_testTest a flow
mcp__plugin_prismatic-skills_prism__prism_integrations_flows_listenListen for webhook payloads
mcp__plugin_prismatic-skills_prism__prism_integrations_generate_flowGenerate flow boilerplate
mcp__plugin_prismatic-skills_prism__prism_integrations_generate_config_pageGenerate config page
mcp__plugin_prismatic-skills_prism__prism_integrations_generate_config_varGenerate config variable
mcp__plugin_prismatic-skills_prism__prism_integrations_add_connection_config_varAdd connection config var
mcp__plugin_prismatic-skills_prism__prism_integrations_add_datasource_config_varAdd datasource config var
mcp__plugin_prismatic-skills_prism__prism_install_component_manifestInstall component manifest in CNI
mcp__plugin_prismatic-skills_prism__prism_install_legacy_component_manifestLegacy manifest install

Priority 2: Prism CLI (Scripts + Agents)

For scripts and operations not covered by MCP tools:

Built-in commands (via prism-retry.ts):

prism integrations:list --extended --output json
prism components:publish --directory ./my-component
prism integrations:import --directory ./my-integration

Custom GraphQL queries (via shared/graphql.ts):

import { graphql, GraphQLError } from "./shared/graphql.js";

const data = graphql('query { customers { nodes { id name } } }');

Or directly via CLI:

prism graphql:query 'query { customers { nodes { id name } } }'
prism graphql:query 'query($id: ID!) { customer(id: $id) { name } }' \
  --variables '{"id": "Q3VzdG9tZXI6..."}'

Decision Tree

Agent calling directly?  → Use MCP tool if available, else `prism` via Bash
Script?                  → Use shared/graphql.ts for custom queries,
                           prism-retry.ts for built-in CLI commands

Rule: NEVER create inline GraphQL clients — always use shared/graphql.ts imports.

Common Operations Cheat Sheet

These are the most frequently needed GraphQL operations. Use these exact queries — don't guess the field names.

OperationReference FileQuery/Mutation Name
Find test instance for an integrationreferences/instances.md → "Get Test (System) Instance"instances(integration: $id, isSystem: true)
Get execution result with logsreferences/execution-and-logs.md → "Get Execution Result with Step Results"executionResult(id: $id)
Publish an integration versionreferences/integrations.md → "Mutation: Publish Integration"publishIntegration(input: { id: $id })
Set marketplace availabilityreferences/integrations.md → "Mutation: Set Marketplace Availability"updateIntegrationMarketplaceConfiguration
Clear instance persisted statereferences/instances.md → "Mutation: Clear Instance Persisted State"updateInstance(input: { id: $id, persistedData: "{}" })
Update config variables (safe)references/instances.md → "Mutation: Update Instance Config Variables"updateInstanceConfigVariables (NOT updateInstance)

Read the referenced file section for the full query with all fields. Do not reconstruct queries from memory.

CLI Usage Rules

  1. prism must be installed globally (npm install -g @prismatic-io/prism) — never use npx prism
  2. All list commands: always use --extended --output json
  3. --extended and --columns are mutually exclusive — always prefer --extended
  4. For graphql:query: always use --variables flag, never string interpolation
  5. Auth is handled by the CLI — no custom token exchange needed

API Endpoint

  • URL: {PRISMATIC_URL}/api (default: https://app.prismatic.io/api)
  • Method: HTTP POST with JSON body {"query": "...", "variables": {}}
  • Auth: Bearer token in Authorization header
  • Content-Type: application/json

Authentication

Obtain tokens via Prism CLI. See references/authentication.md.

Quick reference:

  • prism me:token - Short-lived access token
  • prism me:token --type refresh - Long-lived refresh token
  • Access tokens valid for 7 days, auto-refreshed 5 minutes before expiry
  • All authenticated requests return HTTP 200, even on errors - always check errors array

Pagination

All collection queries use Relay cursor-based pagination. See references/pagination-and-filtering.md.

query($after: String) {
  resources(after: $after, first: 100) {
    nodes { id name }
    pageInfo { hasNextPage endCursor }
  }
}

Critical Patterns

  1. Enum values are lowercase strings: variableScope: "customer" not "CUSTOMER", managedBy: "org" not "ORG"
  2. Use updateInstanceConfigVariables (partial, safe) not updateInstance (replaces ALL config vars)
  3. Always deploy after config changes: Call deployInstance to activate
  4. Use parameterized variables: Never string-concatenate into queries
  5. Check mutation errors: Mutations return errors { field messages } alongside results

Key References by Resource Type

Core Resources

  • references/customers.md - Customer CRUD, external IDs, labels
  • references/integrations.md - Integration management, publishing, testing
  • references/instances.md - Instance deployment, config variables, lifecycle
  • references/components.md - Component queries, action introspection, search

Connections & Config

  • references/connections.md - Scoped config vars, customer config vars, connection management
  • references/config-variables.md - Instance config updates, deployment patterns

Operational

  • references/execution-and-logs.md - Execution results, step results, log queries, replay
  • references/common-patterns.md - Batch operations, nested queries, aliased mutations, error handling
  • references/api-access-methods.md - Detailed MCP tool reference, CLI patterns, migration notes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

This skill should be used when the user needs to analyze a Dell Boomi export, parse Boomi Component XML files, migrate from Boomi to Prismatic, convert Boomi processes to CNI flows, map Boomi shapes to Prismatic equivalents, or interpret Boomi connector settings, transform maps, and process properties. Relevant when the user says "analyze this Boomi export", "migrate from Boomi", "parse Boomi XML", "convert Boomi process to Prismatic", or "what does this Boomi shape map to".

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

Architecture patterns, code generation guides, and reference documentation for building Prismatic custom components.

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

This skill should be used when the user needs to analyze a Cyclr export, parse Cyclr JSON files, migrate from Cyclr to Prismatic, convert Cyclr cycles to CNI flows, map Cyclr steps to Prismatic equivalents, or interpret Cyclr connector settings, field mappings, and cycle parameters. Relevant when the user says "analyze Cyclr export", "migrate from Cyclr", "parse Cyclr JSON", "convert Cyclr cycle to Prismatic", or "what does this Cyclr step map to".

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

Reference documentation for embedding Prismatic's integration marketplace and workflow builder in a web application. Covers JWT authentication, the embedded SDK, marketplace and workflow embedding, theming, i18n, additional screens, and custom marketplace UI. Use when the user asks about embedding Prismatic, JWT tokens for embedded apps, marketplace iframes, workflow builder integration, custom marketplace UI, or frontend SDK setup.

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

Architecture patterns, manifest usage, code generation guides, and reference documentation for building Prismatic Code Native Integrations.

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

Core knowledge for migrating integrations from other platforms (Boomi, Cyclr) to Prismatic Code Native Integrations. Provides the standard integration schema, schema-to-spec mapping, confidence scoring, and migration-aware code generation patterns. Use when the user says "migrate", "convert from Boomi/Cyclr", "parse this export".

中文简介正在准备中。当前显示原文说明。

prismatic-io/prismatic-skills282026年10月15日 更新

查看 prismatic-io 的全部技能

报告此技能的问题