Agent skill
quant-practice
Generate quant practice notebooks from example questions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/quant-practice
SKILL.md
Quant Practice Skill
Generate a Jupyter notebook of quant practice questions using example questions as templates. The user specifies the number of questions and topics. You generate novel questions (different tickers/values/date ranges) and provide solutions, then append them to the notebook.
Inputs to Collect
count: number of questionstopics: comma-separated list (e.g.returns,portfolio,signals). Empty means mixed.
Workflow
- Create a blank notebook with a header cell:
- Run:
python .claude/skills/quant-practice/scripts/generate_notebook.py --topics "<topics>" --count <count>
- The script prints the notebook path. Capture it.
- Run:
- Select example questions from the index:
- Run:
python .claude/skills/quant-practice/scripts/select_questions.py --topics "<topics>" --count <count>
- This prints a JSON array of example question file paths.
- Run:
- Generate novel questions:
- For each example question:
- Read the markdown file.
- Write a new question inspired by the example. Change tickers, numbers, or date ranges so it is materially different.
- Write a complete solution in Python.
- For each example question:
- Append each question to the notebook:
- Run:
python .claude/skills/quant-practice/scripts/add_question_to_notebook.py --notebook <path> --question-text "<question>" --solution-text "<solution>"
- This appends:
- A markdown question cell
- An empty code cell for the user’s solution
- A hidden solution cell
- Run:
Utility
- List available topics:
python .claude/skills/quant-practice/scripts/get_topics.py- Add
--only-activeto show only topics from active questions.
Notes
questions/index.jsoncontrols topic labels and which examples are active.- If there aren’t enough active questions for a topic, either switch to mixed topics or ask the user to add more examples.
- Use simple, self-contained Python solutions (numpy/pandas/yfinance as appropriate).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?