injective-cli
Skill6 starsChanged 4 months agoApache-2.0View on GitHub
Use the Injective `injectived` CLI against a chain with consistent wallet, endpoint, and gas handling. Use the CLI map and reference docs to find commands and build transactions safely.
- Installs packages
In this repository20 other files it gives its agents.
- injective-ai-cost-optimizationSkill
- injective-core-detect-changesSkill
- injective-docs-styleSkill
- injective-evm-developerSkill
- injective-faucetSkill
- injective-frontend-walletSkill
- injective-fundingSkill
- injective-mcp-serversSkill
- injective-rfq-integrationsSkill
- injective-trading-accountSkill
- injective-trading-autosignSkill
- injective-trading-bridgeSkill
- injective-trading-chain-analysisSkill
- injective-trading-frontend-uxSkill
- injective-trading-market-dataSkill
- injective-trading-stakingSkill
- injective-trading-tokensSkill
- injective-usdc-integrationSkill
- injective-wallet-opsSkill
- linear-cliSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 4 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use the injectived binary to query and transact against an Injective chain with consistent wallet handling, endpoint selection, and gas …
- Very specific: line 21
Use a local injectived binary if possible.
- Very specific: line 47
Use ~/.injectived as the home dir for config and key material, unless overridden by user.
- Very specific: line 48
Read endpoint and chain-id from ~/.injectived/config/client.toml (fields: node, chain-id).
- Distinctive: line 49
Use these defaults when configuring the client:
- Distinctive: line 55
Default behavior uses a passphrase-protected file keyring.
- Distinctive: line 56
If the keystore prompts for a passphrase, pipe it in:
- Very specific: line 60
Use ~/.injectived/keystore_password.txt only when the user explicitly opts in to storing the passphrase on disk.
- Very specific: line 61
Treat this as sensitive local secret material (file mode 600), and do not print passphrase contents in command output or logs.
- Very specific: line 62
Keep timeout 10s on keyring-touching commands to prevent hangs while waiting for unlock input.
- Distinctive: line 68
Never share raw HEX private keys in open channels or public communication.
- Very specific: line 70
Use --ledger flag on Ledger-backed transactions.
- Very specific: line 73
Use --yes on transactions to skip interactive confirmation.
- Very specific: line 74
Use --gas auto --gas-adjustment 1.5 --gas-prices 160000000inj for fee estimation.
- Very specific: line 75
After broadcasting, verify with injectived q tx <tx_hash>.
- Very specific: line 76
When creating a new keystore, store the passphrase in ~/.injectived/new_keystore_password.txt, remind the user to remember it, and delete …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Injective CLI, Skill Guide
Overview
Use the injectived binary to query and transact against an Injective chain with consistent wallet handling, endpoint selection, and gas configuration. Use the bundled CLI command map and reference docs to find the right subcommands and flags quickly.
By invoking any script in this skill, you agree to the Terms of Use in TERMS_OF_USE.
Workflow
1) Locate or install the binary
Use a local injectived binary if possible. If it is not on PATH,
npm i -g injective-core@latestOne-time commands can be run via npx injective-core, example: npx injective-core --version.
The rest of documentation will use injectived as a reference.
2) Use the CLI against the chain
Spot check critical paths (for example query, tx, keys) by running injectived <path> --help.
3) Refresh the CLI command map (as needed)
The command map should track the installed injectived binary. If you suspect a discrepancy between docs and the local binary, regenerate the map using the script in scripts/ and diff it against the current map.
Example:
python3 scripts/map_injectived_cli.py --output /tmp/injectived-cli-map.new.md
diff -u references/injectived-cli-map.md /tmp/injectived-cli-map.new.mdAccount and Endpoint Conventions
- Use
~/.injectivedas the home dir for config and key material, unless overridden by user. - Read endpoint and chain-id from
~/.injectived/config/client.toml(fields:node,chain-id). - Use these defaults when configuring the client:
- mainnet endpoint:
https://sentry.tm.injective.network:443 - mainnet chain-id:
injective-1 - testnet endpoint:
https://testnet.sentry.tm.injective.network:443 - testnet chain-id:
injective-888
- mainnet endpoint:
- Keyring handling:
- Default behavior uses a passphrase-protected file keyring.
- If the keystore prompts for a passphrase, pipe it in:
yes "passphrase" | timeout 10s injectived tx ...(one-off/manual passphrase entry pattern)cat ~/.injectived/keystore_password.txt | timeout 10s injectived tx ...(opt-in stored passphrase)
- Agent behavior for persisted passphrase files:
- Use
~/.injectived/keystore_password.txtonly when the user explicitly opts in to storing the passphrase on disk. - Treat this as sensitive local secret material (file mode
600), and do not print passphrase contents in command output or logs. - Keep
timeout 10son keyring-touching commands to prevent hangs while waiting for unlock input.
- Use
--keyring-backend testis available and skips passphrase prompts, but it is not safe and leaves private keys exposed. Use only for local, disposable workflows.- Raw Ethereum private key import/export uses unsafe commands:
injectived keys unsafe-export-eth-key <key_name>injectived keys unsafe-import-eth-key <key_name> <hex_private_key>
- These commands are marked unsafe, but they are the required path for raw HEX private key workflows.
- Never share raw HEX private keys in open channels or public communication.
- Ledger signing:
- Use
--ledgerflag on Ledger-backed transactions. - Example:
injectived tx bank send <from> <to> <amount> --ledger --chain-id injective-1 --gas auto --gas-prices 160000000inj --yes
- Use
- Use
--yeson transactions to skip interactive confirmation. - Use
--gas auto --gas-adjustment 1.5 --gas-prices 160000000injfor fee estimation. - After broadcasting, verify with
injectived q tx <tx_hash>. - When creating a new keystore, store the passphrase in
~/.injectived/new_keystore_password.txt, remind the user to remember it, and delete the file after use.
Resources
scripts/
map_injectived_cli.py: Recursively runsinjectived <cmd> --helpto refresh the CLI mapping of commands.
references/
injectived-cli-map.md: Command map for theinjectivedbinary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

