Automated summary
Generates the Python modules of a hybrid trading agent (momentum, mean-reversion, AI predictor) with risk management and hash-based proof logging.
Strengths
- Ships a precise file checklist that guarantees a complete, coherent architecture (main.py, modules/, risk/, validation/, dashboard/).
- Enforces Google-style docstrings, type hints and configuration loaded from config/config.yaml instead of hardcoded parameters.
- Systematically wires risk_manager gating before any trade execution and SHA256 hashing of decisions through proof_logger.
- Each module is designed to be imported and tested independently.
Limitations
- Tightly bound to one trading-agent architecture, so it is not reusable for general code generation.
- Strategies stay high-level: no actual AI models, market data sources or backtests are specified.
- No real unit tests are produced despite the requirement that modules be testable.
Use it when scaffolding or extending the Python modules of this hybrid trading agent.
Avoid it for code outside this agent architecture, or when production-grade trading rigor and full backtesting are required.
Security analysis
SafeThe skill only provides code-generation instructions for a Python trading agent. It does not execute commands, access networks, handle secrets, or instruct destructive or exfiltrating behavior, so the listing risk is minimal.
No concerns found
How this analysis is madeExamples
Generate the full trading agent with all modulesGenerate the momentum strategy module with moving average crossover and volume confirmationAdd risk_manager checks and proof_logger hashing to the trade execution path in the agentname: generate-agent-code description: Generates Python modules for the hybrid AI trading agent
When to Use
- When Claude is asked to generate trading logic, risk management, or dashboard code
- When the user requests the full agent codebase or specific modules
- When scaffolding new components that fit into the agent architecture
Instructions
- Create Python module files under the appropriate directories:
modules/,risk/,dashboard/,validation/,simulation/,utils/ - Include comments and Google-style docstrings for all public functions and classes
- Implement hybrid logic: combine momentum, mean-reversion, and AI predictor signals
- Integrate
risk_managerchecks before any trade execution - Ensure
proof_loggerhashes all trade inputs, outputs, and decisions - Create
main.pyto tie everything together as the entry point - Use configuration from
config/config.yamlorutils/config.py— never hardcode parameters - Include proper logging using Python's
loggingmodule - Use type hints for all function signatures
- Ensure each module can be imported and tested independently
Module Checklist
When generating the full agent, ensure these files exist:
- [ ]
main.py— orchestration entry point - [ ]
modules/momentum.py— momentum trading strategy - [ ]
modules/mean_reversion.py— mean-reversion trading strategy - [ ]
modules/yield_optimizer.py— yield optimization strategy - [ ]
modules/ai_predictor.py— AI prediction ensemble - [ ]
modules/strategy_manager.py— combines all strategy signals - [ ]
risk/risk_manager.py— risk validation and trade gating - [ ]
simulation/paper_trader.py— virtual trade execution - [ ]
validation/proof_logger.py— SHA256 proof hash logging - [ ]
dashboard/dashboard.py— Streamlit/Flask visualization - [ ]
utils/config.py— centralized configuration - [ ]
utils/data_loader.py— data ingestion - [ ]
utils/indicators.py— technical indicator calculations - [ ]
utils/logger.py— logging setup
Example
Input: "Generate the full trading agent with all modules"
Output: Complete Python module files for every component listed above, each with:
- Proper imports and type hints
- Docstrings explaining the module's purpose
- Core logic implementation
- Logging integration
- Risk management integration (where applicable)
- Proof logging integration (where applicable)
Input: "Generate the momentum strategy module"
Output: modules/momentum.py with:
- Moving average crossover logic
- Volume confirmation filters
- Signal generation with confidence score
- Configurable parameters from config
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/download' --output '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md.part' && mv '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md.part' '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md' && test -s '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/generate-agent-code' && cp -R '.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l' '.claude/skills/generate-agent-code'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l'openskills read 'generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/generate-python-modules-for-hybrid-ai-trading-agent-mrx3xz8l/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.