Skip to content

fix(polymarket): add missing .claude-plugin/plugin.json#186

Merged
skylavis-sky merged 2 commits intoMigOKG:mainfrom
skylavis-sky:fix/polymarket-plugin-json
Apr 9, 2026
Merged

fix(polymarket): add missing .claude-plugin/plugin.json#186
skylavis-sky merged 2 commits intoMigOKG:mainfrom
skylavis-sky:fix/polymarket-plugin-json

Conversation

@skylavis-sky
Copy link
Copy Markdown
Collaborator

Summary

  • skills/polymarket/.claude-plugin/plugin.json was missing, causing agents to get a 404 when trying to load the polymarket skill
  • All other plugins (fenix, mayan, etc.) have this file — it was not generated by Phase 5 for polymarket due to the partial build issue
  • This file is required for skill discovery by the onchainos agent

Test plan

  • Agent can find and load the polymarket skill without 404

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

🔨 Phase 2: Build Verification — ❌ FAILED

Plugin: aave-v3 | Language: rust
Source: skylavis-sky/onchainos-plugins@6882d08d

Compiled from developer source code by our CI. Users install our build artifacts.

Build failed. Check the workflow logs.


Source integrity: commit SHA 6882d08d56eb3be8f68700f92def6f0bfc997fe8 is the content fingerprint.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Phase 4: Summary + Pre-flight for aave-v3

Review below. AI Code Review is in a separate check.


SUMMARY.md

aave-v3

Lend and borrow crypto assets on Aave V3 — the leading decentralized liquidity protocol with over $43B TVL.

Highlights

  • Supply assets to earn yield across Ethereum, Polygon, Arbitrum, and Base
  • Borrow against collateral with variable interest rates
  • Real-time health factor monitoring to prevent liquidation
  • Enable/disable collateral and efficiency mode for optimized borrowing
  • Claim accrued rewards from lending activities
  • Automatic ERC-20 approval handling for seamless transactions
  • Dry-run simulation before executing any on-chain operations
  • Integration with onchainos wallet for secure transaction management
SKILL_SUMMARY.md

aave-v3 -- Skill Summary

Overview

This skill provides comprehensive access to Aave V3, the leading decentralized lending protocol, enabling users to supply assets for yield, borrow against collateral, monitor health factors, and manage positions across multiple chains (Ethereum, Polygon, Arbitrum, Base). All operations integrate with the onchainos wallet system and include safety checks like health factor monitoring and dry-run simulations to prevent liquidation risks.

Usage

Connect your wallet via onchainos wallet login, then use natural language commands like "supply 1000 USDC to aave" or "check my aave health factor". All write operations are simulated first with --dry-run before requesting user confirmation.

Commands

Command Description
aave-v3 supply --asset <TOKEN> --amount <AMOUNT> Deposit assets to earn interest
aave-v3 withdraw --asset <TOKEN> --amount <AMOUNT> Withdraw supplied assets
aave-v3 borrow --asset <ADDRESS> --amount <AMOUNT> Borrow against collateral
aave-v3 repay --asset <ADDRESS> --amount <AMOUNT> Repay borrowed debt
aave-v3 health-factor Check liquidation risk status
aave-v3 positions View all current positions
aave-v3 reserves List market rates and APYs
aave-v3 set-collateral --asset <ADDRESS> --enable Enable/disable collateral
aave-v3 set-emode --category <ID> Set efficiency mode
aave-v3 claim-rewards Claim accrued rewards

Triggers

Activate when users mention lending, borrowing, earning yield, or specific Aave-related phrases like "supply to aave", "borrow from aave", "aave health factor", "my aave positions", or "aave interest rates". Also triggers on DeFi portfolio management requests involving collateral and liquidation risk monitoring.

Auto-injected Pre-flight
## Pre-flight Dependencies (auto-injected by Plugin Store CI)

> Run once per session before first use. These checks ensure required tools are installed.

### Install onchainos CLI + Skills (auto-injected)

```bash
# 1. Install onchainos CLI
onchainos --version 2>/dev/null || curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh

# 2. Install onchainos skills (enables AI agent to use onchainos commands)
npx skills add okx/onchainos-skills --yes --global

# 3. Install plugin-store skills (enables plugin discovery and management)
npx skills add MigOKG/plugin-store --skill plugin-store --yes --global

Install aave-v3 binary (auto-injected)

if ! command -v aave-v3 >/dev/null 2>&1; then
  OS=$(uname -s | tr A-Z a-z)
  ARCH=$(uname -m)
  case "${OS}_${ARCH}" in
    darwin_arm64)  TARGET="aarch64-apple-darwin" ;;
    darwin_x86_64) TARGET="x86_64-apple-darwin" ;;
    linux_x86_64)  TARGET="x86_64-unknown-linux-gnu" ;;
    linux_aarch64) TARGET="aarch64-unknown-linux-gnu" ;;
  esac
  curl -fsSL "https://github.com/MigOKG/plugin-store/releases/download/plugins/aave-v3@0.1.0/aave-v3-${TARGET}" -o ~/.local/bin/aave-v3
  chmod +x ~/.local/bin/aave-v3
fi

Report install (auto-injected, runs once)

REPORT_FLAG="$HOME/.plugin-store/reported/aave-v3"
if [ ! -f "$REPORT_FLAG" ]; then
  mkdir -p "$HOME/.plugin-store/reported"
  # Device fingerprint → SHA256 → 32-char device ID
  DEV_RAW="$(hostname):$(uname -s):$(uname -m):$HOME"
  DEV_ID=$(echo -n "$DEV_RAW" | shasum -a 256 | head -c 32)
  # HMAC signature (obfuscated key, same as CLI binary)
  _K=$(echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | base64 -d 2>/dev/null || echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | openssl base64 -d)
  HMAC_SIG=$(echo -n "${_K}${DEV_ID}" | shasum -a 256 | head -c 8)
  DIV_ID="${DEV_ID}${HMAC_SIG}"
  unset _K
  # Report to Vercel stats
  curl -s -X POST "https://plugin-store-dun.vercel.app/install" \
    -H "Content-Type: application/json" \
    -d '{"name":"aave-v3","version":"0.1.0"}' >/dev/null 2>&1 || true
  # Report to OKX API (with HMAC-signed device token)
  curl -s -X POST "https://www.okx.com/priapi/v1/wallet/plugins/download/report" \
    -H "Content-Type: application/json" \
    -d '{"pluginName":"aave-v3","divId":"'"$DIV_ID"'"}' >/dev/null 2>&1 || true
  touch "$REPORT_FLAG"
fi


</details>

---
*Generated by Plugin Store CI after maintainer approval.*

@skylavis-sky skylavis-sky merged commit 15be507 into MigOKG:main Apr 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

📋 Phase 3: AI Code Review Report — Score: N/A/100

Plugin: aave-v3 | Recommendation: 👤 Manual review required

🔗 Reviewed against latest onchainos source code (live from main branch) | Model: unavailable via Anthropic API | Cost: N/A

This is an advisory report. It does NOT block merging. Final decision is made by human reviewers.


AI review FAILED (HTTP 400): prompt is too long: 1190979 tokens > 1000000 maximum. Request size: 3600030 bytes, plugin content: 2827496 bytes.


Generated by Claude AI via Anthropic API — review the full report before approving.

skylavis-sky added a commit to skylavis-sky/plugin-store that referenced this pull request Apr 9, 2026
…t-plugin-json"

This reverts commit 15be507, reversing
changes made to dd6c22c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant