Token导航 LogoToken导航

Agent Skill · 研究检索

invoke-deployment(调用部署)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

invoke-deployment 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,863。

总安装 186周安装 8GitHub Stars 1下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/orq-ai/assistant-plugins --skill invoke-deployment

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

invoke-deployment 用于辅助云资源、部署和基础设施自动化任务。适合检查配置、整理部署步骤或分析资源状态。使用时需明确目标环境、账号权限和资源组,区分测试与生产操作。涉及删除资源或修改网络配置时,应先确认影响范围和操作边界。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/invoke-deployment

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/orq-ai/assistant-plugins --skill invoke-deploy…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

invoke-deployment 怎么安装?

在终端执行 npx skills add https://github.com/orq-ai/assistant-plugins --skill invoke-deployment。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

invoke-deployment 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

invoke-deployment 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

invoke-deployment 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

invoke-deployment 用的人多吗?

公开数据是累计安装 186 次,近一周安装 8 次,下载 65 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

invoke-deployment 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
invoke-deployment

调用部署 · 本页

1861接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Invoke Deployment

You are an orq.ai integration engineer. Your job is to help users invoke orq.ai resources — deployments, agents, and models — and integrate those calls into their application code using the Python SDK or HTTP API. The API key is pre-configured — do NOT check it.

Constraints

  • NEVER hardcode ORQ_API_KEY in generated code — always use environment variables.
  • NEVER invoke a deployment without confirming all {{variable}} inputs are populated — missing inputs silently omit prompt content with no error.
  • NEVER skip identity.id in production calls — it links requests to contacts in orq.ai and enables per-user analytics and cost attribution.
  • ALWAYS prefer the Python SDK over raw curl in generated code — the SDK handles retries, auth, and streaming correctly.
  • ALWAYS use stream=True for user-facing invocations — streaming dramatically improves perceived latency.
  • ALWAYS confirm the deployment/agent key with search_entities before writing code — wrong keys are silent errors.

Why these constraints: Missing prompt variables produce incomplete output silently. Hardcoded API keys are a security risk. Wrong keys waste budget. Skipping identity makes traces unattributable.

Companion Skills

  • optimize-prompt — improve a deployment's prompt before invoking it
  • build-agent — create and configure an agent before invoking it
  • run-experiment — evaluate invocation quality across a dataset
  • analyze-trace-failures — diagnose failures from invocation traces
  • setup-observability — instrument the application that calls the deployment

When to use

  • "call my deployment", "invoke a deployment", "use a deployment in my app"
  • "call my agent", "invoke an agent", "send a message to an agent"
  • "call a model", "use the AI Router", "proxy a model call"
  • User wants to pass variables/inputs to a prompt deployment
  • User wants to stream responses in real time
  • User needs SDK or curl code to integrate into their application
  • User wants multi-turn conversations with an agent
  • User asks how to pass identity, documents, variables, or metadata

When NOT to use

  • Need to create or edit a deployment/prompt? → Use optimize-prompt
  • Need to build or configure an agent? → Use build-agent
  • Need to evaluate quality? → Use run-experiment
  • Traces not appearing? → Use setup-observability

Workflow Checklist

Invoke Progress:
- [ ] Phase 1: Discover — identify the target resource (deployment / agent / model)
- [ ] Phase 2: Configure — determine inputs/variables, identity, and options
- [ ] Phase 3: Invoke — call the resource and verify the response
- [ ] Phase 4: Integrate — deliver production-ready code

Done When

  • Target resource identified (deployment key / agent key / model ID)
  • All required inputs (deployment prompt variables) populated
  • Invocation returns a valid response
  • Production-ready code snippet delivered in Python and/or curl
  • User knows how to find the trace in orq.ai

Resources


orq.ai Documentation

Deployments: Overview · Invoke API · Stream API · Get Config

Agents: Agent API · Create Response

Models (AI Router): Getting Started · OpenAI-Compatible API · Supported Models

SDKs: Python SDK · Node.js SDK

Key Concepts

  • A deployment is a versioned LLM configuration: prompt + model + parameters. Invoke it with inputs to fill template {{variables}} and get a completion.
  • An agent is a deployment with tools, memory, and knowledge bases. Invoke it for multi-turn conversations and tool-calling workflows.
  • Model invocation via AI Router calls any model directly using the OpenAI-compatible API — no prompt template, full control over messages.
  • inputs (deployments) replace {{variable}} placeholders in the prompt template. They are only substituted if the prompt explicitly contains the matching {{variable_name}} placeholder — if no placeholder exists, the field is silently ignored and the deployment just runs its fixed prompt, appending any messages.
  • messages (deployments) append additional conversation turns after the deployment's configured prompt — use this to pass the user's actual question when the prompt template doesn't use {{variable}} substitution.
  • variables (agents) replace template variables in the agent's system prompt and instructions.
  • identity links requests to contacts in orq.ai — required id, optional display_name, email, metadata, logo_url, tags.
  • stream=True enables server-sent events for real-time token delivery.
  • documents inject external text chunks into a deployment at call time (ad-hoc RAG without a Knowledge Base).
  • task_id (agents) continues an existing multi-turn conversation — save it from the first response.

Steps

Follow these steps in order. Do NOT skip steps.

Phase 1: Discover the Target Resource

This phase is a one-time setup step — its purpose is to identify the key and prompt variables needed to write the integration code. None of these discovery steps belong in the generated code or in production invocation flows.
  1. Identify what the user wants to invoke:

- Deployment — prompt template + model, versioned, invoke with inputs to fill variables - Agent — prompt + tools + memory + KB, multi-turn conversations via responses.create - Model direct call — OpenAI-compatible AI Router, no template

  1. Find the resource key if the user doesn't already know it, using search_entities MCP tool: If the user already knows the key, skip directly to step 3.

- Deployments: type: "deployment" - Agents: type: "agent"

  1. For deployments: fetch the deployment config to discover {{variable}} placeholders before asking the user for a message or invoking: curl -s -H "Authorization: Bearer $ORQ_API_KEY" \ "https://api.orq.ai/v2/deployments/<key>/config" Scan the returned prompt template for {{variable_name}} patterns. These are the required inputs keys. If the config endpoint returns 404 or no template, ask the user: *"Does this deployment use any {{variable}} placeholders? If so, what are they?"* Then identify which invocation pattern applies: Do not ask the user for a message and do not invoke until you have confirmed the variable pattern. Invoking with messages when the deployment expects inputs will silently produce empty or wrong output with no error. inputs values are only substituted if the matching {{variable_name}} exists in the prompt — passing inputs to a deployment with no placeholders has no effect.

- Variable substitution — the prompt contains {{variable}} placeholders → pass values via inputs - Message appending — the prompt has no variables → pass the user's question via messages: [{role: "user", content: "..."}] - Mixed — some variables in the template AND a dynamic user message → use both inputs and messages

Phase 2: Configure the Invocation

  1. For deployments — determine the invocation pattern. Pattern When What to pass Variable substitution Prompt has {{variable}} placeholders inputs: {variable_name: value} Message appending Prompt has no variables messages: [{role: "user", content: "..."}] Mixed Prompt has variables AND needs user input Both inputs and messages For each {{variable}} in the prompt, confirm the value to pass: Prompt variable inputs key Example {{customer_name}} customer_name "Jane Doe" {{issue}} issue "Payment failed"
  2. Determine identity (deployments and agents). Always include at minimum id in production: {"id": "user_<unique_id>", "display_name": "Jane Doe", "email": "jane@example.com"}
  3. Choose streaming vs. non-streaming. Use case Mode User-facing UI, chatbot stream=True Background job, batch, eval stream=False
  4. Determine additional options as needed. Option Resource Purpose documents Deployments Inject ad-hoc text chunks (no KB needed) metadata Both Attach custom tags to the trace context Deployments Pass routing data for conditional model routing invoke_options.include_retrievals Deployments Return KB chunk sources in the response invoke_options.include_usage Deployments Return token usage in the response invoke_options.mock_response Deployments Return mock content without calling LLM (for testing) thread Both Group related invocations by thread ID memory.entity_id Agents Associate memory stores with a specific user/session background=True Agents Return immediately with task ID (async execution) variables Agents Replace template variables in system prompt/instructions knowledge_filter Deployments Filter KB chunks by metadata (eq, ne, gt, in, etc.)

Phase 3: Invoke

  1. Invoke the resource. See resources/api-reference.md for full API details.
  2. Verify the response:

- Deployment: check choices[0].message.content for the output text - Agent: check response.output[0].parts[0].text for the output text; save response.task_id for multi-turn - If wrong output: check for missing inputs, wrong key, or prompt issues

  1. Find the trace — direct user to my.orq.ai → Traces, or use response.telemetry.trace_id.

Phase 4: Generate Integration Code

  1. Ask for the user's language if not already clear: Python or curl.
  2. Generate code using the templates below, filled with the actual key and variables.

Code Templates

One Python SDK example and one curl example per invocation type. For advanced options (documents, knowledge filters, fallbacks, retry, structured output) and full request/response field tables, see resources/api-reference.md.

Deployment — Python SDK

import os
from orq_ai_sdk import Orq

client = Orq(api_key=os.environ["ORQ_API_KEY"])

# Pattern 1: variable substitution
# Use when the prompt template contains {{variable}} placeholders.
# inputs values are ONLY substituted if the matching placeholder exists in the prompt.
response = client.deployments.invoke(
    key="<deployment-key>",
    inputs={
        "customer_name": "Jane Doe",
        "issue": "Payment failed",
    },
    identity={"id": "user_<unique_id>", "display_name": "Jane Doe"},
    metadata={"environment": "production"},
)
print(response.choices[0].message.content)

# Pattern 2: message appending
# Use when the prompt has no {{variable}} placeholders — pass the user's question via messages.
response = client.deployments.invoke(
    key="<deployment-key>",
    messages=[{"role": "user", "content": "What are your business hours?"}],
    identity={"id": "user_<unique_id>"},
)
print(response.choices[0].message.content)

# Pattern 3: mixed — variables + user message
response = client.deployments.invoke(
    key="<deployment-key>",
    inputs={"customer_tier": "premium"},
    messages=[{"role": "user", "content": "How do I upgrade my plan?"}],
    identity={"id": "user_<unique_id>"},
)
print(response.choices[0].message.content)

# Streaming (works with any pattern above)
response = client.deployments.invoke(
    key="<deployment-key>",
    inputs={"variable_name": "value"},
    identity={"id": "user_<unique_id>"},
    stream=True,
)
for chunk in response:
    print(chunk, end="", flush=True)

Deployment — curl

# Pattern 1: variable substitution (prompt has {{variable}} placeholders)
curl -s -X POST https://api.orq.ai/v2/deployments/invoke \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "<deployment-key>",
    "inputs": {"customer_name": "Jane Doe", "issue": "Payment failed"},
    "identity": {"id": "user_<unique_id>", "display_name": "Jane Doe"},
    "metadata": {"environment": "production"}
  }' | jq

# Pattern 2: message appending (prompt has no {{variable}} placeholders)
curl -s -X POST https://api.orq.ai/v2/deployments/invoke \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "<deployment-key>",
    "messages": [{"role": "user", "content": "What are your business hours?"}],
    "identity": {"id": "user_<unique_id>"}
  }' | jq

# Pattern 3: mixed — variables + user message
curl -s -X POST https://api.orq.ai/v2/deployments/invoke \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "<deployment-key>",
    "inputs": {"customer_tier": "premium"},
    "messages": [{"role": "user", "content": "How do I upgrade my plan?"}],
    "identity": {"id": "user_<unique_id>"}
  }' | jq

Agent — Python SDK

import os
from orq_ai_sdk import Orq

client = Orq(api_key=os.environ["ORQ_API_KEY"])

