Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/weatherpal-ai/mcp-handle/thinggit clone --depth 1 https://github.com/WeatherPal-AI/MCP-handleWrote 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.
[](https://agentmods.dev/rules/weatherpal-ai/mcp-handle/thing)<a href="https://agentmods.dev/rules/weatherpal-ai/mcp-handle/thing"><img src="https://agentmods.dev/badge/rules/weatherpal-ai/mcp-handle/thing.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02541 | $0.02541 |
| Opus 5 | $0.01270 | $0.01270 |
| Sonnet 5 | $0.00508 | $0.00508 |
| Haiku 4.5 | $0.00254 | $0.00254 |
Grade A, and why
thing 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 5d 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.
This is a copy
100% identical to thing — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.
description: globs: *.go alwaysApply: false
description: globs: *.go alwaysApply: false
Rule Name: Thing ORM Usage Guide
Description:
Quick reference for using the Thing ORM (github.com/burugo/thing).
Core Concept
- High-performance Go ORM focusing on CRUD and list operations.
- Built-in caching (Redis or in-memory) automatically handles single-entity and list query caching & invalidation.
- Uses Go generics for type safety and a cleaner API.
- Supports MySQL, PostgreSQL, SQLite.
Configuration
- Create DB Adapter:
import "github.com/burugo/thing/drivers/db/sqlite" // Or mysql, postgres dbAdapter, err := sqlite.NewSQLiteAdapter(":memory:") - Create Cache Client (Optional, defaults to in-memory):
import ( "github.com/redis/go-redis/v9" redisCache "github.com/burugo/thing/drivers/cache/redis" "github.com/burugo/thing" ) // Use nil for default in-memory: // var cacheClient thing.CacheClient = nil // Or Redis: // rdb := redis.NewClient(...) // cacheClient = redisCache.NewClient(rdb) - Get ORM Instance per Model:
Alternative Global Config (less flexible):import "github.com/burugo/thing" // import your models package // For a specific model typels.User) userThing, err := thing.New[*models.User](mdc:db)thing.Configure(dbAdapter, cacheClient)thenthing.Use[*Model]().
Basic Usage
- Model Definition: Embed
thing.BaseModeland usedbtags for columns.
Note: While using thetype User struct { thing.BaseModel // Includes ID, CreatedAt, UpdatedAt, DeletedAt Name string `db:"name"` // Explicitly maps Name field to 'name' column UserAge int // db tag omitted, defaults to 'user_age' column } // Optional: Define TableName() method if different from snake_case plural struct name. // func (u *User) TableName() string { return "custom_users_table" }dbtag is recommended for clarity, it's technically optional. If omitted, Thing ORM defaults to converting the Go field name (CamelCase, e.g.,UserAge) to its snake_case equivalent (user_age) as the database column name. Usedb:"-"to explicitly ignore a field.
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.
- 5d ago First seen · 237 lines · 2,541 tokens per session scan A 915b023f6220
thing is a cursor rule published in the GitHub repository WeatherPal-AI/MCP-handle (254 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 2,541 tokens to every session, about $0.0127 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to thing, differing in 0 lines, and is treated as a copy.
Other cursor rules, from other repositories
database-interaction-best-practices
Best practices when interacting with databases in backend Go code.
d-gen-po-model-converter-from-sql
根据sql生成model和po文件,以及converter转化器.
as-contract-cast-smell
// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .
no-backward-compatibility
Do not add backward-compatibility shims or migration scaffolding.
query-optimization
查詢優化、EXPLAIN、index 設計與 RLS 效能測量.
20-testing-generated-and-structure
Testing expectations, generated-file boundaries, and CLI structure contract.