{"id":50996416,"url":"https://github.com/kanywst/hammurabi","last_synced_at":"2026-06-20T10:01:24.119Z","repository":{"id":338344140,"uuid":"1157560378","full_name":"kanywst/hammurabi","owner":"kanywst","description":"A codex of engineering laws — each with its counter-force, a field guideline, and a source.","archived":false,"fork":false,"pushed_at":"2026-06-15T03:22:30.000Z","size":511,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-15T05:12:26.729Z","etag":null,"topics":["best-practices","cognitive-science","decision-making","engineering","heuristics","knowledge-base","mental-models","nextjs","software-development","software-engineering","systems-thinking"],"latest_commit_sha":null,"homepage":"https://kanywst.github.io/hammurabi/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanywst.png","metadata":{"files":{"readme":"README.jp.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-14T00:51:59.000Z","updated_at":"2026-06-15T03:22:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kanywst/hammurabi","commit_stats":null,"previous_names":["kanywst/hacker-heuristics","kanywst/hammurabi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kanywst/hammurabi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fhammurabi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fhammurabi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fhammurabi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fhammurabi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanywst","download_url":"https://codeload.github.com/kanywst/hammurabi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanywst%2Fhammurabi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34565244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["best-practices","cognitive-science","decision-making","engineering","heuristics","knowledge-base","mental-models","nextjs","software-development","software-engineering","systems-thinking"],"created_at":"2026-06-20T10:01:23.451Z","updated_at":"2026-06-20T10:01:24.110Z","avatar_url":"https://github.com/kanywst.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./website/public/banner.jpg\" alt=\"Hammurabi — Laws Every Engineer Should Know\" width=\"100%\" /\u003e\n\n各法則に「対抗力」「現場の指針」「一次資料の出典」を添えた、エンジニアリングの法典。\n\n[![stars](https://img.shields.io/github/stars/kanywst/hammurabi?style=for-the-badge\u0026color=c2884a\u0026labelColor=0c0b08)](https://github.com/kanywst/hammurabi/stargazers)\n[![forks](https://img.shields.io/github/forks/kanywst/hammurabi?style=for-the-badge\u0026color=e0aa6b\u0026labelColor=0c0b08)](https://github.com/kanywst/hammurabi/network/members)\n[![license](https://img.shields.io/github/license/kanywst/hammurabi?style=for-the-badge\u0026color=a39884\u0026labelColor=0c0b08)](https://github.com/kanywst/hammurabi/blob/main/LICENSE)\n\n[English](./README.md) • **日本語**\n\n---\n\n## Hammurabi とは？\n\n複雑性が増し続ける現代において、エンジニアリングの最大のボトルネックは「コード」ではなく、**「不確実な状況下での意思決定」** です。\n\nHammurabi は、**認知心理学**、**安全工学**、**システム設計**から選び抜いた、エンジニアリングの法則の法典です。各法則には、それを独断に変えないための **対抗力**、明日から使える **現場の指針**、そして **一次資料の出典** が添えられています。人類最古の成文法典に因んで名付けました。\n\n## 法則\n\n|     カテゴリ      |                                              法則                                               |               核心となるアイデア                |\n| :--------------: | :---------------------------------------------------------------------------------------------: | :---------------------------------------------: |\n|   **意思決定**   |   [可逆的 vs 不可逆的決定](./translations/jp.md#1-意思決定の可逆性-type-1-vs-type-2-decisions)   |       「双方向のドア」か「一方向のドア」か。       |\n|   **安全工学**   |          [逸脱の常態化](./translations/jp.md#2-逸脱の常態化-normalization-of-deviance)           |     小さな異常を「正常」と定義し直してはいけない。     |\n|   **安全工学**   |        [スイスチーズモデル](./translations/jp.md#33-スイスチーズモデル-swiss-cheese-model)        |     事故は複数層の穴が一直線に並んだ瞬間に起きる。     |\n|   **システム**   |         [チェスタトンの柵](./translations/jp.md#3-チェスタトンの柵-chestertons-fence)         |         消す前に「なぜ存在するか」を説明せよ。         |\n|     **組織**     |             [ハンロンの剃刀](./translations/jp.md#12-ハンロンの剃刀-hanlons-razor)             |            悪意ではなく文脈の欠如を疑え。            |\n|     **組織**     |            [コンウェイの法則](./translations/jp.md#7-コンウェイの法則-conways-law)            |           ソフトウェアは組織の鏡である。            |\n|     **認知**     |          [生存者バイアス](./translations/jp.md#21-生存者バイアス-survivorship-bias)           |           死者はブログ記事を書かない。            |\n|     **認知**     | [ダニング・クルーガー効果](./translations/jp.md#31-ダニング・クルーガー効果-dunning-kruger-effect) |     無能な者は自分が無能であることを認識できない。     |\n| **インセンティブ** |             [コブラ効果](./translations/jp.md#23-コブラ効果-the-cobra-effect)              |             解決策がより悪い問題を生む。             |\n|   **安全工学**   |          [マーフィーの法則](./translations/jp.md#28-マーフィーの法則-murphys-law)           |    うまくいかない可能性があることは必ずうまくいかない。    |\n|   **システム**   | [テスラーの複雑性保存則](./translations/jp.md#30-テスラーの複雑性保存則-teslers-law-of-conservation-of-complexity) |          複雑性は消えずに、ただ移動する。          |\n|   **分散システム**   |                  [CAP定理](./translations/jp.md#36-cap定理-cap-theorem)                   |   分断時、一貫性と可用性は両立できない。   |\n|     **組織**     |          [ピーターの法則](./translations/jp.md#39-ピーターの法則-peter-principle)          |       人は不得手な職位に達するまで昇進する。       |\n|    *...他多数*    |                          [全リストを見る →](./translations/jp.md)                          |                                                 |\n\n## サイト\n\n碑文・エディトリアル調のサイトで、全法則を番号付きの条文（§ 01〜）として読めます。序文 (Prologue) と結文 (Epilogue) が法典を挟みます。\n\n```bash\ncd website\nnpm install\nnpm run dev\n```\n\n`http://localhost:3000` にアクセスして法典を読んでください。\n\n## 貢献について\n\n**認知科学**や**エンジニアリング史**に基づいた強力な法則の提案を歓迎します。\n\n1. 既存の[法典](./translations/jp.md)を確認してください。\n2. 提案が **概念 / メカニズム / 対立概念 / 判断の指針 / 出典** の構造に従っていることを確認してください。「出典」は原典 (著者・論文・書籍) を引用してください。要約ブログ記事ではありません。\n3. `content/en.md` と `translations/jp.md` の両方に追記し、短縮版 (`title / tag / mechanism / counter / guideline / source`) を `website/src/translations/index.ts` の `en` と `jp` 配列に追記してください。\n4. PRを作成してください。\n\n## ライセンス\n\nMIT © 2026 Hammurabi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanywst%2Fhammurabi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanywst%2Fhammurabi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanywst%2Fhammurabi/lists"}