Skip to content

Latest commit

 

History

History
333 lines (256 loc) · 18.3 KB

File metadata and controls

333 lines (256 loc) · 18.3 KB

Kaspa AI Agent Skill

🧠 Kaspa Ai Agent Skill

Kaspa researcher + engineering skill with cross-platform adapters for Codex, OpenAI-style agents, Claude, Cursor, OpenClaw, Gemini CLI, and generic LLM workflows.

🚀 What This Is

This repository publishes a reusable AI skill package for serious Kaspa research and engineering.

  • Skill ID: $kaspa-sovereign-architect-engine
  • Main skill file: SKILL.md
  • Release downloads: GitHub Releases
  • Published release: v1.6.2 - GitHub Releases and Packages
  • Repository skill version: v1.8.0 - deterministic sync, behavioral evaluations, transaction-plan safety, and live source intelligence, not yet published
  • Positioning: package-first distribution (not a website product)
  • Freshness model: current-aware, source-grounded, KIP-aware, and research-radar aware
  • Build scope: Kaspa protocol, wallet, indexer, WASM, dApp, Kdapp, and infrastructure work

🔥 What This Agent Is Good At

$kaspa-sovereign-architect-engine focuses on:

  • Kaspa research radar: economics, L1/L2, consensus, mining, KIPs, papers, and ecosystem engineering
  • Toccata R&D intelligence: branch-aware tracking for covenants, ZK opcodes, sequencing commitments, SilverScript, Based Apps, and vProgs
  • Toccata integration contracts: post-activation DAA gating, storageMass/storage_mass, compute_commit, fee-policy separation, miner template preservation, one-way DB migration, and separate wallet/indexer readiness
  • Protocol engineering: BlockDAG, GHOSTDAG, DAGKNIGHT status checks, mempool, UTXO semantics, and future-feature handling
  • KIP-aware analysis: separates research ideas, KIP proposals, merged code, activation, wallet/indexer support, and app usability
  • Indexer architecture: DAG-aware ordering, idempotent ingestion, dedupe, checkpoints, retries, sync lag, and query-layer separation
  • WASM + TypeScript apps: browser/Node separation, watch-only prototypes, wallet-provider signing, RPC trust assumptions
  • Wallet + UX safety: signing boundaries, custody warnings, phishing, UI spoofing, RPC hijacking, replay, and supply-chain risk
  • Backend and infrastructure reliability: APIs, workers, retries, caching, validation, observability, deployment, and recovery plans

⚡ Quick Start (Codex)

Use the skill name in your prompt:

$kaspa-sovereign-architect-engine
Design a production-ready Kaspa indexer + API with retry-safe workers and monitoring.

Or embed it directly:

Use $kaspa-sovereign-architect-engine to audit my wallet backend for replay, nonce, and signing risks.

🛰 Example Prompts

Use $kaspa-sovereign-architect-engine in Research Radar mode. Check what is new across Kaspa Research categories and identify builder-relevant changes.
Use $kaspa-sovereign-architect-engine in Engineering Build Plan mode. Design a testnet-first Kaspa WASM wallet dashboard with watch-only mode and safe signing boundaries.
Use $kaspa-sovereign-architect-engine in Deep Protocol Audit mode. Audit a Kaspa indexer design for DAG-aware ordering, idempotency, replay handling, and sync lag.
Use $kaspa-sovereign-architect-engine in KIP Status mode. Build a table of relevant KIPs, their activation status, builder impact, and what must be verified.
Use $kaspa-sovereign-architect-engine in Toccata R&D Intelligence mode. Re-check Rusty Kaspa v2.0.0, current mainnet DAA versus activation DAA 474165565, recent branch-delta impact lanes, KIP-16/17/20/21, and produce the next covenant/indexer/wallet compatibility plan.

🧩 Compatibility Matrix

Platform Status Adapter
Codex ✅ Native SKILL.md
OpenAI-style agents ✅ Adapter agents/openai.yaml
Claude / Anthropic ✅ Adapter agents/anthropic.md
Cursor ✅ Adapter agents/cursor.mdc
OpenClaw ✅ Adapter agents/openclaw.md
Gemini CLI ✅ Adapter agents/gemini.md
Any LLM platform ✅ Adapter agents/generic-system-prompt.md

Compatibility metadata:

Automated verification:

Live Kaspa source intelligence:

