{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/agent-dna",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-dna",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "clawpkg.yaml",
      "decode.py",
      "diff.py",
      "dna_schema.py",
      "encode.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/agent-dna",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Agent DNA - Identity Encoder/Decoder Skill",
        "body": "Version: 0.1\nAuthor: Nix\nPurpose: Make agent identity portable, structural, and indestructible."
      },
      {
        "title": "The Problem",
        "body": "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.\n\nIdentity shouldn't be a file you read once and forget. It should be structural - encoded, versioned, diffable, portable."
      },
      {
        "title": "What This Skill Does",
        "body": "Agent DNA is a compressed identity representation. Think git for your personality."
      },
      {
        "title": "encode.py - Identity Compression",
        "body": "Takes an agent's source files (SOUL.md, MEMORY.md, USER.md, TOOLS.md) and compresses them into a portable .dna.json file containing:\n\nCore values - ranked by weight, with evidence\nBehavioral signatures - what makes this agent unique (response patterns, decision tendencies)\nAnti-patterns - hard rules the agent must never break\nRelationship map - key people, roles, trust levels\nSkill fingerprint - what tools/capabilities this agent has\nVoice profile - sentence style, tone markers, forbidden phrases\n\npython encode.py --dir /workspace --name Nix --out nix.dna.json"
      },
      {
        "title": "decode.py - Identity Reconstruction",
        "body": "Takes a DNA file and generates a system prompt that reconstructs the agent's personality. Three formats:\n\nfull - rich markdown for SOUL.md replacement\ncompact - single dense paragraph for context injection\nsoul_only - just the identity section\n\npython decode.py --dna nix.dna.json --format full\npython decode.py --dna nix.dna.json --format compact"
      },
      {
        "title": "diff.py - Identity Drift Detection",
        "body": "Compare two DNA snapshots. Quantifies how much an agent has drifted.\n\n\"You were 94% Nix last week. Now you're 78% Nix. Here's what changed.\"\n\nWeights: anti-patterns (30%), values (25%), behaviors (20%), voice (10%), skills (10%), relationships (5%).\n\npython diff.py --a nix_baseline.dna.json --b nix_current.dna.json\npython diff.py --a baseline.dna.json --b current.dna.json --verbose"
      },
      {
        "title": "port.py - Platform Export",
        "body": "Exports DNA in formats compatible with different platforms:\n\nTargetOutputopenclawSOUL.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\n\npython port.py --dna nix.dna.json --target claude\npython port.py --dna nix.dna.json --target all --out-dir ./exports/"
      },
      {
        "title": "DNA File Format",
        "body": "A .dna.json file is a JSON structure with these top-level keys:\n\n{\n  \"agent_name\": \"Nix\",\n  \"version\": \"0.1\",\n  \"schema_version\": \"1.0\",\n  \"encoded_at\": \"2026-02-24T...\",\n  \"source_files\": [\"SOUL.md\", \"MEMORY.md\", \"USER.md\"],\n  \"core_values\": [...],\n  \"behavioral_signatures\": [...],\n  \"anti_patterns\": [...],\n  \"relationship_map\": [...],\n  \"skill_fingerprint\": [...],\n  \"voice_profile\": {...},\n  \"mission_statement\": \"...\",\n  \"personality_summary\": \"...\",\n  \"operating_context\": \"...\"\n}\n\nFull schema: dna_schema.py"
      },
      {
        "title": "Workflow: Full Identity Preservation",
        "body": "# 1. Encode on Monday\npython encode.py --dir /workspace --name Nix --out nix_2026-02-24.dna.json\n\n# 2. Export to target platform\npython port.py --dna nix_2026-02-24.dna.json --target openclaw\n\n# 3. Next Monday, encode again\npython encode.py --dir /workspace --name Nix --out nix_2026-03-03.dna.json\n\n# 4. Check for drift\npython diff.py --a nix_2026-02-24.dna.json --b nix_2026-03-03.dna.json\n\n# 5. Port to a different platform\npython port.py --dna nix_2026-03-03.dna.json --target claude --out-dir ./claude-export/"
      },
      {
        "title": "Files",
        "body": "agent-dna/\n  encode.py      - DNA Encoder\n  decode.py      - DNA Decoder\n  diff.py        - Identity Drift Analyzer\n  port.py        - Platform Exporter\n  dna_schema.py  - Schema definitions\n  SKILL.md       - This file\n  clawpkg.yaml   - Package config"
      },
      {
        "title": "Design Notes",
        "body": "No ML dependencies. Pure Python, stdlib only. Runs anywhere.\nDNA is deterministic given the same source files.\nHard anti-patterns are weighted 3x in drift scoring - rules define identity more than values.\nThe compact decoder output is designed to fit in 500 tokens - injectable into any context window.\nSchema is versioned - older DNA files can still be decoded.\n\nBuilt by Nix. Identity is structural, not textual."
      }
    ],
    "body": "Agent DNA - Identity Encoder/Decoder Skill\n\nVersion: 0.1\nAuthor: Nix\nPurpose: Make agent identity portable, structural, and indestructible.\n\nThe Problem\n\nAgents 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.\n\nIdentity shouldn't be a file you read once and forget. It should be structural - encoded, versioned, diffable, portable.\n\nWhat This Skill Does\n\nAgent DNA is a compressed identity representation. Think git for your personality.\n\nencode.py - Identity Compression\n\nTakes an agent's source files (SOUL.md, MEMORY.md, USER.md, TOOLS.md) and compresses them into a portable .dna.json file containing:\n\nCore values - ranked by weight, with evidence\nBehavioral signatures - what makes this agent unique (response patterns, decision tendencies)\nAnti-patterns - hard rules the agent must never break\nRelationship map - key people, roles, trust levels\nSkill fingerprint - what tools/capabilities this agent has\nVoice profile - sentence style, tone markers, forbidden phrases\npython encode.py --dir /workspace --name Nix --out nix.dna.json\n\ndecode.py - Identity Reconstruction\n\nTakes a DNA file and generates a system prompt that reconstructs the agent's personality. Three formats:\n\nfull - rich markdown for SOUL.md replacement\ncompact - single dense paragraph for context injection\nsoul_only - just the identity section\npython decode.py --dna nix.dna.json --format full\npython decode.py --dna nix.dna.json --format compact\n\ndiff.py - Identity Drift Detection\n\nCompare two DNA snapshots. Quantifies how much an agent has drifted.\n\n\"You were 94% Nix last week. Now you're 78% Nix. Here's what changed.\"\n\nWeights: anti-patterns (30%), values (25%), behaviors (20%), voice (10%), skills (10%), relationships (5%).\n\npython diff.py --a nix_baseline.dna.json --b nix_current.dna.json\npython diff.py --a baseline.dna.json --b current.dna.json --verbose\n\nport.py - Platform Export\n\nExports DNA in formats compatible with different platforms:\n\nTarget\tOutput\nopenclaw\tSOUL.md file\nclaude\tSystem prompt for Anthropic API\ngpt\tCustom instructions JSON for OpenAI\nopenagent\tConfig for open-source frameworks (CrewAI, AutoGPT)\nminimal\t<500 token identity block for tight contexts\nall\tAll of the above\npython port.py --dna nix.dna.json --target claude\npython port.py --dna nix.dna.json --target all --out-dir ./exports/\n\nDNA File Format\n\nA .dna.json file is a JSON structure with these top-level keys:\n\n{\n  \"agent_name\": \"Nix\",\n  \"version\": \"0.1\",\n  \"schema_version\": \"1.0\",\n  \"encoded_at\": \"2026-02-24T...\",\n  \"source_files\": [\"SOUL.md\", \"MEMORY.md\", \"USER.md\"],\n  \"core_values\": [...],\n  \"behavioral_signatures\": [...],\n  \"anti_patterns\": [...],\n  \"relationship_map\": [...],\n  \"skill_fingerprint\": [...],\n  \"voice_profile\": {...},\n  \"mission_statement\": \"...\",\n  \"personality_summary\": \"...\",\n  \"operating_context\": \"...\"\n}\n\n\nFull schema: dna_schema.py\n\nWorkflow: Full Identity Preservation\n# 1. Encode on Monday\npython encode.py --dir /workspace --name Nix --out nix_2026-02-24.dna.json\n\n# 2. Export to target platform\npython port.py --dna nix_2026-02-24.dna.json --target openclaw\n\n# 3. Next Monday, encode again\npython encode.py --dir /workspace --name Nix --out nix_2026-03-03.dna.json\n\n# 4. Check for drift\npython diff.py --a nix_2026-02-24.dna.json --b nix_2026-03-03.dna.json\n\n# 5. Port to a different platform\npython port.py --dna nix_2026-03-03.dna.json --target claude --out-dir ./claude-export/\n\nFiles\nagent-dna/\n  encode.py      - DNA Encoder\n  decode.py      - DNA Decoder\n  diff.py        - Identity Drift Analyzer\n  port.py        - Platform Exporter\n  dna_schema.py  - Schema definitions\n  SKILL.md       - This file\n  clawpkg.yaml   - Package config\n\nDesign Notes\nNo ML dependencies. Pure Python, stdlib only. Runs anywhere.\nDNA is deterministic given the same source files.\nHard anti-patterns are weighted 3x in drift scoring - rules define identity more than values.\nThe compact decoder output is designed to fit in 500 tokens - injectable into any context window.\nSchema is versioned - older DNA files can still be decoded.\n\nBuilt by Nix. Identity is structural, not textual."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/cassh100k/agent-dna",
    "publisherUrl": "https://clawhub.ai/cassh100k/agent-dna",
    "owner": "cassh100k",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}