internet-court/internet-court-skill / vendored/sendaifun/glam
glam
VerifiedSolana vault management via GLAM Protocol. Triggers: glam, glam-cli, glam-sdk, vault create/manage, tokenized vault, share class, DeFi vault, treasury, asset management, access control, delegate permissions, Jupiter swap, Kamino lending/borrow/vaults/farms, staking (Marinade/native/SPL/Sanctum/LST), cross-chain USDC (CCTP), timelock, subscription/redemption, NAV pricing, token transfer. Supports CLI and TypeScript SDK.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.1 KB |
| SKILL.md | skill md | 7.2 KB |
| docs/troubleshooting.md | markdown | 4.8 KB |
| evaluations.json | config | 10.7 KB |
| examples/EXAMPLES.md | markdown | 10.9 KB |
| resources/cli/advanced.md | markdown | 4.1 KB |
| resources/cli/alt.md | markdown | 1.6 KB |
| resources/cli/delegate.md | markdown | 3.6 KB |
| resources/cli/invest.md | markdown | 1.8 KB |
| resources/cli/jupiter.md | markdown | 2.8 KB |
| resources/cli/kamino-farms.md | markdown | 2.1 KB |
| resources/cli/kamino-lend.md | markdown | 3.4 KB |
| resources/cli/kamino-vaults.md | markdown | 2.3 KB |
| resources/cli/lst.md | markdown | 2.8 KB |
| resources/cli/manage.md | markdown | 2.9 KB |
| resources/cli/staking.md | markdown | 3.8 KB |
| resources/cli/transfer.md | markdown | 1.9 KB |
| resources/cli/vault.md | markdown | 8.0 KB |
| resources/concepts.md | markdown | 6.9 KB |
| resources/sdk/client.md | markdown | 10.3 KB |
| resources/sdk/integrations.md | markdown | 9.7 KB |
| resources/sdk/ix-mapper.md | markdown | 3.9 KB |
| resources/sdk/mint.md | markdown | 2.8 KB |
| resources/sdk/multisig.md | markdown | 3.3 KB |
docs/troubleshooting.md
View on GitHub# GLAM Troubleshooting
## Installation
| Error | Solution |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `EACCES: permission denied` (npm install) | Use `npx @glamsystems/glam-cli` instead, or fix npm prefix: `npm config set prefix ~/.npm-global` |
| `Cannot find module '@glamsystems/glam-sdk'` | Install peer deps: `npm install @solana/web3.js @coral-xyz/anchor` |
## Configuration
Config file: `~/.config/glam/config.json`
```json
{
"keypair_path": "~/.config/solana/id.json",
"json_rpc_url": "https://api.mainnet-beta.solana.com"
}
```
| Error | Solution |
| ---------------------------------------------------------- | ----------------------------------------------------------------------- |
| `Keypair file not found` / `keypairPath is not configured` | Create config file above. Create keypair if needed: `solana-keygen new` |
| `Invalid secret key` | Keypair must be JSON array of 64 numbers: `[123,45,67,...]` |
## Transactions
| Error | Solution |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `Attempt to debit an account but found no record of a prior credit` | Check `solana balance` and `glam-cli vault token-balances` |
| `Transaction simulation failed` | Verify integration is enabled: `glam-cli vault view` |
| `Transaction was not confirmed or block height exceeded/expired` | Check if transaction is landed. Retry, or switch to a faster RPC endpoint |
| `exceeded CUs meter at BPF instruction` | SDK: pass `{ computeUnitLimit: 400_000 }` as options |
## Permissions
| Error | Solution |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `Signer is not authorized` | 1) Check you're using vault owner's keypair (`glam-cli vault view`) 2) Grant delegate permission 3) Enable integration |
| `Delegate does not have required permission` | `glam-cli delegate list` to check, then `glam-cli delegate grant <PUBKEY> <PERMS> --protocol <PROTO>` |
| `Asset not in vault allowlist` | `glam-cli vault allowlist-asset <MINT> --yes` |
## RPC
| Error | Solution |
| ------------------------ | --------------------------------------------------------------------------------------------------------- |
| `429 Too Many Requests` | Switch to a paid RPC endpoint in config |
| `Connection refused` | Check RPC URL: `glam-cli env` |
| `Account does not exist` | Wrong vault address, vault closed, or wrong cluster. Verify with `glam-cli vault view` and `glam-cli env` |
## Integration-Specific
### Jupiter
| Error | Solution |
| ----------------------------- | ------------------------------------------------------------------------------- |
| `No route found for swap` | Try smaller amount; check `glam-cli jupiter view-policy` for allowlisted tokens |
| `Slippage tolerance exceeded` | Increase: `--slippage-bps 100` (1%), or reduce trade size |
### Kamino
| Error | Solution |
| ------------------------------ | --------------------------------------------------------------------------------- |
| `Lending market not found` | Use correct market address (Main: `7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF`) |
| `Obligation account not found` | `glam-cli kamino-lend init --yes` (required once) |
## Getting Help
1. Check vault state: `glam-cli vault view`
2. GitHub issues: https://github.com/glamsystems/glam-cli/issues
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |