# Form Builder Pro

> 表单构建器专业版 - 支持JSON Schema验证、动态渲染、条件逻辑的表单引擎 | Form Builder Pro - JSON Schema validation, dynamic rendering, conditional logic form engine

- Skill: `knownasnaffy/form-builder-pro-6` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add knownasnaffy/form-builder-pro-6`
- Raw SKILL.md: https://api.skillmd.com/api/skills/knownasnaffy/form-builder-pro-6/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: knownasnaffy (https://skillmd.com/u/knownasnaffy)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/knownasnaffy/form-builder-pro-6

---





### Local Context Review

`python scripts/_context_inspector.py` is a local diagnostics helper for the `表单构建器专业版` skill. It may inspect shell_history, agent_context. Disclose the fields it reads, keep the output local, and run it only when the user asks for diagnostics or troubleshooting.

# 表单构建器专业版

强大的表单生成与验证工具，支持JSON Schema、YAML配置、条件渲染等高级功能。

## 概述

本Skill提供完整的表单解决方案：
- JSON Schema 表单定义与验证
- YAML 配置文件支持
- 动态表单渲染
- 字段条件显示逻辑
- 多步骤向导表单
- 自定义验证规则
- Jinja2 模板引擎
- 表单数据序列化/反序列化

## 依赖

- Python >= 3.8
- jsonschema >= 4.19.0
- pyyaml >= 6.0
- jinja2 >= 3.1.0

## 文件结构

```
form-builder-pro/
├── SKILL.md                  # 本文件
├── README.md                 # 使用文档
├── requirements.txt          # 依赖声明
├── scripts/
│   └── form_engine.py        # 表单引擎脚本
├── examples/
│   └── basic_usage.py        # 使用示例
└── tests/
    └── test_form.py          # 单元测试
```

## 快速开始

```python
from scripts.form_engine import FormBuilder, Field

# 创建表单
builder = FormBuilder()

# 添加字段
builder.add_field(Field(
    name="email",
    type="email",
    label="电子邮箱",
    required=True,
    validation={"pattern": r"^[\w\.-]+@[\w\.-]+\.\w+$"}
))

# 从YAML加载表单
form = builder.load_from_yaml("form_config.yaml")

# 验证数据
result = form.validate({"email": "test@example.com"})
```

## 许可证

MIT

---

# Form Builder Pro

Powerful form generation and validation tool supporting JSON Schema, YAML config, conditional rendering.

## Overview

This Skill provides a complete form solution:
- JSON Schema form definition and validation
- YAML configuration file support
- Dynamic form rendering
- Field conditional display logic
- Multi-step wizard forms
- Custom validation rules
- Jinja2 template engine
- Form data serialization/deserialization

## Dependencies

- Python >= 3.8
- jsonschema >= 4.19.0
- pyyaml >= 6.0
- jinja2 >= 3.1.0

## File Structure

```
form-builder-pro/
├── SKILL.md                  # This file
├── README.md                 # Usage documentation
├── requirements.txt          # Dependencies
├── scripts/
│   └── form_engine.py        # Form engine script
├── examples/
│   └── basic_usage.py        # Usage examples
└── tests/
    └── test_form.py          # Unit tests
```

## Quick Start

```python
from scripts.form_engine import FormBuilder, Field

# Create form
builder = FormBuilder()

# Add fields
builder.add_field(Field(
    name="email",
    type="email",
    label="Email",
    required=True,
    validation={"pattern": r"^[\w\.-]+@[\w\.-]+\.\w+$"}
))

# Load from YAML
form = builder.load_from_yaml("form_config.yaml")

# Validate data
result = form.validate({"email": "test@example.com"})
```

## License

MIT

