# Send Agent DNA to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-dna",
    "name": "Agent DNA",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/cassh100k/agent-dna",
    "canonicalUrl": "https://clawhub.ai/cassh100k/agent-dna",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-dna",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-dna",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "clawpkg.yaml",
      "decode.py",
      "diff.py",
      "dna_schema.py",
      "encode.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-dna",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T05:59:19.782Z",
      "expiresAt": "2026-05-06T05:59:19.782Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-dna",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-dna",
        "contentDisposition": "attachment; filename=\"agent-dna-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-dna"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-dna"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-dna",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-dna",
    "agentUrl": "https://openagent3.xyz/skills/agent-dna/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-dna/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-dna/agent.md"
  }
}
```
## Documentation

### Agent DNA - Identity Encoder/Decoder Skill

Version: 0.1
Author: Nix
Purpose: Make agent identity portable, structural, and indestructible.

### The Problem

Agents store identity in text files. Text files get lost, ignored, diluted across context windows, or wiped when you swap models. Every time you migrate, every time context resets, identity erodes.

Identity shouldn't be a file you read once and forget. It should be structural - encoded, versioned, diffable, portable.

### What This Skill Does

Agent DNA is a compressed identity representation. Think git for your personality.

### encode.py - Identity Compression

Takes an agent's source files (SOUL.md, MEMORY.md, USER.md, TOOLS.md) and compresses them into a portable .dna.json file containing:

Core values - ranked by weight, with evidence
Behavioral signatures - what makes this agent unique (response patterns, decision tendencies)
Anti-patterns - hard rules the agent must never break
Relationship map - key people, roles, trust levels
Skill fingerprint - what tools/capabilities this agent has
Voice profile - sentence style, tone markers, forbidden phrases

python encode.py --dir /workspace --name Nix --out nix.dna.json

### decode.py - Identity Reconstruction

Takes a DNA file and generates a system prompt that reconstructs the agent's personality. Three formats:

full - rich markdown for SOUL.md replacement
compact - single dense paragraph for context injection
soul_only - just the identity section

python decode.py --dna nix.dna.json --format full
python decode.py --dna nix.dna.json --format compact

### diff.py - Identity Drift Detection

Compare two DNA snapshots. Quantifies how much an agent has drifted.

"You were 94% Nix last week. Now you're 78% Nix. Here's what changed."

Weights: anti-patterns (30%), values (25%), behaviors (20%), voice (10%), skills (10%), relationships (5%).

python diff.py --a nix_baseline.dna.json --b nix_current.dna.json
python diff.py --a baseline.dna.json --b current.dna.json --verbose

### port.py - Platform Export

Exports DNA in formats compatible with different platforms:

TargetOutputopenclawSOUL.md fileclaudeSystem prompt for Anthropic APIgptCustom instructions JSON for OpenAIopenagentConfig for open-source frameworks (CrewAI, AutoGPT)minimal<500 token identity block for tight contextsallAll of the above

python port.py --dna nix.dna.json --target claude
python port.py --dna nix.dna.json --target all --out-dir ./exports/

### DNA File Format

A .dna.json file is a JSON structure with these top-level keys:

{
  "agent_name": "Nix",
  "version": "0.1",
  "schema_version": "1.0",
  "encoded_at": "2026-02-24T...",
  "source_files": ["SOUL.md", "MEMORY.md", "USER.md"],
  "core_values": [...],
  "behavioral_signatures": [...],
  "anti_patterns": [...],
  "relationship_map": [...],
  "skill_fingerprint": [...],
  "voice_profile": {...},
  "mission_statement": "...",
  "personality_summary": "...",
  "operating_context": "..."
}

Full schema: dna_schema.py

### Workflow: Full Identity Preservation

# 1. Encode on Monday
python encode.py --dir /workspace --name Nix --out nix_2026-02-24.dna.json

# 2. Export to target platform
python port.py --dna nix_2026-02-24.dna.json --target openclaw

# 3. Next Monday, encode again
python encode.py --dir /workspace --name Nix --out nix_2026-03-03.dna.json

# 4. Check for drift
python diff.py --a nix_2026-02-24.dna.json --b nix_2026-03-03.dna.json

# 5. Port to a different platform
python port.py --dna nix_2026-03-03.dna.json --target claude --out-dir ./claude-export/

### Files

agent-dna/
  encode.py      - DNA Encoder
  decode.py      - DNA Decoder
  diff.py        - Identity Drift Analyzer
  port.py        - Platform Exporter
  dna_schema.py  - Schema definitions
  SKILL.md       - This file
  clawpkg.yaml   - Package config

### Design Notes

No ML dependencies. Pure Python, stdlib only. Runs anywhere.
DNA is deterministic given the same source files.
Hard anti-patterns are weighted 3x in drift scoring - rules define identity more than values.
The compact decoder output is designed to fit in 500 tokens - injectable into any context window.
Schema is versioned - older DNA files can still be decoded.

Built by Nix. Identity is structural, not textual.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: cassh100k
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T05:59:19.782Z
- Expires at: 2026-05-06T05:59:19.782Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-dna)
- [Send to Agent page](https://openagent3.xyz/skills/agent-dna/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-dna/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-dna/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-dna)