Quay lại kỹ năng
aider-awesome
bởi hux
Aider—Chưa có đánh giá
Đánh giá của bạn
Tóm tắt
Prompts and helpers that work well with aider-chat
Mô tả
# aider-awesome
Prompts and helpers that work well with aider-chat
## WE ARE NOT RESPONSIBILE FOR YOUR API COSTS BY USING THESE COMMMANDS
## FOR AN AVERAGE CODEBASE / PROJECT,
# EXPECT TO SPEND
# $50
# to
# $500
# FOR EACH OF THESE COMMANDS
#
# depending on your configuration.
# No support will be provided for any of these commands. They are merely examples of what aider can do.
# these are referred to as DESTRUCTIVE commands. BEWARE and TAKE CARE you have been WARNED
#
---
---
---
## Pre-Reqs
```
read -p "Did you make backups? " answer && [[ "$answer" == "Yes" ]] || (echo "Backups required" && exit 1)
alias aid3r="aider --yes-always --map-tokens 0 --map-refresh always --no-auto-commit --dark-mode --edit-format architect --no-detect-urls --no-suggest-shell-commands --weak-model anthropic/claude-3-5-sonnet-20241022 "
```
### eslinting an entire project
```
cd my-code-base && \
time find src/ -type f -name "*.js" -o -name "*.jsx" -o -name "*.tsx" -o -name "*.ts" |
while read file; do \
echo $file; \
if ! npx eslint --fix "$file" > /dev/null 2>&1; then \
msg=$(npx eslint "$file" 2>&1 | tr '\n' ' '); \
aider --yes-always --map-tokens 0 --map-refresh always --no-auto-commit --dark-mode \
--edit-format architect --no-detect-urls --no-suggest-shell-commands --o1-preview \
--message "$msg" --file "$file"; \
fi; \
done
```
### eslint fix single file
```
aid3r --file src/views/events/accountingComponents.jsx --read ../CONVENTIONS.md --message "$(eslint src/views/events/accountingComponents.jsx)"
```
### in-line code documentation
```
cd my-code-base && \
time for filename in $(find . -type f \( -name "*.js" -o -name "*.py" -o -name "*.tsx" \) -not -path "*/node_modules/*" -not -path "*/deployed_static/*" -not -path "*/migrations/*" -not -path "*/tests/*" -not -path "*/__init__.py" );do echo "---" && echo $filename && aider --no-auto-commit --edit-format diff-fenced --yes --dark-mode --message "Please review this file and add comments to the code and a summary at the top of file explaining briefly what it does. Do not change any existing comments, simply comment on the uncommented lines that are relevant enough to the explaination of the function" --file $filename ; done
```
### Fixing PyFlakes errors
```
cd my-code-base && \
time while IFS= read -r line; do filename=$(echo "$line" | cut -d':' -f1); echo "Processing: $line"; aider --no-auto-commit --yes-always --map-tokens 768 --map-refresh always --dark-mode --edit-format diff --file $filename --message "$line"; done < <(flake8 --max-line-length 120 .)
```
Cài đặt
Cài kỹ năng từ https://github.com/hux/aider-awesomeKỹ năng này chưa được đăng trên registry ClawHub. Hãy dán prompt vào coding agent của bạn — Claude Code, Cursor, Codex — và nó sẽ cài kỹ năng thẳng từ kho mã nguồn.
Mở kho mã