Agent skill

Check

by qiniu in qiniu/go-sdk

运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk.

MITAuto-check passed

Install Check

skills CLI
$ npx skills add qiniu/go-sdk --skill check -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install qiniu/go-sdk check --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/qiniu/go-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/check .claude/skills/check && rm -rf skills-src

Use ~/.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/

Facts

Skill name
check
GitHub stars
158
Token cost
~159 tokens
SKILL.md length
34 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk.

  • SKILL.md covers 执行步骤, 输出格式 and 系统规范(AGENTS.md)
  • Calls make

What it does

Check is an agent skill from qiniu/go-sdk. 运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用。

Its SKILL.md is about 160 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/check”

Requirements

  • Pre-approved tools (allowed-tools): Bash(gofmt *), Bash(make staticcheck), Bash(make unittest)

What it can do on your machine

Read from SKILL.md and the folder at commit e1fe1ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(gofmt *)
    • Bash(make staticcheck)
    • Bash(make unittest)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Check loads about 159 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 34 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~159

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from qiniu/go-sdk at commit e1fe1ce, republished under its MIT licence (© qiniu). 34 words, ~159 tokens.

Download SKILL.mdSave it as .claude/skills/check/SKILL.md (or your agent's skills folder).
name
check
description
运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用。
allowed-tools
Bash(gofmt *), Bash(make staticcheck), Bash(make unittest)

提交前检查

开始时声明:"我正在使用 check skill 运行提交前检查。"

执行步骤

步骤 1:代码格式化检查
bash
gofmt -s -l .

如果有未格式化的文件,列出文件清单并提示运行 gofmt -s -w . 修复。

步骤 2:静态检查
bash
make staticcheck

如果失败,列出 staticcheck 报告的问题并给出修复建议。

步骤 3:单元测试
bash
make unittest

如果任何步骤失败,停止并报告错误,给出修复建议。

输出格式

全部通过时:

✓ gofmt — 通过
✓ staticcheck — 通过
✓ unittest — 通过

有失败时列出具体错误和修复建议。

系统规范(AGENTS.md)

执行本 skill 时同时遵守 AGENTS.md 中的系统规范;与本 skill 冲突时以本 skill 为准。

© qiniu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/check of qiniu/go-sdk.

Open the folder on GitHubat commit e1fe1ce

More from qiniu/go-sdk

  • CI Analyze

    qiniu/go-sdk

    分析 CI 失败原因并给出修复建议。在用户提到 CI 失败、pipeline 失败、构建失败、测试失败时使用。典型场景:PR 合前 CI 红、需要根因与修复建议时。

    158 GitHub stars~904 tokensUpdated 18 days ago
    Auto-check passed
  • Gh View

    qiniu/go-sdk

    分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

    158 GitHub stars~627 tokensUpdated 18 days ago
    Auto-check passed
  • Git Commit

    qiniu/go-sdk

    遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

    158 GitHub stars~666 tokensUpdated 18 days ago
    Auto-check passed
  • Release Check

    qiniu/go-sdk

    检查发布版本号是否在三处保持一致(conf/conf.go、CHANGELOG.md、README.md)。在准备发布新版本时使用。

    158 GitHub stars~195 tokensUpdated 18 days ago
    Auto-check passed
  • Gen

    qiniu/go-sdk

    运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

    158 GitHub stars~189 tokensUpdated 18 days ago
    Auto-check passed

Questions about Check

What does Check do?

运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk. Check is an agent skill from qiniu/go-sdk.

How do I install Check in Claude Code?

Run `npx skills add qiniu/go-sdk --skill check -a claude-code`. Or copy the skill folder (.agents/skills/check in qiniu/go-sdk) into .claude/skills/check in your project. Claude Code loads it when a task matches its description.

How do I install Check in Codex?

Run `npx skills add qiniu/go-sdk --skill check -a codex`. Or copy the skill folder (.agents/skills/check in qiniu/go-sdk) into .agents/skills/check in your project. Codex loads it when a task matches its description.

Can I use Check in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qiniu/go-sdk --skill check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/check, .gemini/skills/check, .github/skills/check and .opencode/skills/check in your project.

What does Check need to run?

Going by SKILL.md and its folder, Check needs the command-line tools its instructions call (make). Its frontmatter pre-approves these tools: Bash(gofmt *), Bash(make staticcheck), Bash(make unittest).

Does Check access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Check safe to install?

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.

What licence does Check use?

Check is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Check use?

About 159 tokens (SKILL.md is roughly 636 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

Who maintains Check?

qiniu (a GitHub organization) maintains it in qiniu/go-sdk, which has 158 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 20, 2026.

Source: qiniu/go-sdk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.