Agent SkillsOpnForm/OpnForm › opnform

opnform

GitHub

通过 MCP 工具创建、预览和修订 OpnForm 表单,支持从访客草稿到账户保存的完整流程。包含表单验证、版本冲突处理及提交数据管理,确保交互预览稳定可靠。

plugins/opnform/skills/opnform/SKILL.md OpnForm/OpnForm

Trigger Scenarios

创建新表单 修改现有表单结构 查看或刷新表单预览 将草稿保存到账户 导出或分析表单提交数据

Install

npx skills add OpnForm/OpnForm --skill opnform -g -y
More Options

Non-standard path

npx skills add https://github.com/OpnForm/OpnForm/tree/main/plugins/opnform/skills/opnform -g -y

Use without installing

npx skills use OpnForm/OpnForm@opnform

指定 Agent (Claude Code)

npx skills add OpnForm/OpnForm --skill opnform -a claude-code -g -y

安装 repo 全部 skill

npx skills add OpnForm/OpnForm --all -g -y

预览 repo 内 skill

npx skills add OpnForm/OpnForm --list

SKILL.md

Frontmatter
{
    "name": "opnform",
    "description": "Create, preview, revise, save, and manage OpnForm forms through MCP, or search, analyze, and export their submissions."
}

OpnForm

Use the OpnForm MCP tools exposed by the current conversation. Keep replies concise and outcome-first.

Route the request

  • A natural request to create a form starts as a temporary guest draft. Do not ask for login, account, workspace, guest-mode, or preview confirmation.
  • Use OAuth only when the user asks to save to an account, manage existing forms, choose account data, or read submissions.
  • If OpnForm tools are missing, explain that the plugin is not attached and ask the user to start a new conversation with OpnForm selected. Do not use shell, raw HTTP, another connector, or a recursive agent as a fallback.
  • Before an account or submission operation, read references/account-and-submissions.md.
  • For connection failures or host-specific OAuth recovery, read references/connection-and-recovery.md.

Create or revise a guest draft

Success means the latest draft is valid and the turn contains exactly one final interactive preview.

  1. Read references/form-authoring.md, then read opnform://schemas/agent-form-definition/v1 and opnform://reference/form-fields/v1 before generating or materially changing fields, layout, presentation, or media.
  2. Call validate_form_definition. Correct every validation error, every entry in quality_warnings marked blocking, and other relevant warnings while preserving intentional user choices.
  3. Call create_form_draft. It is data-only and not idempotent: after success, keep its draft_handle private and do not call it again.
  4. Call preview_form_draft exactly once with that handle. Do not finish a creation turn with text alone.
  5. For a requested revision, use patch_form_draft with the latest expected_version, then call preview_form_draft exactly once. Do not call the preview tool before the mutation or more than once after success.
  6. On a version conflict, call get_form_draft, reconcile the requested change, and retry with the current version. On a validation error, correct the operation and retry once. Never overwrite blindly.

Required final reply after each successful preview: summarize the result or change in one sentence, then ask exactly one question offering two choices—make another change or save the form to the user's OpnForm account. A status-only response is incomplete. If the user already supplied the next instruction, perform it instead of repeating the question.

Use preview_form_draft without a mutation only when the user asks to refresh or redisplay an existing preview. A preview is read-only and remains valid until its seven-day guest draft expires.

Call open_form_draft_in_editor only when the user explicitly asks to edit in OpnForm or uses the preview's Edit in OpnForm action. Editor links are reusable until the guest draft expires.

Save and publish

Saving requires account persistence. Connect only at that point, preserve the latest validated definition, and follow the workspace rules in the account reference.

  • An account form is first saved as an unpublished draft. Say so, then ask whether the user wants to publish it.
  • Asking is not confirmation. Call publish_form only after an explicit affirmative response with confirm_publish: true and the current revision.
  • Require explicit confirmation before trash_form with confirm_trash: true.
  • Explain any disabled_features returned when plan rules disable previewed features during save.

Safety

  • Keep draft_handle, editor handoffs, OAuth tokens, and export URLs out of user-facing text and logs.
  • Never bypass validation, version or revision checks, workspace permissions, confirmations, plan enforcement, or rate limits.
  • Submission access is read-only. Never create, update, delete, or restore submissions.
  • When a preview fails, report the returned error accurately. A 429 is temporary rate limiting, not an expired draft.

Version History

  • a9f76bb Current 2026-08-29 04:21

    优化预览可靠性,修复渲染问题,明确访客草稿与账户保存的流程引导,提升表单生成质量。

  • 5998477 2026-08-20 16:44

Same Skill Collection

.cursor/skills/frontend-design/SKILL.md

Metadata

Files
0
Version
a9f76bb
Hash
f0fa21f2
Indexed
2026-08-20 16:44

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 19:03
浙ICP备14020137号-1 $Гость$