AGENT SKILL

user-questionnaire

Use to accumulate genuine owner decisions into a local asynchronous review packet, publish that packet as a local web form the owner answers in a browser, walk the owner through it one question at a time, ingest the recorded answers in a later session, or route recorded signoffs through canonical owning workflows. Every problem scope and recommendation receives a separate adversarial verdict from an independent subagent against the target project's th-projects shape and th-engineering bar before it is review-ready. Triggers: "prepare decisions for me to review", "review when I wake up", "publish the questionnaire", "give me a link to review", "walk me through the blocked decisions", "ingest my answers", "collect owner signoffs", "decision packet", "questionnaire".

License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
user-questionnaire
metadata
{ "owner": "tze", "status": "active", "authors": [ "tze", "OpenAI Codex", "Claude Fable 5.1", "Claude Opus 5.5" ], "last_reviewed": "2026-10-21" }
description
Use to accumulate genuine owner decisions into a local asynchronous review packet, publish that packet as a local web form the owner answers in a browser, walk the owner through it one question at a time, ingest the recorded answers in a later session, or route recorded signoffs through canonical owning workflows. Every problem scope and recommendation receives a separate adversarial verdict from an independent subagent against the target project's th-projects shape and th-engineering bar before it is review-ready. Triggers: "prepare decisions for me to review", "review when I wake up", "publish the questionnaire", "give me a link to review", "walk me through the blocked decisions", "ingest my answers", "collect owner signoffs", "decision packet", "questionnaire".
compatibility
Requires local file access; review-ready packets require a subagent facility. The validator and the web review surface run with uv and Python 3.11+, stdlib only; the web surface binds a local TCP port and prints an https URL fronted by `tailscale serve` when the node has Tailscale certificates, else the node's Tailscale IPv4 or FQDN URL.

02 资源文件 17

03 SKILL.md 正文

User Questionnaire

Cross-cutting human-gate transport for th-projects. It turns already identified hard owner decisions into a durable, resumable review surface. It does not become a sixth planning authority: doctrine, specs, topology, engineering standards, and the project tracker remain canonical.

Admit only genuine owner gates

Before drafting, apply the target repository's decision-autonomy policy. In a Beads-backed project, use /beads-orchestration to distinguish hard human gates from ordinary engineering judgment. Admit a question only when a human must:

  • adopt or change doctrine, policy, product scope, or an observable contract;
  • record a decision that an owning operational workflow may later use to seek separately bounded external, privileged, destructive, costly, or live action;
  • choose among materially different user outcomes with no governing answer; or
  • supply unavailable owner-only information.

Do not questionnaire implementation details an agent can resolve from doctrine, specs, evidence, and the engineering bar. Do not infer approval from silence. A run that produced no owner gates publishes nothing and says so.

Build and review the packet

  1. Refresh the decision inventory. Read the target project's local th-projects shape: heart-and-soul, governing RFC/spec, lay-and-land, and craft-and-care. Read the relevant tracker items and current implementation. Deduplicate by canonical decision or bead ID; record the evidence commit, timestamp, and anything live that was not inspected.

  2. Draft bounded items. Copy assets/questionnaire-template.md. For each item, state one decision, 2-4 materially distinct options with pros and cons, a doctrine-grounded recommendation, and an exact authorization boundary. Follow references/packet-contract.md.

  3. Dispatch an independent adversarial subagent per review batch. Give the reviewer the draft items, source artifacts, and the target project's th-projects and th-engineering instructions—not the answer you hope to receive. The reviewer must issue a separate verdict for every item's problem scope and recommendation. Follow references/adversarial-review.md.

  4. Correct and re-review. A material scope, option, recommendation, or authority-boundary correction returns that item to Needs-rework. It is not Review-ready until an independent subagent records Pass for both verdicts on the corrected artifact. If no subagent facility is available, leave it Draft and report the missing gate.

  5. Accumulate locally. Write one local ignored .md packet unless the user names another location. The default home is outside any worktree: ~/.tmp/user-questionnaire/<repo>-<date>/packet.md. Keep stable IDs and update in place so another agent can resume. Before writing under a Git worktree instead, verify the intended path with git check-ignore --no-index --quiet -- <path>; otherwise choose an ignored local directory or ask for one. Never place secrets, tokens, or owner-private values in it.

  6. Validate before handoff. Run scripts/validate_questionnaire.py:

    QUESTIONNAIRE_SKILL_DIR="/absolute/path/to/loaded/th-projects/subskills/user-questionnaire"
    uv run "$QUESTIONNAIRE_SKILL_DIR/scripts/validate_questionnaire.py" \
      /absolute/path/to/packet.md --require-review-ready
    

    Resolve every error; the validator is structural evidence, not semantic review.

  7. Publish the web review surface. Run scripts/questionnaire_web.py serve; it re-runs the review-ready validation and refuses a packet that fails it, then starts a background server on a random open port, persists answers under ~/.tmp/user-questionnaire/, and prints the URL. Re-running it for the same packet reuses the running server, so the command is idempotent. To look at a draft before review, render <packet> --out page.html writes a read-only preview instead.

    uv run "$QUESTIONNAIRE_SKILL_DIR/scripts/questionnaire_web.py" serve \
      /absolute/path/to/packet.md            # prints JSON, then QUESTIONNAIRE_URL=…
    

    The handoff report ends with that QUESTIONNAIRE_URL= line, the packet path, item count, evidence snapshot, and unresolved unknowns. Do not paste the packet into chat. The page is the owner's walkthrough: an at-a-glance list, then one card per item leading with the decision and recommendation, any delta diagram, labeled background, and option cards with hold/reject/edit controls; a separate final question asks whether to apply. No LLM tokens are spent after this command.

