freezonex/tier0-sdk-v2/tier0-sdk-v2-agent

Claude Code and agent skill by freezonex/tier0-sdk-v2

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

使用 @tier0/sdk-v2 的 client.agent 查询和管理 Agent 作业、运行记录、分析、结果、卡片、资料库与关系,处理调度副作用和并发编辑。

Install

npx vskill@latest install freezonex/tier0-sdk-v2/tier0-sdk-v2-agent

SKILL.md

Agent 作业与结果

Agent 是平台应用能力,区别于 Stream 数据处理程序。使用服务端 client.agent;本领域普通 v1 响应已解包,直接读取 list/job/run/result 等字段。

入口选择

入口方法与用途
jobslist/get/create/update/pause/resume/trigger/delete,管理任务与调度
jobRunslist/get,查看具体执行
analysesdispatch/get,分发分析和读取结果
resultscreate/get/list/pin,保存分析产物并固定到画布
cardslist/get/update/delete,操作画布卡片
canvaseslist,查找画布
librarylist/get/create/update/delete,复用卡片定义
nodessearchSemantic/indexSync,语义搜索与索引同步
relationslist/teach,读取和写入数据关系

dispatch、trigger、indexSync、teach 都有副作用,不能在普通查询流程中悄悄执行。

查询作业与运行

ts
import { createClient } from '@tier0/sdk-v2';
export async function listJobs(page = 1) {
return createClient().agent.jobs.list({ page, size: 20 });
}
export async function inspectJob(jobId: string) {
const client = createClient();
const job = await client.agent.jobs.get({ jobId });
const runs = await client.agent.jobRuns.list({ jobId, page: 1, size: 20 });
return { job: job.job, runs: runs.list, total: runs.total };
}
export async function inspectJobRun(jobId: string, jobRunId: string) {
const response = await createClient().agent.jobRuns.get({ jobId, jobRunId });
return response.run;
}

作业 ID 与运行 ID 不同;不能拿 resultId 去查 jobRuns。分页接口一般要求 page/size,按返回 total/list 继续。status/dispatchState 按服务端值处理,收到派发回执不等于作业完成。

创建与调度

ts
import { createClient, type Tier0Client } from '@tier0/sdk-v2';
type CreateJob = Parameters<Tier0Client['agent']['jobs']['create']>[0];
export async function createConfiguredJob(input: CreateJob) {
// input 的调度和 task 内容来自当前平台认可的业务配置。
return createClient().agent.jobs.create(input);
}
export async function triggerExistingJob(jobId: string) {
return createClient().agent.jobs.trigger({ jobId });
}

创建必填 name/scheduleKind/task/sourceType/sessionId。scheduleKind 的可用值、task 对象和时间单位须来自实际业务契约,Swagger 中的 string/unknown 不意味着可以任意填写。pause/resume/trigger 是不同意图;不要用“暂停后再恢复”来替代查询。

jobs.update 的 notifyEnabled:省略保留原通知,1 要求提供 notify,2 关闭通知且不带 notify。没有通用作业幂等键字段时,不得额外塞 idempotencyKey;不确定的 trigger 先查运行列表对账。

保存结果与并发编辑

result.create 的 operationId 由调用方持有;保存超时后可用 results.get({ operationId }) 查回,不能再创建新 operationId 重复保存。get 按 resultId 或 operationId 二选一。

cards.update 要带读取时的完整 expectedCardSpec;library.update 要带完整 expectedItem 快照。409 表示内容已变化,应重新读取并合并用户意图,不能自动覆盖。具体示例见 结果与卡片编辑。

结果附件/图片使用 文件 Skill 的持久化 filePath,不保存签名 URL 作为长期资源。失败保留 ApiError.status/code/errorCode;写入 outcomeUnknown 时先查询对应资源,不自动重发。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/freezonex/tier0-sdk-v2/tier0-sdk-v2-agent/badge)](https://verified-skill.com/skills/freezonex/tier0-sdk-v2/tier0-sdk-v2-agent)

Something wrong with this skill or its page? Tell us.