Form Builder

作者 claude-office-skills9c4c7d5cd281MIT499 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Build interactive document forms and questionnaires using docassemble

僅含說明Documents & Office
AI 產生的概覽

建立具備條件邏輯與文件產出功能的 docassemble 互動式表單與問卷。

功能
此技能會產生用於引導式表單與問卷的 docassemble 訪談 YAML。內容涵蓋訪談結構、依答案分歧的條件邏輯、文字、電子郵件、日期、貨幣、核取方塊與檔案上傳等欄位類型,以及透過附件產出文件。另附一份客戶資料登記表的完整範例。
適用情境
當你需要互動式表單、資料登記問卷或多步驟文件組裝流程時使用。適合條件式問卷、合約產生表單,或會輸出文件的引導式訪談等需求。
執行需求
需要 docassemble 平台才能執行產生的訪談。此技能列出 office-mcp 伺服器以及 create_docx 與 fill_docx_template 工具。未附任何指令碼,僅為指示文件。

Form Builder Skill

Overview

This skill enables creation of intelligent document forms using docassemble - a platform for guided interviews that generate documents. Create questionnaires that adapt based on answers.

How to Use

  1. Describe the form or document you need
  2. Specify conditional logic requirements
  3. I'll create docassemble interview YAML

Example prompts:

  • "Create an intake form for new clients"
  • "Build a conditional questionnaire for legal documents"
  • "Generate a multi-step form for contract generation"
  • "Design an interactive document assembly form"

Domain Knowledge

Interview Structure

yaml
metadata:  title: Client Intake Form  short title: Intake
---question: |  What is your name?fields:  - First Name: first_name  - Last Name: last_name
---question: |  What type of service do you need?field: service_typechoices:  - Contract Review  - Document Drafting  - Consultation
---mandatory: Truequestion: |  Thank you, ${ first_name }!subquestion: |  We will contact you about your ${ service_type } request.

Conditional Logic

yaml
---question: |  Are you a business or individual?field: client_typechoices:  - Business  - Individual
---if: client_type == "Business"question: |  What is your company name?fields:  - Company: company_name  - EIN: ein    required: False
---if: client_type == "Individual"question: |  What is your date of birth?fields:  - Birthdate: birthdate    datatype: date

Field Types

yaml
fields:  # Text  - Name: name    # Email  - Email: email    datatype: email    # Number  - Age: age    datatype: integer    # Currency  - Amount: amount    datatype: currency    # Date  - Start Date: start_date    datatype: date    # Yes/No  - Agree to terms?: agrees    datatype: yesno    # Multiple choice  - Color: color    choices:      - Red      - Blue      - Green    # Checkboxes  - Select options: options    datatype: checkboxes    choices:      - Option A      - Option B    # File upload  - Upload document: document    datatype: file

Document Generation

yaml
---mandatory: Truequestion: |  Your document is ready.attachment:  name: Contract  filename: contract  content: |    # Service Agreement        This agreement is between **${ client_name }**    and **Service Provider**.        ## Services    ${ service_description }        ## Payment    Total amount: ${ currency(amount) }        Date: ${ today() }

Example: Client Intake

yaml
metadata:  title: Legal Client Intake  short title: Intake
---objects:  - client: Individual
---question: |  Welcome to our intake form.subquestion: |  Please answer the following questions.continue button field: intro_screen
---question: |  What is your name?fields:  - First Name: client.name.first  - Last Name: client.name.last  - Email: client.email    datatype: email  - Phone: client.phone    required: False
---question: |  What type of matter is this?field: matter_typechoices:  - Contract: contract  - Dispute: dispute  - Advisory: advisory
---if: matter_type == "contract"question: |  Contract Detailsfields:  - Contract Type: contract_type    choices:      - Employment      - Service Agreement      - NDA  - Other Party: other_party  - Estimated Value: contract_value    datatype: currency
---mandatory: Truequestion: |  Thank you, ${ client.name.first }!subquestion: |  **Summary:**    - Name: ${ client.name }  - Email: ${ client.email }  - Matter: ${ matter_type }    We will contact you within 24 hours.

Resources

來源與署名

來源:claude-office-skills/skills位於form-builder提交9c4c7d5

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架