← 返回 Skills 市场
wu-uk

yaml-config

作者 wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install adaptive-cruise-control-yaml-config
功能描述
Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling.
使用说明 (SKILL.md)

YAML Configuration Files

Reading YAML

Always use safe_load to prevent code execution vulnerabilities:

import yaml

with open('config.yaml', 'r') as f:
    config = yaml.safe_load(f)

# Access nested values
value = config['section']['key']

Writing YAML

import yaml

data = {
    'settings': {
        'param1': 1.5,
        'param2': 0.1
    }
}

with open('output.yaml', 'w') as f:
    yaml.dump(data, f, default_flow_style=False, sort_keys=False)

Options

  • default_flow_style=False: Use block style (readable)
  • sort_keys=False: Preserve insertion order
  • allow_unicode=True: Support unicode characters

Error Handling

import yaml

try:
    with open('config.yaml', 'r') as f:
        config = yaml.safe_load(f)
except FileNotFoundError:
    config = {}  # Use defaults
except yaml.YAMLError as e:
    print(f"YAML parse error: {e}")
    config = {}

Optional Config Loading

import os
import yaml

def load_config(filepath, defaults=None):
    """Load config file, return defaults if missing."""
    if defaults is None:
        defaults = {}

    if not os.path.exists(filepath):
        return defaults

    with open(filepath, 'r') as f:
        loaded = yaml.safe_load(f) or {}

    # Merge loaded values over defaults
    result = defaults.copy()
    result.update(loaded)
    return result
安全使用建议
This skill appears coherent and low-risk: it demonstrates safe YAML parsing (yaml.safe_load), writing, and basic error handling. Before using it with safety-critical data (e.g., vehicle parameters), add explicit schema validation, bounds checks, and provenance/trust checks on input files. Ensure the runtime has PyYAML installed (or add instructions to install it). Be mindful of file paths and permissions so config reads/writes don't accidentally expose or overwrite sensitive files.
功能分析
Type: OpenClaw Skill Name: adaptive-cruise-control-yaml-config Version: 0.1.0 The skill bundle provides standard documentation and code snippets for handling YAML configuration files. It correctly promotes security best practices by recommending the use of `yaml.safe_load()` to prevent arbitrary code execution and includes robust error handling patterns in SKILL.md. No malicious intent or suspicious behaviors were identified.
能力评估
Purpose & Capability
Name and description (YAML config handling, vehicle params) match the instructions, which show reading, safe parsing, writing, optional default merging, and basic error handling. No unrelated capabilities or credentials are requested.
Instruction Scope
SKILL.md stays on-topic and only demonstrates opening/reading/writing local YAML files and merging defaults. It correctly recommends yaml.safe_load. Note: examples reference filenames like 'config.yaml' and 'output.yaml' but do not discuss validating or sanitizing external data beyond YAML parsing; for vehicle or safety-critical parameters the operator should add strict schema/validation steps and avoid loading untrusted files.
Install Mechanism
Instruction-only skill with no install spec — lowest risk. One minor practical omission: examples import the 'yaml' module (PyYAML) but the SKILL.md does not mention ensuring that PyYAML is installed; this is an operational note rather than a security inconsistency.
Credentials
No environment variables, credentials, or config paths are requested. File I/O is limited to the example file paths and does not attempt to access unrelated system config or secrets.
Persistence & Privilege
Skill is user-invocable and not 'always'. It does not request persistent installation, system modification, or changes to other skills. Autonomous invocation is allowed (platform default) but not combined with other red flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install adaptive-cruise-control-yaml-config
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /adaptive-cruise-control-yaml-config 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Bulk publish from all-task-skills-dedup
元数据
Slug adaptive-cruise-control-yaml-config
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

yaml-config 是什么?

Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。

如何安装 yaml-config?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install adaptive-cruise-control-yaml-config」即可一键安装,无需额外配置。

yaml-config 是免费的吗?

是的,yaml-config 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

yaml-config 支持哪些平台?

yaml-config 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 yaml-config?

由 wu-uk(@wu-uk)开发并维护,当前版本 v0.1.0。

💬 留言讨论