skill-improver
- 作者仓库星标 3,922
- 作者仓库 claude-scholar
Skill Improver
Execute improvement plans generated by skill-quality-reviewer to automatically update and fix issues in Claude Skills.
Core Workflow
Read improvement-plan-{name}.md
↓
Parse improvement items (High/Medium/Low priority)
↓
Group changes by file
↓
Detect and resolve conflicts
↓
Backup original files
↓
Execute updates (Edit or Write tools)
↓
Verify results
↓
Generate update-report
When to Use
Trigger phrases:
- "Apply improvements from improvement-plan-git-workflow.md"
- "Update my skill based on the quality report"
- "Execute the improvement plan for api-helper"
- "Fix the issues identified in quality review"
Use this skill when:
- Applying improvements from an improvement plan
- Updating a skill based on quality review feedback
- Executing recommended fixes from
skill-quality-reviewer - Implementing structured improvements to skill documentation
Step-by-Step Guide
Step 1: Load the Improvement Plan
Read the improvement-plan-{skill-name}.md file generated by skill-quality-reviewer.
# Plan is typically in current directory
ls improvement-plan-*.md
# Or specify full path
read /path/to/improvement-plan-my-skill.md
Validate the plan:
- File exists and is readable
- Contains priority sections (High/Medium/Low)
- Has structured improvement items
- Includes file paths and suggested changes
See references/plan-format.md for detailed plan structure.
Step 2: Parse and Group Changes
Extract all improvement suggestions and organize by target file.
Extract from each item:
- File path (e.g.,
SKILL.md:line:lineorreferences/file.md) - Dimension (Description Quality, Content Organization, etc.)
- Impact (+X points)
- Current content
- Suggested content
- Reason for change
Build update queue:
by_file = {
"SKILL.md": [change1, change2, ...],
"references/guide.md": [change3, ...],
"examples/demo.md": [change4, ...],
}
Step 3: Detect and Resolve Conflicts
Check for conflicts when multiple changes affect the same content.
Resolution strategy:
- High priority takes precedence over medium/low
- If same priority, preserve first change
- Flag conflicts for manual review
- Document resolution in update report
See references/merge-strategies.md for detailed merge logic.
Step 4: Sort by Priority
Order changes by priority within each file.
Priority order:
- High Priority (execute first)
- Medium Priority (execute second)
- Low Priority (execute last)
Step 5: Backup and Execute
Backup location: ~/.claude/skills/backup/{skill-name}-{timestamp}/
# Use backup script
~/.claude/skills/skill-improver/scripts/backup-skill.sh <skill-path>
Apply changes:
- Use Edit tool for existing content
- Use Write tool for new files
- Verify each change was applied
Step 6: Verify and Report
Verification checks:
- YAML syntax valid
- All modified files exist and are valid
- New files were created successfully
- No unintended changes occurred
# Use verify script
~/.claude/skills/skill-improver/scripts/verify-update.sh <skill-path>
Generate update-report-{skill-name}-{timestamp}.md documenting:
- Summary (files modified, files created, total changes)
- Changes Applied (per-file breakdown)
- Quality Improvement (before/after scores)
- Verification Results
- Backup Location
See examples/update-report-example.md for report template.
Priority Handling
High Priority
Execute first. These typically address:
- Critical description issues
- Major writing style problems
- Missing structural elements
- Security-related concerns
Medium Priority
Execute after High. These typically address:
- Content organization improvements
- Additional examples
- Documentation enhancements
Low Priority
Execute last. These typically address:
- Minor clarifications
- Nice-to-have improvements
- Polish and refinement
Integration with Skill Quality Reviewer
This skill works seamlessly with skill-quality-reviewer:
Current Skill (67/100 D+)
↓ [skill-quality-reviewer]
Improvement Plan
↓ [skill-improver]
Improved Skill (87/100 B+)
↓ [skill-quality-reviewer]
Quality Report (validation)
Iterate until desired quality level reached.
Additional Resources
Reference Files
references/plan-format.md- Improvement plan file structure and formatreferences/merge-strategies.md- Detailed merge algorithms and conflict resolutionreferences/error-handling.md- Error handling strategiesreferences/supported-updates.md- Supported update types with examples
Example Files
examples/improvement-plan-example.md- Sample improvement planexamples/update-report-example.md- Sample update report
Scripts
scripts/backup-skill.sh- Create backup of skill before updatesscripts/verify-update.sh- Verify skill integrity after updates
Best Practices
Before Applying Updates
- Review the improvement plan - Understand what will change
- Verify backup location - Ensure backups can be restored
- Check for manual changes - Note any uncommitted local modifications
- Estimate impact - Review expected quality improvement
During Update Execution
- Process in priority order - High → Medium → Low
- Verify after each file - Check updates were applied correctly
- Log all changes - Document what was modified
- Handle conflicts gracefully - Flag for review if needed
After Applying Updates
- Review the update report - Confirm all changes were intended
- Test the skill - Verify it still works correctly
- Compare scores - Check quality improvement matches expectations
- Keep backup - Retain backup until confident in changes
Usage Examples
Example 1: Apply improvements to local skill
User: "Apply improvements from improvement-plan-git-workflow.md"
[Claude executes the workflow:]
1. Reads improvement-plan-git-workflow.md
2. Parses all improvement items
3. Groups changes by file
4. Detects and resolves conflicts
5. Sorts by priority
6. Backs up git-workflow skill
7. Executes updates
8. Verifies results
9. Generates update-report-git-workflow-timestamp.md
Example 2: Update skill from quality review
User: "Update my api-helper skill based on quality report"
[Claude:]
1. Locates improvement-plan-api-helper.md
2. Applies all recommended changes
3. Verifies skill structure
4. Reports quality improvement: 72/100 → 91/100- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 92 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @Galaxy-Dawn · v1.0.0 · 未声明 license
- 流狐 Token 估算
- 中等消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
# Usage Examples
User: "Apply improvements from improvement-plan-git-workflow.md"
[Claude executes the workflow:]
1. Reads improvement-plan-git-workflow.md
2. Parses all improvement items
3. Groups changes by file
4. Detects and resolves conflicts
5. Sorts by priority
6. Backs up git-workflow skill
7. Executes updates
8. Verifies results
9. Generates update-report-git-workflow-timestamp.md Core Workflow
Step-by-Step Guide
Read the improvement-plan-{skill-name}.md file generated by skill-quality-reviewer. Validate the plan: File exists and is readable
Extract all improvement suggestions and organize by target file. Extract from each item: File path (e.g., SKILL.md:line:line or references/file.md)
Check for conflicts when multiple changes affect the same content. Resolution strategy: High priority takes precedence over medium/low
Order changes by priority within each file. Priority order: High Priority (execute first)
# Skill Improver
Execute improvement plans generated by `skill-quality-reviewer` to automatically update and fix issues in Claude Skills.
## Core Workflow
```
Read improvement-plan-{name}.md
↓
Parse improvement items (High/Medium/Low priority)
↓
Group changes by file
↓
Detect and resolve conflicts
↓
Backup original files
↓
Execute updates (Edit or Write tools)
↓
Verify results
↓
Generate update-report
```
## When to Use
**Trigger phrases:**
- "Apply improvements from improvement-plan-git-workflow.md"
- "Update my skill based on the quality report"
- "Execute the improvement plan for api-helper"
- "Fix the issues identified in quality review"
**Use this skill when:**
- Applying improvements from an improvement plan
- Updating a skill based on quality review feedback
- Executing recommended fixes from `skill-quality-reviewer`
- Implementing structured improvements to skill documentation
## Step-by-Step Guide
### Step 1: Load the Improvement Plan
Read the `improvement-plan-{skill-name}.md` file generated by `skill-quality-reviewer`.
```bash
# Plan is typically in current directory
ls improvement-plan-*.md
# Or specify full path
read /path/to/improvement-plan-my-skill.md
```
**Validate the plan:**
- File exists and is readable
- Contains priority sections (High/Medium/Low)
- Has structured improvement items
- Includes file paths and suggested changes
See `references/plan-format.md` for detailed plan structure.
### Step 2: Parse and Group Changes
Extract all improvement suggestions and organize by target file.
**Extract from each item:**
- File path (e.g., `SKILL.md:line:line` or `references/file.md`)
- Dimension (Description Quality, Content Organization, etc.)
- Impact (+X points)
- Current content
- Suggested content
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Core Workflow → When to Use → Step-by-Step Guide → Step 1: Load the Improvement Plan → Step 2: Parse and Group Changes → Step 3: Detect and Resolve Conflicts
要点 -> Trigger phrases · Use this skill when · Validate the plan · Extract from each item · Build update queue · Resolution strategy · Priority order · Backup location
文件/命令 -> skill-quality-reviewer · improvement-plan-{skill-name}.md · references/plan-format.md · SKILL.md:line:line · references/file.md · references/merge-strategies.md · ~/.claude/skills/backup/{skill-name}-{timestamp}/ · examples/update-report-example.md
内容 SHA-256 -> e9618bbc67b2
方法与流程
适用与边界
原文中的明确线索
skill-quality-reviewer、improvement-plan-{skill-name}.md、references/plan-format.md、SKILL.md:line:line、references/file.md、references/merge-strategies.md、~/.claude/skills/backup/{skill-name}-{timestamp}/、examples/update-report-example.md