mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
feat: add dynamic output format for prompt-enhancer and update README
- Redesign output format to be dynamic and task-adaptive - Replace fixed template with core + optional fields structure - Add simple and complex task examples - Update workflow and enhancement guidelines - Add Agent Skills section to README.md and README_CN.md - Document Prompt Enhancer skill usage with -e/--enhance flags - Provide skill creation best practices 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
60
README_CN.md
60
README_CN.md
@@ -289,6 +289,66 @@ MCP (模型上下文协议) 工具提供高级代码库分析。**推荐安装**
|
||||
|
||||
---
|
||||
|
||||
## 🎯 智能体技能 (Agent Skills)
|
||||
|
||||
**智能体技能** 通过模块化、可复用的专业知识包扩展 Claude 的能力。技能会根据上下文自动发现和触发。
|
||||
|
||||
### **可用技能**
|
||||
|
||||
#### **提示词增强器 (Prompt Enhancer)**
|
||||
将模糊提示转换为结构化、可执行的规范。
|
||||
|
||||
**使用方式**:在任何请求中添加 `-e` 或 `--enhance` 标志
|
||||
```bash
|
||||
# 示例
|
||||
修复认证问题 -e
|
||||
优化数据库查询 --enhance
|
||||
```
|
||||
|
||||
**功能说明**:
|
||||
- 分析会话上下文和技术栈
|
||||
- 将意图结构化为 INTENT → ACTION 格式
|
||||
- 添加相关上下文、约束和指标
|
||||
- 输出可立即执行的规范
|
||||
|
||||
**输出**:根据任务类型动态调整的结构化提示(简单任务使用最少字段,复杂任务使用全面规范)
|
||||
|
||||
### **创建自定义技能**
|
||||
|
||||
技能存储在 `.claude/skills/`(项目)或 `~/.claude/skills/`(个人):
|
||||
|
||||
```bash
|
||||
# 创建新技能
|
||||
mkdir -p .claude/skills/my-skill
|
||||
```
|
||||
|
||||
**SKILL.md 结构**:
|
||||
```yaml
|
||||
---
|
||||
name: 我的技能名称
|
||||
description: 功能说明和使用时机。使用时机:[触发条件]。
|
||||
allowed-tools: Read, Grep, Glob # 可选工具限制
|
||||
---
|
||||
|
||||
# 我的技能名称
|
||||
|
||||
## 指令
|
||||
[Claude 的分步指导]
|
||||
|
||||
## 示例
|
||||
[具体使用示例]
|
||||
```
|
||||
|
||||
**最佳实践**:
|
||||
- 编写具体的描述,包含明确的触发条件
|
||||
- 同时说明功能和使用时机
|
||||
- 保持技能专注于单一能力
|
||||
- 通过匹配描述的问题进行测试
|
||||
|
||||
完整文档请参阅 [skills.md](skills.md)。
|
||||
|
||||
---
|
||||
|
||||
## 🚀 快速入门
|
||||
|
||||
### 完整开发工作流
|
||||
|
||||
Reference in New Issue
Block a user