---
name: Profile Config Updater
slug: profile-config-updater
category: AI Engineering
description: "Quickly modify a single setting in your agent's profile.md without re-running the full onboarding interview. Useful for updating your role, team info, risk preferences, writing style, or backend integrations."
github: "https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/customize"
language: Python
stars: 19
forks: 2
install: "npx degit https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/customize ~/.claude/skills/customize"
installs_to: ~/.claude/skills/customize
source_path: skills/customize/SKILL.md
collection_size: 23
category_size: 2451
collection_url: "https://dirskills.com/collections/Youchu-lawhub/cn-litigation-toolkit"
added: 2026-08-11T07:22:23.618Z
last_synced: 2026-08-11T07:22:23.618Z
canonical_url: "https://dirskills.com/skills/profile-config-updater"
---

# Profile Config Updater

Quickly modify a single setting in your agent's profile.md without re-running the full onboarding interview. Useful for updating your role, team info, risk preferences, writing style, or backend integrations.

**Install:**

```bash
npx degit https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/customize ~/.claude/skills/customize
```

## README

# 自定义（customize）

> 快速修改 `profile.md` 中的单项配置，无需重跑完整冷启动访谈。

## 触发条件

- 用户说"修改我的[某项目]"、"更新配置"、"调整[某设置]"
- 用户要求更改实践画像中的单项内容
- 用户想切换某个后端、调整风格偏好、更新团队信息等

## 工作流

### 第一步：读取当前画像

读取本插件根目录下的 `profile.md`。

若文件不存在或内容为空 → 提示用户先运行 `/onboarding-interview`。

### 第二步：识别修改目标

根据用户请求识别要修改的字段：

| 用户表述 | 对应段落 |
|----------|----------|
| 角色/身份 | § 身份与角色 |
| 团队信息 | § 身份与角色 → 团队 |
| 风险偏好 | § 风格与偏好 → 风险校准 |
| 文书风格 | § 风格与偏好 → 文书风格 |
| 案件管理/流程 | § 案件管理 |
| 知识库 | § 知识库方案 |
| 后端/集成 | § 外部能力后端 |

若用户表述不能明确对应某段落 → 列出可修改项让用户选择。

### 第三步：展示当前值并修改

1. 展示该字段的当前值
2. 询问用户想改成什么
3. 确认修改内容

**修改外部能力后端时的验证**：
当用户修改的是「外部能力后端」相关字段时（如切换法律检索后端为元典），在写回 profile.md 前先调用 `MCP.list_tools` 验证目标 MCP 是否已连接：
- **已连接** → 正常更新 profile.md，确认"配置成功，{后端名}已在线可用"
- **未连接** → 提示用户："已将 profile.md 中的{能力类}首选更新为{后端名}，但当前未检测到该 MCP 连接。请前往宿主平台的连接器/MCP 设置（Agent 运行时 / Claude Code / Cursor / Gemini CLI / OpenCode 等） 中搜索并安装对应服务，安装后即可自动生效。"

4. 写回 `profile.md`（仅修改目标段落，保持其他内容不变）
5. 更新末尾 `配置版本` 中的"最后更新"日期

### 第四步：确认

> 已更新 [字段名]。修改后的内容：
> [新值摘要]
>
> 此修改将影响后续所有技能的输出行为。

## 规则

1. 一次只修改一项，避免意外覆盖
2. 修改前展示旧值，修改后展示新值
3. 不自行推断用户意图——不确定就问
4. 若用户要改的内容需要多轮访谈（如重做整体风险矩阵、重建知识库配置），建议切换到 `/onboarding-interview --reset`
5. 修改完成后无需调用其他技能，直接结束
