能力标签
Orca 工作流
⚙️
Agent工作流

Orca 工作流

基于 TypeScript · 无代码搭建完整 AI 自动化流程
英文名:orca-lang
⭐ 14 Stars 🍴 2 Forks 💻 TypeScript 📄 未公布协议 🏷 AI 7.5分
7.5AI 综合评分
AI工作流TypeScript
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,Orca 工作流 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

Orca 工作流 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

Orca 工作流 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

Orca 工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 14
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
未公布
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks
2

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Orca 工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g orca-lang

# 方式二:npx 直接运行(无需安装)
npx orca-lang --help

# 方式三:项目依赖安装
npm install orca-lang

# 方式四:从源码运行
git clone https://github.com/jascal/orca-lang
cd orca-lang
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
orca-lang --help

# 基本用法
orca-lang [options] <input>

# Node.js 代码中使用
const orca_lang = require('orca-lang');

const result = await orca_lang.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# orca-lang 配置说明
# 查看配置选项
orca-lang --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export ORCA_LANG_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 75/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Orca

CI npm Node 20+ Ask DeepWiki

Orchestrated State Machine Language — a two-layer architecture for reliable LLM code generation.

The core insight: LLMs generate flat transition tables reliably, but they struggle to guarantee topology correctness on their own. Orca separates program structure (state machine topology) from computation (action functions), then verifies the structure automatically before any code runs.

Machines are written in plain Markdown — a format LLMs can read and write natively.

---

Features

Language - States with [initial] / [final] markers, descriptions, on_entry / on_exit actions - Transitions as a flat table — the format LLMs generate most reliably - Guard expressions: comparisons, boolean logic, null checks - Hierarchical (nested) states - Parallel regions with all-final / any-final / custom sync strategies - Timeouts: timeout: 30s -> state_name - Ignored events: ignore: EVENT_NAME - Machine invocation: one machine calling another, with input mapping and completion events - Multi-machine files: multiple machines in one .orca.md separated by --- - ## effects section: named I/O schemas for external side effects - Decision tables: co-located conditional logic without guard explosion — verified for completeness, consistency, and cross-machine reachability

Verifier - Reachability: every state is reachable from the initial state - Deadlock detection: every non-final state has an outgoing transition - Completeness: every (state, event) pair is handled or explicitly ignored - Guard determinism: multi-transition guards are mutually exclusive - Property checking: bounded model checking with BFS — reachable, unreachable, passes_through, live, responds, invariant - Cross-machine: cycle detection, child reachability to final state, input mapping validation - Effect consistency: ORPHAN_EFFECT (declared but unused) and UNDECLARED_EFFECT (referenced but not declared) - Decision table checks: completeness, consistency, redundancy, coverage gap, dead guards, DT-constrained reachability — see DECISION_TABLES.md

Compilers - XState v5 createMachine() config - Mermaid stateDiagram-v2

Runtimes (standalone — no XState dependency) - TypeScript (@orcalang/orca-runtime-ts) - Python (orca-runtime-python) - Go (orca-runtime-go)

All three runtimes share the same feature set: guard evaluation, action registration, event bus (pub/sub + request/response), timeouts, parallel regions, snapshot/restore, machine invocation, persistence, and structured logging.

---

Language features

Python packages (runtime + demos, requires Python >= 3.11)

pnpm run setup:python

nanoGPT training orchestrator (Python, no torch required for tests)

pnpm run test:demo-nanolab

Setup

```bash

Compile to XState

npx tsx src/index.ts compile xstate examples/payment-processor.orca.md

Compile to Mermaid

npx tsx src/index.ts compile mermaid examples/text-adventure.orca.md

Install torch with GPU support, then run the full pipeline

.venv/bin/pip install torch torchvision torchaudio numpy requests pnpm run run:demo-nanolab ```

---

Skills & MCP setup

Orca ships six Claude Code skills backed by the @orcalang/orca-mcp-server MCP server. The skills call MCP tools directly — no shell or file access needed.

SkillTriggerWhat it does
/orca-generate<spec>Generate a verified machine from a natural language spec
/orca-generate-multi<spec>Generate a coordinated multi-machine system
/orca-verify[file]Verify a machine for errors and warnings
/orca-refine[file]Auto-fix verification errors using an LLM
/orca-compile[xstate\|mermaid] [file]Compile to XState TypeScript or Mermaid
/orca-actions[typescript\|python\|go] [file]Generate action scaffold stubs

Skills that use an LLM (/orca-generate, /orca-generate-multi, /orca-refine, and optionally /orca-actions --use-llm) call the MCP server, which calls your configured LLM provider. Skills that are purely structural (/orca-verify, /orca-compile, plain /orca-actions) never make LLM calls.

Examples

All in packages/orca-lang/examples/:

