← 返回 Skills 市场
xueyetianya

Gpt

作者 bytesagain4 · GitHub ↗ · v3.4.1 · MIT-0
cross-platform ✓ 安全检测通过
436
总下载
0
收藏
5
当前安装
15
版本数
在 OpenClaw 中安装
/install gpt
功能描述
Generate GPT API request payloads. Use when building chat completions, embeddings, fine-tuning data, or estimating API costs.
使用说明 (SKILL.md)

gpt

GPT API calling assistant. Build chat completion requests, generate embedding payloads, prepare fine-tuning data, estimate costs, batch requests, and convert between formats.

Commands

chat

Build a chat completion request JSON payload from messages.

bash scripts/script.sh chat --system "You are a translator" --user "Translate: hello"
bash scripts/script.sh chat --system "Helper" --user "Hi" --model gpt-4o --temperature 0.7

embed

Generate an embedding API request payload.

bash scripts/script.sh embed --input "Text to embed"
bash scripts/script.sh embed --file texts.txt --model text-embedding-3-small

finetune

Prepare and validate fine-tuning JSONL data from source files.

bash scripts/script.sh finetune --input pairs.csv --output training.jsonl
bash scripts/script.sh finetune --validate training.jsonl

cost

Estimate API costs based on token count and model pricing.

bash scripts/script.sh cost --tokens 5000 --model gpt-4o
bash scripts/script.sh cost --file input.txt --model gpt-4-turbo

batch

Generate multiple API request payloads from a list of inputs.

bash scripts/script.sh batch --file prompts.txt --model gpt-4o --output batch_requests.jsonl

convert

Convert between JSONL and CSV data formats.

bash scripts/script.sh convert --input data.csv --to jsonl --output data.jsonl
bash scripts/script.sh convert --input data.jsonl --to csv --output data.csv

Output

All commands output JSON request bodies or JSONL to stdout by default. Use --output to write to a file. Cost estimates print a breakdown table with per-model pricing.

Requirements

  • bash 4+

Feedback

Report issues or suggestions: https://bytesagain.com/feedback/


Powered by BytesAgain | bytesagain.com

安全使用建议
This skill appears internally consistent: it generates local GPT API request payloads and cost estimates without asking for credentials, network access, or installers. Before installing or running it: (1) inspect the full scripts/script.sh file yourself (the preview was truncated here) and search for any network calls (curl, wget, nc, ssh, scp) or unexpected commands; (2) avoid passing files that contain secrets unless you trust the environment and have reviewed the script; (3) when writing outputs, specify a safe --output path to avoid accidental overwrites; (4) run it in a sandbox or temporary environment the first time if you want extra assurance. If you can provide the complete script.sh content, I can re-run the review to raise confidence.
功能分析
Type: OpenClaw Skill Name: gpt Version: 3.4.1 The 'gpt' skill is a utility for generating OpenAI API request payloads, estimating costs, and converting data formats (CSV/JSONL). Analysis of 'scripts/script.sh' shows it performs local string manipulation and basic arithmetic without any network calls, credential access, or unauthorized file system operations. The skill lacks any indicators of data exfiltration or malicious intent.
能力评估
Purpose & Capability
Name/description match the behavior: SKILL.md calls a local bash script to generate chat, embedding, finetune JSON/JSONL, batch and cost estimates. No unrelated credentials, binaries, or cloud access are requested.
Instruction Scope
Instructions are narrowly scoped: they run scripts/script.sh with options, read user-provided input files, and write JSON/JSONL outputs. This appears appropriate for the stated purpose. Note: the tool reads files supplied by the user and can write to arbitrary output paths (so be careful not to overwrite sensitive files).
Install Mechanism
No install spec (instruction-only with a bundled script). That is low-risk; nothing is downloaded or written to system locations by an installer.
Credentials
No environment variables, credentials, or config paths are required. The script as shown does not access external secrets or hidden config. This is proportionate to the skill's functionality.
Persistence & Privilege
Skill is not always-enabled and does not request persistent platform privileges. It does not modify other skills or global config in the reviewed content.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gpt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gpt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.4.1
v2.5 standard: Use-when desc, homepage, source, security fix
v3.4.0
manual
v3.3.0
Major rewrite: domain-specific commands, Use-when description, security fixes, dependency declarations
v1.0.7
manual
v3.2.0
Concise description (no truncation), add homepage+source metadata
v3.1.0
Security fix: safe env-var Python invocation; add Requirements section; fix description format
v3.0.1
Fix: add Requirements, fix description
v3.0.0
Major rewrite: domain-specific commands
v1.0.6
yaml-fix+quality
v1.0.5
yaml-fix+quality
v1.0.4
Quality upgrade
v1.0.3
Quality upgrade: custom functionality
v1.0.2
Added feedback link
v1.0.1
Quality fix: cleaner docs, removed flags
v1.0.0
Initial release
元数据
Slug gpt
版本 3.4.1
许可证 MIT-0
累计安装 5
当前安装数 5
历史版本数 15
常见问题

Gpt 是什么?

Generate GPT API request payloads. Use when building chat completions, embeddings, fine-tuning data, or estimating API costs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 436 次。

如何安装 Gpt?

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

Gpt 是免费的吗?

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

Gpt 支持哪些平台?

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

谁开发了 Gpt?

由 bytesagain4(@xueyetianya)开发并维护,当前版本 v3.4.1。

💬 留言讨论