Logo de Questionnaire

Questionnaire

Comunidade
Firstp1ck
questionnaire

Collect structured single-select and multi-select answers from the user through the native questionnaire tool instead of long free-text question lists. Use when a task needs several related choices (scope, options, priorities, configuration, preferences) before work can continue, when the user asks to be asked in a menu/form/dialog, or when a questionnaire result returns QUESTIONNAIRE_NEEDS_CLARIFICATION and must be answered and resumed. Do not use for secrets, credentials, free-form open questions, or a single trivial yes/no that plain text answers better.

Add to TypingMind

Visão geral

Publicado porFirstp1ck
Repositóriopi-coding-agent-forge
Nome da habilidadequestionnaire
Estrelas
93
Forks
22
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por Firstp1ck no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Questionnaire no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-package-questionnaire/skills/questionnaire
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-package-questionnaire/skills/questionnaire .claude/skills/questionnaire
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Questionnaire em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Questionnaire automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Questionnaire não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Questionnaire

Ask related structured questions in one native dialog flow and read the answers back as stable IDs.

The questionnaire tool runs Pi's native selector and text-input dialogs sequentially. It works in the TUI (Up/Down + Enter) and in the WebUI (options are ordinary clickable buttons).

When to use

Use questionnaire when:

  • two or more related choices must be settled before work can continue;
  • the choices have a known, bounded option set you can name;
  • the user asked to be prompted with a menu, list, form, or dialog;
  • a prior questionnaire result returned QUESTIONNAIRE_NEEDS_CLARIFICATION.

Do not use questionnaire when:

  • the question is genuinely open-ended and better answered in prose;
  • one trivial confirmation is enough — just ask in normal text;
  • you are requesting secrets, passwords, tokens, or other credentials;
  • you already have the answer in context, or can determine it by reading files or running a read-only command.

Never invent a questionnaire to look thorough. Ask only what actually changes what you will do.

Question design rules

  1. Combine. Put every related question into one start call. Do not run several sequential questionnaires for one decision.
  2. Stable IDs. Give each question and option a stable, descriptive, non-empty id (deploy_target, target_staging). IDs are what you read back; labels are only display text.
  3. Unique IDs. Question IDs must be unique in the call; option IDs must be unique within their question.
  4. Concise text. Short label, one clear prompt sentence, and an optional short description per option only when the label is not self-explanatory.
  5. Honest types. Use single when exactly one answer is valid, multi when several are. Do not fake multi-select with several single questions.
  6. Realistic bounds. A multi question defaults to minSelections: 0; set minSelections: 1 whenever an empty answer is not useful. Set maxSelections only when the task needs a ceiling. Selection bounds are rejected on single questions.
  7. Other. allowOther defaults to true. Set it to false when a custom answer is meaningless or unusable.
  8. Bounded size. 1–20 questions, 1–50 options per question, IDs ≤128 chars, labels ≤200, prompts ≤2000, option descriptions ≤500.

Start call

Send only action and questions:

json
{
  "action": "start",
  "questions": [
    {
      "id": "deploy_target",
      "label": "Target",
      "prompt": "Which environment should this release go to?",
      "type": "single",
      "options": [
        { "id": "staging", "label": "Staging" },
        { "id": "production", "label": "Production", "description": "Requires an approved release window" }
      ],
      "allowOther": false
    },
    {
      "id": "checks",
      "label": "Pre-flight checks",
      "prompt": "Which checks must pass before the deploy?",
      "type": "multi",
      "options": [
        { "id": "unit", "label": "Unit tests" },
        { "id": "e2e", "label": "End-to-end tests" },
        { "id": "lint", "label": "Lint and types" }
      ],
      "minSelections": 1,
      "maxSelections": 3
    }
  ]
}

Reading results

The tool result text starts with a status marker and the questionnaire ID and revision:

MarkerMeaningWhat to do
QUESTIONNAIRE_COMPLETEDAll questions answeredUse the answers and continue the task
QUESTIONNAIRE_NEEDS_CLARIFICATIONUser asked Pi something firstExplain, then resume immediately (see below)
QUESTIONNAIRE_CANCELLEDUser cancelled, or the call was abortedStop; ask in normal text what to do next
QUESTIONNAIRE_UNAVAILABLENo usable interactive UIAsk the same questions in normal text instead

Answers come back as { questionId, selectedOptionIds, other? } in the original question order:

  • selectedOptionIds holds option IDs in their declared order.
  • other holds the trimmed custom answer when the user supplied one.
  • For a single question answered with Other, selectedOptionIds is empty and only other is set.
  • For a multi question, other is additive: it does not replace selected option IDs and it counts as one choice against minSelections / maxSelections.

Treat cancelled and unavailable as real user outcomes. Never guess the answers the user did not give.

Clarification is mandatory

When the result is QUESTIONNAIRE_NEEDS_CLARIFICATION, the user paused at one question to ask you something. The prior answers and the current multi-select toggles are already stored.

You must:

  1. Answer the user's request in normal assistant text, concretely and briefly.
  2. Immediately call questionnaire again with action: "resume" and only questionnaireId, revision, and clarificationResponse copied from that result.
json
{
  "action": "resume",
  "questionnaireId": "3f2a6f2c-1d47-4c2b-9a0e-1f7c9d1a55b1",
  "revision": 1,
  "clarificationResponse": "Production deploys need an approved release window; staging does not."
}

Hard rules:

  • Never resend questions on resume — the stored snapshot is authoritative and cannot be replaced.
  • Never start a new questionnaire to recover from a clarification request; that loses the user's prior answers.
  • Never infer, assume, or fabricate the pending answer; the user still has to choose.
  • Use the exact questionnaireId and the exact revision from the latest result. A stale or unknown pair is an error.
  • Keep clarificationResponse a concise summary (≤1000 characters) of the explanation you just gave.
  • Do not end your turn after a clarification result without resuming.

Clarification can repeat: each request returns a new, higher revision. Answer and resume each time.

Privacy and safety

  • Answers are ordinary tool results: they are visible to the model and persisted with the session and its branch.
  • Never use questionnaire to collect passwords, API keys, tokens, or other secrets, including via the Other field.
  • Do not copy answers into logs, files, or external systems unless the user asked for that.
  • Resume only works on the same session branch that produced the clarification result.

Perguntas frequentes

O que a habilidade de IA Questionnaire faz?

Collect structured single-select and multi-select answers from the user through the native questionnaire tool instead of long free-text question lists. Use when a task needs several related choices (scope, options, priorities, configuration, preferences) before work can continue, when the user asks to be asked in a menu/form/dialog, or when a questionnaire result returns QUESTIONNAIRE_NEEDS_CLARIFICATION and must be answered and resumed. Do not use for secrets, credentials, free-form open questions, or a single trivial yes/no that plain text answers better.

Por que usar Questionnaire no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Questionnaire é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Questionnaire no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-package-questionnaire/skills/questionnaire. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Questionnaire?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Questionnaire?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Questionnaire com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Questionnaire é gratuita?

Sim. A habilidade é publicada no GitHub por Firstp1ck sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