Skip to main content

cgw-best-practices

Use before writing or changing TypeScript in safe-client-gateway PRODUCTION code (src/, excluding spec files) - the cross-cutting dos and don'ts that no domain guide owns and biome does not fully catch. Covers parse-don't-assert (no `as X` or `as unknown as X` on data whose shape the compiler cannot guarantee), no `any` and no @ts-ignore/@ts-expect-error, no non-null assertions, `import type` for type-only imports (with the Symbol-DI-token exception), ILoggingService instead of console.*, no silently swallowed errors in a catch block, `private readonly` injected dependencies, explicit return types on exported methods, and named constants over inline magic values. Triggers on any production TypeScript edit, plus "type error", "cast", "as unknown", "as any", "catch block", "console.log", "magic number". For casts inside a spec file load cgw-testing and cgw-remarks instead - the test-mock cast idiom is the one sanctioned exception and those two own it.

インストールへ移動

ソース情報

リポジトリ
safe-global/safe-client-gateway
ソースの最終更新活動
2026年8月7日 12:46
検出された SKILL.md の言語
英語
スター
50
フォーク
102

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。