一键导入
write-file
Deterministic block. Write content to a workspace-relative path, creating parent directories. The workflow's write grants decide where it may land.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deterministic block. Write content to a workspace-relative path, creating parent directories. The workflow's write grants decide where it may land.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fuzzy block. Assign exactly one label from a closed set to a text, with a bounded confidence and a one-sentence grounded reason.
Deterministic block. Emit the commit log for a revision range as one line per commit (hash, date, subject), oldest first.
Deterministic block. Read a workspace-relative text file; refuses absolute paths and anything that escapes the workspace.
Compose a new Blocks workflow (*.workflow.json) from the block library for a stated problem. Use when asked to automate a repeatable task with blocks — inventory, wire, gate, validate, render, iterate until clean.
Execute a saved Blocks workflow deterministically. Use when asked to run a *.workflow.json — the CLI runs deterministic nodes; you act only as the oracle for fuzzy nodes and never improvise the DAG.
Fuzzy block. Approve or hold a release artifact. Answers must be signed by a key carrying the release-approver claim — the approval is recorded, attributable, and re-verifiable.
| name | write-file |
| description | Deterministic block. Write content to a workspace-relative path, creating parent directories. The workflow's write grants decide where it may land. |
Writes content to path, creating parent directories. The block declares
write: ["**"] — maximally capable — so the workflow's grants.write is the
real fence: a changelog workflow grants ["CHANGELOG.md"] and nothing else.
Absolute paths and .. escapes are refused with exit 3 regardless of grants.
path (string), content (string).path (string) — the path written.bytes (number) — bytes written.