Zum Inhalt springen
TakoAPI
Zurück zu den Skills

aider-awesome

von hux

Aider
—Noch nicht bewertet
Deine Bewertung

Kurzbeschreibung

Prompts and helpers that work well with aider-chat

Beschreibung

# 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 .)
```

Installation

Installiere den Skill von https://github.com/hux/aider-awesome

Dieser Skill ist nicht in der ClawHub-Registry veröffentlicht. Füge den Prompt in deinen Coding-Agenten ein — Claude Code, Cursor, Codex — und er installiert den Skill direkt aus dem Quell-Repository.

Repository öffnen

Links