Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

stationstation 搜索

Agent Skill

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

总安装

288

周安装

12

GitHub Stars

1

下载量

96
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/porkytheblack/station --skill station

简介

station 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装方式:github,命令为 npx skills add https://github.com/porkytheblack/station --skill station。
  • 当前分类为研究检索,适用宿主包括 Codex、Claude、Cursor、Gemini CLI。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Station Task Expert

You are an expert Station developer specializing in building type-safe background job systems and DAG workflows.

Critical Rules

  1. Always import signal and z from station-signal - The z export is re-exported from Zod. Never install or import zod separately.
  2. Always use .run() for single-handler signals, .step() + .build() for multi-step signals - Never mix these patterns. .run() returns a signal directly; .step() returns a StepBuilder that must be finalized with .build().
  3. Always export signals and broadcasts from their files - The runner uses auto-discovery via import() and scans Object.values(mod) for branded signal/broadcast objects.
  4. Use .js extension in import paths - Even when importing .ts files. This is required for ESM resolution with Node.js.
  5. Never use new MysqlAdapter() or new BroadcastMysqlAdapter() - These constructors are private. Always use the static MysqlAdapter.create() / BroadcastMysqlAdapter.create() factory methods (async).
  6. Broadcast adapters use subpath imports - Import from station-adapter-sqlite/broadcast, station-adapter-postgres/broadcast, station-adapter-mysql/broadcast, or station-adapter-redis/broadcast.
  7. Always shut down broadcast runner before signal runner - Broadcast runner queries the signal adapter's database during shutdown. Stopping signal first closes the DB connection.
  8. .retries(n) sets retry count, not total attempts - .retries(2) means 3 total attempts (1 initial + 2 retries). Internally stored as maxAttempts = n + 1.
  9. pnpm 10+ requires onlyBuiltDependencies for SQLite - better-sqlite3 needs a native build step that pnpm 10 blocks by default. Add "pnpm": {"onlyBuiltDependencies": ["better-sqlite3"]} to the consumer's package.json, then reinstall.
  10. .trigger() returns immediately with a run ID - It does not wait for execution. Use runner.waitForRun(id) to block until completion.
  11. Zod v4 gotcha: never use .default({}) on objects with default fields - Use plain TypeScript defaults instead. Zod v4 internals: schema._zod.def.type (not _def.typeName).
  12. station deploy bundles to JS — shared imports are resolved automatically. Signals/broadcasts can import from ../lib/, ../shared/, etc. These are bundled into shared chunks by esbuild. No need to configure includes for imported code — only use deploy.include for non-JS assets.
  13. Use station-tauri for desktop apps — Do not use station-kit or defineConfig for Tauri/desktop integration. Use createTauriStation() from station-tauri instead. It runs localhost-only with no dashboard UI and auto-provisions API keys.

Signal Pattern

import { signal, z } from "station-signal";

export const sendEmail = signal("send-email")
  .input(z.object({
    to: z.string(),
    subject: z.string(),
    body: z.string(),
  }))
  .timeout(30_000)
  .retries(2)
  .run(async (input) => {
    await mailer.send(input);
  });

Signal with Output

export const processImage = signal("process-image")
  .input(z.object({ url: z.string() }))
  .output(z.object({ thumbnailUrl: z.string(), width: z.number(), height: z.number() }))
  .run(async (input) => {
    const result = await sharp(input.url).resize(200).toBuffer();
    return { thumbnailUrl: uploadBuffer(result), width: 200, height: 200 };
  });

Multi-Step Signal

export const processOrder = signal("process-order")
  .input(z.object({ orderId: z.string(), amount: z.number() }))
  .step("validate", async (input) => {
    if (input.amount <= 0) throw new Error("Invalid amount");
    return { ...input, validated: true };
  })
  .step("charge", async (prev) => {
    const chargeId = await payments.charge(prev.amount);
    return { orderId: prev.orderId, chargeId };
  })
  .step("notify", async (prev) => {
    await notify(`Order ${prev.orderId} charged: ${prev.chargeId}`);
  })
  .build();

Recurring Signal

export const healthCheck = signal("health-check")
  .every("5m")
  .timeout(10_000)
  .retries(1)
  .run(async () => {
    const res = await fetch("https://api.example.com/health");
    if (!res.ok) throw new Error(`Health check failed: ${res.status}`);
  });

Signal with onComplete Hook

export const ingestData = signal("ingest-data")
  .input(z.object({ source: z.string() }))
  .output(z.object({ rowCount: z.number() }))
  .run(async (input) => {
    const rows = await ingest(input.source);
    return { rowCount: rows.length };
  })
  .onComplete(async (output, input) => {
    await audit.log(`Ingested ${output.rowCount} rows from ${input.source}`);
  });

Triggering Signals

// From application code
import { sendEmail } from "./signals/send-email.js";

const runId = await sendEmail.trigger({
  to: "user@example.com",
  subject: "Welcome",
  body: "Thanks for signing up.",
});

// Wait for completion (in tests or orchestration)
const run = await runner.waitForRun(runId, { timeoutMs: 30_000 });

Broadcast Pattern (DAG Workflow)

import { broadcast } from "station-broadcast";
import { checkout } from "../signals/checkout.js";
import { lint } from "../signals/lint.js";
import { test } from "../signals/test.js";
import { build } from "../signals/build.js";
import { deploy } from "../signals/deploy.js";

export const ciPipeline = broadcast("ci-pipeline")
  .input(checkout)
  .then(lint, test)              // parallel after checkout
  .then(build)                   // waits for lint + test
  .then(deploy)                  // waits for build
  .onFailure("fail-fast")
  .timeout(300_000)
  .build();

Broadcast with Node Options

export const pipeline = broadcast("etl-pipeline")
  .input(extract)
  .then(transform, {
    map: (upstream) => ({ records: upstream.extract }),
    when: (upstream) => upstream.extract != null,
  })
  .then(load, {
    after: ["transform"],
    map: (upstream) => upstream.transform,
  })
  .onFailure("skip-downstream")
  .build();

Runner Setup

import path from "node:path";
import { SignalRunner, ConsoleSubscriber } from "station-signal";
import { BroadcastRunner } from "station-broadcast";
import { ConsoleBroadcastSubscriber } from "station-broadcast";
import { SqliteAdapter } from "station-adapter-sqlite";
import { BroadcastSqliteAdapter } from "station-adapter-sqlite/broadcast";

const adapter = new SqliteAdapter({ dbPath: "./jobs.db" });

const signalRunner = new SignalRunner({
  signalsDir: path.join(import.meta.dirname, "signals"),
  adapter,
  subscribers: [new ConsoleSubscriber()],
});

const broadcastRunner = new BroadcastRunner({
  signalRunner,
  broadcastsDir: path.join(import.meta.dirname, "broadcasts"),
  adapter: new BroadcastSqliteAdapter({ dbPath: "./jobs.db" }),
  subscribers: [new ConsoleBroadcastSubscriber()],
});

await signalRunner.start();
await broadcastRunner.start();

// Graceful shutdown (broadcast stops first)
process.on("SIGINT", async () => {
  await broadcastRunner.stop({ graceful: true, timeoutMs: 10_000 });
  await signalRunner.stop({ graceful: true, timeoutMs: 10_000 });
});

Signal Adapter Reference

AdapterPackageConstructor
In-memory(built-in)new MemoryAdapter()
SQLitestation-adapter-sqlitenew SqliteAdapter({dbPath: "./jobs.db"})
PostgreSQLstation-adapter-postgresnew PostgresAdapter({connectionString: "..."})
MySQLstation-adapter-mysqlawait MysqlAdapter.create({connectionString: "..."})
Redisstation-adapter-redisnew RedisAdapter({url: "redis://localhost:6379"})

Broadcast Adapter Reference

AdapterImport pathConstructor
In-memory(built-in)new BroadcastMemoryAdapter()
SQLitestation-adapter-sqlite/broadcastnew BroadcastSqliteAdapter({dbPath: "./jobs.db"})
PostgreSQLstation-adapter-postgres/broadcastnew BroadcastPostgresAdapter({connectionString: "..."})
MySQLstation-adapter-mysql/broadcastawait BroadcastMysqlAdapter.create({connectionString: "..."})
Redisstation-adapter-redis/broadcastnew BroadcastRedisAdapter({url: "redis://localhost:6379"})

Remote Triggers

import { configure } from "station-signal";

// Option 1: Explicit configuration
configure({
  endpoint: "https://station.example.com",
  apiKey: "sk_live_...",
});

// Option 2: Environment variables (auto-detected)
// STATION_ENDPOINT=https://station.example.com
// STATION_API_KEY=sk_live_...

// All .trigger() calls now go to the remote Station server
await sendEmail.trigger({ to: "user@example.com", subject: "Hello", body: "Hi" });

Dashboard Setup (station-kit)

// station.config.ts
import { defineConfig } from "station-kit";
import { SqliteAdapter } from "station-adapter-sqlite";
import { BroadcastSqliteAdapter } from "station-adapter-sqlite/broadcast";

export default defineConfig({
  port: 4400,
  signalsDir: "./signals",
  broadcastsDir: "./broadcasts",
  adapter: new SqliteAdapter({ dbPath: "./jobs.db" }),
  broadcastAdapter: new BroadcastSqliteAdapter({ dbPath: "./jobs.db" }),
  auth: { username: "admin", password: "changeme" },
});

Then run: npx station

Deploy: npx station deploy — generates a production bundle in .station/out/

Deployment

station deploy

Bundles signals, broadcasts, and config into a self-contained deploy directory using esbuild.

npx station deploy

What it does:

  1. Discovers all .ts/.js files in signalsDir and broadcastsDir
  2. Bundles each as an esbuild entry point with code splitting (shared imports become chunk files)
  3. Externalizes npm packages (installed via npm install at deploy time)
  4. Resolves workspace:* to ^{version} for monorepo dependencies
  5. Generates production package.json, Dockerfile, nixpacks.toml, .dockerignore, .gitignore
  6. Copies deploy.include entries (non-JS assets)

Output: .station/out/ — ready to deploy to any Docker-based platform.

Environment variables

Set these in your deployment platform. They override config values at runtime.

VariableOverridesDescription
STATION_AUTH_USERNAMEauth.usernameDashboard login username
STATION_AUTH_PASSWORDauth.passwordDashboard login password
PORTportServer port
HOSThostServer bind address

If auth is not set in config but both STATION_AUTH_USERNAME and STATION_AUTH_PASSWORD are set, auth is enabled automatically.

deploy.include

For non-JS assets that can't be discovered via imports:

export default defineConfig({
  deploy: {
    include: ["migrations/", "templates/email.html"],
  },
});

Docker deployment

npx station deploy
docker build -t my-app .station/out
docker run -p 4400:4400 \
  -e STATION_AUTH_USERNAME=admin \
  -e STATION_AUTH_PASSWORD=secret \
  my-app

Signal Builder Methods

MethodDescription
.input(schema)Zod schema for job payload
.output(schema)Zod schema for return value
.timeout(ms)Max execution time (default: 300000)
.retries(n)Retry attempts after failure (default: 0)
.concurrency(n)Max concurrent runs for this signal
.every(interval)Recurring schedule: "30s", "5m", "1h", "1d"
.withInput(data)Default input for recurring signals
.run(handler)Single handler function (returns signal)
.step(name, fn)Add pipeline step (returns StepBuilder)
.build()Finalize multi-step signal (on StepBuilder)
.onComplete(fn)Post-completion hook (on signal or StepBuilder)

Broadcast Builder Methods

MethodDescription
.input(signal)Root signal (entry point of the DAG)
.then(...signals)Add parallel tier (all run after previous tier)
.then(signal, {as, after, map, when})Add signal with routing options
.onFailure(policy)"fail-fast", "skip-downstream", "continue"
.timeout(ms)Broadcast-level timeout
.every(interval)Recurring broadcast schedule
.withInput(data)Default recurring input
.build()Finalize broadcast definition

Subscriber Interfaces

Signal subscribers implement any subset of: onSignalDiscovered, onRunDispatched, onRunStarted, onRunCompleted, onRunTimeout, onRunRetry, onRunFailed, onRunCancelled, onRunSkipped, onRunRescheduled, onStepStarted, onStepCompleted, onStepFailed, onCompleteError, onLogOutput

Broadcast subscribers implement any subset of: onBroadcastDiscovered, onBroadcastQueued, onBroadcastStarted, onBroadcastCompleted, onBroadcastFailed, onBroadcastCancelled, onNodeTriggered, onNodeCompleted, onNodeFailed, onNodeSkipped

Tauri Sidecar (station-tauri)

For running Station as a desktop app sidecar via Tauri v2.

import { createTauriStation } from "station-tauri";

const station = await createTauriStation({
  dataDir: "/path/to/app/data",
  signalsDir: "./signals",
  broadcastsDir: "./broadcasts",
  port: 4400,
});

// station.port — bound port
// station.apiKey — auto-provisioned API key
// station.keyStore — key store instance
// station.dataDir — resolved data directory
await station.stop();

Standalone sidecar entry point (station-sidecar bin) outputs JSON to stdout on startup:

{"event":"ready","port":4400,"apiKey":"sk_live_..."}

Environment variables for the sidecar:

VariableRequiredDescription
STATION_DATA_DIRYesData directory for DB and key file
STATION_PORTNoServer port (default: 4400)
STATION_SIGNALS_DIRNoSignals directory
STATION_BROADCASTS_DIRNoBroadcasts directory

Design Principles

  1. One signal per file -- auto-discovery expects exported signal objects from each file in signalsDir.
  2. Use Zod schemas for all inputs -- validation runs before execution and before remote dispatch.
  3. Keep handlers focused -- extract shared logic into utility functions, not signal handlers.
  4. Use steps for pipelines where each stage transforms data and passes it forward.
  5. Use broadcasts for fan-out/fan-in workflows composed of independent signals.
  6. Configure retries for anything that touches external services or networks.
  7. Use subscribers for cross-cutting concerns: logging, metrics, alerting, webhooks.
  8. Shut down broadcast runner before signal runner -- broadcast queries the signal DB during teardown.
  9. Signal names must start with a letter and contain only letters, digits, hyphens, and underscores.
  10. The runner registry is private (this.registry: Map). Access via (runner as any).registry for testing only.

Reference Documentation

  • api-reference.md - Complete API for all packages: types, interfaces, runner options
  • examples.md - Full working examples: ETL pipelines, CI workflows, monitoring, e-commerce, Tauri desktop

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35%
按下载量换算34

Claude

30.61%
按下载量换算29

Cursor

16.45%
按下载量换算16

Gemini CLI

8.68%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills