搜索

PythonReactSEOPDF
OpenClaw

agent-dna

Portable agent identity encoding. Compress SOUL.md/MEMORY.md into transferable DNA fingerprints, detect identity drift between snapshots, and port personality across platforms (OpenClaw, Claude, GPT, CrewAI). Pure Python, zero dependencies. Use when migrating agents between platforms, detecting personality drift, or backing up agent identity.

cassh100k0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install cassh100k/agent-dna

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/cassh100k/agent-dna
Version
—
Commit
f769ed2d25ccde4c77b13c6d32684d8249555575
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 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

```bash
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

```bash
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%).

```bash
python diff.py --...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.