FileDescription
simple-toggle.orca.mdMinimal 2-state machine
payment-processor.orca.mdGuards, retries, effects
text-adventure.orca.mdMulti-state game engine
hierarchical-game.orca.mdNested compound states
parallel-order.orca.mdParallel regions with sync
payment-with-properties.orca.mdBounded model checking properties
key-exchange.orca.mdMulti-machine: client/server key exchange protocol
invocation-order.orca.mdMulti-machine: order processing with child invocations
saas-auth.orca.mdSaaS authentication and registration flow
health-check.orca.mdHealth check machine used by the dogfood runner
simple-discount.orca.mdMinimal standalone decision table
payment-routing.orca.mdPayment gateway router decision table
shipping-rules.orca.mdShipping cost calculator decision table
payment-with-routing.orca.mdCombined machine + decision table

See DECISION_TABLES.md for a full guide to decision tables.

---

Running the demos

```bash

MCP server environment variables

VariableRequiredDescription
ORCA_API_KEYYesAPI key for your LLM provider
ORCA_PROVIDERYesanthropic, openai, ollama, or grok
ORCA_BASE_URLNoOverride the provider's default base URL (for OpenAI-compatible APIs)
ORCA_MODELNoModel name (defaults to claude-sonnet-4-6 for Anthropic)

Use ORCA_PROVIDER=openai with ORCA_BASE_URL for any OpenAI-compatible provider (MiniMax, Together, local vLLM, etc.).

---

TypeScript packages

pnpm install pnpm build

Go packages

pnpm run setup:go pnpm run build:demo-go ```

---

All TypeScript packages

pnpm test

or from the package directory:

cd packages/mcp-server && npx tsc


Create `.mcp.json` at the project root (it is already in `.gitignore`), then restart Claude Code. Skills are auto-discovered from `.claude/skills/` — no additional configuration needed.

> **Node.js version** — Claude Code may use an older Node.js than the Node 18+ required by this package (ESM). If the server fails to start, add a `PATH` entry to `env` that puts your system Node's `bin` directory first:
> 
json > "env": { > "PATH": "/usr/local/bin:/usr/bin:/bin", > "ORCA_API_KEY": "..." > } > ``` > Run dirname $(which npx) to find the correct path. On nvm it will be something like ~/.nvm/versions/node/v22.x.x/bin.

---

🇨🇳 中文文档镜像 AI 翻译 2026-06-10
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Orca 项目简介:Orca 是一个用于构建状态机的语言,支持多种特性,如状态标记、转换表、守卫表达式等。Orca 可以与 LLMs(大语言模型)集成,用于训练和部署状态机。

⚡ 功能介绍

Orca 的功能特点包括:支持状态标记、转换表、守卫表达式、层次化状态、并行区域等。Orca 还支持与 LLMs 的集成,用于训练和部署状态机。

📋 环境依赖

Orca 需要 Python >= 3.11 的环境,需要安装相关的 Python 包和依赖项。

🛠 安装步骤(Docker/pip/源码)

安装 Orca 可以使用以下步骤:使用 `pnpm run setup:python` 安装 Python 环境,使用 `npx tsx src/index.ts compile xstate` 或 `npx tsx src/index.ts compile mermaid` 编译 Orca 代码。

🚀 使用教程

Orca 提供了多个示例项目,包括简单的 2 状态机、支付处理器、文本冒险游戏等。这些示例项目可以帮助用户了解 Orca 的使用方法。

⚙️ 配置说明(含 MCP / env)

Orca 需要 MCP 服务器环境变量来配置,包括 `ORCA_API_KEY`、`ORCA_PROVIDER`、`ORCA_BASE_URL` 和 `ORCA_MODEL` 等变量。

🔄 工作流/模块

Orca 的工作流包括 TypeScript 包的构建和测试,以及 Go 包的构建和测试。

🎯 aiskill88 AI 点评 A 级 2026-06-02

Orca 是一个有前景的 AI 工作流项目,值得关注

📚 实用指南(长尾问题)
适合谁
  • 需要 orca-lang 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
orca-lang 中文教程orca-lang 安装报错怎么办orca-lang 与同类工具对比orca-lang 最佳实践orca-lang 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要 orca-lang 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 未明确开源协议,商用场景需谨慎评估
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

orca-lang 是一款TypeScript开发的AI辅助工具。开源AI工作流:Orca (Orchestrated State Machine Language) — an LLM-native code generation targe。⭐14 · TypeScript 主要应用场景包括:自动化代码生成和工作流管理。
💡 AI Skill Hub 点评

AI Skill Hub 点评:Orca 工作流 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⚠️ 该工具未声明开源协议,不提供直接下载。请访问原项目了解使用条款。
📚 深入学习 Orca 工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 orca-lang
原始描述 开源AI工作流:Orca (Orchestrated State Machine Language) — an LLM-native code generation targe。⭐14 · TypeScript
Topics AI工作流TypeScript
GitHub https://github.com/jascal/orca-lang
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/jascal/orca-lang

收录时间:2026-06-02 · 更新时间:2026-06-06 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。