← 返回 Skills 市场
ckchzh

Dev Setup

作者 BytesAgain2 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
177
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install dev-setup
功能描述
Set up macOS dev environments with automated install scripts for tools. Use when provisioning Macs, installing dev tools, configuring shells.
使用说明 (SKILL.md)

Dev Setup

Dev Setup v2.0.0 — a utility toolkit for logging, tracking, and managing development setup entries from the command line.

Commands

All commands accept optional input arguments. Without arguments, they display recent entries from the corresponding log. With arguments, they record a new timestamped entry.

Command Description
run \x3Cinput> Record or view run entries
check \x3Cinput> Record or view check entries
convert \x3Cinput> Record or view convert entries
analyze \x3Cinput> Record or view analyze entries
generate \x3Cinput> Record or view generate entries
preview \x3Cinput> Record or view preview entries
batch \x3Cinput> Record or view batch entries
compare \x3Cinput> Record or view compare entries
export \x3Cinput> Record or view export entries
config \x3Cinput> Record or view config entries
status \x3Cinput> Record or view status entries
report \x3Cinput> Record or view report entries
stats Show summary statistics across all log files
search \x3Cterm> Search all log entries for a keyword (case-insensitive)
recent Display the 20 most recent history log entries
help Show usage information
version Print version (v2.0.0)

Data Storage

All data is stored locally in ~/.local/share/dev-setup/:

  • Per-command logs — Each command (run, check, convert, etc.) writes to its own .log file with pipe-delimited timestamp|value format.
  • history.log — A unified activity log recording every write operation with timestamps.
  • Export formats — The export utility function supports JSON, CSV, and TXT output, written to ~/.local/share/dev-setup/export.\x3Cfmt>.

No external services, databases, or API keys are required. Everything is flat-file and human-readable.

Requirements

  • Bash (v4+ recommended)
  • No external dependencies — uses only standard Unix utilities (date, wc, du, tail, grep, sed, basename, cat)

When to Use

  • When you need to log and track development setup activities on macOS
  • To maintain a searchable history of tool installations and configurations
  • For batch recording of setup tasks with timestamps
  • When you want to export setup logs in JSON, CSV, or TXT format
  • As part of a larger provisioning or onboarding automation pipeline
  • To get quick statistics and summaries of past setup activities

Examples

# Record a new run entry
dev-setup run "installed Homebrew and Xcode CLI tools"

# View recent run entries (no args = show history)
dev-setup run

# Check something and log it
dev-setup check "Vim plugins installed via vim-plug"

# Analyze and record
dev-setup analyze "iTerm2 config imported from dotfiles"

# Configure and record
dev-setup config "set default shell to zsh"

# Generate a record
dev-setup generate "shell profile backup"

# Search across all logs
dev-setup search "homebrew"

# View summary statistics
dev-setup stats

# Show recent activity across all commands
dev-setup recent

# Show tool version
dev-setup version

# Show full help
dev-setup help

How It Works

Each command follows the same pattern:

  1. With arguments — Timestamps the input, appends it to the command-specific log file, prints confirmation, and logs to history.log.
  2. Without arguments — Shows the last 20 entries from that command's log file.

The stats command iterates all .log files, counts entries per file, and reports totals plus disk usage. The search command performs case-insensitive grep across all log files. The recent command tails the last 20 lines of history.log.


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

安全使用建议
This appears to be a local logging/tooling script and is generally safe: it only creates and reads files under ~/.local/share/dev-setup and does not call external services or ask for credentials. Things to consider before installing or running it: (1) SKILL.md metadata says runtime: python3 but the included executable is a bash script — confirm you run the right file and that your environment uses bash as expected. (2) The export JSON writer does not escape user input, so exported JSON may be malformed if entries contain quotes/newlines — avoid putting secret data into log entries. (3) The search uses grep with the raw term (no '--'), so very special inputs could be interpreted as grep options; avoid passing untrusted strings as search terms. (4) Review the script locally and run it in a limited environment or with non-privileged user before using widely on machines you care about.
功能分析
Type: OpenClaw Skill Name: dev-setup Version: 2.0.0 The 'Dev Setup' skill is a local utility for logging and tracking development environment setup activities on macOS. The provided Bash script (scripts/script.sh) implements simple text-based logging to '~/.local/share/dev-setup/', with basic search, statistics, and export (JSON/CSV/TXT) capabilities. Analysis of the code and SKILL.md instructions reveals no evidence of data exfiltration, network activity, or malicious execution; the tool operates entirely on local flat files and uses standard Unix utilities. While the script contains minor logic bugs (such as unreachable code for the 'export' and 'status' functions due to duplicate case labels), these are functional flaws rather than security vulnerabilities or indicators of malice.
能力评估
Purpose & Capability
Name/description say 'dev setup' logging and the included script implements a local CLI that writes/reads logs in ~/.local/share/dev-setup; no unrelated credentials, binaries, or network access are requested.
Instruction Scope
SKILL.md and the script limit actions to creating/reading/writing log files under the user's home (~/.local/share/dev-setup). This is within the stated purpose, but the metadata header lists runtime: python3 while the shipped executable is a bash script — a minor mismatch. The script reads/writes local files (expected).
Install Mechanism
No install spec; the skill is instruction-only plus a shell script. Nothing is downloaded or installed from external URLs.
Credentials
No environment variables, credentials, or external API keys are required. The script uses $HOME (expected) and only standard Unix tools.
Persistence & Privilege
Skill is not always-enabled and does not request system-wide configuration or modify other skills. It stores data only under ~/.local/share/dev-setup.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dev-setup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dev-setup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
publish v2.0.0
元数据
Slug dev-setup
版本 2.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Dev Setup 是什么?

Set up macOS dev environments with automated install scripts for tools. Use when provisioning Macs, installing dev tools, configuring shells. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 177 次。

如何安装 Dev Setup?

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

Dev Setup 是免费的吗?

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

Dev Setup 支持哪些平台?

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

谁开发了 Dev Setup?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.0。

💬 留言讨论