Agent skill
Create Strategy (LEAN)
Use this skill when you need to add a new LEAN QCAlgorithm strategy in Python.
Install this agent skill to your Project
npx add-skill https://github.com/CheekyCodexConjurer/quant-lab/tree/main/skills/create_strategy
SKILL.md
Create Strategy (LEAN QCAlgorithm)
Use when adding a new strategy under the Strategy Lab strategies/ workspace.
Steps
- Create the strategy file
- Path:
server/strategies/<StrategyName>.py - Must define a
QCAlgorithmclass withInitializeandOnData.
- Use AERA-injected parameters
- Read with
GetParameter(...)and provide safe defaults:symbol,resolution,cash,feeBps,slippageBps
- Keep it LEAN-safe
- No network I/O.
- Avoid writing files from the algorithm.
- Keep logs short (no spam).
- 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
action_logger
Keep an audit trail of changes, commands, and verification.
size_guard
Enforce line budgets and rotate or split large context files.
analyze_repo_capabilities
Detect repo tooling and patterns, then record a dynamic manifest.
safety_validation
Validate changes against .agentignore before commit.
safe_refactor_migration
Plan and execute large refactors with shadow mode and rollback.
command_guard
Enforce .agentpolicy rules before executing commands.
Didn't find tool you were looking for?