Walk the owner through it

Asynchronous answers arrive through the web form. A later session starts by ingesting them, then proceeds exactly as if it had recorded them in chat:

uv run "$QUESTIONNAIRE_SKILL_DIR/scripts/questionnaire_web.py" status /abs/packet.md   # exit 0 once submitted; --wait N polls
uv run "$QUESTIONNAIRE_SKILL_DIR/scripts/questionnaire_web.py" ingest /abs/packet.md   # writes owner records into the packet

ingest maps each answer into the item's owner decision record and state (picked option → Agreed, hold → Held, reject → Rejected, edited option → Needs-rework), refuses a packet that changed since it was served, re-runs the validator, and reports apply_now. Edited items go back through steps 3-4 before routing. apply_now: true is the owner's explicit apply instruction for exactly this packet's Agreed and Held items; false or null leaves them recorded and unrouted. Details and the mapping table are in references/interaction-and-application.md.

Live walkthrough in chat. When the owner is present instead, load references/interaction-and-application.md. Ask exactly one decision at a time in priority/dependency order. Lead with the decision needed and recommendation, then give concise background and options with pros/cons. Accept a letter, prose, an edited option, defer, or reject. Refresh drift-prone evidence before presentation. Record actor/channel, timestamp, exact or normalized answer, edits, post-answer review requirement, authorization boundary, and destination workflow before advancing.

Never treat agreement to one item as approval of another. If fresh evidence invalidates the framing, pause that item, revise it, and re-run adversarial review instead of pressuring the owner to answer a stale question.

Close every walkthrough with the apply offer. After the last item is recorded, ask once, as its own question, whether to apply the recorded decisions now. A "yes" is the explicit apply instruction for exactly the Agreed and Held items in this packet; a "no" or silence leaves them recorded and unrouted. Never fold the offer into an item's question. The web form asks it as its own final control for the same reason.

Route recorded decisions

Route decisions only when the user explicitly asks. Re-read dependencies and current heads first. The questionnaire itself never mutates specs, doctrine, Beads, configuration, runtime, or external systems. Hand the exact decision record to the canonical owning workflow—project-shape, feature-request/OpenSpec, direction/Beads, or an operational protocol—and let that workflow enforce its own review and mutation gates. No packet can release external/live action.

Use the apply checklist in references/interaction-and-application.md, then mark each item Applied, Held, Rejected, or Superseded only from the owning workflow's evidence. Keep implementation work in that normal workflow.

Applying is finished only when the tracker reflects every routed decision (checklist § Update tracker artifacts): each Agreed item has a filed or updated work item carrying its decision record and boundary, each Held item's re-ask trigger is noted on the trigger item, affected existing items carry a note, and the packet's routing evidence names those IDs. Then re-run the validator without --require-review-ready, stop the web server (questionnaire_web.py stop), and report what was routed.

Do not use when

  • One fuzzy feature still needs shaping into a spec → ../project-feature-request/.
  • Competing work needs prioritization or Bead decomposition → ../project-direction/.
  • The request is merely to inspect or mutate Beads → /beads-orchestration.
  • The agent can make the decision under the repository's autonomy contract.
  • The user is present and asks one isolated, already-bounded question; answer it directly unless durable asynchronous accumulation adds value.

04 同仓库更多 Skills

tzeusy-org
tzeusy-org/ai-bootstrap

progress-dashboard

Use when asked to "give this session a dashboard", "show loop progress", "monitor subagents", or "steer this run in a browser": a durable local workspace for current work, findings, agents, measured usage and feedback.

★ 0
tzeusy-org
tzeusy-org/ai-bootstrap

spec-concretization

Use when specs and implementation must be fully reconciled in both directions — code doing things no spec describes, specs requiring things the code doesn't do yet, or the two disagreeing — and the result must land as vision-gated spec updates plus a complete, backlog-deduplicated work plan. Also the read-only audit form ("does code match the spec?"), and re-runs that must not duplicate prior findings. Triggers: "reconcile spec vs implementation", "does code match the spec", "what's implemented but undocumented", "what's specified but not built", "the code is ahead of the spec", "plan the work to finish the spec", "concretize the specs".

★ 0
tzeusy-org
tzeusy-org/ai-bootstrap

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

★ 0
tzeusy-org
tzeusy-org/ai-bootstrap

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

★ 0
tzeusy-org
tzeusy-org/ai-bootstrap

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 0
tzeusy-org
tzeusy-org/ai-bootstrap

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

★ 0