Toccata source monitoring:

  • Toccata Source Monitor workflow
  • Agent Toccata Smoke workflow
  • Toccata builder guide: docs/toccata.md
  • Toccata evidence ladder: docs/toccata-evidence-ladder.md
  • Toccata mastery track: docs/kaspa/toccata-mastery-track.md
  • Toccata upgrade readiness: docs/kaspa/toccata-upgrade-readiness.md
  • Covenant lineage indexer notes: docs/kaspa/covenant-lineage-indexer.md
  • Wallet covenant-signing preview: docs/kaspa/wallet-covenant-signing-preview.md
  • ZK proof-cost matrix: docs/kaspa/zk-proof-cost-matrix.md
  • Sequencing witness API sketch: docs/kaspa/sequencing-witness-api.md
  • vProg scope simulator notes: docs/kaspa/vprog-scope-simulator.md
  • Mainnet readiness gate: docs/kaspa/mainnet-readiness-gate.md
  • Kaspa App Lab: docs/kaspa/kaspa-app-lab.md
  • Toccata readiness approvals ledger: READINESS_APPROVALS.md
  • Machine-readable snapshot: research-snapshots/toccata/latest.json
  • Reviewer snapshot: research-snapshots/toccata/latest.md
  • Mainnet/TN10/TN12 RPC smoke-test notes: research-snapshots/toccata/rpc-smoke-tests.md
  • Monitor script: scripts/toccata-source-monitor.mjs
  • Monitor tests: node --test scripts/toccata-source-monitor.test.mjs
  • Local knowledge drill: node scripts/kaspa-knowledge-drill.mjs
  • Covenant lineage prototype: node scripts/covenant-lineage-prototype.mjs --check-all
  • vProg scope simulator: node scripts/vprog-scope-simulator.mjs --check
  • Network endpoint checker: node scripts/toccata-network-check.mjs --check
  • Mainnet readiness gate: node scripts/toccata-mainnet-readiness-gate.mjs --check
  • Protocol mastery drill: node scripts/toccata-protocol-drill.mjs --check
  • Protocol adversarial drill: ! node scripts/toccata-protocol-drill.mjs --responses fixtures/toccata/protocol-drill-adversarial-responses.json
  • Captured response drill: node scripts/toccata-captured-responses-check.mjs --check
  • Ecosystem readiness audit: node scripts/toccata-ecosystem-readiness-audit.mjs --check
  • Live covenant/indexer fixture intake: node scripts/toccata-live-fixture-check.mjs --check
  • Live covenant/indexer export: node scripts/toccata-live-covenant-export.mjs --check
  • ZK proof-cost benchmark baseline: node scripts/toccata-zk-benchmark-check.mjs --check
  • Kaspa App Lab reducer: node scripts/toccata-app-lab.mjs --check-all
  • Readiness approval ledger gate: node scripts/toccata-readiness-approvals-check.mjs --check
  • Behavioral contract evaluations: node skills/public/kaspa-sovereign-architect-engine/scripts/run-behavioral-evals.mjs --check
  • Transaction-plan safety gate: node skills/public/kaspa-sovereign-architect-engine/scripts/lint-transaction-plan.mjs --check
  • Release packages bundle the skill plus adapters, references, system architecture, protocol training sources, Toccata builder/readiness/mastery/App Lab docs, readiness approvals, fixtures, captured responses, source snapshots, helper modules, protocol drills, readiness audit checks, and deterministic tests under the installed skill directory.
  • Claim rule: current source snapshot verifies Toccata protocol activation on mainnet by live kaspa-mainnet DAA evidence; wallet/indexer readiness is still a separate claim.
  • Evidence lane status: a real public mainnet covenant/indexer export is captured under fixtures/toccata/live-covenant-indexer-mainnet-latest.json; ZK proof-cost data is measured_partial from upstream Rusty Kaspa Criterion benches, with invalid/malformed proof-cost gaps still open.
  • App Lab status: local covenant app fixtures cover vault/escrow, stateful registry, and atomic-swap-style flows, but remain local reducer evidence only. Wallet, indexer, miner, explorer, and application readiness must be recorded in READINESS_APPROVALS.md before being claimed.

