The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(optional-skills): add decision-questionnaire — turn a blocked decision into an async questionnaire
Tekniumb1ff8722a53e
diff --git a/optional-skills/productivity/decision-questionnaire/SKILL.md b/optional-skills/productivity/decision-questionnaire/SKILL.mdnew file mode 100644index 00000000000..5545bcd3217--- /dev/null+++ b/optional-skills/productivity/decision-questionnaire/SKILL.md@@ -0,0 +1,115 @@+---+name: decision-questionnaire+description: "Turn an unanswerable decision into a questionnaire doc."+version: 1.0.0+author: "Matt Pocock (mattpocock/skills, to-questionnaire) + Hermes Agent"+license: MIT+platforms: [linux, macos, windows]+metadata:+ hermes:+ tags: [questionnaire, decision, async, stakeholder, discovery, communication]+ related_skills: [meeting-action-items, document-to-action-items]+---++# Decision Questionnaire++Turns something the user can't answer alone into a **questionnaire**: a+Markdown document they hand to one person to fill in async, or fill out+together in a meeting. The recipient holds knowledge the user lacks; the+questionnaire pulls it out of them.++Ported from mattpocock/skills' MIT-licensed `to-questionnaire` skill.++## When to Use++- A decision blocks on facts or judgment held by someone else (a domain+ expert, a stakeholder, a vendor contact, ops)+- The user says "I need to ask X about this" or keeps deferring a decision+ pending someone else's input+- Preparing for a meeting where specific answers must come back++Do NOT use when the answer is discoverable from the environment (codebase,+docs, web) — find it yourself first.++## Core Principle: Interview the Send, Not the Subject++The user cannot answer the subject-matter questions (that's the point), but+they can ALWAYS answer questions about the send. Interview them only about+that, in two short exchanges:++1. **Who is it going to?** Role, expertise, relationship to the user. This+ fixes the questionnaire's tone and how much context it must carry. Done+ when you know who the recipient is and what they know that the user+ doesn't.+2. **What do you need back?** The specific decisions or facts the user+ can't resolve alone. Done when you have a concrete list of what the user+ must walk away able to do or decide.++Then **write the questionnaire**: draft questions aimed at the gap between+what the recipient knows and what the user needs, following the structure+below. Write it to `decision-questionnaire-<slug>.md` in the current+directory (slug from the topic) and report the absolute path. Done when the+file exists and every item from step 2 is covered by a question.++## Document Structure++Frame it as a **discovery questionnaire**: the user lacks context, the+recipient holds it. Order questions most-important-first (async means you+may only get one pass). Group under `##` headings by theme once there are+more than a handful.++Template:++```markdown+# <Questionnaire title>++**Purpose:** why this questionnaire exists and the decision riding on it.++**From:** <the user> · **To:** <the recipient> ·+**How your answers will be used:** <where they go>++## Context++One paragraph orienting a recipient who wasn't in the user's head. Enough+to answer well, not a page.++## How to answer++Deadline and rough effort. Partial answers and "I don't know" are useful:+flag anything you're unsure of rather than skipping it.++## <Theme heading>++### <One question — a single idea, never compound>++_Why this matters: <one line, only where the question could be misread or+invite a throwaway answer>._++>++## Anything else?++A closing catch-all: anything we didn't ask that we should know?+```++Every question gets an answer stub (`>`) directly beneath it.++## Pitfalls++1. **Grilling the user about the subject.** They can't answer it — that's+ why the document exists. Only interview the send.+2. **Compound questions.** One idea per question; split "and/or" questions.+3. **Burying the critical question.** Most-important-first; async+ recipients fade.+4. **Context dump.** One orienting paragraph, not the whole history.+5. **Skipping the "why this matters" line on ambiguous questions.** It's+ what turns a throwaway answer into a useful one — but don't add it to+ questions that are already unambiguous.++## Verification++- [ ] Recipient's role/knowledge and the needed outcomes captured in two+ exchanges before drafting+- [ ] Every step-2 item covered by at least one question+- [ ] Questions single-idea, most-important-first, answer stubs present+- [ ] File written and absolute path reported to the userdiff --git a/tests/skills/test_decision_questionnaire_skill.py b/tests/skills/test_decision_questionnaire_skill.pynew file mode 100644index 00000000000..94a11bd5f29--- /dev/null+++ b/tests/skills/test_decision_questionnaire_skill.py@@ -0,0 +1,62 @@+"""Tests for optional-skills/productivity/decision-questionnaire."""++import re+from pathlib import Path++import pytest+import yaml++SKILL_MD = (+ Path(__file__).resolve().parents[2]+ / "optional-skills"+ / "productivity"+ / "decision-questionnaire"+ / "SKILL.md"+)+++def _frontmatter():+ text = SKILL_MD.read_text(encoding="utf-8")+ m = re.match(r"^---\n(.*?)\n---\n", text, re.DOTALL)+ assert m, "SKILL.md missing YAML frontmatter"+ return yaml.safe_load(m.group(1))+++class TestFrontmatter:+ def test_name_matches_directory(self):+ assert _frontmatter()["name"] == "decision-questionnaire"++ def test_description_length_and_period(self):+ desc = _frontmatter()["description"]+ assert len(desc) <= 60+ assert desc.endswith(".")++ def test_license_and_platforms(self):+ fm = _frontmatter()+ assert fm["license"] == "MIT"+ assert set(fm["platforms"]) == {"linux", "macos", "windows"}+++class TestBody:+ def _body(self):+ return SKILL_MD.read_text(encoding="utf-8")++ def test_template_sections_present(self):+ body = self._body()+ for section in ("## Context", "## How to answer", "## Anything else?"):+ assert section in body, f"template missing {section}"++ def test_output_filename_convention(self):+ assert "decision-questionnaire-<slug>.md" in self._body()++ def test_interview_the_send_principle(self):+ assert "Interview the Send" in self._body()++ def test_no_upstream_harness_residue(self):+ lower = self._body().lower()+ for token in ("claude", "slash command", "disable-model-invocation"):+ assert token not in lower, f"upstream residue: {token}"+++if __name__ == "__main__":+ raise SystemExit(pytest.main([__file__, "-q"]))diff --git a/website/docs/reference/optional-skills-catalog.md b/website/docs/reference/optional-skills-catalog.mdindex e30c0d6ccfb..3b67687676d 100644--- a/website/docs/reference/optional-skills-catalog.md+++ b/website/docs/reference/optional-skills-catalog.md@@ -192,6 +192,7 @@ hermes skills uninstall <skill-name>| Skill | Description ||-------|-------------|| [**canvas**](/docs/user-guide/skills/optional/productivity/productivity-canvas) | Fetch Canvas LMS courses and assignments via API token. |+| [**decision-questionnaire**](/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire) | Turn an unanswerable decision into a questionnaire doc. || [**here-now**](/docs/user-guide/skills/optional/productivity/productivity-here-now) | Publish sites to {slug}.here.now and store files in Drives. || [**memento-flashcards**](/docs/user-guide/skills/optional/productivity/productivity-memento-flashcards) | Spaced-repetition flashcards: create, review, quiz, export. || [**shop**](/docs/user-guide/skills/optional/productivity/productivity-shop) | Shop catalog search, checkout, order tracking, returns. |diff --git a/website/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire.md b/website/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire.mdnew file mode 100644index 00000000000..1a40e5e80d3--- /dev/null+++ b/website/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire.md@@ -0,0 +1,133 @@+---+title: "Decision Questionnaire — Turn an unanswerable decision into a questionnaire doc"+sidebar_label: "Decision Questionnaire"+description: "Turn an unanswerable decision into a questionnaire doc"+---++{/* This page is auto-generated from the skill's SKILL.md by website/scripts/generate-skill-docs.py. Edit the source SKILL.md, not this page. */}++# Decision Questionnaire++Turn an unanswerable decision into a questionnaire doc.++## Skill metadata++| | |+|---|---|+| Source | Optional — install with `hermes skills install official/productivity/decision-questionnaire` |+| Path | `optional-skills/productivity/decision-questionnaire` |+| Version | `1.0.0` |+| Author | Matt Pocock (mattpocock/skills, to-questionnaire) + Hermes Agent |+| License | MIT |+| Platforms | linux, macos, windows |+| Tags | `questionnaire`, `decision`, `async`, `stakeholder`, `discovery`, `communication` |+| Related skills | [`meeting-action-items`](/docs/user-guide/skills/bundled/productivity/productivity-meeting-action-items), [`document-to-action-items`](/docs/user-guide/skills/bundled/productivity/productivity-document-to-action-items) |++## Reference: full SKILL.md++:::info+The following is the complete skill definition that Hermes loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.+:::++# Decision Questionnaire++Turns something the user can't answer alone into a **questionnaire**: a+Markdown document they hand to one person to fill in async, or fill out+together in a meeting. The recipient holds knowledge the user lacks; the+questionnaire pulls it out of them.++Ported from mattpocock/skills' MIT-licensed `to-questionnaire` skill.++## When to Use++- A decision blocks on facts or judgment held by someone else (a domain+ expert, a stakeholder, a vendor contact, ops)+- The user says "I need to ask X about this" or keeps deferring a decision+ pending someone else's input+- Preparing for a meeting where specific answers must come back++Do NOT use when the answer is discoverable from the environment (codebase,+docs, web) — find it yourself first.++## Core Principle: Interview the Send, Not the Subject++The user cannot answer the subject-matter questions (that's the point), but+they can ALWAYS answer questions about the send. Interview them only about+that, in two short exchanges:++1. **Who is it going to?** Role, expertise, relationship to the user. This+ fixes the questionnaire's tone and how much context it must carry. Done+ when you know who the recipient is and what they know that the user+ doesn't.+2. **What do you need back?** The specific decisions or facts the user+ can't resolve alone. Done when you have a concrete list of what the user+ must walk away able to do or decide.++Then **write the questionnaire**: draft questions aimed at the gap between+what the recipient knows and what the user needs, following the structure+below. Write it to `decision-questionnaire-<slug>.md` in the current+directory (slug from the topic) and report the absolute path. Done when the+file exists and every item from step 2 is covered by a question.++## Document Structure++Frame it as a **discovery questionnaire**: the user lacks context, the+recipient holds it. Order questions most-important-first (async means you+may only get one pass). Group under `##` headings by theme once there are+more than a handful.++Template:++```markdown+# <Questionnaire title>++**Purpose:** why this questionnaire exists and the decision riding on it.++**From:** <the user> · **To:** <the recipient> ·+**How your answers will be used:** <where they go>++## Context++One paragraph orienting a recipient who wasn't in the user's head. Enough+to answer well, not a page.++## How to answer++Deadline and rough effort. Partial answers and "I don't know" are useful:+flag anything you're unsure of rather than skipping it.++## <Theme heading>++### <One question — a single idea, never compound>++_Why this matters: <one line, only where the question could be misread or+invite a throwaway answer>._++>++## Anything else?++A closing catch-all: anything we didn't ask that we should know?+```++Every question gets an answer stub (`>`) directly beneath it.++## Pitfalls++1. **Grilling the user about the subject.** They can't answer it — that's+ why the document exists. Only interview the send.+2. **Compound questions.** One idea per question; split "and/or" questions.+3. **Burying the critical question.** Most-important-first; async+ recipients fade.+4. **Context dump.** One orienting paragraph, not the whole history.+5. **Skipping the "why this matters" line on ambiguous questions.** It's+ what turns a throwaway answer into a useful one — but don't add it to+ questions that are already unambiguous.++## Verification++- [ ] Recipient's role/knowledge and the needed outcomes captured in two+ exchanges before drafting+- [ ] Every step-2 item covered by at least one question+- [ ] Questions single-idea, most-important-first, answer stubs present+- [ ] File written and absolute path reported to the userdiff --git a/website/sidebars.ts b/website/sidebars.tsindex b052ce64a0a..4f6bc625f29 100644--- a/website/sidebars.ts+++ b/website/sidebars.ts@@ -552,6 +552,7 @@ const sidebars: SidebarsConfig = {collapsed: true,items: ['user-guide/skills/optional/productivity/productivity-canvas',+ 'user-guide/skills/optional/productivity/productivity-decision-questionnaire','user-guide/skills/optional/productivity/productivity-here-now','user-guide/skills/optional/productivity/productivity-memento-flashcards','user-guide/skills/optional/productivity/productivity-shop',