update-ecosystem

update-ecosystem is a command for Claude Code from lckx777/copy-chief-black. It costs 13 tokens per session (2,547 once invoked), scanned D, original, MIT.

A command that creates a complete ZIP backup of a Claude Code copywriting ecosystem, including its components and version information.

In plain words
What is it for?
Use it to discover the installed components, synchronize their version, prepare a build folder, and create an installer archive.
Why use it?
It packages the ecosystem in one archive and checks that version details are synchronized before building the backup.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; positional $N argument.

Good fit Use it to discover the installed components, synchronize their version, prepare a build folder, and create an installer archive.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lckx777/copy-chief-black/update-ecosystem
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lckx777/copy-chief-black

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 update-ecosystem

README.md
[![agentmods](https://agentmods.dev/badge/commands/lckx777/copy-chief-black/update-ecosystem/github.svg)](https://agentmods.dev/commands/lckx777/copy-chief-black/update-ecosystem)
Your own site
<a href="https://agentmods.dev/commands/lckx777/copy-chief-black/update-ecosystem"><img src="https://agentmods.dev/badge/commands/lckx777/copy-chief-black/update-ecosystem/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 update-ecosystem

Your own site · 80×15
<a href="https://agentmods.dev/commands/lckx777/copy-chief-black/update-ecosystem"><img src="https://agentmods.dev/badge/commands/lckx777/copy-chief-black/update-ecosystem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,547 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 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.00013 $0.02547
Opus 5 $0.00006 $0.01273
Sonnet 5 $0.00003 $0.00509
Haiku 4.5 $0.00001 $0.00255

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

Security

Grade D, and why

update-ecosystem scanned grade D 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 7d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

VERSION=$(grep "^VERSION=" ~/.claude/.version | cut -d= -f2)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$BUILD_DIR"
framework/commands/update-ecosystem.md · 383 lines

How it starts

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

/update-ecosystem - Backup Completo do Ecossistema

Gera um ZIP com TUDO do ecossistema Claude Code usando descoberta automática.

Filosofia: Incluir TUDO, excluir apenas auto-gerados.


FASE 0: IDENTIFICAR VERSÃO (Automático)

# Ler versão de ~/.claude/.version (Single Source of Truth)
VERSION=$(grep "^VERSION=" ~/.claude/.version | cut -d= -f2)
RELEASED=$(grep "^RELEASED=" ~/.claude/.version | cut -d= -f2)
TIMESTAMP=$(date +%Y%m%d-%H%M)

echo "Versão: v$VERSION"
echo "Released: $RELEASED"
echo "Timestamp: $TIMESTAMP"

Se .version não existe:

# Criar com versão atual
echo "VERSION=4.9.3" > ~/.claude/.version
echo "RELEASED=$(date +%Y-%m-%d)" >> ~/.claude/.version

FASE 1: SINCRONIZAR VERSÃO

# Propagar versão para todos os arquivos
~/.claude/scripts/sync-version.sh

# Verificar sincronização
~/.claude/scripts/sync-version.sh --check

❌ BLOQUEAR SE: Arquivos dessincronizados


FASE 2: PREPARAR DIRETÓRIO DE BUILD

BUILD_DIR="/tmp/eco-build-$TIMESTAMP"
PAYLOAD_DIR="$BUILD_DIR/ecossistema-v${VERSION}-installer/payload"
ZIP_NAME="ecossistema-v${VERSION}-installer.zip"

rm -rf "$BUILD_DIR"
mkdir -p "$PAYLOAD_DIR/.claude"
mkdir -p "$PAYLOAD_DIR/copywriting-ecosystem"

FASE 3: COPIAR ~/.claude/ (Descoberta Automática)

3.1 Definir Exclusões (Única Lista a Manter)

CLAUDE_EXCLUDES=(
    "debug"
    "cache"
    "plans"
    "session-env"
    "shell-snapshots"
    "file-history"
    "projects"
    "paste-cache"
    "todos"
    "tasks"
    "telemetry"
    "downloads"
    "history.jsonl"
    ".DS_Store"
    "statsig"
    "memory.db"
    "memory.db-wal"
    "memory.db-shm"
    "plugins/marketplaces"
    "plugins/cache"
)

3.2 Copiar Tudo Exceto Exclusões

# Construir padrão de exclusão para rsync
EXCLUDE_PATTERN=""
for item in "${CLAUDE_EXCLUDES[@]}"; do
    EXCLUDE_PATTERN="$EXCLUDE_PATTERN --exclude=$item"
done

# Copiar TUDO de ~/.claude/ exceto exclusões
rsync -av $EXCLUDE_PATTERN ~/.claude/ "$PAYLOAD_DIR/.claude/"

Read the full file on GitHub · 383 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. 7d ago First seen · 383 lines · 13 tokens per session scan D bd034306545a

Subscribe to this mod's changes

update-ecosystem is a command published in the GitHub repository lckx777/copy-chief-black (5 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 2,547 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.