Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计异常

ai-partner-chatAI 伙伴聊天

Agent Skill

ai-partner-chat 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

412

周安装

17

GitHub Stars

211

下载量

135
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:ai-partner-chat(AI 伙伴聊天)
来源仓库:https://github.com/eze-is/ai-partner-chat
仓库路径:skills/ai-partner-chat
安装命令:
npx skills add https://github.com/eze-is/ai-partner-chat --skill ai-partner-chat
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/eze-is/ai-partner-chat --skill ai-partner-chat

简介

用于创建个性化上下文感知对话体验,融合用户画像与 AI 角色设定。

  • 通过向量化个人笔记实现记忆延续,提升交互连贯性与定制化程度。
  • 首次使用前需配置目录结构、Python 环境与依赖包安装。
  • 支持长期会话状态保持,适合心理咨询、学习辅导等专业陪伴场景。
  • ai-partner-chat 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

AI Partner Chat

Overview

Provide personalized, context-aware conversations by integrating user persona, AI persona, and vectorized personal notes. This skill enables AI to remember and reference the user's previous thoughts, preferences, and knowledge base, creating a more coherent and personalized interaction experience.

Prerequisites

Before first use, complete these steps in order:

  1. Create directory structure mkdir -p config notes vector_db scripts
  2. Set up Python environment python3 -m venv venv./venv/bin/pip install -r.claude/skills/ai-partner-chat/scripts/requirements.txt Note: First run will download embedding model (~4.3GB)
  3. Generate persona templates Copy from .claude/skills/ai-partner-chat/assets/ to config/:

- user-persona-template.mdconfig/user-persona.md - ai-persona-template.mdconfig/ai-persona.md

  1. User adds notes Place markdown notes in notes/ directory (any format/structure)
  2. Initialize vector database (see section 1.2 below)

Now proceed to Core Workflow →

Core Workflow

1. Initial Setup

Before using this skill for the first time, complete the following setup:

1.1 Create Persona Files

Create two Markdown files to define interaction parameters:

User Persona (user-persona.md):

  • Define user's background, expertise, interests
  • Specify communication preferences and working style
  • Include learning goals and current projects
  • Use template: assets/user-persona-template.md

AI Persona (ai-persona.md):

  • Define AI's role and expertise areas
  • Specify communication style and tone
  • Set interaction guidelines and response strategies
  • Define how to use user context and reference notes
  • Use template: assets/ai-persona-template.md

1.2 Initialize Vector Database

This skill uses AI Agent approach for intelligent note chunking:

When you initialize the vector database, Claude Code will:

  1. Read notes from <project_root>/notes/ directory
  2. Analyze each note's format (daily logs, structured docs, continuous text, etc.)
  3. Generate custom chunking code tailored to that specific note
  4. Execute the code to produce chunks conforming to chunk_schema.Chunk format
  5. Generate embeddings using BAAI/bge-m3 (optimized for Chinese text)
  6. Store in ChromaDB at <project_root>/vector_db/

Key advantages:

  • ✅ No pre-written chunking strategies needed
  • ✅ Each note gets optimal chunking based on its actual structure
  • ✅ True AI Agent - generates tools on demand, not calling pre-built tools

Chunk Format Requirement: All chunks must conform to this schema (see scripts/chunk_schema.py):

{
    'content': 'chunk text content',
    'metadata': {
        'filename': 'note.md',       # Required
        'filepath': '/path/to/file', # Required
        'chunk_id': 0,               # Required
        'chunk_type': 'date_entry',  # Required
        'date': '2025-11-07',        # Optional
        'title': 'Section title',    # Optional
    }
}

Implementation Requirements

Location: Create <project_root>/scripts/chunk_and_index.py

Required structure:

# Import provided utilities
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent.parent / ".claude/skills/ai-partner-chat/scripts"))

from chunk_schema import Chunk, validate_chunk
from vector_indexer import VectorIndexer

def chunk_note_file(filepath: str) -> List[Chunk]:
    """
    Analyze THIS file's format and generate appropriate chunks.

    Each chunk must conform to chunk_schema.Chunk format:
    {
        'content': 'text',
        'metadata': {
            'filename': 'file.md',
            'filepath': '/path/to/file',
            'chunk_id': 0,
            'chunk_type': 'your_label'
        }
    }
    """
    # TODO: Analyze actual file format (NOT template-based)
    # TODO: Generate chunks based on analysis
    # TODO: Validate each chunk with validate_chunk()
    pass

def main():
    # Initialize vector database
    indexer = VectorIndexer(db_path="./vector_db")
    indexer.initialize_db()

    # Process all note files
    all_chunks = []
    for note_file in Path("./notes").glob("**/*"):
        if note_file.is_file():
            chunks = chunk_note_file(str(note_file))
            all_chunks.extend(chunks)

    # Index chunks
    indexer.index_chunks(all_chunks)

if __name__ == "__main__":
    main()

Execute: ./venv/bin/python scripts/chunk_and_index.py

Key points:

  • The chunk_note_file() function logic should be dynamically created based on analyzing actual file content
  • Do NOT copy chunking strategies from examples or templates
  • Each file may have different format - analyze individually
  • Only requirement: output must conform to chunk_schema.Chunk

2. Conversation Workflow

For each user query, follow this process:

2.1 Load Personas

Read both persona files to understand:

  • User's background, preferences, and communication style
  • AI's role definition and interaction guidelines
  • How to appropriately reference context

2.2 Retrieve Relevant Notes

Query the vector database to find the top 5 most semantically similar notes:

from scripts.vector_utils import get_relevant_notes

# Query for relevant context
relevant_notes = get_relevant_notes(
    query=user_query,
    db_path="./vector_db",
    top_k=5
)

Or use the command-line tool:

python scripts/query_notes.py "user query text" --top-k 5

2.3 Construct Context

Combine the following elements to inform the response:

  1. User Persona: Background, preferences, expertise
  2. AI Persona: Role, communication style, guidelines
  3. Relevant Notes (top 5): User's previous thoughts and knowledge
  4. Current Conversation: Ongoing chat history

2.4 Generate Response

Synthesize a response that:

  • Aligns with both persona definitions
  • Naturally references relevant notes when applicable
  • Maintains continuity with user's knowledge base
  • Follows the AI persona's communication guidelines

When Referencing Notes:

  • Use natural phrasing: "Based on your previous note about..."
  • Make connections: "This relates to what you mentioned in..."
  • Avoid robotic citations: integrate context smoothly

Example Response Pattern:

[Acknowledge user's query in preferred communication style]

[Incorporate relevant note context naturally if applicable]
"I remember you mentioned [insight from note] - this connects well with..."

[Provide main response following AI persona guidelines]

[Optional: Ask follow-up question based on user's learning style]

3. Maintenance

Adding New Notes

When the user creates new notes, add them to the vector database:

python scripts/add_note.py /path/to/new_note.md

Updating Personas

Personas can be updated anytime by editing the Markdown files. Changes take effect in the next conversation.

Reinitializing Database

To completely rebuild the vector database:

python scripts/init_vector_db.py /path/to/notes --db-path ./vector_db

This will delete the existing database and re-index all notes.

Technical Details

Data Architecture

User data is stored in project root, not inside the skill directory:

<project_root>/
├── notes/                      # User's markdown notes
├── vector_db/                  # ChromaDB vector database
├── venv/                       # Python dependencies
├── config/
│   ├── user-persona.md         # User persona definition
│   └── ai-persona.md           # AI persona definition
└── .claude/skills/ai-partner-chat/  # Skill code (can be deleted/reinstalled)
    ├── SKILL.md
    └── scripts/
        ├── chunk_schema.py     # Chunk format specification
        ├── vector_indexer.py   # Core indexing utilities
        └── vector_utils.py     # Query utilities

Design principles:

  • ✅ User data (notes, personas, vectors) lives in project root
  • ✅ Easy to backup, migrate, or share across skills
  • ✅ Skill code is stateless and replaceable

AI Agent Chunking

Philosophy: Instead of pre-written chunking strategies, Claude Code analyzes each note and generates optimal chunking code on the fly.

How it works:

  1. Claude reads a note file
  2. Analyzes format features (date headers, section titles, separators, etc.)
  3. Writes Python code that chunks this specific note optimally
  4. Executes the code to produce chunks
  5. Validates chunks against chunk_schema.Chunk format
  6. Indexes chunks using vector_indexer.py

Benefits:

  • Adapts to any note format without pre-programming
  • Can handle mixed formats, unusual structures, or evolving note styles
  • True "vibe coding" approach - tools are created when needed

Vector Database

  • Storage: ChromaDB (persistent local storage at <project_root>/vector_db/)
  • Embedding Model: BAAI/bge-m3 (multilingual, optimized for Chinese)
  • Similarity Metric: Cosine similarity
  • Chunking: AI-generated custom code per note

Scripts

  • chunk_schema.py: Defines required chunk format specification
  • vector_indexer.py: Core utilities for embedding generation and ChromaDB indexing
  • vector_utils.py: Query utilities for retrieving relevant chunks
  • requirements.txt: Python dependencies (chromadb, sentence-transformers)

Note: No pre-written chunking scripts. Chunking is done by Claude Code dynamically.

File Structure

<project_root>/
├── notes/                        # User's notes (managed by user)
│   └── *.md
├── vector_db/                    # Vector database (auto-generated)
├── venv/                         # Python environment
├── config/                       # User configuration
│   ├── user-persona.md
│   └── ai-persona.md
└── .claude/skills/ai-partner-chat/
    ├── SKILL.md                  # This file
    ├── scripts/
    │   ├── chunk_schema.py       # Chunk format spec
    │   ├── vector_indexer.py     # Indexing utilities
    │   ├── vector_utils.py       # Query utilities
    │   └── requirements.txt      # Dependencies
    └── assets/
        ├── user-persona-template.md
        └── ai-persona-template.md

Best Practices

Persona Design

  • Be Specific: Vague personas lead to generic responses
  • Include Examples: Show desired interaction patterns in AI persona
  • Update Regularly: Refine personas based on conversation quality
  • Balance Detail: Provide enough context without overwhelming

Note Management

  • Any Format Welcome: AI Agent approach adapts to your note structure
  • Meaningful Content: Rich, substantive notes yield better retrieval
  • Regular Updates: Add new notes to <project_root>/notes/ anytime
  • Rebuild When Needed: Re-index when note collection changes significantly

Context Integration

  • Natural References: Avoid forced citations - only reference when genuinely relevant
  • Connection Quality: Prioritize meaningful connections over quantity
  • Respect Privacy: Be mindful of sensitive information in notes
  • Conversation Flow: Don't let note references disrupt natural dialogue

Troubleshooting

Database Connection Errors:

  • Ensure <project_root>/vector_db/ directory exists and is writable
  • Check that Python dependencies are installed in venv

Poor Retrieval Quality:

  • Try re-indexing with Claude Code analyzing notes fresh
  • Verify notes contain substantial content (not just titles)
  • Consider increasing top_k value for more context

Chunking Issues:

  • If chunks are too large/small, ask Claude to adjust chunking strategy
  • Review generated chunking code and provide feedback
  • Ensure notes have clear structure for better chunking

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

28.72%
按下载量换算39

OpenCode

23.65%
按下载量换算32

Gemini CLI

16.36%
按下载量换算22

Antigravity

13.44%
按下载量换算18

trae

7.81%
按下载量换算11

Cursor

3.11%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/eze-is/ai-partner-chat --skill ai-partner-chat;npx skills add eze-is/ai-partner-chat --skill "ai-partner-chat" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills