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 |
pick-next-skill.sh
View on GitHub#!/usr/bin/env bash
# Decide which wjs-* skill to promote today.
# Output: the skill name (one line), or empty string + exit 1 if no skill qualifies.
#
# Rules (in order):
# 1. SKILL env var set → that skill (manual override; bypasses 7-day check)
# 2. Skills never posted before → pick alphabetically first
# 3. Skills not posted in last 7 days, whose SKILL.md was modified more recently
# than its last post → pick the one with the most recent SKILL.md change
# 4. Skills not posted in last 7 days → pick the one posted longest ago
# 5. Nothing qualifies → exit 1 (today is a rest day)
set -u
HERE="$(cd "$(dirname "$0")" && pwd)"
SKILLS_DIR="${HOME}/.claude/skills"
# Manual override
if [[ -n "${SKILL:-}" ]]; then
if [[ -d "${SKILLS_DIR}/${SKILL}" && -f "${SKILLS_DIR}/${SKILL}/SKILL.md" ]]; then
echo "$SKILL"
exit 0
else
echo "ERROR: SKILL=$SKILL but ${SKILLS_DIR}/${SKILL}/SKILL.md does not exist" >&2
exit 2
fi
fi
list=$("${HERE}/list-skills.sh")
# Rule 2: never posted
never=$(echo "$list" | awk -F'\t' '$2 == "never" { print $1 }' | sort | head -1)
if [[ -n "$never" ]]; then
echo "$never"
exit 0
fi
# Build a list of skills not posted in the last 7 days, with their SKILL.md mtime
recent_edit_winner=""
recent_edit_mtime=0
oldest_winner=""
oldest_days=0
while IFS=$'\t' read -r name last_date days; do
[[ "$days" -lt 7 ]] && continue
skill_md="${SKILLS_DIR}/${name}/SKILL.md"
[[ -f "$skill_md" ]] || continue
mtime=$(stat -f %m "$skill_md" 2>/dev/null || echo 0)
# Compare with last post epoch
last_epoch=$(date -j -f "%Y-%m-%d" "$last_date" +%s 2>/dev/null || echo 0)
if [[ "$mtime" -gt "$last_epoch" && "$mtime" -gt "$recent_edit_mtime" ]]; then
recent_edit_winner="$name"
recent_edit_mtime=$mtime
fi
if [[ "$days" -gt "$oldest_days" ]]; then
oldest_winner="$name"
oldest_days=$days
fi
done <<< "$list"
# Rule 3: not posted in 7 days, SKILL.md recently edited
if [[ -n "$recent_edit_winner" ]]; then
echo "$recent_edit_winner"
exit 0
fi
# Rule 4: not posted in 7 days, oldest post wins
if [[ -n "$oldest_winner" ]]; then
echo "$oldest_winner"
exit 0
fi
# Rule 5: nothing qualifies — rest day
echo "" >&2
echo "REST_DAY: all wjs-* skills were posted within the last 7 days; skipping." >&2
exit 1
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 |