经 AI Skill Hub 精选评估,伊格德拉斯 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
伊格德拉斯 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
伊格德拉斯 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g yggdrasil # 方式二:npx 直接运行(无需安装) npx yggdrasil --help # 方式三:项目依赖安装 npm install yggdrasil # 方式四:从源码运行 git clone https://github.com/krzysztofdudek/Yggdrasil cd Yggdrasil npm install npm start
# 命令行使用
yggdrasil --help
# 基本用法
yggdrasil [options] <input>
# Node.js 代码中使用
const yggdrasil = require('yggdrasil');
const result = await yggdrasil.run(options);
console.log(result);
# yggdrasil 配置说明 # 查看配置选项 yggdrasil --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export YGGDRASIL_CONFIG="/path/to/config.yml"
<img src="https://raw.githubusercontent.com/krzysztofdudek/Yggdrasil/v6.1.0/docs/public/logo.svg" alt="" width="120" />
npm install -g @chrisdudek/yg
cd your-project
yg init
Requires Node.js 22 or newer. yg init asks one question: which reviewer judges the rules that need judgment. "None for now" is a valid answer.
| Piece | Where it lands | What it does | When it acts |
|---|---|---|---|
The yg command | your global npm packages | Reads the graph, gives the agent its rules, runs the checks. | When you, the agent, a hook or CI call it. |
.yggdrasil/ | repository root, committed | Holds the graph of your components, the rules, the logs of why, and the lock with every recorded verdict. | Read by every yg command. |
.yggdrasil/.gitignore | inside .yggdrasil/, committed | Keeps the local cache and local state out of git. | On every commit. |
| Agent rules | a block in AGENTS.md, one import line in CLAUDE.md, .clinerules/yggdrasil.md | Tells the agent to run yg context --file before it edits a file and yg check --approve after a change. | Every agent session that reads those files. |
Eight lines in .gitattributes | repository root, committed | Mark the lock as generated and name the merge drivers for the logs and the lock. | On git diff and git merge. |
| Two merge drivers | .git/config of this clone, never committed | Merge log entries and verdicts from two branches without a hand-resolved conflict. | On git merge. |
A post-merge hook | .git/hooks/post-merge of this clone, only when you have none | Records the merged logs' baselines. | After git merge. |
yg init does not edit your source files, your build or your runtime; it writes the files in the table above. It installs no pre-commit hook and no CI step; you add those yourself (step 5 of Start).yg check and the CI gate are free, local and need no key or network. A reviewer rule costs one model call per rule and component when it is first judged, and again only after its inputs change. One call takes roughly 10 to 40 seconds. yg check --approve --dry-run tells you how many paid calls a run will make before it makes them.AGENTS.md, and for each file the agent edits, the rules in force on that file only.<details> <summary>What the words in the reports mean</summary>
A rule is an aspect, a component is a node, and a pair is one rule on one component or file. The graph is the map of components and rules in .yggdrasil/, a verdict is the recorded pass or refusal of one pair, and the lock is the file that holds the verdicts. The full list is in the glossary.
</details>
Run the three install commands above.
You see: the reviewer question, then the files from the table written.
Run cd ../failing, then npx @chrisdudek/yg@6.1.0 check.
You see:
yg check: FAIL 1 error 2 nodes · 3/3 files covered · 4 excluded
error[refused] requires-audit — refused on payments
at: payments Both mutation functions in src/payments.ts violate the requirement: charge (line 5) and refund (line 11) mutate state but use only generic console.log() calls instead of calling emitAudit(). The aspect requires structured audit events with operation, timestamp, and entityId fields. No suppression markers found.
why: Every mutation must emit an audit event
fix: Four exits — the verdict is recorded for this exact code, so re-running the reviewer changes nothing:
(Trimmed; the full report lists the four exits.) That is a model's verdict, recorded once in the lock and replayed with no model call. Change src/payments.ts by one character and check again:
yg check: FAIL 1 error 2 nodes · 3/3 files covered · 4 excluded
error[unverified] 1 pair whose inputs changed since the verdict
at: requires-audit @ payments
why: A verdict was recorded, but its inputs changed since (a source edit, an aspect edit, or a changed reference), so it no longer counts. It is re-judged over the code as it stands now.
fix: yg check --approve (1 reviewer pair · 1 call · paid)
How is this different from a rules file? A rules file is flat text in every prompt, with no scope and no check. Here the agent gets only the rules on the file it is editing, and its change is checked against them.
And from dependency-cruiser or ArchUnit? For import rules in one language they are mature, and if that is all you need, use them. Yggdrasil's dependency check is one part of it: one graph across eleven languages, with script rules, reviewer rules and the lock beside it.
And from an AI review bot? A review bot looks for bugs against its own idea of good code and runs again on every pull request. Yggdrasil checks your team's rules and pays for a verdict once per version of the code it judged.
高质量的AI工作流项目,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:伊格德拉斯 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | Yggdrasil |
| 原始描述 | 开源AI工作流:Architecture rules your AI coding agent can't ignore. Every change gets checked 。⭐26 · TypeScript |
| Topics | AI工作流TypeScript |
| GitHub | https://github.com/krzysztofdudek/Yggdrasil |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-13 · 更新时间:2026-06-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端