用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill add-dag-node命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | add-dag-node |
| description | > Use when this capability is needed. |
Use this skill when you need to add a new DAG node to the AFI Reactor pipeline, wire it into the existing graph, and keep everything aligned with:
afi-coreThis skill is primarily used by dag-builder-droid and any future reactor droids
that work on the DAG.
Before changing anything, you MUST:
Read:
afi-reactor/AGENTS.mdConfirm:
afi-core (validators / runtime logic) or afi-config (governance).If any requirement is unclear or appears to violate Doctrine or AGENTS.md, STOP and ask for human clarification instead of trying to be clever.
The caller should provide, in natural language or structured form:
NewsSentimentEnricher, GreeksScorer)Raw, Enriched, Analyzed, Scoredafi-core that should be used,
if knownIf any of this information is missing, ask clarifying questions or produce a minimal, clearly-labeled stub that's safe to evolve later.
When this skill is invoked, follow this sequence:
In your own words, summarize:
This summary should be short and precise, so humans can quickly confirm the intent.
Identify the current DAG layout and relevant files, typically including:
src/core/dag-engine.ts or similar)config/dag.codex.json or similar config files)codex/*.json)src/dags/ (or equivalent)Do not modify these yet; just understand how the DAG is currently modeled.
Create a new node file under the appropriate folder, for example:
src/dags/<stage>/<nodeName>.tssrc/dags/<nodeName>.tsFollow any existing naming and folder conventions in afi-reactor.
In the new file:
afi-core where needed.
afi-core.runNode, execute, or the project's established pattern.TODO comments and
clearly throw or return a safe placeholder.All comments should be clear, referencing:
Update the DAG graph / codex / configuration files so this new node is part of the pipeline:
If wiring rules are ambiguous or require architectural changes, STOP and mark this as a human decision point.
Where patterns already exist (e.g. in ops/runner/ or test/):
If no test patterns exist yet, leave a clearly marked TODO and surface this in your summary.
Run at least:
npm run build in afi-reactorIf relevant quick tests exist and are safe to run:
npm test (or the closest equivalent)Do not mark the skill as "successful" if the build fails. Instead, stop, gather error output, and surface it with minimal, clear commentary.
When using this skill, you MUST NOT:
afi-reactor.
afi-core or afi-config.afi-core into afi-reactor.afi-token, afi-config, afi-ops, afi-infra, etc.).If a request forces you towards any of the above, STOP and escalate.
At the end of a successful add-dag-node operation, produce a short summary
that includes:
Aim for something a human maintainer can read in under a minute to understand exactly what changed and why.
You should use this skill for requests like:
You should NOT use this skill for:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.