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/publish.sh

View on GitHub
#!/usr/bin/env bash
# Commit the working changes and push to main → the site's deploy workflow
# (deploy.yml `on: push`) builds and ships it. A normal user push DOES trigger
# that workflow (only the feedback bot's GITHUB_TOKEN push is blocked by GitHub).
#
# Usage: publish.sh "commit message" [repo-root]
set -euo pipefail
MSG="${1:?usage: publish.sh \"commit message\" [repo-root]}"
REPO="${2:-.}"
cd "$REPO"

if [ -z "$(git status --porcelain)" ]; then
  echo "nothing to publish — working tree clean"
  exit 0
fi

git add -A
git status --short
git commit -m "$MSG"
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
git push origin "HEAD:${BRANCH}"
echo "pushed to ${BRANCH}; deploy workflow will build and ship it."
echo "watch: gh run watch \"\$(gh run list --workflow=deploy.yml -L1 --json databaseId --jq '.[0].databaseId')\""
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