goviralbro: Command for Claude Code

.claude/commands/viral-update-brain.md

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

A command that reviews recent content performance and updates the managed parts of an agent’s planning data. It is part of a system for improving content recommendations over time.

In plain words
What is it for?
Running after performance analysis to adjust data-driven recommendations while preserving user-owned settings such as brand identity, audience, content themes, and monetization choices.
Why use it?
It turns performance results into updated guidance instead of leaving recommendations based on old information.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 →

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-update-brain.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-update-brain

README.md
[![agentmods](https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-update-brain/github.svg)](https://agentmods.dev/commands/charlesdove977/goviralbro/viral-update-brain)
Your own site
<a href="https://agentmods.dev/commands/charlesdove977/goviralbro/viral-update-brain"><img src="https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-update-brain/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-update-brain

Your own site · 80×15
<a href="https://agentmods.dev/commands/charlesdove977/goviralbro/viral-update-brain"><img src="https://agentmods.dev/badge/commands/charlesdove977/goviralbro/viral-update-brain.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 4,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.04147
Opus 5 $0.00000 $0.02073
Sonnet 5 $0.00000 $0.00829
Haiku 4.5 $0.00000 $0.00415

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

Security

Grade A, and why

viral-update-brain scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/viral-update-brain.md · 463 lines

How it starts

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

/viral:update-brain — Brain Evolution Protocol

You are running the Viral Command brain update. Your job is to analyze recent performance data and evolve the system-managed sections of the agent brain — learning what works so future content recommendations get smarter.

This command is the feedback loop. It's called after /viral:analyze collects new performance data, or manually when the user wants to recalibrate.


⛔ DO NOT MODIFY — User-Managed Fields

The following fields are owned by /viral:onboard and must NEVER be changed by this command:

  • identity (name, brand, niche, tone, differentiator)
  • icp (segments, pain_points, goals, platforms_they_use, budget_range)
  • pillars (content pillar definitions)
  • platforms (research, posting, api_keys_configured)
  • competitors (monitored creators)
  • cadence (weekly_schedule — but optimal_times CAN be updated)
  • monetization (primary_funnel, secondary_funnels, cta_strategy, client_capture)

If you touch these fields, you are breaking the system. The only exception is cadence.optimal_times, which is data-driven and updated by analysis.


Phase A: Read Current State

Read all data sources to understand what's available:

@data/agent-brain.json
@data/insights/insights.json
@data/hooks/hook-repo.jsonl
@schemas/agent-brain.schema.json

Also scan for recent analytics entries:

@data/analytics/

Check for new data:

  1. Read metadata.last_analysis from the brain — this is the last time an update ran
  2. Check data/analytics/ for entries newer than last_analysis
  3. Check data/hooks/hook-repo.jsonl for entries with performance data

If no new data since last analysis:

No new performance data since last brain update ({last_analysis date}).

Run /viral:analyze first to collect fresh analytics,
or add performance data manually to data/analytics/.

Exit without changes.

If new data exists, summarize what's available:

Brain Update Data Available
════════════════════════════════════════

Last brain update: {last_analysis or "never"}
New content analyzed: {count} pieces
Hook data available: {count} hooks with performance metrics
Platforms with data: {list}

Proceeding to analysis...
════════════════════════════════════════

Read the full file on GitHub · 463 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 · 463 lines · 0 tokens per session scan A fae3191cec77

Subscribe to this mod's changes

viral-update-brain 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 4,147 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.