Agent skill

Notebook To Strategy

by tradingstrategy-ai in tradingstrategy-ai/trade-executor

Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module

Custom licenceAuto-check passedBusiness, Finance & HR

Install Notebook To Strategy

skills CLI
$ npx skills add tradingstrategy-ai/trade-executor --skill notebook-to-strategy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tradingstrategy-ai/trade-executor notebook-to-strategy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tradingstrategy-ai/trade-executor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/notebook-to-strategy .claude/skills/notebook-to-strategy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
notebook-to-strategy
GitHub stars
160
Token cost
~1.1k tokens
SKILL.md length
454 words
Files
4
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module

  • Works in 7 steps: Read and parse the notebook and existing… → Extract code from notebook cells,… → Consolidate imports from all notebook… → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers Inputs, How it works, Process and Check for inconsistencies, plus 5 more sections
  • Calls poetry

What it does

Notebook To Strategy is an agent skill from tradingstrategy-ai/trade-executor. Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `strategy-module-description.md`).

It sits in Business, Finance & HR, covering Trading and backtesting, Crypto and DeFi analysis and Jupyter notebooks. It works with Jupyter, BNB Chain, Ethereum and Uniswap. The repository describes itself as: A Python framework for managing positions and trades in DeFi.

When your agent uses it

  • Tasks that involve Trading and backtesting
  • Tasks that involve Crypto and DeFi analysis
  • Tasks that involve Jupyter notebooks

Example prompts

  • “/notebook-to-strategy”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Read and parse the notebook and existing strategy module (if any)
  2. Extract code from notebook cells, mapping to the appropriate sections
  3. Consolidate imports from all notebook cells to the top of the module
  4. Transfer functions, constants and comments
  5. Preserve metadata if updating an existing module, or create placeholder metadata for new modules
  6. Format the output with proper section comments
  7. Verify by running a backtest command

What it can do on your machine

Read from SKILL.md and the folder at commit 1f54460. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • poetry

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Notebook To Strategy loads about 1.1k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 454 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 454 words (~1,127 tokens).

“Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module.”

— opening of SKILL.md by tradingstrategy-ai, Custom licence
name
notebook-to-strategy

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files in .claude/skills/notebook-to-strategy of tradingstrategy-ai/trade-executor.

  • SKILL.md
  • 05-tweaked-basket-construction copy.ipynb
  • 05-tweaked-basket-construction.ipynb
  • strategy-module-description.md

Open the folder on GitHubat commit 1f54460

Compare with similar skills

Notebook To Strategy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Notebook To Strategy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Notebook To Strategy this skilltradingstrategy-ai/trade-executor160—~1.1kAutomated safety check: PassCustom licence
Aomi Transactjeremylongshore/tons-of-skills-marketplace2.8k—~2.3kAutomated safety check: PassMIT
Swapper Depositswapperfinance/swapper-toolkit852—~1.8kAutomated safety check: PassMIT
Building Blocksaustintgriffith/ethskills295—~2.9kAutomated safety check: PassNone
Uniswap SwapNethereum/Nethereum2.3k—~2.1kAutomated safety check: PassMIT
Aomi Transactsickn33/agentic-awesome-skills47k1 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Aomi Transact

    jeremylongshore/tons-of-skills-marketplace

    Build natural-language crypto agents, web3 assistants, and trading bots that read and write EVM chain state.

    2.8k GitHub stars~2.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Swapper Deposit

    swapperfinance/swapper-toolkit

    Deposit and bridge funds into a wallet or protocol using Swapper Finance.

    852 GitHub stars~1.8k tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • Building Blocks

    austintgriffith/ethskills

    DeFi legos and protocol composability on Ethereum and L2s. An agent skill from austintgriffith/ethskills.

    295 GitHub stars~2.9k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Uniswap Swap

    Nethereum/Nethereum

    Swap tokens on Uniswap V2/V3/V4 using Nethereum (.NET/C). An agent skill from Nethereum/Nethereum.

    2.3k GitHub stars~2.1k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed
  • Aomi Transact

    sickn33/agentic-awesome-skills

    Build natural-language crypto/DeFi agents and EVM MCP plugins (Claude Code, Cursor, Codex, Gemini).

    47k GitHub starsUsed in 1 repo~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Addresses

    austintgriffith/ethskills

    Verified contract addresses for major Ethereum protocols across mainnet and L2s.

    295 GitHub stars~7.1k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed

Questions about Notebook To Strategy

What does Notebook To Strategy do?

Transfer code from a backtesting Jupyter notebook to a Trade Executor strategy module. Notebook To Strategy is an agent skill from tradingstrategy-ai/trade-executor.

When should I use Notebook To Strategy?

Notebook To Strategy fits situations like: tasks that involve Trading and backtesting; tasks that involve Crypto and DeFi analysis; tasks that involve Jupyter notebooks.

How do I install Notebook To Strategy in Claude Code?

Run `npx skills add tradingstrategy-ai/trade-executor --skill notebook-to-strategy -a claude-code`. Or copy the skill folder (.claude/skills/notebook-to-strategy in tradingstrategy-ai/trade-executor) into .claude/skills/notebook-to-strategy in your project. Claude Code loads it when a task matches its description.

How do I install Notebook To Strategy in Codex?

Run `npx skills add tradingstrategy-ai/trade-executor --skill notebook-to-strategy -a codex`. Or copy the skill folder (.claude/skills/notebook-to-strategy in tradingstrategy-ai/trade-executor) into .agents/skills/notebook-to-strategy in your project. Codex loads it when a task matches its description.

Can I use Notebook To Strategy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tradingstrategy-ai/trade-executor --skill notebook-to-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/notebook-to-strategy, .gemini/skills/notebook-to-strategy, .github/skills/notebook-to-strategy and .opencode/skills/notebook-to-strategy in your project.

What does Notebook To Strategy need to run?

Going by SKILL.md and its folder, Notebook To Strategy needs the command-line tools its instructions call (poetry). Our summary lists: Python 3.

Does Notebook To Strategy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Notebook To Strategy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Notebook To Strategy use?

Notebook To Strategy has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Notebook To Strategy use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Notebook To Strategy?

Skills that share tags, products or a category with Notebook To Strategy: Aomi Transact (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Swapper Deposit (swapperfinance/swapper-toolkit, 852 stars), Building Blocks (austintgriffith/ethskills, 295 stars) and Uniswap Swap (Nethereum/Nethereum, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Notebook To Strategy?

tradingstrategy-ai (a GitHub organization) maintains it in tradingstrategy-ai/trade-executor, which has 160 GitHub stars. The repository was last updated on October 8, 2026.

Source: tradingstrategy-ai/trade-executor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.