← 返回 Skills 市场
bytesagain1

Config

作者 bytesagain1 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
402
总下载
0
收藏
3
当前安装
10
版本数
在 OpenClaw 中安装
/install config
功能描述
Manage app configuration files with init, list, and add operations. Use when initializing configs, listing settings, switching environments.
使用说明 (SKILL.md)

Config

Multi-purpose configuration and data utility tool. Initialize settings, add entries, search records, and export data — all from the command line.

Commands

Command Description
config run \x3Cinput> Execute the main function with the given input
config config Show the configuration file path ($DATA_DIR/config.json)
config status Display current system status (shows "ready" when operational)
config init Initialize the data directory and prepare for first use
config list List all entries stored in the data log
config add \x3Citem> Add a new timestamped entry to the data log
config remove \x3Citem> Remove a specified entry
config search \x3Cterm> Search entries by keyword (case-insensitive)
config export Export all stored data to stdout
config info Show version number and data directory path
config help Show help with all available commands
config version Show current version

Data Storage

  • Default data directory: ~/.local/share/config/
  • Data log: $DATA_DIR/data.log — stores all added entries with timestamps
  • History log: $DATA_DIR/history.log — timestamped record of every command executed
  • Override the storage location by setting the CONFIG_DIR environment variable

Requirements

  • Bash 4+ (uses set -euo pipefail)
  • No external dependencies, API keys, or network access required
  • Fully offline and local — data never leaves your machine

When to Use

  1. Bootstrapping a new project — Run init to create the data directory and get a clean starting point for configuration tracking
  2. Logging configuration changes — Use add to record timestamped configuration decisions, environment changes, or deployment notes
  3. Searching through config history — Find specific entries with search to trace when a setting was last changed
  4. Exporting settings for backup — Dump all stored entries with export and redirect to a file for version control or sharing
  5. Quick status checks in scripts — Use status and info in automation pipelines to verify the tool is ready before proceeding

Examples

# Initialize the config data directory
config init

# Record a configuration change
config add "Set DATABASE_URL to production endpoint"

# Record another entry
config add "Enabled rate limiting: 100 req/min"

# List all recorded entries
config list

# Search for entries related to a keyword
config search "database"

# Export all data to a backup file
config export > config-backup.txt

# Check system status
config status

# View version and storage location
config info

How It Works

The tool maintains a simple date-stamped text log (data.log). Each add command appends a new line with the current date and your input. Every command execution is also logged to history.log for audit trails. The search command performs a case-insensitive grep, and export outputs the full data log to stdout.

Tips

  • Use config config to find where the config JSON file is stored — handy for automated backup
  • Pipe export into other tools: config export | wc -l to count entries
  • Combine with cron or CI/CD: log config drifts automatically with config add "$(diff old new)"
  • Run config help at any time to see the complete command reference

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This appears to be a simple local-only config/log tool and is coherent with its description. Before using it: (1) don't store secrets or credentials with 'config add' because entries and history are persisted in plaintext under your user data directory; (2) note that 'remove' does not actually delete entries — review/modify the script if you need true removal; (3) if you expect 'run' to execute commands, update the implementation (it currently only echoes the input). If you are comfortable with plaintext local logs and/or audit those files in backups, this skill is reasonable to install.
功能分析
Type: OpenClaw Skill Name: config Version: 2.0.1 The skill is a simple local configuration and logging utility that manages a text-based log file in the user's local data directory. Analysis of 'scripts/script.sh' and 'SKILL.md' shows no network activity, no data exfiltration, and no attempts at persistence or prompt injection; the code operates entirely offline as stated.
能力评估
Purpose & Capability
Overall the script implements a local config/log utility matching the name/description. However a couple of declared commands do not perform the action a user would reasonably expect: 'remove' only echoes a removal message and does not delete entries from data.log, and 'run' only prints its argument rather than executing anything. The SKILL.md and script otherwise align on storage location and basic operations.
Instruction Scope
SKILL.md instructs the agent to run local commands (init, add, list, search, export). These are limited to local filesystem operations. Be aware the tool writes every executed command to history.log and appends user-provided text to data.log — so any sensitive text passed to 'config add' (or piped into the command examples like diff outputs) will be persisted.
Install Mechanism
Instruction-only skill with a single bash script; no install spec, no remote downloads, and no package manager use — lowest install risk.
Credentials
The registry metadata lists no required env vars, but the script honors CONFIG_DIR (override), XDG_DATA_HOME, and HOME for storage location. This is reasonable, but CONFIG_DIR is not declared as a required/provided env in metadata. Also: because data and history are stored under the user's data directory, those files may contain sensitive information if used to store secrets.
Persistence & Privilege
always:false and the skill is user-invocable only. The script only creates files under the user's data directory (~/.local/share/config by default) and does not modify global/system settings or other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install config
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /config 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.7
yaml-fix+quality
v1.0.6
yaml-fix+quality
v1.0.5
Quality upgrade
v1.0.4
Quality upgrade: custom functionality
v1.0.3
Standards compliance: unique content, no template text
v1.0.2
Quality fix: cleaner docs, removed flags
v1.0.1
Quality improvement: better docs, examples, cleaner text
v1.0.0
Initial release
元数据
Slug config
版本 2.0.1
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 10
常见问题

Config 是什么?

Manage app configuration files with init, list, and add operations. Use when initializing configs, listing settings, switching environments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 402 次。

如何安装 Config?

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

Config 是免费的吗?

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

Config 支持哪些平台?

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

谁开发了 Config?

由 bytesagain1(@bytesagain1)开发并维护,当前版本 v2.0.1。

💬 留言讨论