CKB Contract Flow

CKB 合约 Cell 流转约束CKB Contract Cell-Flow Constraints

把每个 CKB 合约拆成状态转换:输入 Cell → 输出 Cell,高亮被约束的字段,逐条列出条件与错误码。Every CKB contract broken into state transitions: input cells → output cells, constrained fields highlighted, each condition listed with its error code.

给 AI agent:For AI agents: llms.txt · contracts.json · decode-tx.js

链上交易解码器On-chain Transaction Decoder

粘贴交易 hash,一键拆成 cell 流转卡片,并按合约规则逐条检查Paste a tx hash to split it into cell-flow cards and check each contract rule

打开完整解码器 →Open full decoder →
类型Kind
分类Category
网络Network
源码Source
维护方Maintainer
项目Project
AI 生成Generate with AI

没找到你的合约?
一句话让 AI 生成
Contract not listed?
Generate it in one sentence

把这句话发给任意 coding agent:它会按 SKILL.md 的步骤读取合约源码,在本地生成和这里同样格式的 cell 流转页面。无需安装。Paste this sentence into any coding agent: it follows SKILL.md, reads the contract source and builds the same kind of cell-flow page locally. No install needed.

  1. 填入合约仓库Enter the contract repoGitHub 链接或本地路径都可以A GitHub URL or a local path
  2. 复制这句话Copy the sentence点「复制」或在输入框里按回车Click Copy, or press Enter in the field
  3. 发给你的 coding agentPaste it into your coding agentClaude Code · Cursor · Codex …

复制的是完整句子,含 SKILL.md 链接Copies the full sentence, SKILL.md link included
可选:安装为 skillOptional: install as a skill

任选一种装好后,只需对 agent 说「用 ckb-contract-flow 给 <仓库> 生成合约流转 HTML」。Pick any one; afterwards just tell your agent "use ckb-contract-flow for <repo>".

  • npxnpx skills add gpBlockchain/ckb-contract-flow-html -g -y -a claude-code cursor codex
  • curlcurl -fsSL https://raw.githubusercontent.com/gpBlockchain/ckb-contract-flow-html/main/install.sh | sh
  • Claude Code/plugin marketplace add gpBlockchain/ckb-contract-flow-html
  • /plugin install ckb-contract-flow@ckb-contract-flow-html
SKILL.md →

贡献者Contributors

欢迎贡献新合约:见 docs/ADD_CONTRACT.md,并在 meta.json 的 contributors 中加上你的 GitHub 用户名。New contracts welcome: see docs/ADD_CONTRACT.md and add your GitHub username to contributors in meta.json.