Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

sapiom-agent-buildersapiom Agent 构建器

Agent Skill

sapiom-agent-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

279

周安装

12

GitHub Stars

9

下载量

98
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sapiom/skills --skill sapiom-agent-builder

简介

用于查找、检索和筛选相关信息,支持基于关键词或任务场景的候选结果定位。

  • 适用于需要快速从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。
  • sapiom-agent-builder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Sapiom Agent Builder

Build and deploy autonomous agents powered by @sapiom/fetch SDK and Sapiom service gateways.

When to Use

  • User says "build me an agent that..."
  • User wants to "automate X on a schedule"
  • User wants a "bot that checks/monitors/scrapes/summarizes"
  • User wants to "alert me when X changes"
  • User wants to deploy code that runs autonomously
Already have a working script and just want to deploy it? Use the sapiom-deploy skill instead.

Process

Phase 1: Parse Intent

Determine from the user's request:

  1. What should the agent do? — Monitor a website? Summarize content? Research a topic?
  2. How often? — Every 5 min, hourly, daily, weekly? On-demand?
  3. What output? — Log to console? Send a webhook? Store results?

Pick a compute pattern:

PatternWhen to UseDeploy
Scheduled jobRuns periodically on a cron schedulePOST /v1/jobs with schedule param
Batch jobProcesses N items in parallel on demandPOST /v1/jobs (no schedule), trigger via /executions
Orchestrator + workersPeriodic task that fans out per-item workScheduled job triggers batch job executions
SandboxLong-running service, exposed ports, persistent filesystemPOST /v1/sandboxes

For agents that iterate over a list of items, consider the orchestrator + workers pattern: a lightweight scheduled job handles scraping and diffing, then triggers a separately deployed batch job with new items as task payloads. This processes items in parallel instead of sequentially.

Full deploy API details: references/deploy.md

Map the intent to a service pattern:

PatternDescriptionServices
Monitor + AlertWatch a page, alert on changesFirecrawl + OpenRouter
Research + ReportSearch web, read pages, summarizeLinkup + Firecrawl + OpenRouter
Collect + StoreScrape data, store for retrievalFirecrawl + Upstash Vector
Search + AnswerQuery stored data, generate answersUpstash Vector + OpenRouter
Watch + NotifyCheck URL, send webhook on conditionFirecrawl + QStash
Collect + PersistScrape data, store in SQL databaseFirecrawl + Neon Postgres
Track + ReportMaintain state across runs, report trendsNeon Postgres + OpenRouter

Phase 2: Select Capabilities

Read the reference for each service the agent needs. Only read what you need. For each service, ask: does the agent actually need this, or is it just nice-to-have? Extra service calls add cost, latency, and failure points — and if a service returns low-quality data, downstream LLM analysis will be wrong too.

ServiceReference FileWhen Needed
LLM inferencereferences/llm-inference.mdAgent needs to reason, summarize, classify
Web scrapingreferences/web-scraping.mdAgent needs page content
Web searchreferences/web-search.mdAgent needs to find URLs
Vector storagereferences/vector-storage.mdAgent needs semantic search / RAG
Text searchreferences/text-search.mdAgent needs keyword search
Redis cachereferences/redis-cache.mdAgent needs caching, rate limiting, ephemeral state
Message queuereferences/message-queue.mdAgent needs webhooks / delayed tasks
Postgres databasereferences/database.mdAgent needs structured storage / state across runs
Deploymentreferences/deploy.mdAlways needed (final step)
All servicesreferences/capabilities.mdQuick overview / comparison

Phase 3: Get API Key

The user needs a Sapiom API key. Two options:

  1. MCP tool (if sapiom_create_transaction_api_key is available): Tool: sapiom_create_transaction_api_key Parameters: {name: "{agent-name}-key", description: "API key for {agent-name}"} The plain key is shown only once — save it immediately.
  2. Manual (if no MCP tool): Direct user to https://app.sapiom.ai/settings to create an API key.

If the user already has a key, skip this step.

Phase 4: Write the Script

Start from the appropriate template:

TemplateWhen
templates/basic-cron.jsSimple scrape/fetch agent
templates/llm-agent.jsAgent that calls an LLM

Read the template, then adapt it:

  1. Copy the SDK setup pattern (same for all agents)
  2. Add gateway calls from the reference docs
  3. Wire the steps together: gather → process → act
  4. Add error handling:

- Every safeFetch call should check res.ok and include the response body in the error: throw new Error(\... HTTP ${res.status}: ${await res.text()}) - If the agent iterates over a list of items, wrap per-item work in try/catch so one failure doesn't abort the entire batch. Log the error and continue.

Script requirements for deployment:

  • Entry point: index.js
  • Must have package.json with @sapiom/fetch in dependencies
  • Must have scripts.start: "node index.js"
  • Agent reads SAPIOM_API_KEY from process.env
  • Keep it simple — one file, no build step
  • Batch job workers use const {blStartJob} = require("@blaxel/core") and call blStartJob(myFunction) where myFunction(args) receives each task's payload. Add @blaxel/core to dependencies. Scheduled jobs and standalone scripts use a normal main() function.

If the agent uses Postgres, always include an agent_runs table to track execution history. See the "Run Tracking" pattern in references/database.md. Every agent run should:

  1. INSERT a row into agent_runs with status running at the start
  2. UPDATE it to completed (with items_processed and summary) or failed (with error) at the end
  3. Link data rows back to the run via a run_id foreign key

