← Back to Skills Marketplace
xueyetianya

Gpt

by bytesagain4 · GitHub ↗ · v3.4.1 · MIT-0
cross-platform ✓ Security Clean
436
Downloads
0
Stars
5
Active Installs
15
Versions
Install in OpenClaw
/install gpt
Description
Generate GPT API request payloads. Use when building chat completions, embeddings, fine-tuning data, or estimating API costs.
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gpt
  3. After installation, invoke the skill by name or use /gpt
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug gpt
Version 3.4.1
License MIT-0
All-time Installs 5
Active Installs 5
Total Versions 15
Frequently Asked Questions

What is Gpt?

Generate GPT API request payloads. Use when building chat completions, embeddings, fine-tuning data, or estimating API costs. It is an AI Agent Skill for Claude Code / OpenClaw, with 436 downloads so far.

How do I install Gpt?

Run "/install gpt" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gpt free?

Yes, Gpt is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gpt support?

Gpt is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gpt?

It is built and maintained by bytesagain4 (@xueyetianya); the current version is v3.4.1.

💬 Comments