ソース情報
- リポジトリ
- firstbatchxyz/kai
- ソースの最終更新活動
- 2026年6月19日 14:08
- 検出された SKILL.md の言語
- 英語
- スター
- 2
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SOC 職業分類に基づく
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/firstbatchxyz/kai --skill runpodコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
Inspect and analyze codebases using pygount for LOC counting, language breakdown, and code-vs-comment ratios. Use when asked to check lines of code, repo size, language composition, or codebase stats.
Set up GitHub authentication for the agent using git (universally available) or the gh CLI. Covers HTTPS tokens, SSH keys, credential helpers, and gh auth — with a detection flow to pick the right method automatically.
Production-grade PR review with execution-verified suggestions. Reads repository conventions, history, and security surfaces before reviewing. For every suggested fix, attempts to compile and test it in the sandbox — the comment includes proof. Modelled on GitHub Copilot's agentic architecture with one critical advantage: the sandbox is already running.
| name | runpod |
| description | Manage GPU pods, deploy serverless endpoints, and run inference workloads on RunPod |
| version | 1.0.0 |
| author | kai-agent |
| metadata | {"kai":{"tags":["kai","compute","runpod","gpu","pods","serverless","inference"]}} |
Skill for creating and managing GPU pods, deploying serverless inference endpoints, and running compute workloads on RunPod.
This skill uses the RUNPOD_API_KEY environment variable. If it is not set, ask your admin
to add it in Agent Settings. You can generate a key at https://www.runpod.io/console/user/settings.
pip install runpod
| GPU | VRAM | Best for |
|---|---|---|
| RTX 3090 | 24 GB | Quantized models up to 13B |
| RTX 4090 | 24 GB | Fast inference, quantized models |
| A40 | 48 GB | Medium models, fine-tuning |
| A100 (40 GB) | 40 GB | Large models, high throughput |
| A100 (80 GB) | 80 GB | 70B quantized, large batch inference |
| H100 (80 GB) | 80 GB | Maximum throughput, largest models |
import runpod
runpod.api_key = os.environ["RUNPOD_API_KEY"]
pod = runpod.create_pod(
name="vllm-llama3-8b",
image_name="runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
gpu_type_id="NVIDIA RTX A6000",
gpu_count=1,
volume_in_gb=50,
container_disk_in_gb=20,
ports="8000/http",
env={
"HF_TOKEN": os.environ.get("HF_TOKEN", ""),
},
)
print(f"Pod ID: {pod['id']}")
print(f"Status: {pod['desiredStatus']}")
gpu_types = runpod.get_gpus()
for gpu in gpu_types:
print(f"{gpu['id']}: {gpu['displayName']} - {gpu['memoryInGb']}GB")
pod = runpod.get_pod(pod_id="your-pod-id")
print(f"Status: {pod['desiredStatus']}")
print(f"Runtime: {pod.get('runtime')}")
pods = runpod.get_pods()
for pod in pods:
print(f"{pod['id']}: {pod['name']} - {pod['desiredStatus']}")
runpod.stop_pod(pod_id="your-pod-id")
runpod.resume_pod(pod_id="your-pod-id", gpu_count=1)
runpod.terminate_pod(pod_id="your-pod-id")
When a pod is running, you can SSH into it:
# Get SSH command from pod details
ssh root@<pod-ip> -p <ssh-port> -i ~/.ssh/your_key
Or use the RunPod CLI:
runpodctl ssh --pod-id <pod-id>
# Upload
runpodctl send ./model-weights.tar.gz --pod-id <pod-id>
# Download from pod
runpodctl receive <pod-id>:/workspace/results.json ./results.json
Serverless endpoints auto-scale from zero and are billed per second of compute.
endpoint = runpod.create_endpoint(
name="llama3-inference",
template_id="your-template-id",
gpu_ids="NVIDIA RTX A6000",
workers_min=0,
workers_max=3,
idle_timeout=5, # seconds before scaling down
)
print(f"Endpoint ID: {endpoint['id']}")
Create a handler.py for your custom inference logic:
import runpod
def handler(event):
"""Serverless handler for inference requests."""
input_data = event["input"]
prompt = input_data.get("prompt", "")
max_tokens = input_data.get("max_tokens", 256)
# Your inference logic here (vLLM, TGI, custom model)
result = run_inference(prompt, max_tokens)
return {"output": result}
runpod.serverless.start({"handler": handler})
FROM runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY handler.py .
COPY model/ ./model/
CMD ["python", "-u", "handler.py"]
import runpod
endpoint = runpod.Endpoint("your-endpoint-id")
# Synchronous (waits for result)
result = endpoint.run_sync(
{"input": {"prompt": "Explain tensor parallelism:", "max_tokens": 256}},
timeout=60,
)
print(result)
# Asynchronous
run = endpoint.run({"input": {"prompt": "Explain KV-cache:", "max_tokens": 256}})
status = endpoint.status(run["id"])
# Poll until complete
output = endpoint.output(run["id"])
for chunk in endpoint.stream({"input": {"prompt": "Write a story:", "max_tokens": 1024}}):
print(chunk, end="", flush=True)
Templates define a pre-configured container image and settings:
template = runpod.create_template(
name="vllm-serving",
image_name="vllm/vllm-openai:latest",
container_disk_in_gb=20,
volume_in_gb=100,
ports="8000/http",
env={
"MODEL_NAME": "meta-llama/Llama-3.1-8B-Instruct",
"MAX_MODEL_LEN": "4096",
},
)
idle_timeout on serverless endpoints to control scale-down behavior