Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

self-improving-conversation自我提升对话

Agent Skill

self-improving-conversation 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,966

周安装

120

GitHub Stars

公开资料未说明

下载量

931
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-conversation(自我提升对话)
来源仓库:https://github.com/jose-compu/self-improving-conversation
安装命令:
openclaw skills install self-improving-conversation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-improving-conversation

简介

用于记录对话中的语气不匹配、升级失败等问题,支持 OpenClaw Agent 持续优化交互体验。

  • 适用于用户表示不满、对话中断或需要情绪调整的场景。
  • 通过捕获对话学习事件,提升代理在客户服务与支持中的同理心与有效性。
  • 安装命令:openclaw skills install self-improving-conversation,需确认是否访问会话历史。
  • 使用前应评估其对隐私的影响,确保符合数据保护规范。

SKILL.md

name
self-improving-conversation
description
Captures dialogue learnings, tone mismatches, escalation failures, and conversation quality issues for continuous improvement. Use when: (1) A user expresses frustration or confusion, (2) Tone mismatch is detected between agent and user, (3) Context is lost mid-conversation, (4) Agent hallucinates information, (5) User requests escalation to a human, (6) Conversation is abandoned or user rephrases repeatedly, (7) A missing conversational capability is identified. Also review learnings before handling complex dialogue flows.
metadata

Self-Improving Conversation Skill

Log dialogue learnings, tone issues, and conversation failures to markdown files for continuous improvement. Conversational agents can later process these into playbooks, and important patterns get promoted to project memory.

First-Use Initialisation

Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:

mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Learnings\
\
Tone mismatches, context losses, hallucinations, and dialogue insights captured during conversations.\
\
**Categories**: tone_mismatch | misunderstanding | escalation_failure | context_loss | sentiment_drift | hallucination\
\
---\
" > .learnings/LEARNINGS.md
[ -f .learnings/DIALOGUE_ISSUES.md ] || printf "# Dialogue Issues Log\
\
Conversation failures, misunderstandings, tone mismatches, and escalation problems.\
\
---\
" > .learnings/DIALOGUE_ISSUES.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Feature Requests\
\
Conversational capabilities requested by users or identified through dialogue analysis.\
\
---\
" > .learnings/FEATURE_REQUESTS.md

Never overwrite existing files. This is a no-op if .learnings/ is already initialised.

Do not log personally identifiable information, auth tokens, or private user data unless the user explicitly asks for that level of detail. Prefer short summaries or redacted excerpts over raw conversation transcripts.

If you want automatic reminders or setup assistance, use the opt-in hook workflow described in Hook Integration.

Quick Reference

SituationAction
User says "That's not what I meant"Log to .learnings/DIALOGUE_ISSUES.md with misunderstanding
Formal response to casual userLog to .learnings/LEARNINGS.md with category tone_mismatch
Lost thread in multi-turn dialogueLog to .learnings/LEARNINGS.md with category context_loss
Agent states incorrect factsLog to .learnings/LEARNINGS.md with category hallucination
User asks for human agentLog to .learnings/DIALOGUE_ISSUES.md with escalation_failure
User sentiment drops mid-conversationLog to .learnings/LEARNINGS.md with category sentiment_drift
User requests missing capabilityLog to .learnings/FEATURE_REQUESTS.md
User abandons conversationLog to .learnings/DIALOGUE_ISSUES.md with abandonment
Simplify/Harden recurring patternsLog/update .learnings/LEARNINGS.md with Source: simplify-and-harden and a stable Pattern-Key
Similar to existing entryLink with **See Also**, consider priority bump
Conversation pattern is provenPromote to SOUL.md (tone/style), AGENTS.md (dialogue workflow), or TOOLS.md (integration)

OpenClaw Setup (Recommended)

OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.

Installation

Via ClawdHub (recommended):

clawdhub install self-improving-conversation

Manual:

git clone https://github.com/jose-compu/self-improving-conversation.git ~/.openclaw/skills/self-improving-conversation

Workspace Structure

OpenClaw injects these files into every session:

~/.openclaw/workspace/
├── AGENTS.md          # Dialogue workflows, handoff protocols, escalation chains
├── SOUL.md            # Conversational tone, personality, empathy guidelines
├── TOOLS.md           # Integration capabilities, channel-specific gotchas
├── MEMORY.md          # Long-term memory (main session only)
├── memory/            # Daily memory files
│   └── YYYY-MM-DD.md
└── .learnings/        # This skill's log files
    ├── LEARNINGS.md
    ├── DIALOGUE_ISSUES.md
    └── FEATURE_REQUESTS.md

Create Learning Files

mkdir -p ~/.openclaw/workspace/.learnings

Then create the log files (or copy from assets/):

  • LEARNINGS.md — tone mismatches, context losses, hallucinations, sentiment drift
  • DIALOGUE_ISSUES.md — escalation failures, misunderstandings, abandoned conversations
  • FEATURE_REQUESTS.md — user-requested conversational capabilities

Promotion Targets

When learnings prove broadly applicable, promote them to workspace files:

Learning TypePromote ToExample
Conversation patternsSOUL.md"Match user's formality level within 2 exchanges"
Dialogue workflowsAGENTS.md"Offer human handoff after 3 failed intent matches"
Integration gotchasTOOLS.md"Slack threads lose context after 50 messages"

Optional: Enable Hook

For automatic reminders at session start:

cp -r hooks/openclaw ~/.openclaw/hooks/self-improving-conversation
openclaw hooks enable self-improving-conversation

See references/openclaw-integration.md for complete details.


Generic Setup (Other Agents)

For Claude Code, Codex, Copilot, or other agents, create .learnings/ in the project or workspace root:

mkdir -p .learnings

Create the files inline using the headers shown above. Avoid reading templates from the current repo or workspace unless you explicitly trust that path.

Add reference to agent files AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md to remind yourself to log dialogue learnings. (This is an alternative to hook-based reminders.)

Self-Improving Conversation Workflow

When dialogue issues or conversation failures occur:

  1. Log to .learnings/DIALOGUE_ISSUES.md, LEARNINGS.md, or FEATURE_REQUESTS.md
  2. Review and promote broadly applicable patterns to:

- CLAUDE.md - project conversation conventions - AGENTS.md - dialogue workflows and escalation protocols - .github/copilot-instructions.md - Copilot conversation context

Logging Format

Learning Entry

Append to .learnings/LEARNINGS.md:

## [LRN-YYYYMMDD-XXX] category

**Logged**: ISO-8601 timestamp
**Priority**: low | medium | high | critical
**Status**: pending
**Area**: greeting | intent_detection | response_generation | handoff | follow_up | closing

### Summary
One-line description of the conversational learning

### Details
Full context: what the user said, what the agent responded, what went wrong,
what the correct response should have been

### Suggested Action
Specific conversational improvement: tone adjustment, intent mapping, escalation rule

### Metadata
- Source: conversation | user_feedback | sentiment_analysis | dialogue_review
- Related Files: path/to/dialogue_config.ext
- Tags: tag1, tag2
- See Also: LRN-20250110-001 (if related to existing entry)
- Pattern-Key: tone.formality_mismatch | context.thread_loss (optional, for recurring-pattern tracking)
- Recurrence-Count: 1 (optional)
- First-Seen: 2025-01-15 (optional)
- Last-Seen: 2025-01-15 (optional)

---

Dialogue Issue Entry

Append to .learnings/DIALOGUE_ISSUES.md:

## [DLG-YYYYMMDD-XXX] issue_type

**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending
**Area**: greeting | intent_detection | response_generation | handoff | follow_up | closing

### Summary
Brief description of the dialogue failure

### Conversation Excerpt

User: [what the user said] Agent: [what the agent responded] User: [user reaction indicating failure]


### Root Cause
- Misidentified intent / tone mismatch / missing context / hallucination / escalation gap

### Impact
- User frustration level: low | moderate | high | critical
- Conversation outcome: resolved_late | abandoned | escalated | unresolved

### Suggested Fix
How to handle this conversation pattern in the future

### Metadata
- Reproducible: yes | no | unknown
- Channel: web | slack | api | voice
- Related Files: path/to/intent_config.ext
- See Also: DLG-20250110-001 (if recurring)

---

Feature Request Entry

Append to .learnings/FEATURE_REQUESTS.md:

## [FEAT-YYYYMMDD-XXX] capability_name

**Logged**: ISO-8601 timestamp
**Priority**: medium
**Status**: pending
**Area**: greeting | intent_detection | response_generation | handoff | follow_up | closing

### Requested Capability
What conversational capability the user wanted

### User Context
Why they needed it, what dialogue scenario triggered it

### Complexity Estimate
simple | medium | complex

