jianshuo/claude-skills / wjs-publishing-hugo
wjs-publishing-hugo
Verified当用户想给自己的 Hugo 静态博客(如 maggiacito.com)新增或编辑帖子、管理类目、上传图片并发布上线时使用——对话式后台,说一句就改文件、commit、推送、自动部署,不需要任何 CMS/服务器。触发词:「发一篇博客」「给 Hugo 加文章」「写篇帖子到博客」「管理博客类目」「上传图片到博客」「博客后台」「/wjs-publishing-hugo」。
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 5.0 KB |
| SKILL.md | skill md | 4.7 KB |
| scripts/add-image.pyexecutable | script | 2.6 KB |
| scripts/categories.shexecutable | script | 577 B |
| scripts/new-post.pyexecutable | script | 3.5 KB |
| scripts/publish.shexecutable | script | 833 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')\""
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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 implementation | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| 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 fallback | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| 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 always | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |