AGENT SKILL

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.

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

01 前言 Front Matter

name
setup
description
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.

02 资源文件 31

03 SKILL.md 正文

Setup

In verbose mode, emit ✓ setup/router v1 loaded immediately after reading this file.

Initialize or update Beislið's per-project config at <repo>/.beislid/workflow.md, or run the distribution updater for update intent. Setup is the canonical config interface. Direct file editing remains a quiet escape hatch.

Resource resolution

Resolve canonical resources only when the selected route needs them. When the Beislið CLI is available, run beislid resource resolve workflow-md-format for workflow grammar and beislid resource resolve probe-semantics for capability discovery, then read the returned absolute file. If the command is unavailable or fails, read the exact sibling resource workflow-md-format.md or probe-semantics.md shipped with this skill and disclose the fallback. Never search the repository, home directory, .agents, .claude, .codex, or another skill root for a replacement.

Route

  1. For setup update, /setup update, update beislid, or equivalent update intent, load update only. Do not inspect or modify project config in that route.
  2. Otherwise apply the repository precheck and mode detection below.
  3. If .beislid/workflow.md is absent, load first run. Before preview or write, load write and report. After a confirmed first-run write, load AGENTS integration, then offer menu mode.
  4. If .beislid/workflow.md exists and parses cleanly, load menu mode. Load write and report only when a preview or write boundary is reached.
  5. If existing config does not parse cleanly, load parse recovery and do not load menu section protocols.

Do not preload update, first-run, menu, write, AGENTS, parse-recovery, or optional-section resources before their route is selected.

1. Precheck git repo

Run git rev-parse --show-toplevel. If it errors or returns non-zero, hard-fail with prose:

🛑 Setup needs a git repo with at least one commit. Run `git init` and make
the first commit, then re-run /setup.

Also check git rev-list --max-parents=0 HEAD exits 0 (at least one commit). Same hard-fail otherwise.

2. Detect mode

Check <git-toplevel>/.beislid/workflow.md:

Common mistakes

  • Asking the user to type an MCP tool name - never. Use probe-semantics.md MCP discovery; if discovery returns nothing, pivot to cli/paste.
  • Suggesting a branch_pattern below the 60% coverage threshold - never. Below threshold, ask whether to skip.
  • Writing without showing a diff first - every destructive write shows a diff and asks for [Y/n].
  • Modifying CLAUDE.md - never. AGENTS.md is the always-preferred target.
  • Refusing to run when workflow.md exists - superseded; menu mode handles re-runs (Q17 amended in Phase 2).
  • Writing commented-out template sections - superseded; the file contains only filled-in sections. Discovery happens via the menu, not via reading commented prose.
  • Touching the probe cache - setup never reads or writes the cache. That's doctor's responsibility (and orchestrators write back individual entries on re-probe). Setup only writes workflow.md and AGENTS.md.

Key principles

  • Setup is the canonical config interface. Every workflow.md change goes through it (or through direct edit, which is a quiet escape hatch).
  • Never silently overwrites. Every destructive write shows a diff and waits for explicit [Y/n] confirmation.
  • Atomic whole-section writes. Setup never partially mutates a fenced block; it rewrites the whole section.
  • Targeted detection, never silent fill. Every auto-suggested value is presented for explicit Y/n/different confirmation.
  • One question at a time. Don't batch prompts; the user answers in order.

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

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
sandsower
sandsower/nopal

review

Review a local diff or supplied patch against requirements. Produces severity-categorized findings and a readiness verdict. Side-effect-free primitive used by ready-for-review, future rinse-style loops, PR patrol workflows, and ad-hoc review requests.

★ 0