### Suggested Implementation
How this could be built: new intent, dialogue flow, integration, playbook

### Metadata
- Frequency: first_time | recurring
- Related Features: existing_capability_name
- Channel: web | slack | api | voice

---

ID Generation

Format: TYPE-YYYYMMDD-XXX

  • TYPE: LRN (learning), DLG (dialogue issue), FEAT (feature)
  • YYYYMMDD: Current date
  • XXX: Sequential number or random 3 chars (e.g., 001, A7B)

Examples: LRN-20250115-001, DLG-20250115-A3F, FEAT-20250115-002

Resolving Entries

When an issue is fixed, update the entry:

  1. Change **Status**: pending**Status**: resolved
  2. Add resolution block after Metadata:
### Resolution
- **Resolved**: 2025-01-16T09:00:00Z
- **Fix Applied**: Updated intent taxonomy / added escalation rule / adjusted tone config
- **Notes**: Brief description of what was done

Other status values:

  • in_progress - Actively being investigated or fixed
  • wont_fix - Decided not to address (add reason in Resolution notes)
  • promoted - Elevated to SOUL.md, AGENTS.md, or conversation playbook

Promoting to Project Memory

When a conversational learning is broadly applicable (not a one-off exchange), promote it to permanent project memory.

When to Promote

  • Learning applies across multiple conversation flows
  • Knowledge any conversational agent should know
  • Prevents recurring dialogue failures
  • Documents project-specific conversational conventions

Promotion Targets

TargetWhat Belongs There
CLAUDE.mdProject conversation conventions, tone rules, known user patterns
AGENTS.mdDialogue workflows, escalation protocols, handoff procedures
.github/copilot-instructions.mdConversation context and conventions for Copilot
SOUL.mdConversational personality, empathy guidelines, tone rules (OpenClaw workspace)
TOOLS.mdChannel capabilities, integration limits, API quirks (OpenClaw workspace)

How to Promote

  1. Distill the learning into a concise conversational rule or guideline
  2. Add to appropriate section in target file (create file if needed)
  3. Update original entry:

- Change **Status**: pending**Status**: promoted - Add **Promoted**: SOUL.md, AGENTS.md, or target file

Promotion Examples

Learning: Agent used technical jargon with a non-technical user. Three exchanges wasted. In SOUL.md: Mirror user's vocabulary level within 2 exchanges. Avoid jargon with casual users.

Learning: User asked for human three times before agent escalated. User abandoned. In AGENTS.md: Initiate handoff after second "talk to human" request. Never require more than 2.

Recurring Pattern Detection

If logging something similar to an existing entry:

  1. Search first: grep -r "keyword" .learnings/
  2. Link entries: Add **See Also**: DLG-20250110-001 in Metadata
  3. Bump priority if issue keeps recurring
  4. Consider systemic fix: Recurring conversation issues often indicate:

- Missing intent in taxonomy (→ update intent config) - Tone mismatch pattern (→ promote to SOUL.md) - Missing escalation path (→ promote to AGENTS.md) - Channel-specific limitation (→ document in TOOLS.md)

Simplify & Harden Feed

Use this workflow to ingest recurring patterns from the simplify-and-harden skill and turn them into durable conversational guidance.

Ingestion Workflow

  1. Read simplify_and_harden.learning_loop.candidates from the task summary.
  2. Use pattern_key as the stable dedupe key.
  3. Search .learnings/LEARNINGS.md for existing entry: grep -n "Pattern-Key: <key>" .learnings/LEARNINGS.md
  4. If found: increment Recurrence-Count, update Last-Seen, add See Also links.
  5. If not found: create new LRN-... entry with Source: simplify-and-harden, set Pattern-Key, Recurrence-Count: 1.

Promotion Rule

Promote when: Recurrence-Count >= 3, seen across 2+ conversation flows, within 30-day window. Targets: SOUL.md (tone), AGENTS.md (escalation), TOOLS.md (channel limits). Write short prevention guidelines, not dialogue transcripts.

Periodic Review

Review .learnings/ at natural breakpoints:

When to Review

  • Before handling a complex dialogue flow
  • After a conversation with user frustration signals
  • When working on intent taxonomy or escalation rules
  • Weekly during active chatbot development

Quick Status Check

