AGENT SKILL

envelope

Author, approve, and export execution envelopes for AFK slices in a standalone strong-model session. Use only when the user explicitly invokes /envelope with a ticket id, approved Work Contract/spec file, or batch. Other skills may recommend it but must never auto-route into it. Ends with an approved, validated, repo-committed bundle under .beislid/exports/ that an external runner executes later.

License 许可
MIT
所属仓库
sandsower/nopal
最近更新
2026-10-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
envelope
description
Author, approve, and export execution envelopes for AFK slices in a standalone strong-model session. Use only when the user explicitly invokes /envelope with a ticket id, approved Work Contract/spec file, or batch. Other skills may recommend it but must never auto-route into it. Ends with an approved, validated, repo-committed bundle under .beislid/exports/ that an external runner executes later.

02 资源文件 11

03 SKILL.md 正文

Envelope

Turn approved planning context into exported execution envelopes: one execution-envelope-v0 per AFK-ready slice, packaged as an approved-slice-plan-export-v0 bundle that rondo run-once --manifest <slice-manifest> can execute in a fresh session with zero additional context.

Trigger is explicit only. The human chooses which model/session pays for authoring. When kickoff classifies work as multi_slice/AFK-suitable it may recommend running /envelope in a strong-model session; it never auto-routes here, and this skill never auto-routes back.

Don't use this for: interactive implementation (use kickoff), PR handoff (ready-for-review), or running exported work (that's rondo's job — Beislið owns envelope/export semantics; rondo owns execution and run evidence; no runtime service).

Project config: <repo>/.beislid/workflow.md. Probe lazily per probe-semantics.md; policy-check side effects per action-policy-protocol.md. Output copy lives in envelope-templates.md. AFK eligibility is judged against a versioned rubric, resolved repo-override-first: a beislid:envelope block in workflow.md may set rubric_path (a repo-relative .md, no ..); otherwise the skill default afk-rubric.md applies.

Read workflow.md

Read <repo>/.beislid/workflow.md and validate line 1 is exactly <!-- beislid-workflow: v1 -->; hard-fail and stop if missing or wrong (run /setup for fresh projects). Initialize the probe cache exactly as kickoff does (repo_hash, workflow_hash, ${BEISLID_STATE_DIR:-$HOME/.local/state/beislid}/probes/<repo_hash>.json, fresh/stale/cold). Print orientation prose from envelope-templates.md (≤240 chars).

For durable evidence, probe(nopal_seam); on ok, best-effort nopal ledger init --skill envelope --flow envelope --json, else beislid run-ledger init --skill envelope --flow envelope (nopal-seam-protocol.md), with ticket/branch context when known. Warn on ledger failure; never block.

Step protocol loading

Complete steps in order. At each step entry, read the step aux file and follow it as the authoritative protocol. If a step file cannot be read, hard-fail and stop:

🛑 Could not read skills/envelope/<step-file>.md. Envelope cannot safely execute this step from memory; reinstall Beislið or restore the file.

Checklist and required outputs

  1. Intake — read step-1-intake.md. Outputs: input kind, planning context (approved structure/Work Contract or planning-skill results), candidate slices, bundle-id.
  2. Author — read step-2-author.md. Outputs: one draft execution-envelope-v0 per AFK-candidate slice with autonomy lists, proof requirements, pause conditions, dependencies, expected delivery, self-contained prompt, repo pin.
  3. Approve — read step-3-approve.md. Outputs: per-envelope verdicts (approve / reject / demote-to-HITL), approval metadata, or the zero-AFK terminal state.
  4. Export — read step-4-export.md. Outputs: validated bundle path, envelope_exported checkpoint status, commit status, handoff guidance.
  5. Revise — revision mode only, loaded straight from Step 1 in place of Steps 2–4: read step-5-revise.md. Outputs: v+1 bundle rewritten in place with supersedes: <sha256 of prior bundle.json>, per-envelope delta summary, delta-only re-approval verdicts (unchanged approved envelopes carry their original approval metadata forward), validated re-export.

