go-zulip
БесплатноБез исполняемых скриптовНе проверенUnofficial Go client for the Zulip REST API, generated with oapi-codegen. Package zulip (github.com/psyb0t/go-zulip) provides typed ...WithResponse methods on…
от psyb0t810 установок в других каталогахОб этом скилле
go-zulip
Unofficial, typed Go client for the Zulip REST API, in package zulip at the module root.
For install, operation names, request encoding and pagination, see references/setup.md.
Security & safety
- Read the server URL, account or bot email and API key from
ZULIP_SERVER,ZULIP_EMAILandZULIP_API_KEY. Never hardcode, commit or log credentials, or print anAuthorizationheader. - Use only the user's trusted HTTPS Zulip server, with
/api/v1in the base URL. Request content and credentials leave the machine for that server. - Sending, editing or deleting messages and changing users, channels or organization settings affect the Zulip organization. Perform those actions only when the user requests them, on the resources they specify.
When to use
- Go code needs Zulip users, messages, channels, subscriptions or events.
- Go code needs to send messages or administer Zulip at the user's request.
- The project already imports
github.com/psyb0t/go-zulip.
When NOT to use
- The code is not Go. This module ships only a Go package.
- You need a client maintained by Zulip. This client is unofficial.
- You want to modify generated code. Read the repository's
AGENTS.mdinstead.
Finding endpoints and types
The usage below covers one call. Every operation in the spec has a generated method, and the spec's descriptions are on them as Go doc comments. Look names and fields up instead of guessing. After go get github.com/psyb0t/go-zulip, from inside your module:
go doc github.com/psyb0t/go-zulip ClientWithResponsesInterface # every endpoint method
go doc github.com/psyb0t/go-zulip GetMessagesParams # one method, params type or model
go doc -all github.com/psyb0t/go-zulip # the whole package
The same documentation is at https://pkg.go.dev/github.com/psyb0t/go-zulip.
Method names come from the spec's operation IDs. <OperationId>WithResponse takes the context, then the path parameters in order, then *<OperationId>Params when the operation has query or header parameters, then the request body when it has one. The JSON200 field (or JSON201 and so on, per declared status) holds the decoded body; it is nil for any other status. Operations with a URL-encoded form body are <OperationId>WithFormdataBodyWithResponse (for example SendMessageWithFormdataBodyWithResponse with a SendMessageFormdataRequestBody), and multipart uploads use <OperationId>WithBodyWithResponse.
Usage
import (
"context"
"net/http"
"os"
"github.com/psyb0t/go-zulip"
)
auth := zulip.WithRequestEditorFn(
func(_ context.Context, req *http.Request) error {
req.SetBasicAuth(
os.Getenv("ZULIP_EMAIL"),
os.Getenv("ZULIP_API_KEY"),
)
return nil
},
)
client, err := zulip.NewClientWithResponses(
os.Getenv("ZULIP_SERVER"),
auth,
)
if err != nil {
return err
}
res, err := client.GetOwnUserWithResponse(context.Background())
if err != nil {
return err
}
_ = res.JSON200
Set ZULIP_SERVER to a URL such as https://your-server.example/api/v1. Check StatusCode() and JSON200 before consuming the response. The error return covers request, transport and decoding failures; an API rejection can return a nil Go error.
Read the generated signature for the operation before writing a call. Many endpoints use URL-encoded forms. Zulip's event API is REST long polling; this module has no WebSocket package.
Установить go-zulip в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл go-zulip?
Unofficial Go client for the Zulip REST API, generated with oapi-codegen. Package zulip (github.com/psyb0t/go-zulip) provides typed ...WithResponse methods on ClientWithResponses for messages, users, channels (streams), subscriptions, events long polling, uploads and organization administration, with HTTP Basic auth (email and API key) set through WithRequestEditorFn. Use when Go code needs to send or read Zulip messages, manage a Zulip organization, or already imports go-zulip.
Как установить скилл go-zulip?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл go-zulip запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic