Skip to content

jianshuo/claude-skills / wjs-publishing-hugo

wjs-publishing-hugo

Verified

当用户想给自己的 Hugo 静态博客(如 maggiacito.com)新增或编辑帖子、管理类目、上传图片并发布上线时使用——对话式后台,说一句就改文件、commit、推送、自动部署,不需要任何 CMS/服务器。触发词:「发一篇博客」「给 Hugo 加文章」「写篇帖子到博客」「管理博客类目」「上传图片到博客」「博客后台」「/wjs-publishing-hugo」。

FileKindSize
README.mdmarkdown5.0 KB
SKILL.mdskill md4.7 KB
scripts/add-image.pyexecutablescript2.6 KB
scripts/categories.shexecutablescript577 B
scripts/new-post.pyexecutablescript3.5 KB
scripts/publish.shexecutablescript833 B

scripts/categories.sh

View on GitHub
#!/usr/bin/env bash
# List existing categories used across the Hugo blog, with post counts (desc).
# Run from the repo root, or pass the repo root as $1.
set -euo pipefail
REPO="${1:-.}"
cd "$REPO"
[ -d content ] || { echo "error: no content/ dir — is '$REPO' a Hugo site root?" >&2; exit 1; }

# Pull every quoted value out of `categories: [...]` front-matter lines.
grep -rhoE '^categories:\s*\[.*\]' content 2>/dev/null \
  | grep -oE '"[^"]+"' \
  | tr -d '"' \
  | sort \
  | uniq -c \
  | sort -rn \
  | awk '{cnt=$1; $1=""; sub(/^ /,""); printf "%4d  %s\n", cnt, $0}'
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall