Skip to content

feat: add NEAR jsonrpc skill#312

Merged
jolestar merged 1 commit intomainfrom
feature/near-jsonrpc-skill
Mar 18, 2026
Merged

feat: add NEAR jsonrpc skill#312
jolestar merged 1 commit intomainfrom
feature/near-jsonrpc-skill

Conversation

@jolestar
Copy link
Collaborator

What

  • add skills/near-jsonrpc-skill
  • add provider-aware usage guidance for NEAR read-only JSON-RPC workflows
  • update docs/skills.md

Why

NEAR adds real chain-surface diversity, but the old near.org and pagoda.co public RPC endpoints are now deprecated.

This PR keeps the wrapper thin and practical by documenting a provider-aware default based on the official NEAR RPC providers page instead of hardcoding deprecated hosts.

How

  • package the standard skill files: SKILL.md, agents/openai.yaml, references/usage-patterns.md, scripts/validate.sh
  • scope v1 to read-only methods: status, query, block, chunk, gas_price, and validators
  • default to https://free.rpc.fastnear.com with explicit provider override guidance

Testing

  • bash skills/near-jsonrpc-skill/scripts/validate.sh
  • cargo fmt --check

Closes #310
Refs #168

Copilot AI review requested due to automatic review settings March 18, 2026 06:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new first-party NEAR JSON-RPC wrapper skill to the skills/* catalog, focused on provider-aware, read-only NEAR mainnet workflows (avoiding deprecated public endpoints) and aligned with the repo’s skill packaging + validation approach.

Changes:

  • Introduce skills/near-jsonrpc-skill with SKILL.md, agents/openai.yaml, and references/usage-patterns.md documenting a read-only NEAR JSON-RPC surface and provider override guidance.
  • Add a scripts/validate.sh for the new skill.
  • Register the new skill (and its validator) in docs/skills.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
skills/near-jsonrpc-skill/SKILL.md Documents scope, default provider, deprecated endpoint guardrails, and core NEAR read workflows.
skills/near-jsonrpc-skill/references/usage-patterns.md Provides copy/paste usage patterns including provider override and “fallback equivalence”.
skills/near-jsonrpc-skill/agents/openai.yaml Adds agent interface metadata + default prompt referencing $near-jsonrpc-skill.
skills/near-jsonrpc-skill/scripts/validate.sh Validates required files + key doc guardrails/examples for the new skill.
docs/skills.md Adds the NEAR JSON-RPC skill to the catalog and includes its validation command in maintenance rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

rg -q '^name:\s*near-jsonrpc-skill\s*$' "${SKILL_FILE}" || fail 'invalid skill name'
rg -q '^description:\s*.+' "${SKILL_FILE}" || fail 'missing description'
rg -q 'command -v near-jsonrpc-cli' "${SKILL_FILE}" || fail 'missing link-first command check'
rg -q 'uxc link near-jsonrpc-cli https://free.rpc.fastnear.com' "${SKILL_FILE}" "${USAGE_FILE}" || fail 'missing fixed link create command'
rg -q '^description:\s*.+' "${SKILL_FILE}" || fail 'missing description'
rg -q 'command -v near-jsonrpc-cli' "${SKILL_FILE}" || fail 'missing link-first command check'
rg -q 'uxc link near-jsonrpc-cli https://free.rpc.fastnear.com' "${SKILL_FILE}" "${USAGE_FILE}" || fail 'missing fixed link create command'
rg -q 'near.org' "${SKILL_FILE}" || fail 'missing deprecated endpoint warning'
rg -q 'near.org' "${SKILL_FILE}" || fail 'missing deprecated endpoint warning'
rg -q 'status' "${SKILL_FILE}" || fail 'missing status method guidance'
rg -q 'gas_price' "${SKILL_FILE}" || fail 'missing gas_price method guidance'
rg -q 'validators' "${SKILL_FILE}" || fail 'missing validators method guidance'
rg -q 'validators' "${SKILL_FILE}" || fail 'missing validators method guidance'
rg -q 'read-only' "${SKILL_FILE}" || fail 'missing read-only guardrail'

if rg -q -- "--args\\s+'\\{" "${SKILL_FILE}" "${USAGE_FILE}"; then
@jolestar jolestar force-pushed the feature/near-jsonrpc-skill branch from 61a3022 to fc1d506 Compare March 18, 2026 10:04
@jolestar jolestar merged commit b39e8e7 into main Mar 18, 2026
18 checks passed
@jolestar jolestar deleted the feature/near-jsonrpc-skill branch March 18, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add NEAR jsonrpc skill

2 participants