Skip to content

jianshuo/claude-skills / wjs-promoting-skills

wjs-promoting-skills

Unverified

Use 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".

FileKindSize
SKILL.mdskill md11.5 KB
com.jianshuo.wjs-promoting-skills.plist.templateother1014 B
daily.shexecutablescript6.9 KB
list-skills.shexecutablescript1.3 KB
make-plan.shexecutablescript1.3 KB
outbox/.gitignoreother39 B
pick-next-skill.shexecutablescript2.3 KB
prompts/community-drafts.mdmarkdown2.6 KB
prompts/daily-post.mdmarkdown2.0 KB
prompts/make-plan.mdmarkdown3.9 KB
prompts/research-marketplaces.mdmarkdown3.2 KB
research-marketplaces.shexecutablescript616 B
setup.shexecutablescript3.5 KB
state/.gitignoreother109 B
state/README.mdmarkdown944 B
uninstall.shexecutablescript815 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
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 323kUpdated Claude CodeCodexVerifiedInstall