一键导入
smarkform-form-builder
Core skill for implementing SmarkForm forms — required rules, source priority, and a mandatory compliance checklist.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Core skill for implementing SmarkForm forms — required rules, source priority, and a mandatory compliance checklist.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | smarkform-form-builder |
| description | Core skill for implementing SmarkForm forms — required rules, source priority, and a mandatory compliance checklist. |
Generate production-ready SmarkForm forms that follow current SmarkForm patterns and avoid common implementation mistakes.
When implementing or modifying forms, consult sources in this order:
docs/_resources/AGENTS/SmarkForm-Forms.mddocs/_resources/AGENTS/SmarkForm-Usage.mdAGENTS/SmarkForm-Forms.mdAGENTS/SmarkForm-Usage.mdIf sources disagree, prefer the highest-priority source.
BeforeAction_* /
AfterAction_*) for form workflows.await myForm.rendered before any find() usage or
component-tree-dependent logic.item, empty_list, header, footer,
etc.).data-smark inheritance tricks).myForm as the SmarkForm instance variable in generated JS examples.
This keeps generated code consistent with the docs and makes it easier for
users to follow. The code works identically with any variable name.data-smark attributes on all managed fields.const myForm = new SmarkForm(document.getElementById("myForm"), options);await myForm.rendered;Every response that delivers SmarkForm code must include:
If any checklist item fails, the skill must treat output as incomplete and revise
it before finalizing. If revision is not possible, add a clear warning header
(SmarkForm compliance incomplete) and explicitly report unmet items and why.
Template below is intentionally unchecked in this skill spec. In generated outputs, agents must replace it with explicit pass/fail marks per item.
When generating output, evaluate each item and report explicit pass/fail status. Replace template markers with:
[x] for pass[ ] for failDo not leave this section as an untouched unchecked template.
data-smark.new SmarkForm(...) correctly.myForm convention (strongly recommended).await myForm.rendered before find() and component-dependent logic.BeforeAction_* /
AfterAction_*) where applicable.context / target paths follow SmarkForm rules.value="" plus JSON "value" on same
element).@0.16.0) and do not use @latest.skills/SmarkForm-Form-Builder.skill.md. The YAML front matter is
opencode-compatible; content is identical.