cgf 优化
- 作者仓库星标 0
- 作者仓库 skills-registry
CGF Optimize Skill
This skill launches the CGF (Claude Gradient Feedback) optimization pipeline for a specified resource or creates a new resource from description.
Usage
Optimization Mode (Existing Resource)
/cgf-optimize <resource> <optimization_goal> [--review]
Creation Mode (New Resource)
/cgf-create <description> [--review]
Arguments
For optimization mode:
resource: Resource identifier - can be:
- Agent name:
python-expert,refactor-agent - Namespaced agent:
research-team:research-specialist - Full path:
.claude/agents/dev-python-expert.md
- Agent name:
optimization_goal: What to optimize for:
async programmingbetter error handlingcode quality improvementsContext7 usage patterns
For creation mode:
description: Natural language description of the desired resource:
Python async expert that helps with asyncio patternsKubernetes deployment agent for managing k8s resourcesCode review skill for security-focused reviews
--review (optional): Enable checkpoint mode for human review at each phase
Examples
Basic Optimization
/cgf-optimize python-expert async programming
Runs full optimization pipeline automatically.
With Review Checkpoints
/cgf-optimize typescript-expert --review
Pauses after research, test generation, and evaluation for your review.
Plugin Agent
/cgf-optimize research-team:research-specialist Context7 integration
Optimizes a plugin agent.
Create New Agent
/cgf-create Python async expert that helps with asyncio patterns
Creates initial agent draft using context-engineer, then optimizes.
Create With Review
/cgf-create Kubernetes deployment agent --review
Creates and optimizes with human review at each phase.
Workflow
Optimization Mode
- INIT: Creates workspace, detects resource type
- RESEARCH: Investigates domain best practices (via research-team)
- RESEARCH_ITERATE: Agentic optimization using research findings and LLM self-critique
- EVALUATE: Assesses results, recommends accept/refine/reject
- FINALIZE: Applies recommendation
Creation Mode
- INIT: Creates workspace, detects creation mode
- CREATE: Spawns context-engineer to create initial resource draft
- RESEARCH: Investigates domain best practices
- RESEARCH_ITERATE: Agentic optimization using research findings and LLM self-critique
- EVALUATE: Assesses results, recommends accept/refine/reject
- FINALIZE: Applies recommendation
Output
Results saved to workspace/{resource_id}/:
run_state.json- Current state (supports resume){resource_id}-v{N}.md- Optimized versionreviews/v{N}_review.md- Evaluation report
Resume
If optimization was interrupted, simply re-run the same command - it will resume from the last checkpoint.
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: andisab/casdk-harness — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- Python
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Usage
Optimization Mode (Existing Resource)
Creation Mode (New Resource)
For optimization mode: resource: Resource identifier - can be: Agent name: python-expert, refactor-agent
Examples
Runs full optimization pipeline automatically.
# CGF Optimize Skill
This skill launches the CGF (Claude Gradient Feedback) optimization pipeline for a specified resource or creates a new resource from description.
## Usage
### Optimization Mode (Existing Resource)
```
/cgf-optimize <resource> <optimization_goal> [--review]
```
### Creation Mode (New Resource)
```
/cgf-create <description> [--review]
```
### Arguments
**For optimization mode:**
- **resource**: Resource identifier - can be:
- Agent name: `python-expert`, `refactor-agent`
- Namespaced agent: `research-team:research-specialist`
- Full path: `.claude/agents/dev-python-expert.md`
- **optimization_goal**: What to optimize for:
- `async programming`
- `better error handling`
- `code quality improvements`
- `Context7 usage patterns`
**For creation mode:**
- **description**: Natural language description of the desired resource:
- `Python async expert that helps with asyncio patterns`
- `Kubernetes deployment agent for managing k8s resources`
- `Code review skill for security-focused reviews`
- **--review** (optional): Enable checkpoint mode for human review at each phase
## Examples
### Basic Optimization
```
/cgf-optimize python-expert async programming
```
Runs full optimization pipeline automatically.
### With Review Checkpoints
```
/cgf-optimize typescript-expert --review
```
Pauses after research, test generation, and evaluation for your review.
### Plugin Agent
```
/cgf-optimize research-team:research-specialist Context7 integration
```
Optimizes a plugin agent.
### Create New Agent
```
/cgf-create Python async expert that helps with asyncio patterns
```
Creates initial agent draft using context-engineer, then optimizes.
### Create With Review
```
/cgf-create Kubernetes deployment agent --review
```
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Usage → Optimization Mode (Existing Resource) → Creation Mode (New Resource) → Arguments → Examples → Basic Optimization
要点 -> For optimization mode · resource · optimizationgoal · For creation mode · description · --review · INIT · RESEARCH
文件/命令 -> python-expert · refactor-agent · research-team:research-specialist · .claude/agents/dev-python-expert.md · async programming · better error handling · code quality improvements · Context7 usage patterns
内容 SHA-256 -> 7a304ee015f9
方法与流程
适用与边界
原文中的明确线索
python-expert、refactor-agent、research-team:research-specialist、.claude/agents/dev-python-expert.md、async programming、better error handling、code quality improvements、Context7 usage patterns