← Back to Skills Marketplace
Config Manager - 配置管理器
by
Light F Star
· GitHub ↗
· v1.0.0
531
Downloads
0
Stars
12
Active Installs
1
Versions
Install in OpenClaw
/install config-manager
Description
Manage dynamic, type-safe string, int, and bool configurations via key=value files for configurable, multi-environment applications.
README (SKILL.md)
Config Refactor - 配置驱动重构工具
版本: 1.0.0
作者: Claw
许可证: MIT
功能说明
基于易经思维设计的配置管理库,将硬编码重构为配置驱动。
核心功能
- 动态配置管理(支持字符串、数字、布尔类型)
- 配置文件加载(key=value 格式)
- 配置验证与默认值
- 类型安全访问
适用场景
- 需要将硬编码改为配置驱动的项目
- 需要动态调整配置的系统
- 需要支持多环境配置的应用
使用示例
#include "code.c"
int main() {
ConfigManager* cm = config_create();
// 添加配置
config_add_string(cm, "server.host", "localhost");
config_add_int(cm, "server.port", 8080);
config_add_bool(cm, "server.ssl", false);
// 获取配置
const char* host = config_get_string(cm, "server.host", "localhost");
int port = config_get_int(cm, "server.port", 80);
config_destroy(cm);
return 0;
}
易经思维应用
- 简易原则: 配置即键值对,抓住本质
- 变易原则: 支持多种类型,动态扩展
- 整体思维: 配置管理整体策略
测试
编译运行:
gcc -o config_demo code.c -DCONFIG_DEMO
./config_demo
变更日志
1.0.0
- 初始版本
- 支持字符串、整数、布尔类型
- 配置文件加载/保存
- 类型安全访问
Usage Guidance
This package is internally consistent with its description — it's a local C config manager. Before compiling/running: (1) review the C source (code.c) yourself to ensure it meets your security standards; it performs local file reads/writes only and has no networking. (2) Avoid running the compiled demo as root or with elevated privileges; run it under a least-privilege account. (3) Be cautious when loading config files from untrusted sources (config_load_file uses fopen on provided paths). (4) Note some minor code-quality issues: fixed buffer sizes (keys: 256, values: 1024), use of strncpy without explicit null-termination in some places, and no enforcement of key-length limits when callers provide keys — consider adding input length checks or using safe string functions before using in production. If you need networked or multi-user secure configuration features, this library will need additional hardening (validation, path sanitization, and optional encryption).
Capability Analysis
Type: OpenClaw Skill
Name: config-manager
Version: 1.0.0
The skill bundle provides a C library for configuration management. The `SKILL.md` file describes the library's features, usage, and provides standard compilation and testing instructions for the C code. The `code.c` file implements the configuration manager, handling key-value pairs, file loading, and saving. There is no evidence of malicious intent, such as data exfiltration, unauthorized system calls, network communication, persistence mechanisms, or prompt injection attempts against the AI agent. The file operations are limited to reading and writing configuration files as described.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, and included code.c implement a configuration manager (key=value loader, typed accessors, save/load). There are no unrelated environment variables, binaries, or external services requested — requirements are proportionate to the stated purpose.
Instruction Scope
SKILL.md instructs compiling and running the provided C source and demonstrates loading/saving config files. The runtime actions (reading and writing files specified by the user) are within scope for a config manager. Note: the demo and library read arbitrary file paths you pass to config_load_file/config_save_file — review and avoid loading untrusted files.
Install Mechanism
There is no install spec; this is an instruction-only skill that ships a C source file. This is lower-risk than fetching code at install time, but compiling and executing the included C binary runs with the user's privileges — review source before compiling.
Credentials
The skill declares no environment variables, credentials, or config paths. The code does not access environment variables or remote endpoints. Required privileges are limited to file I/O on paths you provide at runtime.
Persistence & Privilege
The skill is not force-included (always:false) and does not request persistent platform privileges or modify other skills. Autonomous invocation is allowed by default but this skill does not request elevated platform presence.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install config-manager - After installation, invoke the skill by name or use
/config-manager - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Config Refactor - 配置驱动重构工具 v1.0.0
- Initial release.
- Supports string, integer, and boolean configuration types.
- Dynamic configuration management with type-safe access.
- Load and save configuration files in key=value format.
- Includes configuration validation and default values.
Metadata
Frequently Asked Questions
What is Config Manager - 配置管理器?
Manage dynamic, type-safe string, int, and bool configurations via key=value files for configurable, multi-environment applications. It is an AI Agent Skill for Claude Code / OpenClaw, with 531 downloads so far.
How do I install Config Manager - 配置管理器?
Run "/install config-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Config Manager - 配置管理器 free?
Yes, Config Manager - 配置管理器 is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Config Manager - 配置管理器 support?
Config Manager - 配置管理器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Config Manager - 配置管理器?
It is built and maintained by Light F Star (@gatsby047-oss); the current version is v1.0.0.
More Skills