Skip to content

notque/vexjoy-agent / skills/content/content

content

Unverified

Content operations: editorial calendar, marketing, publishing, social media management.

FileKindSize
SKILL.mdskill md11.5 KB
references/at-protocol-api.mdmarkdown7.6 KB
references/at-protocol-preferred-patterns.mdmarkdown8.5 KB
references/batch-edit-examples.mdmarkdown6.9 KB
references/batch-edit-operation-types.mdmarkdown7.0 KB
references/batch-edit-regex-patterns.mdmarkdown5.4 KB
references/batch-edit-safety-checklist.mdmarkdown6.0 KB
references/batch-edit.mdmarkdown9.9 KB
references/calendar-format.mdmarkdown3.5 KB
references/campaign-planning.mdmarkdown17.5 KB
references/classification-prompt.mdmarkdown5.9 KB
references/content-engine.mdmarkdown8.7 KB
references/content-engine/error-handling.mdmarkdown7.8 KB
references/content-engine/phase-playbook.mdmarkdown8.3 KB
references/content-engine/platform-specs.mdmarkdown10.9 KB
references/content-strategy.mdmarkdown14.5 KB
references/email-sequences.mdmarkdown15.8 KB
references/error-handling.mdmarkdown8.2 KB
references/headlines.mdmarkdown5.9 KB
references/image-audit-alt-text-examples.mdmarkdown6.8 KB
references/image-audit-format-selection.mdmarkdown5.8 KB
references/image-audit-report-templates.mdmarkdown3.8 KB
references/image-audit-size-guidelines.mdmarkdown4.2 KB
references/image-audit.mdmarkdown10.4 KB
references/link-audit-false-positives.mdmarkdown4.1 KB
references/link-audit-fix-strategies.mdmarkdown7.1 KB
references/link-audit-graph-metrics.mdmarkdown5.0 KB
references/link-audit.mdmarkdown7.8 KB
references/llm-marketing-failure-modes.mdmarkdown18.7 KB
references/marketing.mdmarkdown20.4 KB
references/metrics.mdmarkdown7.4 KB
references/news-collection.mdmarkdown5.2 KB
references/operations.mdmarkdown5.8 KB
references/outline-examples.mdmarkdown11.2 KB
references/outline-structure-templates.mdmarkdown6.4 KB
references/outline.mdmarkdown8.9 KB
references/pagespeed-insights.mdmarkdown10.4 KB
references/pipeline-stages.mdmarkdown3.3 KB
references/pre-publish-checklist.mdmarkdown7.4 KB
references/pre-publish-hugo-frontmatter.mdmarkdown5.3 KB
references/pre-publish-seo-guidelines.mdmarkdown4.1 KB
references/pre-publish.mdmarkdown10.8 KB
references/reddit-moderate.mdmarkdown7.9 KB
references/script-commands.mdmarkdown3.7 KB
references/seo-audit.mdmarkdown16.4 KB
references/seo-guidelines.mdmarkdown5.5 KB
references/seo-keyword-placement.mdmarkdown6.0 KB
references/seo-title-patterns.mdmarkdown5.6 KB
references/seo.mdmarkdown8.9 KB
references/series-planner.mdmarkdown11.7 KB
references/series-planner/cadence-guidelines.mdmarkdown6.8 KB
references/series-planner/cross-linking.mdmarkdown7.2 KB
references/series-planner/output-format.mdmarkdown3.8 KB
references/series-planner/series-types.mdmarkdown7.6 KB
references/taxonomy-audit-report-format.mdmarkdown3.2 KB
references/taxonomy-consolidation-rules.mdmarkdown6.7 KB
references/taxonomy-examples.mdmarkdown9.7 KB
references/taxonomy-guidelines.mdmarkdown5.5 KB
references/taxonomy.mdmarkdown9.0 KB
references/topic-brainstormer.mdmarkdown10.1 KB
references/topic-brainstormer/content-filter.mdmarkdown7.1 KB
references/topic-brainstormer/priority-scoring.mdmarkdown8.1 KB
references/topic-brainstormer/topic-sources.mdmarkdown7.6 KB
references/wordpress-upload.mdmarkdown11.2 KB
references/x-api.mdmarkdown7.8 KB
scripts/publish/link_scanner.pyscript21.4 KB
scripts/publish/pagespeed.pyscript15.3 KB
scripts/publish/tests/test_load_env_file.pyscript3.8 KB
scripts/publish/tests/test_wordpress_inline_urls.pyscript4.4 KB
scripts/publish/tests/test_wordpress_media_upload.pyscript1.5 KB
scripts/publish/tests/test_wordpress_scraper.pyscript4.1 KB
scripts/publish/wordpress-edit-post.pyscript21.2 KB
scripts/publish/wordpress-media-upload.pyscript8.7 KB
scripts/publish/wordpress-scraper.pyscript23.4 KB
scripts/publish/wordpress-upload.pyscript44.2 KB
scripts/reddit-moderate/reddit-automod-cron.shscript3.9 KB
scripts/reddit-moderate/reddit-mod.pyscript83.0 KB
scripts/reddit-moderate/tests/test_reddit_mod.pyscript31.3 KB

scripts/reddit-moderate/reddit-automod-cron.sh

View on GitHub
#!/usr/bin/env bash
# Reddit auto-moderation via Claude Code headless mode.
# Designed for cron: fetches modqueue, classifies, auto-actions high-confidence items.
#
# Usage:
#   # Dry run (classify but don't act)
#   ./skills/content/content/scripts/reddit-moderate/reddit-automod-cron.sh
#
#   # Live mode (execute mod actions)
#   ./skills/content/content/scripts/reddit-moderate/reddit-automod-cron.sh --execute
#
# Cron example (twice daily at 8am and 8pm):
#   0 8,20 * * * /home/feedgen/vexjoy-agent/skills/content/content/scripts/reddit-moderate/reddit-automod-cron.sh --execute >> /home/feedgen/vexjoy-agent/reddit-data/sap/cron-log/cron.log 2>&1

# Ensure claude CLI and venv python are in PATH (cron doesn't inherit user PATH)
# Venv python first so `python3` resolves to the venv with praw installed
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)"
export PATH="$REPO_ROOT/venv/bin:$HOME/.local/bin:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node/ 2>/dev/null | tail -1)/bin:$PATH"

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_DIR="$(cd "$SCRIPT_DIR/../../.." && pwd)"
SUBREDDIT="${REDDIT_SUBREDDIT:-sap}"
LOG_DIR="$REPO_DIR/reddit-data/$SUBREDDIT/cron-log"
LOCKFILE="/tmp/reddit-automod-$SUBREDDIT.lock"
SINCE_MINUTES="${SINCE_MINUTES:-720}"
MAX_BUDGET="${MAX_BUDGET_USD:-2.00}"
EXECUTE=""

# Parse args
for arg in "$@"; do
    case "$arg" in
        --execute) EXECUTE="--execute" ;;
        *) echo "Unknown arg: $arg" >&2; exit 1 ;;
    esac
done

# Create log directory
mkdir -p "$LOG_DIR"

# Prevent concurrent runs
exec 9>"$LOCKFILE"
if ! flock -n 9; then
    echo "$(date -Iseconds) SKIP: another instance is running" >> "$LOG_DIR/cron.log"
    exit 0
fi

TIMESTAMP="$(date -Iseconds)"
echo "=== Reddit automod run: $TIMESTAMP ==="

MODE="dry-run"
[ -n "$EXECUTE" ] && MODE="live"
echo "Mode: $MODE | Subreddit: r/$SUBREDDIT | Since: ${SINCE_MINUTES}m | Budget: \$${MAX_BUDGET}"

PROMPT="You are running automated Reddit moderation for r/$SUBREDDIT.

Step 1: Run this command to fetch and build classification prompts:
python3 skills/content/content/scripts/reddit-moderate/reddit-mod.py queue --auto --since-minutes $SINCE_MINUTES --json | python3 skills/content/content/scripts/reddit-moderate/reddit-mod.py classify

Step 2: If the queue is empty (count: 0), output 'Queue empty, no action needed.' and stop.

Step 3: For each item in the output, read the 'prompt' field and classify it as one of:
FALSE_REPORT, VALID_REPORT, MASS_REPORT_ABUSE, SPAM, BAN_RECOMMENDED, NEEDS_HUMAN_REVIEW

Assign confidence 0-100 and one-sentence reasoning.

Step 4: Apply actions for items meeting confidence thresholds:
- FALSE_REPORT/MASS_REPORT_ABUSE >= 95%: python3 skills/content/content/scripts/reddit-moderate/reddit-mod.py approve --id {id}
- SPAM >= 90%: python3 skills/content/content/scripts/reddit-moderate/reddit-mod.py remove --id {id} --reason '{reason}' --spam
- VALID_REPORT >= 90%: python3 skills/content/content/scripts/reddit-moderate/reddit-mod.py remove --id {id} --reason '{reason}'
- BAN_RECOMMENDED: ALWAYS skip (never auto-ban)
- Below threshold: skip (leave for human review)

Step 5: Output a summary table of all items and actions taken.

IMPORTANT: When in doubt, SKIP. False negatives are better than false positives.
IMPORTANT: Never ban users. Never lock threads. These require human review."

cd "$REPO_DIR"

if [ -z "$EXECUTE" ]; then
    # Dry run: replace action commands with echo
    PROMPT="$PROMPT

DRY RUN MODE: Do NOT execute any approve/remove commands. Instead, show what you WOULD do for each item."
fi

claude -p "$PROMPT" \
    --output-format text \
    --permission-mode auto \
    --max-budget-usd "$MAX_BUDGET" \
    --no-session-persistence \
    --model opus \
    2>&1 | tee "$LOG_DIR/run-$(date +%Y%m%d-%H%M%S).log"

EXIT_CODE=${PIPESTATUS[0]}

echo ""
echo "=== Run complete: $(date -Iseconds) | exit: $EXIT_CODE ==="

# Release lock
exec 9>&-
rm -f "$LOCKFILE"

exit $EXIT_CODE
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall