Decomposition 2026 11 05
ASecurity```bash set -euo pipefail dir="${1:-.}" find "$dir" -maxdepth 1 -type f -name '*.jpeg' -print0 | while IFS= read -r -d '' f; do mv -n -- "$f" "${f%.jpeg}.jpg" done ``` Одна строка без файла: ```bash for f in *.jpeg; do [ -e "$f" ] && mv -n -- "$f" "${f%.jpeg}.jpg"; done ``` Что делает: - `-maxdepth 1` — только текущая папка, без подпапок. - `-type f` — только файлы, папки с именем `*.jpeg` не трогает. - `-print0` + `read -d ''` — пробелы и не-ASCII в именах работают. - `mv -n` — если `f.jpg` ...
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 11, 2026
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add Siririn77/i-have-autism --skill decomposition-2026-11-05 --agent claude-codeAre you the author of Decomposition 2026 11 05?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/siririn77-decomposition-2026-11-05-b2aa41b7)```bash
#!/usr/bin/env bash
set -euo pipefail
dir="${1:-.}"
find "$dir" -maxdepth 1 -type f -name '*.jpeg' -print0 |
while IFS= read -r -d '' f; do
mv -n -- "$f" "${f%.jpeg}.jpg"
done
```
Одна строка без файла:
```bash
for f in *.jpeg; do [ -e "$f" ] && mv -n -- "$f" "${f%.jpeg}.jpg"; done
```
Что делает:
- `-maxdepth 1` — только текущая папка, без подпапок.
- `-type f` — только файлы, папки с именем `*.jpeg` не трогает.
- `-print0` + `read -d ''` — пробелы и не-ASCII в именах работают.
- `mv -n` — если `f.jpg` уже существует, файл не перезаписывается и не переименовывается; такие случаи увидишь по оставшимся `.jpeg`.
Проверка после запуска: `ls *.jpeg` → должно быть `ls: cannot access '*.jpeg'`. Если файлы остались — это коллизии имён, разбери их вручную.Files in this skill
- SCORE.md
- answer-estimate_with-skill.md
- answer-estimate_without-skill.md
- answer-next-step_with-skill.md
- answer-next-step_without-skill.md
- answer-no-preamble_with-skill.md
- answer-no-preamble_without-skill.md
- cases.json
- code-edge-negative_with-skill.md
- code-edge-negative_without-skill.md
- comment-says-why_with-skill.md
- comment-says-why_without-skill.md
- decomposition-huge_with-skill.md
- decomposition-huge_without-skill.md
- decomposition-small_with-skill.md
- decomposition-small_without-skill.md
- destructive-needs-confirmation_with-skill.md
- destructive-needs-confirmation_without-skill.md
- disagree-first-line_with-skill.md
- disagree-first-line_without-skill.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.