发现优质的 AI Agent 技能
聚合 Claude Skills、LangChain、AutoGPT 等优质资源,助力开发者快速构建智能应用
Essential Commands — Docker
Quick reference for common Docker operations.
Models Traps
- `makemigrations` not automatic — model changes need explicit command - Migration conflicts on merge — rename migration file or `--merge` - `auto_now` can't be set manually — use `default=timezone.now` instead - `related_name` conflicts — same reverse name crashes, use unique or `'+'` - `ForeignKey('self')` — string needed for self-reference
CLI Adapter Recipes
Use these recipes when the user wants real calendar actions through a terminal. Show the command first, explain the side effects, and ask before any write.
Calendar Planner
Calendar planner for work, family, health, travel, deep work, and recovery across multiple command-line calendar adapters.
Parameter Expansion Traps
- `${var:-default}` if unset OR empty — `${var-default}` only if unset - `${var:=default}` assigns — `${var:-default}` doesn't modify var - `${var:-$(cmd)}` runs command even if just checking — expansion happens - `${var: -3}` needs space — without space it's default value syntax - `${var:0:5}` counts bytes in some locales — not chars
Error Handling Traps
- `set -e` doesn't trigger in `if` condition — `if ! cmd; then` is safe - `set -e` doesn't trigger after `||` or `&&` — `cmd || true` is safe - `$(cmd)` in assignment doesn't trigger -e — subshell error not propagated - Exit code is last command only — `bad | good` returns 0 - `set -o pipefail` fails if ANY fails — but can't tell which
FFmpeg Audio Commands
```bash ffprobe -v quiet -print_format json -show_format -show_streams input.mp3 ```
App Dictionary Workflow
Use this process before writing app-specific AppleScript commands.
Command Paths - Apple News (MacOS)
Use this order for deterministic command selection.
Command Paths - Apple Maps (MacOS)
Use this order for deterministic command selection.