Skip to content

ericrisco/rsc-harness / skills/linkedin-strategy

linkedin-strategy

Verified

Use when a LinkedIn presence — personal brand or company page — needs an account-level decision spanning months: positioning and point of view, three to five content pillars, posting cadence, whether content lives on the founder's profile or the company page, and the social-selling rhythm, read from and written back to the presence's own learning wiki. NOT writing the post copy or hook (that is `linkedin-content`), NOT building a carousel deck (that is `linkedin-carousels`), NOT sending DMs (that is `linkedin-outreach`), NOT pulling raw analytics (that is `linkedin-api`).

FileKindSize
SKILL.mdskill md13.0 KB
evals/README.mdmarkdown1.2 KB
evals/cases.yamlconfig3.7 KB
references/ssi-and-pillars.mdmarkdown3.6 KB
references/wiki-records.mdmarkdown4.6 KB
scripts/verify.shexecutablescript4.0 KB

scripts/verify.sh

View on GitHub
#!/usr/bin/env bash
#
# verify.sh — structural lint for a linkedin-strategy wiki under 02-DOCS/wiki/linkedin/.
#
# WHAT IT DOES (read-only; never edits a file)
#   Static, network-free checks on the decision records this skill writes back.
#     1. The target directory exists.
#     2. At least one decision record is present: a file under decisions/*.md
#        OR a running decisions.md log at the target root.
#     3. Each decision record carries the required signals:
#          - a date              (a YYYY-MM-DD anywhere in the file)
#          - a Decision: line     (the concrete choice)
#          - a named metric/bet   (a "Bets on metric:" / "metric" / "bet" field)
#        A record missing the metric/bet is a HARD FAILURE — a decision with no
#        metric is an opinion, not a checkable bet. Missing date or Decision line
#        is also a hard failure. A missing review date is a soft warning.
#
#   A missing/empty target (a fresh presence with no wiki yet) is reported and
#   exits 0 — no false failure. Pure bash + grep, no dependencies. It is a lint,
#   not a strategy oracle: it never judges whether the strategy is good.
#
# HOW TO RUN
#   ./verify.sh 02-DOCS/wiki/linkedin/   # lint a presence's strategy wiki
#   ./verify.sh                          # no target -> nothing to check, exit 0
#
# EXIT CODES
#   0  clean, or nothing to check
#   1  a hard structural failure
#   2  bad usage
#
# Runs on stock macOS bash 3.2.

set -euo pipefail

if [ -t 1 ]; then
  RED=$'\033[31m'; GREEN=$'\033[32m'; YELLOW=$'\033[33m'; NC=$'\033[0m'
else
  RED=''; GREEN=''; YELLOW=''; NC=''
fi

ok_count=0; warn_count=0; fail_count=0
ok()   { printf '%s[ ok ]%s %s\n' "$GREEN"  "$NC" "$*"; ok_count=$((ok_count + 1)); }
warn() { printf '%s[warn]%s %s\n' "$YELLOW" "$NC" "$*"; warn_count=$((warn_count + 1)); }
fail() { printf '%s[fail]%s %s\n' "$RED"    "$NC" "$*"; fail_count=$((fail_count + 1)); }

usage() { sed -n '2,33p' "$0" | sed 's/^# \{0,1\}//'; }

summary_exit() {
  printf '\nok=%d warn=%d fail=%d\n' "$ok_count" "$warn_count" "$fail_count"
  [ "$fail_count" -gt 0 ] && exit 1
  exit 0
}

# --- arg parse --------------------------------------------------------------
TARGET=""
while [ $# -gt 0 ]; do
  case "$1" in
    -h|--help) usage; exit 0 ;;
    -*) printf 'unknown flag: %s\n' "$1" >&2; usage >&2; exit 2 ;;
    *) TARGET="$1"; shift ;;
  esac
done

# No target, or missing dir -> nothing to check, clean exit (no false fail).
if [ -z "$TARGET" ]; then
  ok "no wiki path given — nothing to lint"
  summary_exit
fi
if [ ! -d "$TARGET" ]; then
  warn "directory not found: $TARGET — nothing to lint (fresh presence?)"
  summary_exit
fi
ok "wiki directory exists: $TARGET"

# --- collect decision records ----------------------------------------------
# Per-decision files under decisions/, plus an optional running decisions.md log.
RECORDS=""
if [ -d "$TARGET/decisions" ]; then
  for f in "$TARGET"/decisions/*.md; do
    [ -f "$f" ] && RECORDS="$RECORDS$f
"
  done
fi
[ -f "$TARGET/decisions.md" ] && RECORDS="$RECORDS$TARGET/decisions.md
"

# Trim blank lines / handle empty.
RECORDS="$(printf '%s' "$RECORDS" | sed '/^$/d')"

if [ -z "$RECORDS" ]; then
  warn "no decision records yet (decisions/*.md or decisions.md) — nothing to lint"
  summary_exit
fi

# --- per-record structural checks ------------------------------------------
DATE_RE='[0-9]{4}-[0-9]{2}-[0-9]{2}'

while IFS= read -r rec; do
  [ -z "$rec" ] && continue
  if [ ! -s "$rec" ]; then
    fail "$rec: empty record"
    continue
  fi

  miss=""
  grep -Eq  "$DATE_RE"                       "$rec" || miss="$miss date"
  grep -Eiq '^[[:space:]-]*Decision:'        "$rec" || miss="$miss decision-line"
  grep -Eiq '(bets on metric:|metric|bet:)'  "$rec" || miss="$miss metric/bet"

  if [ -n "$miss" ]; then
    fail "$rec: missing required field(s):$miss"
  else
    ok "$rec: date + decision + metric present"
    grep -Eiq 'review date:' "$rec" || warn "$rec: no review date — bet has no follow-up"
  fi
done <<EOF
$RECORDS
EOF

summary_exit
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall