extract-dna

extract-dna is a command for Claude Code from lckx777/copy-chief-black. It costs 18 tokens per session (1,678 once invoked), scanned A, original, MIT.

A tool that examines content and extracts its underlying ideas into five categories: beliefs, named models, rules of thumb, step-by-step methods, and trade-offs. The result is organized knowledge that can be reused.

In plain words
What is it for?
Use it to analyze books, research, competitor sales material, or internal documents and capture their principles, processes, shortcuts, and tensions.
Why use it?
It turns long documents into a structured reference, making the author's way of thinking easier to study and apply.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to analyze books, research, competitor sales material, or internal documents and capture their principles, processes, shortcuts, and tensions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lckx777/copy-chief-black/extract-dna
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 extract-dna

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/lckx777/copy-chief-black/extract-dna"><img src="https://agentmods.dev/badge/commands/lckx777/copy-chief-black/extract-dna.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,678 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.00018 $0.01678
Opus 5 $0.00009 $0.00839
Sonnet 5 $0.00004 $0.00336
Haiku 4.5 $0.00002 $0.00168

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

Security

Grade A, and why

extract-dna 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 10d 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.

framework/commands/extract-dna.md · 194 lines

How it starts

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

/extract-dna — Extract DNA from Content

Input: $ARGUMENTS

Runs the 5-layer DNA extraction from the System Cloning pipeline (S37) on any content file. Produces structured knowledge: frameworks, principles, methodologies, heuristics, and dilemmas.

What It Extracts

Layer What it Captures Examples
Philosophy Core principles and beliefs "Copy confortavel = copy que falhou"
Frameworks Named structural models RMBC, HELIX, 5 Lentes de Validacao
Heuristics Decision shortcuts and rules of thumb "If DRE < level 3, escalate to level 4"
Methodologies Step-by-step processes and workflows Constraint Progressivo 4 iterations
Dilemmas Trade-offs, edge cases, tensions "Specificity vs broad appeal for cold traffic"

Instructions

When this command is invoked with $ARGUMENTS:

Step 1: Validate Input

If $ARGUMENTS is empty:

Usage: /extract-dna <path-to-content>

Examples:
  /extract-dna ~/Downloads/scientific-advertising.pdf
  /extract-dna ~/copywriting-ecosystem/swipes/competitor-vsl.md
  /extract-dna ~/copywriting-ecosystem/saude/florayla/research/synthesis.md

For expert web-based cloning, use /clone-expert instead.

Verify the file exists:

ls "$ARGUMENTS" 2>/dev/null

If not found, report error and stop.

Step 2: Check Quality Threshold

Before running full extraction, estimate content size:

bun run ~/copywriting-ecosystem/scripts/system-cloning/quality-threshold.ts status 2>/dev/null

Also estimate reading time from file size (rough: 1KB ≈ 1 min reading at 200wpm):

wc -w "$ARGUMENTS" 2>/dev/null

Display the quality assessment:

QUALITY GATE CHECK

File: [filename]
Size: [X] words / ~[Y] min reading time
Cumulative ingested: [Z] hours total

Status: [SUFFICIENT_DATA ≥ 100h | INSUFFICIENT_DATA < 100h]

If INSUFFICIENT_DATA, warn:

⚠️  WARNING: Total ingested content < 100h reading time.
DNA extraction will be marked as SPECULATIVE.
Results are useful but may be incomplete or biased by limited training data.

Continue anyway? (y/n)

Read the full file on GitHub · 194 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. 10d ago First seen · 194 lines · 18 tokens per session scan A 59e313b32c3a

Subscribe to this mod's changes

extract-dna is a command published in the GitHub repository lckx777/copy-chief-black (5 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 1,678 once invoked, about $0.0001 per session on Opus 5. 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-31.