← Back to Skills Marketplace
89
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install adaptive-cruise-control-yaml-config
Description
Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling.
README (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 orderallow_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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install adaptive-cruise-control-yaml-config - After installation, invoke the skill by name or use
/adaptive-cruise-control-yaml-config - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Bulk publish from all-task-skills-dedup
Metadata
Frequently Asked Questions
What is yaml-config?
Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling. It is an AI Agent Skill for Claude Code / OpenClaw, with 89 downloads so far.
How do I install yaml-config?
Run "/install adaptive-cruise-control-yaml-config" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is yaml-config free?
Yes, yaml-config is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does yaml-config support?
yaml-config is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created yaml-config?
It is built and maintained by wu-uk (@wu-uk); the current version is v0.1.0.
More Skills