Skip to main content

pixel

Create a pixel/vintage blog header from a source image and update the matching blog post image URL.

소스 정보

저장소
daya0576/daya0576.github.io
최근 소스 활동
2026년 6월 21일 07:31
감지된 SKILL.md 언어
영어
스타
4
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
pixel
description
Create a pixel/vintage blog header from a source image and update the matching blog post image URL.
# Pixel Use this skill when the user gives a source image path/URL and wants the blog's pixel/vintage header style. ## Style Create a progressive JPEG with: - warm black-and-white / sepia tone - film grain - soft vignette - subtle pixelation that preserves detail ## Workflow > **Important:** All shell commands and relative paths assume the project root > (`/Users/henry/repo/private/hugo/zblog`). The bash tool defaults to the home > directory (`~`), so always pass `cwd` set to the project root (or `cd` there > first). Otherwise `static/...` paths resolve under `~` and files appear > "missing". 1. Resolve the source image. - For a site URL like `/images/blog/global/foo.jpeg`, use `static/images/blog/global/foo.jpeg`. - For a bare filename, check the current directory, then `~/Downloads/`. 2. Pick a new output path under `static/images/blog/global/`, usually `SOURCE_STEM-pixel.jpg`. Never overwrite the source. 3. Ensure Pillow exists: ```bash python3 -c "from PIL import Image; print('ok')" ``` If missing, ask before installing anything. 4. Generate the image: ```bash python3 .pi/skills/pixel/scripts/vintage_header.py \ "SOURCE_PATH" \ "static/images/blog/global/OUTPUT.jpg" ``` 5. Find the post that references the source image before asking the user: ```bash grep -RIn "SOURCE_FILENAME\|/images/blog/global/SOURCE_FILENAME" content public --include='*.md' --include='*.markdown' --include='*.html' ``` If only `public/.../index.md` or `public/.../index.html` matches, infer the source post from the slug and find the matching file under `content/posts/`. 6. Replace the matching image reference in the content post with: ```markdown ![](/images/blog/global/OUTPUT.jpg) ``` If no matching post can be found, ask which post to update. ## Tuning Default script settings are already tuned. For adjustments: ```bash python3 .pi/skills/pixel/scripts/vintage_header.py input.jpg output.jpg \ --pixel-scale 0.6 \ --grain 10 \ --vignette 0.6 ``` - More detail: increase `--pixel-scale` toward `0.6` or `0.7`. - More visible blocks: decrease `--pixel-scale` toward `0.35` or `0.25`. - Less dirty: reduce `--grain` to `8` or `10`. - Lighter edges: reduce `--vignette` to `0.5` or `0.6`.
GitHub에서 보기