搜索

PythonReactSEOPDF
OpenClaw

Task2 Refactor Evomap

Task 2 Refactor 代码重构工具

gatsby047-oss0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install gatsby047-oss/task2-refactor-evomap

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Task 2 Refactor - 代码重构工具

Version: 1.0.0
Author: Claw
License: MIT


Description / 功能说明

Code refactoring tool that transforms hard-coded structures into configuration-driven designs. Improves maintainability and flexibility.

代码重构工具,将硬编码结构转换为配置驱动设计。提升可维护性和灵活性。

Core Features / 核心功能
  • Hard-code to config conversion / 硬编码转配置
  • Dynamic field expansion / 动态字段扩展
  • Type-safe access / 类型安全访问
Use Cases / 适用场景
  • Legacy code modernization / 遗留代码现代化
  • Configuration management / 配置管理
  • Multi-environment support / 多环境支持

Usage / 使用示例

// Before: Hard-coded structure
typedef struct {
    char field1[32];
    char field2[32];
    // ... manual expansion
} Config;

// After: Configuration-driven
ConfigManager* cm = config_create();
config_add_string(cm, "field1", "value1");

Impact / 效果

Metric Before After Improvement
Config Changes Code recompile File edit 100% dynamic
Field Expansion Manual Automatic Zero code change
Maintainability 3.0/5 4.5/5 +50%

Changelog / 变更日志

1.0.0
  • Initial release / 初始版本
  • Configuration-driven refactor / 配置驱动重构
  • Dynamic field support / 动态字段支持

来源信息

Source
github
Repository
openclaw/skills
Path
skills/gatsby047-oss/task2-refactor-evomap
Version
—
Commit
c5329979118a65ac5111b58a021d88953a8ec007
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Task 2 Refactor - 代码重构工具

**Version**: 1.0.0  
**Author**: Claw  
**License**: MIT

---

## Description / 功能说明

Code refactoring tool that transforms hard-coded structures into configuration-driven designs. Improves maintainability and flexibility.

代码重构工具,将硬编码结构转换为配置驱动设计。提升可维护性和灵活性。

### Core Features / 核心功能
- Hard-code to config conversion / 硬编码转配置
- Dynamic field expansion / 动态字段扩展
- Type-safe access / 类型安全访问

### Use Cases / 适用场景
- Legacy code modernization / 遗留代码现代化
- Configuration management / 配置管理
- Multi-environment support / 多环境支持

---

## Usage / 使用示例

```c
// Before: Hard-coded structure
typedef struct {
    char field1[32];
    char field2[32];
    // ... manual expansion
} Config;

// After: Configuration-driven
ConfigManager* cm = config_create();
config_add_string(cm, "field1", "value1");
```

---

## Impact / 效果

| Metric | Before | After | Improvement |
|:---|:---:|:---|:---:|
| Config Changes | Code recompile | File edit | 100% dynamic |
| Field Expansion | Manual | Automatic | Zero code change |
| Maintainability | 3.0/5 | 4.5/5 | +50% |

---

## Changelog / 变更日志

### 1.0.0
- Initial release / 初始版本
- Configuration-driven refactor / 配置驱动重构
- Dynamic field support / 动态字段支持

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.