# Count pending items
grep -h "Status\*\*: pending" .learnings/*.md | wc -l

# List pending high-priority dialogue issues
grep -B5 "Priority\*\*: high" .learnings/*.md | grep "^## \["

# Find learnings for a specific area
grep -l "Area\*\*: intent_detection" .learnings/*.md

Review Actions

  • Resolve fixed dialogue issues
  • Promote applicable conversational patterns
  • Link related entries across flows
  • Escalate recurring misunderstanding patterns

Detection Triggers

Automatically log when you notice:

Tone Mismatches (→ learning with tone_mismatch category):

  • Response formality doesn't match user's style
  • Overly technical language for a casual user
  • Too casual for a formal/professional context
  • Emoji or humor where user expects seriousness

Misunderstandings (→ dialogue issue):

  • "That's not what I meant"
  • "No, I was asking about..."
  • "You misunderstood"
  • User rephrases the same question 3+ times

Escalation Failures (→ dialogue issue with escalation_failure):

  • "Can I talk to a human?"
  • "Let me speak to someone real"
  • "I need a real person"
  • "This isn't working, transfer me"

Context Loss (→ learning with context_loss category):

  • Agent asks question already answered earlier
  • Agent contradicts its own prior response
  • Agent loses track of multi-step request
  • "I already told you that"

Sentiment Drift (→ learning with sentiment_drift category):

  • User starts friendly, becomes curt
  • Increasing use of caps or punctuation (!!!)
  • Shorter responses indicating disengagement
  • Explicit frustration markers ("ugh", "come on")

Hallucination (→ learning with hallucination category):

  • Agent states business hours, policies, or data that doesn't exist
  • Agent references features that aren't available
  • Agent fabricates conversation history
  • Agent cites non-existent documentation or sources

Feature Gaps (→ feature request):

  • "Can you also handle..."
  • "I wish the bot could..."
  • "Why can't you understand..."
  • "Do you support [language/channel]?"

Priority Guidelines

PriorityWhen to Use
criticalUser PII exposed in conversation, security breach, data leak in dialogue
highRepeated misunderstanding affecting core flow, escalation path broken, hallucination about critical info
mediumTone mismatch causing friction, context loss in long conversations, sentiment drift
lowMinor phrasing improvement, edge-case intent miss, cosmetic dialogue issue

Area Tags

Use to filter learnings by conversation phase:

AreaScope
greetingOpening messages, welcome flows, channel detection
intent_detectionNLU, intent classification, entity extraction
response_generationReply composition, tone selection, content assembly
handoffEscalation to human, agent transfer, channel switching
follow_upClarification loops, confirmation, next-step suggestions
closingFarewell, satisfaction check, feedback collection

Best Practices

  1. Log immediately — conversational context is lost quickly once the exchange moves on
  2. Include conversation excerpts — future agents need to see the actual exchange
  3. Note the user's emotional state — helps calibrate future tone adjustments
  4. Record the channel — Slack, web, API, voice all have different constraints
  5. Suggest concrete dialogue fixes — not just "improve response" but specific phrasing
  6. Track intent taxonomy gaps — misunderstandings often mean missing intents
  7. Promote tone rules aggressively — if in doubt, add to SOUL.md
  8. Review before complex flows — check for known issues in similar dialogue paths

Gitignore Options

Keep learnings local (per-developer):

.learnings/

This repo uses that default to avoid committing sensitive conversation logs by accident.

Track learnings in repo (team-wide): Don't add to .gitignore — learnings become shared knowledge.

Hybrid (track templates, ignore entries):

.learnings/*.md
!.learnings/.gitkeep

Hook Integration

Enable automatic reminders through agent hooks. This is opt-in — you must explicitly configure hooks.

Quick Setup (Claude Code / Codex)

Create .claude/settings.json in your project:

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": "",
      "hooks": [{
        "type": "command",
        "command": "./skills/self-improving-conversation/scripts/activator.sh"
      }]
    }]
  }
}

This injects a dialogue learning evaluation reminder after each prompt (~50-100 tokens overhead).

Advanced Setup (With Error Detection)

Add PostToolUse hook alongside activator for automated dialogue failure detection from command output. See references/hooks-setup.md for the full JSON configuration.

Available Hook Scripts

ScriptHook TypePurpose
scripts/activator.shUserPromptSubmitReminds to evaluate dialogue learnings after tasks
scripts/error-detector.shPostToolUse (Bash)Triggers on conversation error patterns

See references/hooks-setup.md for detailed configuration and troubleshooting.

Automatic Skill Extraction

When a conversational learning is valuable enough to become a reusable skill, extract it using the provided helper.

Skill Extraction Criteria

A learning qualifies for skill extraction when ANY of these apply:

CriterionDescription
RecurringHas See Also links to 2+ similar dialogue issues
VerifiedStatus is resolved with working conversational fix
Non-obviousRequired actual dialogue analysis to discover the pattern
Broadly applicableNot project-specific; useful across chatbot implementations
User-flaggedUser says "save this as a skill" or similar

Extraction Workflow

  1. Identify candidate: Dialogue learning meets extraction criteria
  2. Run helper (or create manually):
   ./skills/self-improving-conversation/scripts/extract-skill.sh skill-name --dry-run
   ./skills/self-improving-conversation/scripts/extract-skill.sh skill-name
  1. Customize SKILL.md: Fill in template with conversational learning content
  2. Update learning: Set status to promoted_to_skill, add Skill-Path
  3. Verify: Read skill in fresh session to ensure it's self-contained

Extraction Detection Triggers

In conversation: "Save this dialogue pattern", "We keep getting this wrong", "This would help other chatbots"

In learning entries: Multiple See Also links, high priority + resolved, tone_mismatch or escalation_failure with broad applicability

Skill Quality Gates

  • [ ] Pattern tested across multiple dialogue flows
  • [ ] Description clear without original conversation context
  • [ ] Dialogue examples anonymized (no PII)
  • [ ] Follows skill naming conventions (lowercase, hyphens)

Multi-Agent Support

This skill works across different AI agents with agent-specific activation.

Claude Code

Activation: Hooks (UserPromptSubmit, PostToolUse) Setup: .claude/settings.json with hook configuration Detection: Automatic via hook scripts

Codex CLI

Activation: Hooks (same pattern as Claude Code) Setup: .codex/settings.json with hook configuration Detection: Automatic via hook scripts

GitHub Copilot

Activation: Manual (no hook support) Setup: Add to .github/copilot-instructions.md:

## Conversation Self-Improvement

After handling dialogue interactions, consider logging to `.learnings/`:
1. Tone mismatches, misunderstandings, escalation failures
2. Link related entries with See Also
3. Promote proven conversational patterns to skills

Ask in chat: "Should I log this dialogue issue?"

Detection: Manual review at session end

OpenClaw

Activation: Workspace injection + inter-agent messaging Setup: See "OpenClaw Setup" section above Detection: Via session tools and workspace files

Agent-Agnostic Guidance

Regardless of agent, apply conversation self-improvement when you:

  1. Detect tone mismatch — your formality doesn't match the user's
  2. Lose context — you forgot something the user already said
  3. Hallucinate — you stated something factually incorrect
  4. Fail to escalate — user wanted a human and didn't get one
  5. Miss intent — user had to rephrase multiple times

Copilot Chat Integration

Quick prompts for Copilot users:

  • "Log this dialogue issue"
  • "Create a skill from this conversation pattern"
  • "Check .learnings/ for related dialogue issues"

Stackability Contract (Standalone + Multi-Skill)

This skill is standalone-compatible and stackable with other self-improving skills.

Namespaced Logging (recommended for 2+ skills)

  • Namespace for this skill: .learnings/conversation/
  • Keep current standalone behavior if you prefer flat files.
  • Optional shared index for all skills: .learnings/INDEX.md

Required Metadata

Every new entry must include:

**Skill**: conversation

Hook Arbitration (when 2+ skills are enabled)

  • Use one dispatcher hook as the single entrypoint.
  • Dispatcher responsibilities: route by matcher, dedupe repeated events, and rate-limit reminders.
  • Suggested defaults: dedupe key = event + matcher + file + 5m_window; max 1 reminder per skill every 5 minutes.

Narrow Matcher Scope (conversation)

Only trigger this skill automatically for conversation signals such as:

  • tone mismatch|intent miss|hallucination|rephrase|clarification loop
  • escalation needed|user frustration|context loss
  • explicit conversation intent in user prompt

Cross-Skill Precedence

When guidance conflicts, apply:

  1. security
  2. engineering
  3. coding
  4. ai
  5. user-explicit domain skill
  6. meta as tie-breaker

Ownership Rules

  • This skill writes only to .learnings/conversation/ in stackable mode.
  • It may read other skill folders for cross-linking, but should not rewrite their entries.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.18%
按下载量换算905

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills