Individual skill
x2strategy
ALAGENT X2Strategy: any research input (PDF paper, Markdown draft, DOCX report, text notes, or keyword search) → structured strategy specification → executable Backtrader code → backtest → diagnosis report. Two core capabilities: (1) paper2spec extracts multi-strategy specs from any document via 5-layer LLM extraction, and (2) spec2code generates validated Backtrader code, runs backtests, and compares against paper metrics. Use this skill whenever the user wants to analyze a quant paper, extract trading strategies, generate strategy code, run a backtest, search for papers, or go end-to-end from any input to executable results. Also triggers on: "look at this paper", "what strategies does this use", "implement this strategy", "search for momentum papers", "turn this into code", or any request about quantitative finance research → implementation. Even if the user doesn't mention "strategy" explicitly — if they provide a finance paper or research document, use this skill.
SKILL.md
Source commit e9cd907da492cde5cc5c4e70c78c71e78b288d4f
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 283
- Repository last updated
- Jun 12, 2026
- License
- Not available
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- quantitative-finance Declared skill tag
- paper-parsing Declared skill tag
- strategy-extraction Declared skill tag
- code-generation Declared skill tag
- backtesting Declared skill tag
- research Derived category
- finance Derived category
- productivity Derived category
- testing Derived category
- testing-browser Derived category
- productivity-notes Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.env.exampleasset · 1,140 bytes.gitignoreasset · 156 bytes.python-versionasset · 5 bytesREADME.mddoc · 19,472 bytesREADME_CN.mddoc · 17,097 bytesSKILL.mdcore · 16,912 bytesSKILL.mdcore · 16,912 bytesSKILL.mdcore · 16,912 bytesSKILL.mdcore · 16,912 bytesSKILL.mdcore · 16,912 bytesassets/alagent_logo.pngasset · 39,763 bytesassets/alagent_logo.svgasset · 42,024 bytesassets/backtrader_template.pyruns · 11,682 bytesassets/wechat_QR.jpgasset · 248,917 bytesdocs/ARCHITECTURE.mddoc · 22,908 bytesexamples/upsa/README.mddoc · 1,110 bytesexamples/upsa/input/P10_Kelly_Malamud_Pourmohammadi_Trojani_2025_NBER.pdfasset · 1,107,929 bytesexamples/upsa/input/jkp_factors_long.csvasset · 6,734,430 bytesexamples/upsa/input/jkp_factors_wide.csvasset · 1,825,347 bytesexamples/upsa/input/sample_instruction.mddoc · 9,883 bytesexamples/upsa/input/upsa_weights.csvasset · 1,488,612 bytesexamples/upsa/universal_portfolio_shrinkage_approximation.pyruns · 18,934 bytesexamples/upsa/upsa_content.jsonasset · 1,671 bytesexamples/upsa/upsa_content.mddoc · 1,913 bytesexamples/upsa/upsa_metadata.jsonasset · 637 bytesexamples/upsa/upsa_operator_pitfall_context.mddoc · 3,671 bytesexamples/upsa/upsa_review_and_diagnosis.mddoc · 3,900 bytesexamples/upsa/upsa_spec.jsonasset · 6,316 bytesexamples/upsa/upsa_spec.mddoc · 2,181 bytespaper2spec/__init__.pyruns · 524 bytespaper2spec/config.pyruns · 2,089 bytespaper2spec/extractor.pyruns · 20,891 bytespaper2spec/llm.pyruns · 2,388 bytespaper2spec/models.pyruns · 10,805 bytespaper2spec/operator_pitfall.pyruns · 7,937 bytespaper2spec/parser.pyruns · 11,579 bytespaper2spec/pdf_utils.pyruns · 2,942 bytespaper2spec/prompts.pyruns · 24,614 bytespaper2spec/render.pyruns · 6,426 bytespaper2spec/resources/operator_pitfall_index.mddoc · 6,688 bytespaper2spec/search.pyruns · 8,091 bytespyproject.tomlasset · 1,218 bytesreferences/backtrader_patterns.mddoc · 16,734 bytesreferences/data_sources.mddoc · 10,337 bytesreferences/extraction_quality.mddoc · 17,898 bytesreferences/indicator_cookbook.mddoc · 7,830 bytesreferences/paper2spec.mddoc · 7,887 bytesreferences/skill-internals.mddoc · 10,470 bytesreferences/spec2code.mddoc · 26,795 bytesrequirements.txtdoc · 239 bytesschemas/paper_content.schema.jsonasset · 774 bytesschemas/strategy_spec.schema.jsonasset · 6,822 bytesscripts/analyze.pyruns · 8,093 bytesscripts/extract.pyruns · 4,671 bytesscripts/generate_schemas.pyruns · 4,245 bytesscripts/operator_pitfalls.pyruns · 3,204 bytesscripts/parse.pyruns · 3,095 bytesscripts/run_full_tests.shruns · 8,462 bytesscripts/search.pyruns · 2,046 bytesscripts/validate_strategy.pyruns · 1,162 bytesspec2code/__init__.pyruns · 446 bytesspec2code/config.pyruns · 899 bytesspec2code/models.pyruns · 3,272 bytesspec2code/validator.pyruns · 5,805 bytestests/__init__.pyruns · 0 bytestests/conftest.pyruns · 601 bytestests/test_e2e.pyruns · 55,311 bytestests/test_examples.pyruns · 3,174 bytestests/test_extractor.pyruns · 9,438 bytestests/test_models.pyruns · 8,032 bytestests/test_parser.pyruns · 23,215 bytestests/test_real_e2e.pyruns · 33,115 bytestests/test_render.pyruns · 6,966 bytestests/test_spec2code_models.pyruns · 5,197 bytestests/test_validator.pyruns · 6,705 bytesuv.lockasset · 767,866 bytes
No licensed excerpt is available. You can inspect the pinned source.