Kb Edit banner
huifer huifer

Kb Edit

Development community

Description

--- argument-hint: <item-id> [--field=title|content|tags|category|all] description: 编辑知识条目(自动创建版本备份) allowed-tools: Read, Write, Edit, Bash --- # /kb-edit - 编辑知识条目 ## 功能 编辑现有知识条目,自动创建版本备份,确保不会丢失历史数据。 ## 使用方式 ### 基本用法 ``` /kb-edit 2025-01-04-143052 ``` 交互式编辑所有字段。 ### 编辑特定字段 ``` /kb-edit 2025-01-04-143052 --field=title ``` 仅编辑标题。 ### 编辑内容 ``` /kb-edit 2025-01-04-143052 --field=content ``` 仅编辑正文内容,保留元数据。 ### 编辑标签 ``` /kb-edit 2025-01-04-143052 --field=tags ``` 编辑标签列表。 ### 编辑分类 ``` /kb-edit

Installation

Installs to ~/.claude/commands/huifer-claude-code-knowcraft-kb-edit.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/huifer/Claude-Code-KnowCraft/HEAD/.claude/commands/kb-edit.md -o ~/.claude/commands/huifer-claude-code-knowcraft-kb-edit.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository