Tgf Server Dev
thkhxm/tgf
基于 tgf v2(github.com/thkhxm/tgf/v2)用确定性的 tgfctl 工作流创建、验证和维护 Go 游戏服务器项目。
Walks through adding a new Redis or Redis module command to the go-redis client, from fetching the spec and docs to the type, interface wiring, parsing and tests.
$ npx skills add redis/go-redis --skill add-command -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install redis/go-redis add-command --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-command .claude/skills/add-command && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .claude/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/redis/go-redis/tree/master/.claude/skills/add-commandType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add redis/go-redis --skill add-command -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install redis/go-redis add-command --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/add-command .agents/skills/add-command && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .agents/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add redis/go-redis --skill add-command -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install redis/go-redis add-command --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/add-command .cursor/skills/add-command && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .cursor/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/redis/go-redis.git --path .claude/skills/add-command--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add redis/go-redis --skill add-command -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install redis/go-redis add-command --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/add-command .gemini/skills/add-command && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .gemini/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install redis/go-redis add-commandInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add redis/go-redis --skill add-command -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/add-command .github/skills/add-command && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .github/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add redis/go-redis --skill add-command -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install redis/go-redis add-command --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/redis/go-redis.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/add-command .opencode/skills/add-command && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-command" agent skill from https://github.com/redis/go-redis/tree/master/.claude/skills/add-command into .opencode/skills/add-command/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-command", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-commandWalks through adding a new Redis or Redis module command to the go-redis client, from fetching the spec and docs to the type, interface wiring, parsing and tests.
Contributors adding a command to the root redis package of go-redis get a router here. Step 0 comes before any Go code: fetch the command's machine-readable JSON spec from the redis/redis repository for arguments, key positions and reply schema, and the prose docs on redis.io for what the reply really looks like, including the separate RESP2 and RESP3 reply sections.
A 404 on the spec means a module command, such as RediSearch, TimeSeries, VectorSet or Bloom, whose spec lives in the module's own repository, so the agent switches there or asks you for a spec or PR rather than retrying. You can also hand it a spec file or a redis/redis pull request URL. The skill then covers the Cmder type, Cmdable interface wiring, RESP parsing, tests and the custom vet rule that enforces SetVal.
Detailed guidance sits in three reference files, for core command patterns, cluster routing and module commands, and the agent is told to open only the one that matches the area being changed.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6f2b263. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
WebFetchFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
raw.githubusercontent.comredis.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Redis Command to go-redis loads about 1.4k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 644 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from redis/go-redis at commit 6f2b263, republished under its BSD-2-Clause licence (© redis). 644 words, ~1,380 tokens.
.claude/skills/add-command/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Router for adding a Redis command to the root redis package. Read the reference file for the area you're touching — don't load all of them.
Before writing any Go, know the exact command shape (arguments, optional flags, reply structure, since-version, key positions) and its documented semantics (what each reply field means, RESP2-vs-RESP3 differences, examples). Fetch two sources — the machine-readable spec and the prose docs. They cover different gaps: the spec nails arguments and key positions, the docs nail what the reply actually looks like.
Resolve the spec in this order:
github.com/redis/redis PR (or other repo) URL, fetch the diff and read the command definition + src/commands/<cmd>.json it adds.https://raw.githubusercontent.com/redis/redis/unstable/src/commands/<command>.json<container>-<sub>.json (e.g. client-info.json). A 404 means it's a module command (RediSearch, TimeSeries, VectorSet, Bloom) — those specs live in the module's own repo, not redis/redis. Switch to the module repo (see references/module-commands.md §1) or ask the user for the spec/PR. Don't retry the redis/redis URL.The JSON reply_schema is often thin or missing; the docs spell out what the reply actually is — including separate RESP2 Reply and RESP3 Reply sections, which decide your readReply and any module RESP2-vs-RESP3 handling. Fetch the command's doc page:
https://redis.io/docs/latest/commands/<command>/Raw markdown source (alternative, good for diffing or when the rendered page is noisy):
https://raw.githubusercontent.com/redis/redis-doc/master/commands/<command>.md.
Module commands (RediSearch, TimeSeries, …) are documented under their own
path on redis.io (e.g. /docs/latest/commands/ft.search/) or in the module repo
— see references/module-commands.md.
Read the Return value / RESP2 Reply / RESP3 Reply sections plus the examples, and reconcile them against the JSON reply_schema. When the two disagree, the docs' reply description (and a quick redis-cli check) win.
| Source | Drives |
|---|---|
spec arguments | method signature, args-slice build order, optional FooArgs struct |
spec reply_schema + docs Return value | the readReply parser and Cmder result type |
| docs RESP2 Reply / RESP3 Reply | RESP2-vs-RESP3 branching in readReply (see references/module-commands.md) |
spec since + docs @history | SkipBeforeRedisVersion(...) in the integration test, doc comment |
spec key_specs | key-position maps in command.go; cluster routing |
spec command_flags (e.g. READONLY, no key) | keyless / fan-out handling, cluster routing |
| docs examples | integration-test cases and expected values |
If you can't get either source, STOP and ask the user — guessing the reply shape produces a broken readReply.
*_commands.go file? — pick the existing file matching the data type (string_commands.go, hash_commands.go, search_commands.go, …). Only create a new file for a genuinely new category. New files need a matching XxxCmdable interface embedded in Cmdable (commands.go).int, string, bool, []string, map) reuse *IntCmd, *StringCmd, *BoolCmd, *StringSliceCmd, *MapStringStringCmd, … Define a new Cmder only for a structured reply that no existing type fits.Foo vs FooWithArgs? — for commands with optional flags, expose a positional Foo(...) for the common path plus FooWithArgs(ctx, key, *FooArgs) for the full surface.| Read this | When |
|---|---|
references/core-command-pattern.md | Always — the 7-step Go pattern (interface method, Cmder type, RESP parsing, tests, vet, fmt). Worked example: LCS. |
references/module-commands.md | Adding a RediSearch / TimeSeries / VectorSet / Bloom subcommand — naming, RESP2-vs-RESP3 shape differences, where the Cmd type lives. |
references/cluster-routing-wiring.md | Command is keyless, fans out, multi-key, or aggregates across shards. |
When several apply, read in order: core → module → cluster.
XxxCmdable interface in Cmdable — compiles on *Client, silently unreachable via UniversalClient.Clone() — pipelines reuse Cmders; shared val causes cross-execution bugs.SetVal because "nothing calls it" — hooks do, and the setval custom-vet check fails the build.time.Duration directly in args — server gets nanoseconds. Convert per spec.© redis, BSD-2-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .claude/skills/add-command of redis/go-redis.
Open the folder on GitHubat commit 6f2b263
Add Redis Command to go-redis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Redis Command to go-redis this skillredis/go-redis | 22k | — | ~1.4k | Automated safety check: Pass | BSD-2-Clause | |
| Tgf Server Devthkhxm/tgf | 128 | — | ~1.3k | Automated safety check: Notes | MIT | |
| Devinggo Project Inithuagelong/devinggo | 122 | — | ~1.1k | Automated safety check: Notes | Apache-2.0 | |
| Add Garnet RESP Commandmicrosoft/garnet | 12k | — | ~9.7k | Automated safety check: Pass | MIT | |
| Docs Syncredis/node-redis | 18k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Maintainer Reviewredis/node-redis | 18k | — | ~5.5k | Automated safety check: Pass | MIT |
thkhxm/tgf
基于 tgf v2(github.com/thkhxm/tgf/v2)用确定性的 tgfctl 工作流创建、验证和维护 Go 游戏服务器项目。
huagelong/devinggo
DevingGo 项目初始化与本地开发环境配置流程。用于用户询问项目初始化、开发环境搭建、依赖检查、配置文件生成、数据库迁移、本地启动后端/前端/Worker 服务、或希望 AI 大模型一步步把 DevingGo 跑起来时。适用于基于本项目 CLI、Makefile、manifest/config、hack/config、admin-ui 前端工作区的初始化排障与启动验证。
microsoft/garnet
Step-by-step guide for adding a new built-in RESP command to Garnet, from the command enum and parser to storage callbacks, command metadata JSON and tests.
redis/node-redis
Analyze master branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/, README.md, and per-package READMEs.
redis/node-redis
Review a GitHub issue or pull request URL as a node-redis maintainer, with a staged assessment of whether the claim is real, practically important, already solvable with supported functionality…
HoangNguyen0403/agent-skills-standard
Structure Go code with package-first boundaries, cmd/ and internal/, and explicit dependency wiring.
redis/go-redis
Prepares a go-redis release locally: picks the next semver, gathers merged PRs, writes the RELEASE-NOTES entry and bumps versions, without publishing.
redis/go-redis
Explains how to run go-redis tests: the Docker Compose stack, make targets, focusing a single Ginkgo spec, the e2e suite and the version environment variables.
redis/go-redis
Keeps every reference to the redislabs client-libs-test image tag in sync across the Makefile, compose file, GitHub workflows and docs when a Redis test version changes.
redis/go-redis
Sets the commit message and PR conventions for the go-redis repository: Conventional Commits, the repo's scope names, breaking-change syntax and no AI trailer.
Categories
Walks through adding a new Redis or Redis module command to the go-redis client, from fetching the spec and docs to the type, interface wiring, parsing and tests. Contributors adding a command to the root redis package of go-redis get a router here.io for what the reply really looks like, including the separate RESP2 and RESP3 reply sections.
Add Redis Command to go-redis fits situations like: adding support for a newly released Redis command to go-redis; wiring a RediSearch or TimeSeries subcommand into the client; implementing a command that arrives as a redis/redis pull request; making a new command route correctly in cluster mode.
Run `npx skills add redis/go-redis --skill add-command -a claude-code`. Or copy the skill folder (.claude/skills/add-command in redis/go-redis) into .claude/skills/add-command in your project. Claude Code loads it when a task matches its description.
Run `npx skills add redis/go-redis --skill add-command -a codex`. Or copy the skill folder (.claude/skills/add-command in redis/go-redis) into .agents/skills/add-command in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add redis/go-redis --skill add-command -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-command, .gemini/skills/add-command, .github/skills/add-command and .opencode/skills/add-command in your project.
SKILL.md names no scripts, command-line tools or credentials: Add Redis Command to go-redis is instructions for the agent only. Our summary lists: A checkout of the go-redis repository; Network access to GitHub and redis.io for the command spec and docs. Its frontmatter pre-approves these tools: WebFetch.
SKILL.md names 2 domains. In commands or code: raw.githubusercontent.com and redis.io; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Redis Command to go-redis is published under the BSD-2-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Add Redis Command to go-redis: Tgf Server Dev (thkhxm/tgf, 128 stars), Devinggo Project Init (huagelong/devinggo, 122 stars), Add Garnet RESP Command (microsoft/garnet, 12k stars) and Docs Sync (redis/node-redis, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
redis (a GitHub organization, an official publisher) maintains it in redis/go-redis, which has 22,257 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.
Source: redis/go-redis on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.