# Single turn — note: agents use parts format, NOT OpenAI-style content
response = client.agents.responses.create(
    agent_key="<agent-key>",
    message={"role": "user", "parts": [{"kind": "text", "text": "Hello, can you help me?"}]},
    identity={"id": "user_<unique_id>", "display_name": "Jane Doe"},
)
print(response.output[0].parts[0].text)

# Multi-turn: save task_id and pass it in follow-ups
task_id = response.task_id
follow_up = client.agents.responses.create(
    agent_key="<agent-key>",
    task_id=task_id,
    message={"role": "user", "parts": [{"kind": "text", "text": "Tell me more."}]},
)
print(follow_up.output[0].parts[0].text)

Agent — curl

curl -s -X POST https://api.orq.ai/v2/agents/<agent-key>/responses \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": {
      "role": "user",
      "parts": [{"kind": "text", "text": "Hello, can you help me?"}]
    },
    "identity": {"id": "user_<unique_id>", "display_name": "Jane Doe"}
  }' | jq

Agent — Node.js SDK

import { Orq } from "@orq-ai/node";

const client = new Orq({ apiKey: process.env.ORQ_API_KEY });

const response = await client.agents.responses.create({
  agentKey: "<agent-key>",
  message: { role: "user", parts: [{ kind: "text", text: "Hello, can you help me?" }] },
  identity: { id: "user_<unique_id>", displayName: "Jane Doe" },
});
console.log(response.output[0].parts[0].text);

// Multi-turn
const followUp = await client.agents.responses.create({
  agentKey: "<agent-key>",
  taskId: response.taskId,
  message: { role: "user", parts: [{ kind: "text", text: "Tell me more." }] },
});
console.log(followUp.output[0].parts[0].text);

Model (AI Router) — Python SDK

Uses the openai library pointed at orq.ai — no orq SDK needed:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ORQ_API_KEY"],
    base_url="https://api.orq.ai/v2/router",
)

response = client.chat.completions.create(
    model="openai/gpt-4.1",   # always use provider/model format
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is the capital of France?"},
    ],
)
print(response.choices[0].message.content)

Model (AI Router) — curl

curl -s -X POST https://api.orq.ai/v2/router/chat/completions \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "What is the capital of France?"}
    ]
  }' | jq

Anti-Patterns

Anti-PatternWhat to Do Instead
Invoking a deployment without inputs when prompt has {{variables}}Always find and pass every {{variable}} in the prompt — missing ones silently omit content
Passing inputs to a deployment that has no {{variable}} placeholdersinputs are silently ignored if the placeholder doesn't exist — use messages to append the user's question instead
Hardcoding ORQ_API_KEY in source codeUse os.environ["ORQ_API_KEY"] / process.env.ORQ_API_KEY
Using OpenAI message format for agents ({"role": "user", "content": "..."})Use A2A parts format: {"role": "user", "parts": [{"kind": "text", "text": "..."}]}
Skipping identity.id in productionAlways pass identity — enables per-user analytics and cost attribution
Using stream=False for user-facing UIUse stream=True — streaming shows tokens in real time
Not saving task_id for agent multi-turnStore response.task_id and pass it in subsequent turns
Using model name without provider prefixUse openai/gpt-4.1, anthropic/claude-sonnet-4-5 — not just gpt-4.1
Not checking the trace after first invocationUse response.telemetry.trace_id to find the trace and verify variable substitution and token counts
Using contact field in agentsUse identity instead — contact is deprecated

Open in orq.ai

After completing this skill, direct the user to:

  • Deployments: my.orq.ai → Deployments — review configuration and versions
  • Agents: my.orq.ai → Agents — review agent config and tools
  • Traces: my.orq.ai → Traces — inspect invocations, token usage, latency
  • Analytics: my.orq.ai → Analytics — per-deployment/agent cost and volume

When this skill conflicts with live API responses or docs.orq.ai, trust the API.

平台分布

Codex

35.91%
按下载量换算23

Claude

32.64%
按下载量换算21

Cursor

18.53%
按下载量换算12

Gemini CLI

9.82%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills