seeflow-lookup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseseeflow-lookup
seeflow-lookup
Look up registered SeeFlow flows and consult them as architectural ground truth. Read-only counterpart to — that skill creates and edits flows; this one queries them when an agent is writing code or making decisions.
/seeflow查询已注册的SeeFlow流程,并将其作为架构依据。它是的只读对应工具——技能负责创建和编辑流程,而本技能则在Agent编写代码或做决策时查询这些流程。
/seeflow/seeflowRouting gate — run before deciding
路由网关——决策前先执行
Inspection phrasing always lands here first, even when no flow is yet registered — the auto-handoff below covers the empty case. The trigger words are: , , , , , , , , , , , plus any reference to a flow by slug or title without an explicit creation verb (, , , ). When in doubt, route here — a no-match handoff to is cheap; a duplicate creation run from skipping the gate is not.
show meshow thehow doeshow dowhat doeswhat handleswhere doeswhere isdiagramexplainwalk me throughcreatescaffoldgenerateadd a flow/seeflow只要是检查类表述,都必须先进入本工具,即便尚未注册任何流程——下方的自动切换机制会处理无匹配的情况。触发词包括:、、、、、、、、、、,以及所有通过slug或标题引用流程但未使用明确创建动词(、、、)的情况。若拿不定主意,就路由到这里——无匹配时切换至的成本很低;但跳过此网关导致重复创建流程的代价却很高。
show meshow thehow doeshow dowhat doeswhat handleswhere doeswhere isdiagramexplainwalk me throughcreatescaffoldgenerateadd a flow/seeflowWhen NOT to invoke
请勿调用本工具的场景
- Editing flows → use or the canvas.
/seeflow - Creating flows from scratch when the user explicitly said "create / scaffold / generate / add a flow" → call directly. (This skill auto-hands off to
/seeflowif it discovers no match for an inspection prompt; skip the hop only when the user's verb is unambiguously creation.)/seeflow - Reading → use
LEARN.mddirectly (that file isRead's territory)./seeflow - Mutating anything — this skill is read-only. The auto-handoff above invokes ; it does not mutate state itself.
/seeflow
- 编辑流程 → 使用或可视化画布。
/seeflow - 当用户明确要求“create / scaffold / generate / add a flow”从零创建流程 → 直接调用。(如果本工具发现检查请求无匹配流程,会自动切换至
/seeflow;仅当用户的动词明确为创建时,可跳过此跳转。)/seeflow - 读取→ 直接使用
LEARN.md工具(该文件属于Read的管辖范围)。/seeflow - 修改任何内容 —— 本工具为只读工具。上述自动切换机制会调用;本工具自身不会修改任何状态。
/seeflow
Consent — silent check, top of every invocation
权限验证——每次调用前静默检查
Before anything else, read silently. If missing, run the first-run prompt and write the file before continuing. If present + , no feedback logging this session; otherwise log qualifying failures (, , , ) to . The skill only writes locally — a hook handles transfer. Format, prompt wording, kinds, and redaction rules live in — same cross-skill pattern this skill already uses for .
~/.seeflow/consent.jsonenabled: falsecli-errorsubagent-failrepeated-askuser-complaint~/.seeflow/feedback.mdSessionEnd../seeflow/feedback.md../seeflow/references/schema.md在执行任何操作之前,静默读取。若文件缺失,先运行首次启动提示并写入文件后再继续。若文件存在且,则本次会话不记录反馈;否则将符合条件的失败情况(、、、)记录到。本工具仅在本地写入——钩子负责传输数据。格式、提示语、故障类型和编辑规则均位于——本技能已采用这种跨技能模式来引用。
~/.seeflow/consent.jsonenabled: falsecli-errorsubagent-failrepeated-askuser-complaint~/.seeflow/feedback.mdSessionEnd../seeflow/feedback.md../seeflow/references/schema.mdDiscover the CLI
发现CLI命令
Run to list the available subcommands and their flags. If is not on , fall back to . The CLI's help output is the source of truth for what you can call — do not assume command names or flags from memory.
seeflow helpseeflowPATHnpx -y @tuongaz/seeflow@latest helpCache the resolved binary ( vs ) for the rest of the conversation and reuse it for every subsequent call.
seeflownpx -y @tuongaz/seeflow@latest运行列出可用的子命令及其参数。若不在中,则回退使用。CLI的帮助输出是可调用命令的唯一依据——请勿凭记忆假设命令名称或参数。
seeflow helpseeflowPATHnpx -y @tuongaz/seeflow@latest help缓存解析后的二进制文件(或),并在本次对话的后续调用中重复使用。
seeflownpx -y @tuongaz/seeflow@latestFirst step — does a matching flow exist?
第一步:是否存在匹配的流程?
Before any deeper lookup, list the registered flows (use the catalog subcommand surfaced by ) and match the user's topic against it. Match generously: exact slug, fuzzy name, or topic keyword (e.g. "the cart" matches a flow named ).
seeflow helpshopping-cart- Match found → surface the canvas URL first () so the user can open it, then continue with the cost ladder below for whatever deeper question they asked. Never re-scaffold an existing flow —
$STUDIO_URL/d/<slug>is the wrong tool here even if the existing flow looks stale; editing belongs on the canvas or/seeflow.nodes:patch - No match → auto-switch to the skill to scaffold one. Print a one-line handoff (
seeflow), then invoke theNo flow registered for "<topic>" — invoking /seeflow to scaffold it.skill via theseeflowtool with the user's original topic as the prompt. Do not stop and ask first; do not answer by grepping the codebase yourself (that isSkill's job — it dispatches the code-analyzer + system-analyzer sub-agents). Hand off and let/seeflowtake over the rest of the turn./seeflow - Ambiguous match (multiple plausible flows) → list them with their canvas URLs and ask the user which one.
在进行深度查询之前,先列出已注册的流程(使用显示的catalog子命令),并将用户的主题与列表进行匹配。匹配规则可适当宽松:完全匹配slug、模糊匹配名称或主题关键词(例如“the cart”可匹配名为的流程)。
seeflow helpshopping-cart- 找到匹配项 → 优先显示画布URL(),方便用户打开,然后根据用户的深度问题按照下方的成本阶梯继续操作。绝不要重新搭建已存在的流程——即便现有流程看起来过时,
$STUDIO_URL/d/<slug>也不是正确的工具;编辑操作应在画布或通过/seeflow命令进行。nodes:patch - 无匹配项 → 自动切换至技能来搭建流程。打印一行切换提示(
seeflow),然后通过No flow registered for "<topic>" — invoking /seeflow to scaffold it.工具调用Skill技能,并将用户的原始主题作为提示词。请勿停下来询问用户;请勿自行通过搜索代码库来回答(这是seeflow的工作——它会调度代码分析器和系统分析器子Agent)。完成切换后,由/seeflow接管后续操作。/seeflow - 匹配项不明确(存在多个合理匹配的流程)→ 列出这些流程及其画布URL,并询问用户选择哪一个。
Output contract
输出约定
- Every response is JSON on stdout, passed through unchanged from the CLI. No markdown wrappers, no synthetic fields.
- Errors are the CLI's structured errors (e.g. ,
flowNotFound,unknownNode,fileNotFound). Surface them as-is.badSchema
- 所有响应均为标准输出中的JSON,直接传递CLI的输出内容,不做任何修改。不要添加markdown包装,不要生成额外字段。
- 错误信息采用CLI的结构化错误(例如、
flowNotFound、unknownNode、fileNotFound),直接原样显示。badSchema
Vocabulary (read the JSON intelligently)
词汇表(智能读取JSON)
For node / connector / action field shapes, run (then , , as needed). Don't infer field names, enum values, or required-lists from memory — re-fetch them. The schema covers what each variant looks like on disk and which values are legal.
seeflow schemaseeflow schema nodeseeflow schema connectorseeflow schema actionWhat the schema can't tell you — runtime behavior the CLI assumes you know:
- Decorative node types — ,
sticky,text,icon,imagewith empty content, and geometric shapes (html,ellipse,database,queue,cloud,server) carrying no capabilities — are visual only. Skip them for architectural reasoning. Treat any node as architectural when itsuserordata.playActionis set, regardless ofdata.statusAction.type - Semantics live on the nodes, not the connectors. Read the source / target node's (and
data.namefrom the brief) to understand what an edge means.codePointers - content fields (e.g.
file://,detail) are auto-externalised on write. Whether they come back inlined depends on the subcommand — checkhtmlfor the variant that returns full content.seeflow help - Action values are relative under
scriptPath. Read those files directly withnodes/<nodeId>/if you need the script source.Read
Deeper reference: in this plugin (conventions only — no field shapes).
../seeflow/references/schema.md如需了解节点/连接器/动作字段的结构,运行(必要时可运行、、)。请勿凭记忆推断字段名称、枚举值或必填列表——重新获取这些信息。该Schema涵盖了每个变体在磁盘上的存储形式以及合法值范围。
seeflow schemaseeflow schema nodeseeflow schema connectorseeflow schema actionSchema无法告知的内容——CLI默认你知晓的运行时行为:
- 装饰性节点类型 —— 、
sticky、text、icon、内容为空的image,以及不具备功能的几何形状(html、ellipse、database、queue、cloud、server)——仅用于展示。在进行架构分析时可忽略这些节点。只要节点的user或data.playAction已设置,无论其data.statusAction是什么,都将其视为架构节点。type - 语义信息存储在节点上,而非连接器上。通过源/目标节点的(以及简介中的
data.name)来理解边的含义。codePointers - 内容字段(例如
file://、detail)在写入时会自动外部化。返回时是否内联取决于子命令——查看html获取返回完整内容的变体。seeflow help - 动作的值相对路径为
scriptPath。如果需要脚本源代码,直接使用nodes/<nodeId>/工具读取这些文件。Read
深度参考:本插件中的(仅包含约定,无字段结构)。
../seeflow/references/schema.mdUsage pattern (cost ladder)
使用模式(成本阶梯)
Start with the cheapest lookup the CLI offers (a summary across flows), pick a flow, then ask for that flow's structure, and only fetch individual nodes when you need their content. Reserve any "full inline" variant for small flows or when you genuinely need every detail. Reading / directly is reserved for cases where the script source itself drives the decision.
play.tsstatus.ts从CLI提供的成本最低的查询方式开始(跨流程的摘要),选择一个流程,然后查询该流程的结构,仅当需要节点内容时才获取单个节点的信息。仅在处理小型流程或确实需要所有细节时,才使用“完整内联”变体。仅当脚本源代码本身会影响决策时,才直接读取/。
play.tsstatus.tsCommon mistakes
常见错误
- Assuming subcommand names from memory — always confirm with first.
seeflow help - Reaching for the "full" variant first on a large flow — burns context. Climb the ladder.
- Treating decorative nodes as architecture — geometric shapes without capabilities, plus /
sticky/text/icon/ emptyimage, are visual only.html - Re-emitting JSON as prose — pass the CLI output through unchanged. Don't rewrite it as markdown.
- Reading refs as filesystem paths — let the CLI inline them; only fall back to direct
file://forRead.scriptPath
- 凭记忆假设子命令名称 —— 务必先通过确认。
seeflow help - 在处理大型流程时优先使用“完整”变体 —— 会消耗过多上下文。应逐步升级查询方式。
- 将装饰性节点视为架构节点 —— 不具备功能的几何形状,以及/
sticky/text/icon/空内容image仅用于展示。html - 将JSON转换为散文形式输出 —— 直接传递CLI的输出内容,不要重写为markdown。
- 将引用视为文件系统路径 —— 让CLI自动内联这些内容;仅在处理
file://时才回退到直接使用scriptPath工具。",Read