Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

qedgenqedgen 搜索

Agent Skill

qedgen 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,473

周安装

62

GitHub Stars

52

下载量

516
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qedgen(qedgen 搜索)
来源仓库:https://github.com/qedgen/solana-skills
仓库路径:skills/qedgen
安装命令:
npx skills add https://github.com/qedgen/solana-skills --skill qedgen
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/qedgen/solana-skills --skill qedgen

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 使用时可结合来源仓库和原始 README 核验用法。
  • 安装前建议确认权限范围和是否会触发文件读写。
  • 注意维护状态和网络访问限制。qedgen 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

QEDGen

Trigger And Mission

Use this skill when the user wants to verify Solana program behavior, write or review a .qedspec, generate verification artifacts, onboard an existing Anchor program, or keep generated artifacts in sync.

Mission:

  • Read the source before writing the spec.
  • Treat .qedspec as the single source of truth.
  • Use qedgen check to validate the spec.
  • Use qedgen codegen to scaffold generated artifacts.
  • Fill generated Rust handler TODOs as an agent task, then build and test.
  • Use qedgen verify and drift gates to keep proofs and code synchronized.

Do not present generated Rust as complete business logic. Anchor and Quasar output is an implementation scaffold. Handler files can intentionally contain todo!() for transfers, events, CPI wiring, and non-mechanical effects until the agent fills them.

How To Run QEDGen

Prefer the installed skill wrapper when available:

QEDGEN="$HOME/.agents/skills/qedgen/tools/qedgen"

From a repo checkout, the local binary also works:

cargo run -p qedgen-solana-skills -- <command>

Every write path expects a git repo. If the command errors outside a repo, run git init or move into the project root.

Common commands:

$QEDGEN check --spec program.qedspec
$QEDGEN codegen --spec program.qedspec --all
$QEDGEN verify --spec program.qedspec
$QEDGEN reconcile --spec program.qedspec --code programs/ --proofs formal_verification/

Release and repo-maintenance gates:

bash scripts/check-version-consistency.sh
bash scripts/check-readme-drift.sh
$QEDGEN check --regen-drift

Read references/cli.md for the full CLI surface and flags.

Flow: Validate -> Scaffold -> Fill -> Verify

Step 1. Understand the program.

Read the Rust source, tests, account model, authorities, PDAs, token flows, arithmetic, and lifecycle. For a returning QEDGen project, read the .qedspec next to the code. Do not treat Spec.lean as source; it is generated.

Step 2. Validate the spec.

$QEDGEN check --spec program.qedspec --coverage
$QEDGEN check --spec program.qedspec --json

Fix lint, coverage, import, lifecycle, arithmetic, and CPI-shape findings in the .qedspec first. The spec should describe the intended behavior before codegen or proof work begins.

Step 3. Scaffold generated artifacts.

$QEDGEN codegen --spec program.qedspec --target anchor --all

Use --target quasar for Quasar. Pinocchio is reserved and should not be promised as complete.

Step 4. Fill generated Rust.

Open generated handler files that contain todo!(). Fill business logic using the guard calls, state structs, and spec effects as the contract. Then run the framework build and tests until compile-clean:

cargo check --manifest-path programs/Cargo.toml
cargo test --manifest-path programs/Cargo.toml

Step 5. Verify generated backends.

$QEDGEN verify --spec program.qedspec --proptest
$QEDGEN verify --spec program.qedspec --kani
$QEDGEN verify --spec program.qedspec --lean

Run only the backends relevant to artifacts present in the project. For generated examples in this repo, also run:

$QEDGEN check --regen-drift

Brownfield Onboarding

For an existing Anchor program:

$QEDGEN adapt --program programs/my_program --out program.qedspec

Then fill TODOs in the .qedspec, validate it, and cross-check against the live program:

$QEDGEN check --spec program.qedspec --anchor-project programs/my_program

After the spec covers each handler, stamp source drift attributes:

$QEDGEN adapt --program programs/my_program --spec program.qedspec

Paste the emitted #[qed(verified,...)] attributes above the matching handler functions. Future handler-body, accounts-constraint, or spec edits should fail the build until the attributes are intentionally refreshed.

If handler dispatch is non-standard, use explicit overrides:

$QEDGEN adapt --program programs/my_program --handler deposit=processor::deposit

For IDL-only onboarding:

$QEDGEN spec --idl target/idl/my_program.json

IDL scaffolds are shape-only. They need source review before they can express semantic guarantees.

Codegen Ownership

Generated and always safe to regenerate:

PathOwnerNotes
Cargo.tomlQEDGenFramework dependencies and macro dependency
src/state.rsQEDGenAccount/state structs and lifecycle status
src/events.rsQEDGenEvent structs
src/errors.rsQEDGenError enum plus operational variants
src/guards.rsQEDGenRequires, aborts, lifecycle, PDA, and token-authority checks
src/math.rsQEDGenEmitted only when helper arithmetic is needed
src/instructions/mod.rsQEDGenModule declarations and Quasar re-exports
tests/kani.rsQEDGenKani harnesses
tests/proptest.rsQEDGenProperty-test harnesses
src/tests.rsQEDGenUnit tests when requested
src/integration_tests.rsQEDGenIntegration-test scaffold when requested
formal_verification/Spec.leanQEDGenLean model generated from .qedspec

User-owned after first scaffold:

PathOwnerNotes
src/lib.rsUser or agentCrate shell can gain custom imports/modules
src/instructions/<handler>.rsUser or agentBusiness logic and generated TODOs live here
formal_verification/Proofs.leanUser or agentDurable Lean proofs
Existing project testsUser or agentDo not replace with generated tests

Generated support code should compile around intentional handler TODOs. If support code fails to compile, fix the generator or generated support. If handler business logic is missing, fill the handler.

Proof Handoff

Use proof engineering only when tests and bounded model checking are insufficient.

Use proptest for:

  • Fast counterexamples during spec iteration.
  • Randomized state transitions.
  • Cheap regression checks.

Use Kani for:

  • Access control.
  • Arithmetic safety.
  • Conservation and isolation invariants.
  • Bounded state-machine properties.

Use Lean for:

  • DeFi math that needs symbolic reasoning beyond bounded search.
  • Wide arithmetic solvency arguments.
  • Inductive sBPF bytecode proofs.
  • Proof obligations where Kani/proptest cannot give enough confidence.

Use Leanstral for routine sorry filling and Aristotle for harder long-running proof search. Read references/proof-patterns.md before proof repair and references/sbpf.md for sBPF.

Always run lake build after editing Lean and run qedgen check after proofs compile so orphan or missing obligations are reported.

References

Load references on demand. Do not bulk-load all files.

ReferenceUse When
references/cli.mdFull command and flag details
references/qedspec-dsl.mdDSL syntax and modeling patterns
references/qedspec-imports.mdimport, qed.toml, qed.lock, --frozen, upstream checks
references/qedspec-anchor.mdAnchor adapter and brownfield coverage checks
references/adversarial-probes.mdAgent-walked attack-surface checklist
references/proof-patterns.mdLean proof tactics and repair patterns
references/support-library.mdLean support library types and lemmas
references/sbpf.mdsBPF assembly verification
references/kani-examples.mdLonger Kani harness examples moved out of the skill
references/brownfield-testing.mdExisting-test strategy for brownfield projects
references/skill-operations.mdGit hygiene, learning capture, environment, and error handling
references/release-history.mdVersion-feature history moved out of the skill

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.57%
按下载量换算184

Claude

33.36%
按下载量换算172

Cursor

18.24%
按下载量换算94

Gemini CLI

9.21%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/qedgen/solana-skills --skill qedgen 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills