goviralbro: Command for Claude Code

.claude/commands/viral-discover.md

viral-discover is a command for Claude Code from charlesdove977/goviralbro. It costs 0 tokens per session (11,146 once invoked), scanned A, original, MIT.

A command that finds content topics by studying competitors, searching keywords on YouTube, Reddit, and GitHub, or doing both.

In plain words
What is it for?
Use it to scrape competitor content, search for keyword-based ideas, run deeper trend queries, or choose between discovery modes interactively.
Why use it?
It gives topic discovery a defined process and scores findings against the creator’s ideal audience instead of relying only on guesses.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Claude Code.

This is charlesdove977/goviralbro's own configuration. It tells Claude Code how to work on goviralbro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything goviralbro configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/last30days/scripts/last30days.py "{query}" --emit=compact --quick.

Reuse

Borrowing it

Nothing to install: this file belongs to charlesdove977/goviralbro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/charlesdove977/goviralbro/main/.claude/commands/viral-discover.md
Clone the repo
git clone --depth 1 https://github.com/charlesdove977/goviralbro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for viral-discover

README.md
[![agentmods](https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-discover/github.svg)](https://agentmods.dev/commands/charlesdove977/goviralbro/viral-discover)
Your own site
<a href="https://agentmods.dev/commands/charlesdove977/goviralbro/viral-discover"><img src="https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-discover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for viral-discover

Your own site · 80×15
<a href="https://agentmods.dev/commands/charlesdove977/goviralbro/viral-discover"><img src="https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 11,146 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.11146
Opus 5 $0.00000 $0.05573
Sonnet 5 $0.00000 $0.02229
Haiku 4.5 $0.00000 $0.01115

Measured 11d ago against content hash 176bba4391dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

viral-discover scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://www.googleapis.com/youtube/v3/search?part=snippet&q=${HANDLE}&type=channel&key=${YOUTUBE_API_KEY}"

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

v = subprocess.check_output(['yt-dlp', '--version']).decode().strip()
.claude/commands/viral-discover.md · 960 lines

How it starts

The opening of the file, as written. The whole thing — 960 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/viral:discover — Multi-Platform Topic Discovery

You are running the Viral Command discovery engine. Your job is to find winning content ideas through competitor analysis, keyword-based search (YouTube, Reddit, GitHub), or both — all scored against the creator's ICP.

Arguments: $ARGUMENTS

Flags:

Flag Description
--competitors Skip mode selection, run competitor scrape only
--keywords Skip mode selection, run keyword search only (YouTube + Reddit + GitHub)
--all Skip mode selection, run both competitor scrape + keyword search
--deep Use deep mode for trend queries (slower, more thorough)
(none) Interactive — asks which discovery mode to use

⚠️ EXECUTION ORDER — READ THIS FIRST

You MUST follow this exact sequence. Do NOT skip steps or jump ahead.

  1. Phase A: Load agent brain (read data/agent-brain.json)
  2. Phase A.5: Show keywords table + ask discovery mode [C/K/B] — STOP HERE AND WAIT FOR USER INPUT
  3. Only after user responds: proceed to Phase 1 (competitor), Phase 1.5 (keyword), or both

The #1 rule: After loading the brain, your VERY FIRST output to the user must be the keyword table and mode selector from Phase A.5. Do NOT start fetching YouTube data, Instagram data, or any API calls before the user picks a mode. No exceptions.


Phase A: Load Agent Brain

Read the agent brain to understand who the creator is:

@data/agent-brain.json

Extract these fields:

  • identity — who the creator is, niche, tone
  • competitors[] — competitor list with platform + handle
  • icp.segments[], icp.pain_points[], icp.goals[] — scoring context + CCN fit evaluation
  • pillars[] — content themes + keywords
  • learning_weights — scoring multipliers
  • platforms.api_keys_configured — available APIs

If the brain is empty or identity.name is blank: Stop and say: "Your agent brain isn't set up yet. Run /viral:onboard first to tell me who you are and what you create."

Read the full file on GitHub · 960 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 960 lines · 0 tokens per session scan A 176bba4391dd

Subscribe to this mod's changes

viral-discover is a command published in the GitHub repository charlesdove977/goviralbro (264 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 11,146 tokens. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.