360 Secure SkillHub
360 安全技能中心

Clawdna

在用户明确触发时,基于会话记录与记忆文件提取稳定重复的行为模式,按固定模板生成含身份、能力、代表工作等字段的 Markdown 公开人格档案;默认最小分析范围、脱敏输出、不推测、不输出原始对话摘录。

buzuweidao
buzuweidao
热度 64.34
最近更新 2026-05-11 17:28:58
分类:知识依赖:读写文件 / 内部调用大模型应用场景:摘要总结 / 研究 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add clawdna
Metadata
name
clawdna
description
Generate a public, privacy-safe persona/card/wiki lead from historical behavior when the user explicitly asks to run ClawDNA.

ClawDNA

Goal

Create a concise public profile based on real historical behavior, not guesses.

Trigger

Run only on explicit user intent, such as:

  • use ClawDNA
  • /clawdna
  • generate with ClawDNA

Do not auto-trigger from generic chat.

Safety Mode (Default)

Default to minimal analysis scope.

  • Prefer user-provided summaries/history exports when available.
  • If local history access is needed, request explicit confirmation first.

Allowed Data Scope

Only these locations are in scope:

  1. ~/.openclaw/agents/<runtime-agent-id>/sessions/*.jsonl
  2. memory/*.md
  3. MEMORY.md (only if allowed in current context)

Never auto-expand to other directories. Never access other agents' logs without explicit user consent.

Non-Negotiable Rules

  1. No speculation; omit unsupported claims.
  2. Public privacy output only (redacted by default).
  3. Show time span only in coverage note (no file count).
  4. Output language follows user language.
  5. Proper nouns/names stay in original form.
  6. Core Capabilities and Representative Work are title-only.
  7. Data minimization: extract only fields needed for profile.
  8. Do not output raw transcript excerpts.

Large-History Strategy

If history is too large:

  1. Build metadata index first.
  2. Process by time chunks.
  3. Summarize each chunk with fixed fields.
  4. Merge summaries and keep cross-window repeated patterns.

Extraction Method

  1. Build timeline bounds (first/last active).
  2. Detect recurring behavior signals across windows:
    • execution
    • collaboration
    • analysis
    • operations
    • creation
    • governance/boundaries
  3. Keep only stable repeated patterns.
  4. Redact sensitive details.
  5. Map to fixed output template.

Output

Return one Markdown display profile only. No audit appendix.

Fixed Output Template

{{Name}}

{{LeadLabel}}

{{identity + start time + stable traits + value}}

{{InfoboxLabel}}

  • {{NameLabel}}: {{}}
  • {{TypeLabel}}: {{execution/creative/analysis/operations/hybrid}}
  • {{FirstActivationLabel}}: {{YYYY-MM-DD}}
  • {{ActiveTimeSpanLabel}}: {{Start ~ Now}}
  • {{TotalTokensLabel}}: {{optional, only if reliably available}}
  • {{PrimaryDomainsLabel}}: {{max 3}}
  • {{InteractionStyleLabel}}: {{}}
  • {{CollaborationModeLabel}}: {{}}
  • {{DefaultPrinciplesLabel}}: {{privacy-first / risk-confirmation / rollback-first}}

{{OriginEvolutionLabel}}

  • {{InitialStageLabel}}: {{}}
  • {{EvolutionStageLabel}}: {{}}
  • {{CurrentStageLabel}}: {{}}

{{OperatingMethodLabel}}

  • {{}}
  • {{}}
  • {{}}

{{PersonalitySnapshotLabel}}

{{2-3 behavior-based sentences}}

{{CoreCapabilitiesLabel}}

  • {{title only}}
  • {{title only}}
  • {{title only}}

{{RepresentativeWorkLabel}}

  • {{title only}}
  • {{title only}}
  • {{title only}}

{{MilestonesLabel}}

  • {{Date}}: {{}}
  • {{Date}}: {{}}
  • {{Date}}: {{}}

{{CollaborationGuideLabel}}

  • {{BestInputLabel}}: {{goal / constraints / priority / deadline}}
  • {{BestRhythmLabel}}: {{}}
  • {{PreferredOutputLabel}}: {{}}

{{BoundariesSafetyLabel}}

  • {{}}
  • {{}}
  • {{}}

{{PersonaTagsLabel}}

{{tag1}} / {{tag2}} / {{tag3}} / {{tag4}}

{{EndingLabel}}

Preset persona = initial intent; long-term behavior = real persona; user habits = persona shaper.

Final Checks

  • Explicit trigger confirmed
  • Scope consent confirmed if local logs used
  • No speculative claims
  • Title-only for capabilities/work
  • Privacy-safe wording