jianshuo/claude-skills / wjs-promoting-skills
wjs-promoting-skills
UnverifiedUse when the user wants to set up automated daily promotion / marketing for their Claude Code skills — researching how top skills are promoted on marketplaces (ClawHub / openclaw / SkillsMP / agentskills.io), generating a per-skill marketing plan, auto-posting to X (Twitter) via xurl, and drafting community discussion posts (Reddit / HN / Discord). Triggers — "推广 skills", "营销 skills", "自动发推广", "每天自动推广", "skill marketing", "promote my skills", "/wjs-promoting-skills".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.5 KB |
| com.jianshuo.wjs-promoting-skills.plist.template | other | 1014 B |
| daily.shexecutable | script | 6.9 KB |
| list-skills.shexecutable | script | 1.3 KB |
| make-plan.shexecutable | script | 1.3 KB |
| outbox/.gitignore | other | 39 B |
| pick-next-skill.shexecutable | script | 2.3 KB |
| prompts/community-drafts.md | markdown | 2.6 KB |
| prompts/daily-post.md | markdown | 2.0 KB |
| prompts/make-plan.md | markdown | 3.9 KB |
| prompts/research-marketplaces.md | markdown | 3.2 KB |
| research-marketplaces.shexecutable | script | 616 B |
| setup.shexecutable | script | 3.5 KB |
| state/.gitignore | other | 109 B |
| state/README.md | markdown | 944 B |
| uninstall.shexecutable | script | 815 B |
setup.sh
View on GitHub#!/usr/bin/env bash
# One-time setup: check prereqs, prime research.md, install launchd plist.
# Re-runnable: safe to run multiple times.
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
LABEL="com.jianshuo.wjs-promoting-skills"
PLIST_DEST="${HOME}/Library/LaunchAgents/${LABEL}.plist"
LOG_DIR="${HOME}/Library/Logs/wjs-promoting-skills"
echo "=== wjs-promoting-skills setup ==="
# --- 1. Prereqs ---
echo "→ Checking prereqs..."
for bin in claude xurl jq; do
if ! command -v "$bin" >/dev/null 2>&1; then
echo "✗ Missing dependency: $bin"
case "$bin" in
jq) echo " Install: brew install jq" ;;
xurl) echo " Install: brew install xurl, then xurl auth login" ;;
claude) echo " Install: see https://claude.com/code" ;;
esac
exit 1
fi
done
echo "✓ claude, xurl, jq present"
# --- 2. xurl auth ---
echo "→ Verifying xurl auth..."
if ! xurl whoami >/dev/null 2>&1; then
echo "✗ xurl whoami failed. Run: xurl auth login"
exit 1
fi
user=$(xurl whoami 2>/dev/null | jq -r '.data.username // .data.name // empty')
echo "✓ xurl authenticated as: ${user:-<unknown>}"
# --- 3. State dirs ---
mkdir -p "${HERE}/state" "${HERE}/state/plans" "${HERE}/outbox" "$LOG_DIR"
touch "${HERE}/state/history.jsonl"
# --- 4. .gitignore for state/ and outbox/ (they hold post histories + drafts, not for GitHub) ---
cat > "${HERE}/state/.gitignore" <<'EOF'
# State is local-only. history.jsonl has tweet IDs; plans/ has marketing internals.
*
!.gitignore
!README.md
EOF
cat > "${HERE}/outbox/.gitignore" <<'EOF'
# Drafts are local-only.
*
!.gitignore
EOF
# --- 5. Prime research.md if missing ---
if [[ ! -f "${HERE}/state/research.md" ]]; then
echo "→ Priming marketplace research (one-time; takes 1–3 min)..."
if "${HERE}/research-marketplaces.sh"; then
echo "✓ Research written to state/research.md"
else
echo "⚠ Research failed — you can run it later with research-marketplaces.sh"
# Write a placeholder so daily.sh doesn't choke
echo "# Marketplace research (placeholder — not yet generated)" > "${HERE}/state/research.md"
fi
else
echo "→ state/research.md already exists, skipping prime."
fi
# --- 6. Render and install plist ---
echo "→ Installing launchd plist at ${PLIST_DEST}"
# Unload first if already loaded (idempotent)
if launchctl print "gui/$(id -u)/${LABEL}" >/dev/null 2>&1; then
echo " Unloading existing job..."
launchctl bootout "gui/$(id -u)" "$PLIST_DEST" 2>/dev/null || true
fi
mkdir -p "$(dirname "$PLIST_DEST")"
sed -e "s|__DAILY_SH__|${HERE}/daily.sh|g" \
-e "s|__HOME__|${HOME}|g" \
"${HERE}/com.jianshuo.wjs-promoting-skills.plist.template" > "$PLIST_DEST"
launchctl bootstrap "gui/$(id -u)" "$PLIST_DEST"
launchctl enable "gui/$(id -u)/${LABEL}"
echo "✓ Loaded and enabled. Next run: tomorrow 04:00."
# --- 7. Summary ---
cat <<EOF
=== Setup complete ===
Skill: ${HERE}
Schedule: Daily at 04:00 (macOS launchd)
Log: ${LOG_DIR}/daily-YYYY-MM-DD.log
launchd: ${PLIST_DEST}
Useful commands:
${HERE}/pick-next-skill.sh # see what tomorrow's run will pick
DRY_RUN=1 ${HERE}/daily.sh # full dry-run (no X post)
SKILL=wjs-segmenting-video ${HERE}/daily.sh # force a specific skill (still respects DRY_RUN)
launchctl print gui/$(id -u)/${LABEL} # inspect job state
${HERE}/uninstall.sh # stop auto-runs
To trigger the job once manually right now:
launchctl kickstart -k gui/$(id -u)/${LABEL}
tail -f ${LOG_DIR}/daily-\$(date +%Y-%m-%d).log
EOF
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |