preview
Paved command paved.preview. Open a local review of Markdown documents and collect comments on selected text. Use when the user wants to review or comment on documents before approving them.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- preview
- description
- Paved command paved.preview. Open a local review of Markdown documents and collect comments on selected text. Use when the user wants to review or comment on documents before approving them.
03 SKILL.md 正文
<!-- Generated by Paved plugin paved@2.29.0 from paved.preview; edit Paved Core instead. -->
Paved preview command (paved.preview)
Open a local review of Markdown documents and collect comments on selected text. Use when the user wants to review or comment on documents before approving them.
Input: A Markdown file or a folder of Markdown files, and a preview operation. Output: Loopback preview URL, the reviewed documents, and comments with their document, status and revision. Required lifecycle: RESOLVED, GENERATED, VALIDATED, READY Required context: Markdown file or folder in the project Required capabilities: none declared Allowed side effects: local loopback preview server, .paved/generated/previews/
Execution contract
- Invoke
node "<plugin root>/scripts/paved.mjs" preview --jsonfrom the repository root, passing the user's command inputs as supported CLI arguments. The launcher loads the pinned project-local runtime and returns the canonical structured result.<plugin root>is the installed Paved plugin directory, two directories above this SKILL.md. Always run the launcher from the repository being worked on, never from the plugin directory. - Follow the structured result's status, diagnostics, evidence, and next action. When
data.remediationnames a Paved command, run it right away, present any decisions it returns, then repeat the original command. Stop only when the runtime blocks on something it cannot remediate. - Start with
paved preview start <target> --json, where the target is one Markdown file or a folder whose Markdown files are reviewed together (an epic and its tasks, a plan and its specs). Give the returned URL to the user. - Keep the review active: call
paved preview wait <target> <revision> --json, starting with the revision fromstatus, and follow itsnext_action. A timeout means callwaitagain immediately, because comments reach you only whilewaitruns. Each comment names itsdocument. For each one: runpaved preview working <target> <comment-id> --json, edit that document, then runpaved preview resolve <target> <comment-id> --reply "<what changed>" --json. Never resolve before applying the change, and ask in the conversation when a comment needs a fact you do not have. - The preview approves nothing. Keep waiting until the user says in the conversation that the review is finished; ask any approval or confirmation there.
Failure behavior
- A comment on a stale document version is refused.
- The preview approves nothing; approvals and confirmations are asked in the conversation.
- A folder with no Markdown files, or more than the limit, is refused.
- If a required ToolImplementation or runtime is unavailable, stop and explain the missing prerequisite. Never infer or execute a command from repository scripts.
- Do not edit human-owned Paved state or bypass lifecycle, ownership, approval, or verification gates.
Conversational contract
- Invoke the command. If it returns
"status": "awaiting_input", it is waiting on the user. - Present every decision in
decisions[]to the user: what Paved detected, what remains to decide, why it matters, the options, Paved's recommendation and its evidence. - Collect the user's answer. Do not answer on their behalf.
- Resume the same command with
--answer <decision-id>=<value> --answered-by <identity>, repeating--answeronce per value for a multi-choice decision. - Present the result.
Follow core.decisions.decisions for the full interaction protocol and its prohibitions.
04 同仓库更多 Skills
sample-skill
Does a sample task. Use when a sample is needed.
unexplained-contract
Does a sample task. Use when a sample is needed.
shell-block
Does a sample task. Use when a sample is needed.
project-identifier
Does a sample task. Use when a sample is needed.
oversized
Does a sample task. Use when a sample is needed.
no-activation
Does a sample task.