agentleFS
sasuketoriisasuketorii/rev_harness_public/.claude/skills/go-skills-knowledge-pack/AGENTS.md

rev_harness_public / go-skills-knowledge-pack

AGENTS.md0 starsChanged 3 months agoApache-2.0View on GitHub

このリポジトリでGoコード・GoSkills文書を編集するAIエージェントは、以下に従う。 When CloudflareSkills, SupabaseSkills, RustSkills, TypeScriptSkills, and GoSkills are all available, follow this precedence: Read references/multiskill-interop.md before changing cross-language boundaries.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When CloudflareSkills, SupabaseSkills, RustSkills, TypeScriptSkills, and GoSkills are all available, follow this precedence:

    line 59
  2. Very specific:

    Read references/multiskill-interop.md before changing cross-language boundaries.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 42,283 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — GoSkills Repository Instructions

このリポジトリでGoコード・GoSkills文書を編集するAIエージェントは、以下に従う。

Language and output

  • 既定の説明・レビュー・提案は日本語。
  • コード、コマンド、module path、package name は原文維持。
  • 外部情報を更新する場合は、日本語・英語の両方で確認し、公式ソースを優先する。

Version policy

  • Goは最新安定patchを基準にする。
  • go.mod は曖昧な latest ではなく、実解決されたversionを記録する。
  • v0.x module は stable ではない。採用する場合は Watch/R&D として扱い、破壊的変更を警戒する。
  • pkg.go.dev で “Stable version unchecked” が出るmoduleは、Master上で Core に昇格させない。

Coding policy

  • context.Context をI/O境界の第一引数にする。
  • goroutineは必ず上限・キャンセル・エラー回収を設計する。
  • http.Client / http.Transport は再利用する。
  • Response.Body.Close() を徹底する。
  • ログは構造化し、秘密値を出さない。
  • panic はCLI entrypointやテスト以外では原則禁止。

CI policy

最低限:

go mod tidy
go mod verify
go test ./...
go test -race ./...
go vet ./...
govulncheck ./...
gosec ./...
golangci-lint run
staticcheck ./...

性能系変更では追加:

go test -bench=. -benchmem ./...
go tool pprof

Review policy

  • セキュリティ、暗号、クローラー、ブラウザ自動化、外部API大量通信は必ず監査観点を入れる。
  • 高負荷送信やクローリングは、許可済み対象・自社管理対象・正当な業務処理を前提に、rate limit、allowlist、audit log、backpressureを入れる。
  • “速いから採用” ではなく、profile/benchmark/lockfile/security scan を根拠に採用する。

Multi-skill co-loading

When CloudflareSkills, SupabaseSkills, RustSkills, TypeScriptSkills, and GoSkills are all available, follow this precedence:

  1. Platform runtime rules first: Cloudflare/Supabase.
  2. Security and secret-handling rules override language preference.
  3. Rust owns low-level crypto/performance kernels unless explicitly reassigned.
  4. TypeScript owns browser/frontend/general Cloudflare Worker glue.
  5. Go owns backend APIs, durable workflows, CLIs, and service daemons.

Read references/multiskill-interop.md before changing cross-language boundaries.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.