Claude Code Plugins

Community-maintained marketplace

Feedback

Create Strategy (LEAN)

@CheekyCodexConjurer/quant-lab
0
0

Use this skill when you need to add a new LEAN QCAlgorithm strategy in Python.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name Create Strategy (LEAN)
description Use this skill when you need to add a new LEAN QCAlgorithm strategy in Python.

Create Strategy (LEAN QCAlgorithm)

Use when adding a new strategy under the Strategy Lab strategies/ workspace.

Steps

  1. Create the strategy file
  • Path: server/strategies/<StrategyName>.py
  • Must define a QCAlgorithm class with Initialize and OnData.
  1. Use AERA-injected parameters
  • Read with GetParameter(...) and provide safe defaults:
    • symbol, resolution, cash, feeBps, slippageBps
  1. Keep it LEAN-safe
  • No network I/O.
  • Avoid writing files from the algorithm.
  • Keep logs short (no spam).
  1. Verify
  • Run from the app: Strategy Lab -> Run (LEAN) and inspect job logs/results.
  • Run standard validations: see skills/verify_changes/SKILL.md.

Template

Start from skills/create_strategy/template_strategy.py.