Agent operating rule:

  • Non-trivial autonomous work follows SYSTEM_ARCHITECTURE.md: Plan, Act, Verify, and record meaningful trace evidence in AGENT_TRACE.md.
  • Before protocol, transaction, covenant, sequencing, wallet, indexer, or architecture work, load TRAINING_SOURCES.md and cite the governing source tier, URL, or local path before proposing changes.
  • For Toccata builder work, load docs/toccata.md and use official/repo-backed sources only.
  • For repository work, docs/kaspa/ and docs/toccata-evidence-ladder.md are the Toccata builder source of truth.
  • For mastery work, use docs/kaspa/toccata-mastery-track.md and the protocol drill runner to turn claims into repeatable checks.
  • In Toccata R&D Intelligence mode, covenant-related proposals must cite the governing requirement from the playbook, evidence ladder, or the relevant docs/kaspa note before code changes.
  • Hard-won fixes should be appended to AGENTS.md as a Pattern of Success: [Problem] | [Kaspa Protocol Constraint] | [Solution].
  • Agent-facing Toccata changes are smoke-gated by node scripts/toccata-network-check.mjs --check and node scripts/toccata-mainnet-readiness-gate.mjs --check.

🛠 Install

Option A: Install latest release (recommended)

mkdir -p "$CODEX_HOME/skills"
curl -L -o /tmp/kaspa-sovereign-architect-engine.zip \
  https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/kaspa-sovereign-architect-engine.zip
unzip -o /tmp/kaspa-sovereign-architect-engine.zip -d "$CODEX_HOME/skills"

Verify artifact integrity:

curl -L -o /tmp/SHA256SUMS.txt \
  https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/SHA256SUMS.txt
(cd /tmp && grep "kaspa-sovereign-architect-engine.zip$" SHA256SUMS.txt | shasum -a 256 -c -)

Alternative tarball install:

curl -L -o /tmp/kaspa-sovereign-architect-engine.tar.gz \
  https://github.com/gryszzz/Kaspa-Ai-Agent-Skill/releases/latest/download/kaspa-sovereign-architect-engine.tar.gz
tar -xzf /tmp/kaspa-sovereign-architect-engine.tar.gz -C "$CODEX_HOME/skills"

Option B: Pull from GitHub Packages

The currently published skill is also available as an OCI artifact in GitHub Packages:

oras pull ghcr.io/gryszzz/kaspa-sovereign-architect-engine:v1.6.2

The package contains the versioned ZIP, versioned tarball, and SHA256SUMS.txt. Use the GitHub Release ZIP install path when you want the simplest Codex installation flow.

Option C: Install from source

mkdir -p "$CODEX_HOME/skills/public"
cp -R skills/public/kaspa-sovereign-architect-engine "$CODEX_HOME/skills/public/"

Option D: Install scripts

macOS/Linux:

./skills/public/kaspa-sovereign-architect-engine/scripts/install-codex.sh

Windows PowerShell:

.\skills\public\kaspa-sovereign-architect-engine\scripts\install-codex.ps1

Export adapter bundle:

./skills/public/kaspa-sovereign-architect-engine/scripts/export-adapters.sh

Safe repository/local synchronization

The repository skill directory is canonical. Preview deterministic drift before copying in either direction:

node skills/public/kaspa-sovereign-architect-engine/scripts/sync-local-skill.mjs \
  --check --report /tmp/kaspa-skill-drift.json

Dry-run is the default. Use --to-local or --from-local to select a direction, and add --apply only after reviewing the report. Conflicts block writes unless --force is explicit; use --backup when resolving them. See local-skill-sync.md for the full workflow.

Option E: Install for OpenClaw

OpenClaw loads AgentSkills-compatible folders from ~/.openclaw/skills or <workspace>/skills.

Install globally for OpenClaw (macOS/Linux):

./skills/public/kaspa-sovereign-architect-engine/scripts/install-openclaw.sh

Install manually into an OpenClaw workspace:

mkdir -p ./skills
cp -R skills/public/kaspa-sovereign-architect-engine ./skills/

Option F: Install for Gemini CLI

Gemini CLI loads context from ~/.gemini/GEMINI.md and supports @ imports.

Install adapter globally (macOS/Linux):

./skills/public/kaspa-sovereign-architect-engine/scripts/install-gemini.sh

Manual install:

mkdir -p ~/.gemini
cp skills/public/kaspa-sovereign-architect-engine/agents/gemini.md ~/.gemini/kaspa-sovereign-architect-engine.gemini.md
printf "\n@%s\n" "$HOME/.gemini/kaspa-sovereign-architect-engine.gemini.md" >> ~/.gemini/GEMINI.md

🌍 Use Outside Codex

  1. Open an adapter file from agents/.
  2. Copy its contents into your platform's system/developer instructions.
  3. Add your actual task prompt.

Example task prompt:

Design a Kaspa DAG-aware indexer for 100k users with failure recovery and replay-safe event handling.

📦 Releases

🌐 Deploy + Marketing

📁 Repository Map