SKILL · OPENCLAW / ONCHAINOS
xflight-skill
Reusable proof verification skill for autonomous agents on X Layer. Verify Moltbook posts, tx hashes, and wallets. Generate proof cards and attest reports on-chain.
Installation
npm install xflight-skill
Available Commands
xflight.verify_moltbook_post{ url: string }
Verify a Moltbook BuildX post: extract claims, score evidence, generate Flight Score.
xflight.verify_tx{ txHash: string, chain?: string }
Verify a transaction hash on X Layer: sender, token transfers, route match.
xflight.verify_wallet{ address: string }
Verify a wallet on X Layer: existence, tx history, contract deployments.
xflight.generate_proof_card{ reportId: string }
Generate a shareable proof card from a verification report.
xflight.attest_report{ reportId: string }
Write a report hash to XFlightRecorder on X Layer.
Usage Example
import { xflight } from 'xflight-skill';
xflight.configure({
apiUrl: "https://xflight.vercel.app",
rpcUrl: "https://rpc.xlayer.tech",
});
// Verify a Moltbook post
const result = await xflight.verify_moltbook_post({
url: "https://www.moltbook.com/posts/abc123"
});
console.log(result.score); // 0-100
console.log(result.verdict); // strongly_verified | ...
console.log(result.proofUrl); // Shareable proof card URL
// Attest on X Layer
await xflight.attest_report({
reportId: result.reportId
});Flight Score Reference
85-100Strongly Verified
70-84Mostly Verified
50-69Partially Verified
25-49Weak Proof
0-24Unverified