write-contract
编写生产级 GenLayer 合约
GenLayer 合约需要固定版本的运行器、稳定的共识规则以及谨慎的 LLM 处理方式。此技能可指导 Claude、Codex 和 Claude Code 完成生产级合约的设计与审查。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "write-contract" from https://skillstore.io/skills/internet-court-write-contract.md and its manifest at https://skillstore.io/api/skills/internet-court-write-contract/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“write-contract”。 为包含已提交证据的内容审核申诉创建一个 GenLayer 合约。
预期结果:
一份合约大纲,其中包含固定版本运行器指南、申诉记录、提交和解决方法、比较式验证标准以及必要测试。
正在使用“write-contract”。 审查我根据公共网站信息结算预测结果的想法。
预期结果:
一份边界说明,将预览保留在链下,在结算期间获取来源证据,生成稳定状态,并避免使用可变字段。
正在使用“write-contract”。 改进评分合约的 LLM 解析。
预期结果:
一份解析方案,其中包含响应格式指南、键名别名、数值强制转换、带类型的错误前缀以及验证器一致性规则。
安全审计
安全Three eval-related findings are confirmed because the skill recommends executing LLM-generated expressions, despite restricted builtins and a sandbox. The remaining static findings are false positives caused by markdown backticks, headings, prose, or legitimate web and RPC guidance.
能力复核项 (3)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚡ 包含脚本 (4)
⚙️ 外部命令 (50)
🌐 网络访问 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/internet-court-write-contract/audits/3?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/internet-court-write-contract?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/internet-court-write-contract?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-write-contract/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/internet-court-write-contract.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
internet-court. (2026). write-contract security audit report (audit version 3) [Author version unspecified]. Skillstore. https://skillstore.io/skills/internet-court-write-contract/audits/3BibTeX 引用
@techreport{internet-court-internet-court-write-contract-2026,
author = {internet-court},
title = {write-contract security audit report (audit version 3)},
institution = {Skillstore},
year = {2026},
number = {3},
url = {https://skillstore.io/skills/internet-court-write-contract/audits/3},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "write-contract security audit report (audit version 3)"
version: "unspecified"
type: report
authors:
- name: "internet-court"
date-released: "2026-08-07"
url: "https://skillstore.io/skills/internet-court-write-contract/audits/3"
identifiers:
- type: other
value: "skillstore:internet-court-write-contract:audit:3"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
构建争议处理合约
产品团队可以将托管或申诉规则转换为具有证据、结算和验证器边界的合约设计。
审查共识逻辑
智能合约开发者可以选择合适的等价原则,并避免针对 AI 或 Web 输出仅由领导者进行验证。
强化合约存储
协议工程师可以在部署管理持久状态的合约之前应用存储、错误和升级规则。
试试这些提示
使用 write-contract 为我的功能起草一个 GenLayer 合约。包括固定版本的运行器、存储字段、公共方法和测试。
使用 write-contract 确定此工作流中哪些内容应放在链上:[描述工作流]。识别证据、结算效果和链下职责。
使用 write-contract 审查这个基于 LLM 的合约流程。改进等价原则、验证器检查、错误处理和解析策略。
使用 write-contract 设计一个多合约 GenLayer 工作流,其中包括发出写入操作、工作合约部署、RPC 验证、存储布局和集成测试。
最佳实践
- 在编写合约逻辑之前固定 GenVM 运行器版本。
- 让验证器依据源数据或第二次运行结果独立验证领导者的结果。
- 在部署前运行代码检查和共识集成测试。
避免
- 在生成的合约中使用 py-genlayer:test、py-genlayer:latest 或未指定版本的运行器别名。
- 仅检查响应结构或标签,同时直接接受领导者给出的实质性答案。
- 将 Python 列表、字典、用于表示货币的浮点数或枚举直接存储在合约状态中。
常见问题
此技能可以帮助创建什么?
它能编写可直接部署的合约吗?
哪些工具可以使用它?
它能处理 LLM 输出吗?
它能设计跨合约流程吗?
用户应该仔细审查哪些内容?
开发者详情
许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
仓库
https://github.com/internet-court/internet-court-skill/tree/main/vendored/genlayer/write-contract引用
1c2ebded2116f8124f45dba86a2e567f56e64d8e
维护新鲜度
2026/8/7
使用量
3 次下载 · 0 次浏览
文件结构