feishu-cursor-claw: Skill for Cursor

.cursor/skills/Go开发模式/SKILL.md

Go开发模式 is a skill for Cursor from nongjun/feishu-cursor-claw. It costs 42 tokens per session (414 once invoked), scanned A, original, MIT.

A set of working guidelines for building Go back-end services, command-line tools, and microservices. It covers project structure, explicit error handling, small interfaces, goroutines and channels, and table-driven tests.

In plain words
What is it for?
Use it while writing or reviewing Go code. It helps structure packages, return and wrap errors, manage goroutine lifetimes with contexts, coordinate concurrent work, and place tests in the expected files.
Why use it?
It gives Go developers consistent ways to organize code and handle common problems such as errors, concurrency, and testing. It also explains terms such as goroutines, which are lightweight concurrent tasks, and table-driven tests, which run the same test logic against many cases.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is nongjun/feishu-cursor-claw's own configuration. It tells Cursor how to work on feishu-cursor-claw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything feishu-cursor-claw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nongjun/feishu-cursor-claw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nongjun/feishu-cursor-claw/main/.cursor/skills/Go开发模式/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Go开发模式

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/go.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/go)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/go"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/go.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00414
Opus 5 $0.00021 $0.00207
Sonnet 5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00041

Measured 7d ago against content hash 32d4dc293634, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Go开发模式 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/skills/Go开发模式/SKILL.md · 47 lines

What it actually says

Go 开发模式

适用场景

使用 Go 语言开发后端服务、CLI 工具、微服务时。

核心原则

  • 显式优于隐式——Go 不鼓励魔法,代码应该直白可读
  • 错误是值——每个可能出错的地方都显式处理错误,不要忽略
  • 接口小而精——接口只定义必需的方法,一个方法的接口最好
  • 组合优于继承——用结构体嵌入和接口组合,不要模拟类继承
  • 并发用 goroutine + channel——但不要过度并发,简单任务用同步就好

项目结构

Go 项目推荐按功能/领域组织,而非按层级:

  • cmd/ 放入口文件
  • internal/ 放不对外暴露的逻辑
  • pkg/ 放可复用的公共包
  • 每个包职责单一,包名就是它做什么

错误处理

  • 返回 error 而非 panic
  • 用 fmt.Errorf 包装错误添加上下文
  • 在调用方处理错误,不在被调用方静默吞掉
  • 对外 API 返回统一的错误结构

并发模式

  • 用 context 控制 goroutine 生命周期
  • 用 sync.WaitGroup 等待多个 goroutine 完成
  • channel 用于通信,mutex 用于保护共享状态
  • 总是处理 channel 的关闭和超时

测试

  • 表驱动测试(Table-Driven Tests)是标准模式
  • 用 testify 做断言
  • 测试文件和被测文件同目录,以 _test.go 结尾
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 47 lines · 42 tokens per session scan A 32d4dc293634

Subscribe to this mod's changes

Go开发模式 is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 414 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories