chore(ai): add comprehensive CLI configurations for all AI assistants
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
20
.qwen/prompts/algorithm-optimization.md
Normal file
20
.qwen/prompts/algorithm-optimization.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Mathematical Algorithm Optimization
|
||||
|
||||
Optimize the following mathematical algorithm for performance while maintaining precision: $ARGUMENTS
|
||||
|
||||
## Optimization Focus:
|
||||
1. Reduce memory allocations in hot paths
|
||||
2. Minimize computational overhead
|
||||
3. Improve cache efficiency
|
||||
4. Leverage concurrency where appropriate
|
||||
|
||||
## Profiling Approach:
|
||||
- Use `go tool pprof` to identify bottlenecks
|
||||
- Create benchmarks to measure improvements
|
||||
- Validate precision is maintained after optimization
|
||||
- Test with realistic data sets
|
||||
|
||||
## Constraints:
|
||||
- Do not compromise mathematical precision
|
||||
- Maintain code readability and maintainability
|
||||
- Follow Go best practices for concurrency and error handling
|
||||
16
.qwen/prompts/uniswap-pricing.md
Normal file
16
.qwen/prompts/uniswap-pricing.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Uniswap V3 Pricing Function Implementation
|
||||
|
||||
Implement the following Uniswap V3 pricing function with high precision: $ARGUMENTS
|
||||
|
||||
## Requirements:
|
||||
1. Use `github.com/holiman/uint256` for all uint256 arithmetic
|
||||
2. Ensure mathematical precision and numerical stability
|
||||
3. Handle edge cases and boundary conditions
|
||||
4. Include comprehensive test coverage
|
||||
5. Provide performance benchmarks
|
||||
|
||||
## Implementation Guidelines:
|
||||
- Follow the official Uniswap V3 whitepaper specifications
|
||||
- Implement proper error handling for invalid inputs
|
||||
- Document mathematical formulas and implementation decisions
|
||||
- Optimize for performance while maintaining precision
|
||||
Reference in New Issue
Block a user