<< All versions
Skill v1.0.0
currentAutomated scan100/100bitfalt/nansen-thesis-battlefield/docs
──Details
PublishedApril 28, 2026 at 03:50 AM
Content Hashsha256:013c78eecd2ecfc7...
Git SHA0a735bbffccb
──Files
Files (1 file, 3.5 KB)
SKILL.md3.5 KBactive
SKILL.md · 107 lines · 3.5 KB
version: "1.0.0"
Thesis Battlefield Agent Skill
Goal
Expose one stable thesis-analysis workflow that an agent can call with a thesis and get back a budget-aware Nansen investigation.
This repo is the product wrapper around the reusable planner engine in nansen-query-planner.
Skill contract
Canonical flow
Use this sequence for live investigations:
- Run plan mode first.
- Explain the inferred asset, chain, budget options, and expected spend.
- Ask for approval before execute mode spends credits.
- Run execute mode only after approval.
Plan command
bash
bun run battlefield -- --thesis "<user thesis>" --mode plan --budget-profile safe --json
Execute command
bash
bun run battlefield -- --thesis "<user thesis>" --mode execute --budget-profile safe --json
Single API
ts
import { analyzeThesis } from 'nansen-thesis-battlefield'const plan = analyzeThesis({thesis: 'Smart money is accumulating HYPE and price momentum is confirming the move.',token: 'HYPE',chain: 'solana',mode: 'plan',budgetProfile: 'safe',format: 'json',})const result = analyzeThesis({thesis: 'Smart money is accumulating HYPE and price momentum is confirming the move.',token: 'HYPE',chain: 'solana',mode: 'execute',budgetProfile: 'safe',format: 'json',writeArtifacts: true,artifactDir: 'artifacts/runs',})
This package is still repo-local today because package.json is marked private, so treat this API as a local integration contract until packaging is made explicit.
Inputs
thesis(required)token(optional)chain(optional)mode:planorexecutebudgetProfile:safeorexpandedmaxCalls(optional override)maxCredits(optional override)format:shell,json, ormarkdownwriteArtifacts(optional)artifactDir(optional)
Outputs
report: structured JSON reportmarkdown: human-readable markdown reportshellOutput: terminal/product-surface outputoutput: whichever format was requestedrun: underlying planner run with query trace and evidence
Auth expectations
For live execute mode, the user needs a working Nansen CLI session.
Recommended setup:
bash
nansen login --api-key <NANSEN_API_KEY>
The planner will use the detected nansen CLI binary, including the Bun-installed location.
Recommended agent behavior
- default to
mode: planwhen the user is brainstorming or has not yet approved a credit-spending run - if the user asks for live execution without picking a budget, first surface the
safevsexpandedoptions and the planner's recommendation safeis roughly8calls /80creditsexpandedis roughly10calls /200credits- only default to
safeautomatically when the user clearly wants the cheapest first pass - escalate to
expandedwhen the thesis bundles multiple claims or the first run leaves the thesis genuinely unresolved - if the plan response is ambiguous on token or chain, call that out before asking for execute approval
Agent integration checklist
- run
planfirst and show the plan output before any credit-spending action - include the planner's recommended budget profile in the approval prompt
- store both the human-readable output and the structured JSON report when possible
- treat execute mode as explicitly approval-gated, not as the default entrypoint
Why this should be a skill
- one stable command for agents
- one stable API for code integrations
- budget-aware by default
- returns both human and machine-readable outputs