Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/solanabr/position-manager-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-tax)<a href="https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-tax"><img src="https://agentmods.dev/badge/commands/solanabr/position-manager-skill/clmm-tax/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-tax"><img src="https://agentmods.dev/badge/commands/solanabr/position-manager-skill/clmm-tax.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.01497 |
| Opus 5.5 | $0.00010 | $0.00599 |
| Sonnet 5.5 | $0.00005 | $0.00299 |
| Haiku 4.5 | $0.00002 | $0.00150 |
Grade A, and why
clmm-tax scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/clmm-tax
Builds a per-wallet tax-lot ledger from LP add/remove/fee-claim events. Supports FIFO (default), HIFO, and SPEC-ID cost-basis methods.
NOT TAX ADVICE. This is a record-keeping tool. Consult a CPA or tax attorney for your specific situation. LP add/remove taxability is unsettled law; ambiguous lots are flagged for CPA review.
Regulatory Context (informational only)
- Per-wallet cost-basis tracking became mandatory Jan 1 2025 (Rev Proc 2024-28).
- 2026 additions: broker 1099-DA cost-basis reporting requirements; expiry of Notice 2025-7 spec-ID transitional relief. Verify current IRS guidance.
- This tool generates records; it does NOT file forms or give tax advice.
Steps
-
Set environment:
export SOLANA_RPC_URL="https://your-rpc-endpoint" export OWNER_ADDRESS="YourWallet111..." # Cost-basis method: FIFO | HIFO | SPECID (default: FIFO) export COST_BASIS_METHOD=FIFO # Tax year to report (filters events by year) export TAX_YEAR=2025 -
Fetch on-chain LP events for the wallet. The buildTaxLots function accepts a pre-parsed event array; fetch events first:
npx tsx -e " import { buildTaxLots } from './skill/templates/tax-lots'; import type { LpEvent } from './skill/templates/tax-lots'; // LpEvent[] - populate from on-chain transaction history (see step 3 for fetch). // Each event: { t: unixSeconds, type: 'acquire'|'lpAdd'|'lpRemove'|'feeClaim'|'dispose', // wallet, asset, qty, priceUsd, lotId?, ref? } const events: LpEvent[] = parseEventsFromHistory(process.env.OWNER_ADDRESS!); const lots = buildTaxLots(events, process.env.COST_BASIS_METHOD as any); console.log(JSON.stringify(lots, null, 2)); " -
Fetch transaction history (use Helius or your RPC's getSignaturesForAddress):
npx tsx -e " import { createSolanaRpc } from '@solana/kit'; const rpc = createSolanaRpc(process.env.SOLANA_RPC_URL!); const sigs = await rpc.getSignaturesForAddress( process.env.OWNER_ADDRESS! as any, { limit: 1000 } ).send(); // Parse each transaction for LP add/remove/fee instructions // Filter by program IDs: Orca Whirlpool, Raydium CLMM, Meteora DLMM/DAMM // Map to LpEvent[]; pass to buildTaxLots above console.log(\`Found \${sigs.length} signatures\`); "
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 137 lines · 24 tokens per session scan A 17d1c0ab1fca
clmm-tax is a command published in the GitHub repository solanabr/position-manager-skill (2 stars, last pushed 4mo ago), licensed MIT. It adds 24 tokens to every session and 1,497 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
clmm-tax compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clmm-taxsolanabr/position-manager-skill | Command | 2 | 4mo ago | MIT | A | 24 | Claude Code |
| hyperliquid-riskaegntic/cldcde | Command | 12 | 3d ago | MIT | A | 32 | Claude Code |
| global-flagshiromaily/go-crypto-wallet | Command | 129 | 7mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 26 | Claude Code |
| specifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |