Im Contact Sorter logo

Im Contact Sorter

Community
cafe3310
im-contact-sorter

批量整理、分类和清洗即时通讯 (IM) 软件联系人与群组的结构化工作流工具

Overview

Publishercafe3310
Repositorypublic-agent-skills
Skill nameim-contact-sorter
Stars
256
Forks
30
Bundled files
5
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Im Contact Sorter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/im-contact-sorter
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p .claude/skills
cp -r /tmp/public-agent-skills/skills_parked/im-contact-sorter .claude/skills/im-contact-sorter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Im Contact Sorter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Im Contact Sorter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Im Contact Sorter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

IM Contact Sorter

此技能提供了一套标准化的流水线,帮助用户将缺少分类功能的 IM 软件中的联系人和群组进行整理。 整体思路是,通过界面截图 - OCR 识别 - 合并和分析,最终形成结构化的数据资产,并辅助进行清理和归档。

核心概念

  • Everything (全集): 包含所有联系人/群组的基础列表(通常来自原始截图的ocr)。
  • Primary Category (一级分类): 粗颗粒度的分类,如“所有联系人”、“所有群组”。
  • Secondary Category (二级分类): 细颗粒度的分类,如“重要群组”、“高价值讨论”。
  • Funnel Analysis (漏斗分析): 通过对比全集与各级分类,找出“未分类”和“分类不完全”的项目。

目录规范

使用此技能时,请在工作目录中遵循以下生命周期:

  1. 01-raw: 存放原始截图 (用户输入)。
  2. 02-cropped: 存放裁切和压缩后的图片 (脚本生成)。
  3. 03-ocr: 存放 OCR 识别后的 YAML 片段 (LLM生成)。
  4. 04-merged: 存放合并后的分类文件 (脚本生成)。
  5. 05-classified: 人工调整分类的工作区 (用户操作)。
  6. 06-report: 存放分析报告与操作建议 (脚本生成)。

工作流程

1. 准备与裁切 (Crop)

首先,用户将截图,按已有的分类文件夹放入 01-raw。例如 01-raw/everything,01-raw/working-groups 等。

然后,询问用户裁切参数 (左,上,宽,高),以去除无关 UI 元素,只保留联系人列表区域。使用以下命令裁切图片:

bash
# 用法: python crop.py <工作目录> <子目录名> <左> <上> <宽> <高>
# 示例: 裁切 'everything' 文件夹中的图片
python <path/to/skill>/scripts/crop.py . "everything" 0 200 1000 2000

你需要为每个子目录重复此步骤,直到所有截图均裁切完成,结果保存在 02-cropped/<子目录> 中。

2. 压缩 (Compress)

对图片进行原地压缩,减少传输体积。你需要为每个子目录执行以下命令:

bash
# 用法: python compress.py <工作目录> <子目录名>
python <path/to/skill>/scripts/compress.py . "everything"

3. 识别 (OCR)

使用多模态模型识别 02-cropped 中的图片。这一步的 prompt 在 scripts/ocr.md 中定义,读取并执行它。

将结果保存到 03-ocr/<子目录>/<文件名>.yaml。

4. 合并 (Merge)

将碎片化的 YAML 合并为完整文件。

bash
# 用法: python merge.py <工作目录>
python <path/to/skill>/scripts/merge.py .

此步将在 04-merged 中生成如 everything.yaml 的汇总文件。

5. 分类与分析 (Classify & Analyze)

  1. 人工分类: Agent 需要将 04-merged 的内容复制到 05-classified。提醒用户,可以根据需要调整分类结构。

  2. Agent 分析:

bash
# 用法: python analyze.py <工作目录>
python <path/to/skill>/scripts/analyze.py .

脚本将:

  • 扫描 05-classified 中的 everything 文件,注入 groups 属性,识别每个项目所属的群组分类。
  • 对比 everything 与各二级分类,识别未分类的项目。
  • 生成 06-report/uncategorized_people.yaml (全局漏斗:未分类的人)。
  • 生成 06-report/uncategorized_groups.yaml (全局漏斗:未分类的群)。

6. 闭环清理 (Action)

根据 06-report 中的报告:

  1. 清理: 对未分类且无价值的项目,在 IM 软件中删除。
  2. 归档: 对未分类但有价值的项目,手动加入正确的二级分类。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Im Contact Sorter AI skill do?

批量整理、分类和清洗即时通讯 (IM) 软件联系人与群组的结构化工作流工具

Why use Im Contact Sorter on TypingMind?

Because you install it once and use it with any model. Im Contact Sorter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Im Contact Sorter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/im-contact-sorter. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Im Contact Sorter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Im Contact Sorter?

As many as you like. As long as a model supports skills, you can use Im Contact Sorter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Im Contact Sorter AI skill free?

Yes. It is published on GitHub by cafe3310 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