wrappedcbdc/cNGN_api_skill
Source repository for the skill.
The skill teaches an agent how the API behaves. It is not a runtime dependency and it does
not replace the official SDKs, which do the actual encryption work in your
application.
Why agents need it
Three parts of this API are easy to get wrong from general knowledge alone, and the skill front-loads all three:Payloads are encrypted in both directions
Payloads are encrypted in both directions
POST and PUT bodies must be AES-256-CBC encrypted into {content, iv}, and the data
field of every success response is encrypted to your Ed25519 public key. An agent working
from REST conventions alone sends plain JSON and gets
400 Missing encryption data, key, or IV. See Encryption.Network IDs are environment-specific
Network IDs are environment-specific
networkId is a database identifier that differs between test and live. Agents like to
hard-code identifiers they have seen once. The skill requires resolving them at runtime
from Get Networks and skipping networks where isDisabled
is true. See Networks.Money-moving endpoints must not be retried blindly
Money-moving endpoints must not be retried blindly
A timeout on Redeem Asset, Withdraw,
or Bridge does not mean the request was not processed. The skill
requires confirming state with Verify Withdrawal or
Get Transactions before any retry. See
Error Reference.
What it covers
Install for Claude Code
1
Add the marketplace
2
Install the plugin
3
Start building
The skill activates on its own when a task mentions cNGN,
cngn_test or cngn_live keys,
or Naira stablecoin payouts. Invoke it explicitly with /cngn-api.Use with other agents
Every file in the skill is plain Markdown with no tool-specific syntax, so any agent can read it.- Codex, Cursor, Gemini CLI
- Claude API and claude.ai
- GitHub Copilot
- Tool-calling agents
These read
AGENTS.md from your repository root. Clone the skill into your project, or
copy AGENTS.md and the skills/cngn-api/ directory into it:Verifying your keys
The skill ships a helper that exercises both encryption directions locally, which is the fastest way to tell a key problem from an API problem:- as the key reads CNGN_ENCRYPTION_KEY from the environment, so the secret
stays out of your shell history.
Staying current
The skill is generated from this documentation site, which is in turn documented from the cNGN API itself. When an endpoint changes here, the matching reference file and the OpenAPI description in the skill repository are updated and its version is bumped. Re-run/plugin marketplace update cngn-skills in Claude Code, or pull the repository, to
pick up changes.