← 返回 Skills 市场
bytesagain3

Golang

作者 bytesagain3 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ⚠ suspicious
386
总下载
0
收藏
3
当前安装
4
版本数
在 OpenClaw 中安装
/install golang
功能描述
Build, test, lint, and format Go projects with integrated dev tooling. Use when compiling binaries, running tests, linting code, or formatting files.
使用说明 (SKILL.md)

Golang

Developer toolkit for checking, validating, generating, formatting, linting, converting, and managing Go development entries. All operations are logged with timestamps and stored locally for full traceability.

Commands

Command Usage Description
check golang check \x3Cinput> Record a check entry or view recent checks
validate golang validate \x3Cinput> Record a validation entry or view recent validations
generate golang generate \x3Cinput> Record a generate entry or view recent generations
format golang format \x3Cinput> Record a format entry or view recent formatting operations
lint golang lint \x3Cinput> Record a lint entry or view recent lint results
explain golang explain \x3Cinput> Record an explain entry or view recent explanations
convert golang convert \x3Cinput> Record a convert entry or view recent conversions
template golang template \x3Cinput> Record a template entry or view recent templates
diff golang diff \x3Cinput> Record a diff entry or view recent diffs
preview golang preview \x3Cinput> Record a preview entry or view recent previews
fix golang fix \x3Cinput> Record a fix entry or view recent fixes
report golang report \x3Cinput> Record a report entry or view recent reports
stats golang stats Show summary statistics across all entry types
export \x3Cfmt> golang export json|csv|txt Export all entries to JSON, CSV, or plain text
search \x3Cterm> golang search \x3Cterm> Search across all log files for a keyword
recent golang recent Show the 20 most recent history entries
status golang status Health check — version, entry count, disk usage, last activity
help golang help Show help with all available commands
version golang version Print version string

Each command (check, validate, generate, format, lint, explain, convert, template, diff, preview, fix, report) works the same way:

  • With arguments: Saves the input with a timestamp to \x3Ccommand>.log and logs to history.log.
  • Without arguments: Displays the 20 most recent entries from \x3Ccommand>.log.

Data Storage

All data is stored locally at ~/.local/share/golang/:

  • \x3Ccommand>.log — Timestamped entries for each command (e.g., check.log, lint.log, format.log)
  • history.log — Unified activity log across all commands
  • export.json, export.csv, export.txt — Generated export files

No cloud, no network calls, no API keys required. Fully offline.

Requirements

  • Bash 4+ (uses set -euo pipefail)
  • Standard Unix utilities (date, wc, du, grep, head, tail, sed)
  • No external dependencies

When to Use

  1. Logging Go build and test results — Use golang check "go build ./... passed" or golang validate "all tests green on v1.4.2" to record build/test outcomes with timestamps for CI audit trails.
  2. Tracking lint and format operations — Use golang lint "golangci-lint found 3 issues in pkg/handler" and golang format "gofmt applied to cmd/" to maintain a history of code quality actions.
  3. Recording code generation and templates — Use golang generate "protobuf stubs for api/v2" and golang template "new service boilerplate created" to log what was generated and when.
  4. Searching past development notes — Use golang search "handler" to find all entries across every log file mentioning a specific package, file, or concept.
  5. Exporting development logs for review — Use golang export json to extract all logged entries as structured JSON for team reviews, retrospectives, or integration with project management tools.

Examples

# Record a check entry
golang check "go vet ./... clean on main branch"

# Record a lint finding
golang lint "unused variable in internal/cache/store.go:88"

# Log a format operation
golang format "goimports applied to all .go files"

# Record code generation
golang generate "mockgen interfaces for service layer"

# Log a fix
golang fix "resolved nil pointer in middleware/auth.go"

# View recent lint entries (no args = list mode)
golang lint

# Search all logs for a keyword
golang search "middleware"

# Export everything to JSON
golang export json

# Export to CSV for spreadsheet analysis
golang export csv

# View summary statistics
golang stats

# Health check
golang status

# View recent activity across all commands
golang recent

How It Works

Golang stores all data locally in ~/.local/share/golang/. Each command logs activity with timestamps in the format YYYY-MM-DD HH:MM|\x3Cinput>, enabling full traceability. The unified history.log records every operation with MM-DD HH:MM \x3Ccommand>: \x3Cinput> format for cross-command auditing.


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

安全使用建议
This skill appears to do what it claims: it logs developer actions locally under ~/.local/share/golang and offers search/export features. Before installing, review the script if you are concerned about local file writes. Avoid passing secrets or sensitive tokens as inputs because anything you log will be stored and could be exported; consider file permissions on the data directory and periodically delete logs if needed. Note the SKILL.md/script versions mention v2.0.0 while registry metadata lists 2.0.1 (a minor inconsistency). If you need networked backups or integrations, this skill does not provide them—you would need to add those separately.
功能分析
Type: OpenClaw Skill Name: golang Version: 2.0.1 The skill is a logging utility for Go development activity, but it contains several security flaws. The `_search` function in `scripts/script.sh` is vulnerable to argument injection because the `$term` variable is passed unsanitized to `grep`, potentially allowing an attacker to use flags like `-f` to read arbitrary local files. Additionally, the `_export` function fails to escape user-controlled input when generating JSON and CSV files, leading to data integrity issues or injection risks if the output is processed by other tools. The `SKILL.md` description is also misleading, as it claims to build and lint Go projects while the implementation only records text entries to local logs.
能力评估
Purpose & Capability
Name/description match the included script and SKILL.md: the skill provides a local dev-tool logging utility for Go workflows. No unrelated binaries, services, or credentials are requested.
Instruction Scope
Runtime instructions and the script confine operations to a single local directory (~/.local/share/golang) and only read/write log files and perform searches/exports. Note: the tool will record arbitrary inputs you provide into log files and export files, so it can persist sensitive strings if you log them.
Install Mechanism
No install spec is provided (instruction-only plus a script file). Nothing is downloaded or extracted from external URLs at install time.
Credentials
No environment variables or external credentials are required. The script uses HOME to compute the data directory (expected) and standard Unix utilities as declared.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. It only writes to its own per-user data directory and does not modify other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install golang
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /golang 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 retry: desc+homepage+source+security
v1.0.1
retry-fix-token
v1.0.0
Initial release
元数据
Slug golang
版本 2.0.1
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 4
常见问题

Golang 是什么?

Build, test, lint, and format Go projects with integrated dev tooling. Use when compiling binaries, running tests, linting code, or formatting files. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 386 次。

如何安装 Golang?

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

Golang 是免费的吗?

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

Golang 支持哪些平台?

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

谁开发了 Golang?

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

💬 留言讨论