Phase 5: Sample Run

Run the agent locally before deploying. Expect the first run to fail — wrong API routes, malformed responses, and bad data are normal. The goal is to catch these issues before deploying a broken agent.

  1. Install dependenciesnpm install in the agent directory
  2. Run the scriptSAPIOM_API_KEY=... node index.js
  3. Check for errors — fix any crashes (wrong endpoints, auth failures, JSON parse errors)
  4. Re-run until the script completes without errors

If the agent processes a list of items, the sample run will naturally cover the full set — don't artificially limit it. The point is to verify the pipeline works end-to-end with real data.

Phase 6: Quality Check

A successful run doesn't mean the output is correct. Write a throwaway script that reads the agent's persisted results and checks whether the data actually makes sense.

What to check:

  • Are LLM outputs grounded? — If the agent uses search results to inform analysis, do the search results actually relate to the query? Generic or unrelated results mean the search queries need reworking or the search step should be removed.
  • Is structured data well-formed? — If the agent extracts JSON from LLM responses, are the fields populated with real content or hallucinated/empty values?
  • Are external API results relevant? — Read a few records and verify that data from external services (search, scrape, enrichment) actually matches what was requested. Bad upstream data will silently produce bad downstream analysis.

If the quality check reveals issues:

  1. Fix the agent script — adjust prompts, remove unreliable data sources, fix queries
  2. Clear stale data — drop and recreate tables if the schema changed, or delete bad rows
  3. Re-run from Phase 5

Repeat until the output holds up to inspection. Only then proceed to deploy.

Phase 7: Deploy

STOP — Before deploying, verify: 1. Phase 5 (Sample Run) completed — the script runs without errors locally 2. Phase 6 (Quality Check) passed — the output data is correct and makes sense If either is incomplete, go back. Deploying a broken agent wastes time — it will fail the same way in the cloud.

Read references/deploy.md for the full API reference. Deploy is non-blocking — it returns immediately with status: "building". Poll GET /v1/jobs/{name} every 10–15 seconds until "deployed" or "failed" (typically 60–120s).

Quick summary:

  • Scheduled job (most common): ZIP + POST /v1/jobs?name={name}&schedule={cron} → poll until deployed
  • Batch job: same deploy, omit schedule, trigger via POST /v1/jobs/{name}/executions
  • Orchestrator + workers: scheduled job triggers batch job executions

Cron schedule selection:

FrequencyCron Expression
Every 5 minutes*/5 * * * *
Every 15 minutes*/15 * * * *
Every hour0 * * * *
Every 2 hours0 */2 * * *
Every 6 hours0 */6 * * *
Daily at 9am UTC0 9 * * *
Weekly Monday 9am0 9 * * 1

Default to every 2 hours (0 */2 * * *) unless the user specifies otherwise.

Phase 8: Verify

After deploy completes:

  1. Confirm job status is deployed in the response
  2. Report to user: job name, cron schedule, services used
  3. Remind user to set SAPIOM_API_KEY env var if needed

Troubleshooting

safeFetch is not a function

Cause: Wrong import or missing @sapiom/fetch dependency. Fix: Ensure package.json has "@sapiom/fetch": "^0.3.0" and code uses const {createFetch} = require("@sapiom/fetch").

HTTP 402 Payment Required

Cause: Missing or invalid SAPIOM_API_KEY. Fix: Check that the env var is set and the key is valid. If running locally: SAPIOM_API_KEY=sk-... node index.js. If deployed: pass via envs in the deploy body.

Scrape returns empty/wrong content

Cause: Firecrawl got blocked, or the page requires JavaScript rendering. Fix: Try adding waitFor: 3000 to the scrape options. Some sites block automated requests — test the URL manually first.

LLM returns garbage or hallucinated data

Cause: Input content too long, prompt too vague, or wrong model. Fix: Truncate input (.slice(0, 8000)), be more specific in the system prompt, or switch to a more capable model (e.g., anthropic/claude-opus-4.6).

Deploy returns 502

Cause: Bad package.json — missing main, scripts.start, or invalid JSON. Fix: Ensure package.json has "main": "index.js" and "scripts": {"start": "node index.js"}.

Agent runs but produces no output

Cause: Env vars missing in deployed environment. Fix: Pass SAPIOM_API_KEY via the envs field when deploying. The job needs it at runtime to call other gateways.

Checklist

  • Parsed user intent (what, how often, what output, compute pattern)
  • Selected capabilities (read only needed references)
  • Got API key (MCP tool, manual, or user-provided)
  • Wrote script from template + references
  • Sample run completes without errors
  • Quality checked output data for correctness
  • Deployed via Sapiom (ZIP upload flow)
  • Verified DEPLOYED status
  • Reported results to user

适合场景

01

调用多模型

02

代码和文本生成

03

Agent 推理流程

04

OpenRouter 模型接入

能力概览

能力 1

统一调用多种 LLM

能力 2

支持 Claude、Gemini、Kimi 等模型

能力 3

适合聊天、代码和推理任务

能力 4

可作为 Agent 模型调用入口

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

平台分布

Codex

38.11%
按下载量换算37

Claude

28.82%
按下载量换算28

Cursor

19.46%
按下载量换算19

Gemini CLI

9.88%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills