nika
它能做什么
Nika 是一个帮助自动化重复性 AI 任务的工具。你可以用一个简单的文本文件定义 AI 任务,在花钱之前先检查,然后可靠地运行它。
适用场景
- ✓当你需要多次重复执行同一个 AI 任务时。
- ✓当你想在运行 AI 任务之前,先知道确切的费用时。
- ✓当你需要 AI 任务稳定运行,并且事后可以验证结果时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nika/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“运行 'daily_report.nika.yaml' 工作流,费用上限为 $0.50。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要在一个特殊的文件(称为“工作流”)中写下 AI 任务的指令。Nika 会在运行任务前检查这个文件,确保一切正确,并且在你的预算之内。它还会记录整个过程中发生的所有事情,方便你之后核对。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Nika Skill
Use Nika as a deterministic workflow worker orchestrated by
the Hermes terminal tool. Nika is an open-source (AGPL) Rust engine that captures
a repeatable AI task as a plain-text *.nika.yaml file, audits it before a
single token is spent (plan, cost floor, secret flows, types), executes it
against local or cloud providers (Ollama/llama.cpp/vLLM included), and records
a tamper-evident trace.
Division of labor: Hermes orchestrates · Nika captures repeatable work as a
checkable file and runs it with receipts. Nika is NOT another coding agent —
for autonomous coding, use the opencode skill. Delegate to Nika when the
work should be repeatable, budgeted, and auditable.
When to Use
- The user asks to run, check, or author a
*.nika.yamlworkflow - A task will be repeated (daily digest, triage, ETL, report, multi-step LLM pipeline) — capture it as a workflow instead of re-prompting
- The user wants a hard cost cap, a cost estimate before running, or receipts/audit of what ran
- A pipeline mixes models/providers (local + cloud) or mixes LLM steps with shell/HTTP/file steps
- The user wants a run they can replay, verify, or reproduce later
When NOT to use
- One-off questions or single tool calls — just answer or use a tool
- Autonomous code implementation/refactoring/PR review — use the
opencodeskill - Interactive back-and-forth tasks — workflows are non-interactive by design
Prerequisites
- Nika installed:
brew install supernovae-st/tap/nika— other install paths (script, manual download) are documented at https://nika.sh: installing is a human step, not something this skill runs - Verify:
terminal(command="nika --version") - Zero keys needed for local/offline work:
--model mock/echo(offline) and--model ollama/...(local) run without any API key - Cloud providers read standard env vars from the shell;
terminal(command="nika doctor")diagnoses and prints exact fix commands
How to Run
Prove the toolchain offline first (no key, no network):
terminal(command="nika examples run 01-hello --model mock/echo")
Run a real workflow — local model first:
terminal(command="nika run flow.nika.yaml --model ollama/qwen3.5:4b", workdir="~/project")
Cloud model with a hard budget (always set one for paid models):
terminal(command="nika run flow.nika.yaml --model mistral/mistral-small-latest --max-cost-usd 0.25", workdir="~/project")
Pass workflow variables:
terminal(command="nika run report.nika.yaml --var city=Paris --var days=7 --max-cost-usd 0.50", workdir="~/project")
Long runs: launch in background and poll — do not block the turn:
terminal(command="nika run long.nika.yaml --max-cost-usd 1.00", workdir="~/project", background=true)
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")
The check-before-run law
Never run a workflow you have not checked. nika check is a static pre-flight
(no tokens spent, no network): plan shape, cost floor, secret-flow analysis,
type checks, tool args.
terminal(command="nika check flow.nika.yaml --json", workdir="~/project")
Findings carry NIKA-XXXX codes that explain themselves via
nika explain NIKA-XXXX. Exit 0 = green, safe to run. Fix findings before
running — never suppress them.
Authoring a workflow
Turn a repeated task into a file. List templates, then instantiate:
terminal(command="nika new --from '?'")
terminal(command="nika new flow.nika.yaml --from chain", workdir="~/project")
--from also accepts plain-words intent. Edit the skeleton (vars:,
tasks:, outputs:), then check it. nika explain flow.nika.yaml
narrates what it will do, the waves, the cost floor, and what it touches —
before anything runs.
The artifact you are producing looks like this (checks clean on 0.98):
nika: v1
workflow: daily-brief
model: ollama/qwen3.5:4b
tasks:
- id: fetch
invoke:
tool: "nika:fetch"
args: { url: "https://hn.algolia.com/api/v1/search?tags=front_page" }
- id: brief
depends_on: [fetch]
infer:
max_tokens: 300
prompt: |
Five bullet points, most signal first: ${{ tasks.fetch.output }}
outputs:
brief: ${{ tasks.brief.output }}
One file, plain YAML: tasks, an explicit dependency, a bounded model step, a declared output. That file is what gets checked, run, diffed and reused.
Cost honesty
…
常见问题
什么是“工作流”文件?
它是一个纯文本文件,按步骤描述 AI 应该做什么。它定义了任务、要使用的 AI 模型,以及如何合并结果。
我能在电脑本地运行的 AI 模型上使用 Nika 吗?
可以。Nika 可以配合本地模型(比如 Ollama)使用,甚至可以使用模拟模型离线运行,不需要 API 密钥,也不需要联网。
我怎么知道一个 AI 任务会不会很贵?
Nika 允许你在运行前设置以美元计的费用上限。它会估算费用,如果花费超过上限,就会停止执行,确保你的开销不超过计划。
详情
作者的原始描述
Runs repeatable AI work as checked, budgeted workflow files.
热度
- GitHub 星标
- 48k
- 排名
- #5306
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。