Global tripwires

  • Fail-closed: unapproved envelopes are never exported. Zero approved envelopes means no bundle, no checkpoint, no commit — print the verdict summary and recommend kickoff for HITL slices.
  • No implementation. This skill plans, packages, and exports; it never starts the work it is packaging.
  • Manifest input means revision mode. Step 1 detects it (a JSON file whose kind/schema matches export/manifest contracts) and looks for feedback: a delivery artifact with pause_reason/review_feedback, or a non-approved bundle status. With feedback, route through step-5-revise.md; an approved manifest with no feedback is refused with the nothing-to-revise message. Never overwrite or re-author silently.
  • Existing bundle dir is a hard stop in non-revision runs. .beislid/exports/<bundle-id>/ already existing means a prior export; overwriting would corrupt the supersede chain. Stop with the collision message; the user must pick a new bundle-id or delete deliberately. Revision mode is the one exception: it rewrites the same dir in place with a bumped version and supersedes hash.
  • Validator is the gate. beislid export validate <bundle-dir> must exit 0 before checkpoint or commit. Never hand-wave a failed validation.
  • Reuse planning skills (spec, break-spec, blueprint) for thinking work; never reimplement their protocols here.
  • Policy-check every side effect (workspace writes, checkpoint, git.commit); ask requires approval, deny stops with manual fallback.

Run end

Write back probed capability entries to the probe cache as kickoff does (exclude session_skip, preserve doctor-owned fields). Finalize the run ledger with verdicts, bundle path, validator evidence, and commit status when active.

Key principles

  • One strong-model session produces a self-contained bundle; a cheaper session executes it later.
  • Explicit human verdicts per envelope, in one sitting; rejects never block the batch.
  • Everything after approval is mechanical: documented JSON conventions + a read-only validator.

04 同仓库更多 Skills

sandsower
sandsower/nopal

walk-the-diff

Use when the user wants to walk through their local changes interactively before or instead of a PR review — e.g., "guided review", "walk me through the changes", "review my branch", "let's go through the diff". Also use when the user explicitly invokes the walk-the-diff skill through the host agent. This is for interactive human-facing walkthroughs of code changes, not automated code review.

★ 0
sandsower
sandsower/nopal

verify

Use before claiming work is complete, fixed, or passing. Requires running verification commands and reading output before making any success claims. Evidence before assertions.

★ 0
sandsower
sandsower/nopal

spec

Trigger immediately when the user says any of: 'spec it out', 'spec this out', 'before you build', 'before we build', 'before implementation', 'let's discuss before building', 'discuss and spec', 'PRD this', 'shape this', 'product spec', 'lightweight spec'. Also use for brainstorming, vague tickets, product shaping, or writing a lightweight product spec/PRD when the problem, scope, desired behavior, or success criteria are unclear. Do not skip this skill and answer conversationally yourself — if a trigger phrase appears, route here even if the request seems clear or auto mode is active. Do not use for implementation design when requirements are already clear; use blueprint instead.

★ 0
sandsower
sandsower/nopal

show-me

Use when the user asks for a visual HTML evidence/explanation artifact: 'show-me', 'show me this', 'make a proof deck', 'make an HTML deck', 'visualize this as HTML', 'this would be better as slides', 'make this visual', 'create a walkthrough deck', 'document this visually', or 'review this visually'. Manual/user-requested only in v1. Produces a polished local HTML portfolio/deck with evidence, media, logs, provenance, and clear missing-evidence markers.

★ 0
sandsower
sandsower/nopal

setup

Configure Beislið project config (`.beislid/workflow.md`) interactively, or update an installed Beislið distribution. Use when the user says "setup", "/setup", "setup update", "/setup update", "update beislid", "configure beislid", "set up workflow", "add scopes", "change ticket source", "reconfigure beislid", or any intent to add, change, or remove a workflow.md section. Walks through sections conversationally; shows a diff before any destructive write.

★ 0
sandsower
sandsower/nopal

rinse

Use when the user asks to 'rinse', 'run a review/fix loop', 'iterate on review findings', 'review and fix until clean', or harden a branch before PR handoff. Orchestrates side-effect-free review, user-approved fixes, verification, reruns, and redesign stop conditions.

★ 0