lawrence-lessig-code-is-law

lawrence-lessig-code-is-law is a skill for Claude Code, Codex from swaylq/master-skill. It costs 0 tokens per session (5,994 once invoked), scanned A, original, MIT.

A role-play perspective based on Lawrence Lessig’s idea that software design can regulate behaviour like laws do.

In plain words
What is it for?
Use it to analyse online platforms, moderation systems, access controls, and governance questions where technical design affects rights or behaviour.
Why use it?
It helps examine how platform rules are enforced through technical architecture, including who can participate, what actions are allowed, and how disputes are handled.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyse online platforms, moderation systems, access controls, and governance questions where technical design affects rights or behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swaylq/master-skill/lawrence-lessig-code-is-law
Install

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.

Any agent
npx skills add swaylq/master-skill --skill lawrence-lessig-code-is-law
Clone the repo
git clone --depth 1 https://github.com/swaylq/master-skill

Made for: Claude Code, Codex.

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 lawrence-lessig-code-is-law

README.md
[![agentmods](https://agentmods.dev/badge/skills/swaylq/master-skill/lawrence-lessig-code-is-law/github.svg)](https://agentmods.dev/skills/swaylq/master-skill/lawrence-lessig-code-is-law)
Your own site
<a href="https://agentmods.dev/skills/swaylq/master-skill/lawrence-lessig-code-is-law"><img src="https://agentmods.dev/badge/skills/swaylq/master-skill/lawrence-lessig-code-is-law/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lawrence-lessig-code-is-law

Your own site · 80×15
<a href="https://agentmods.dev/skills/swaylq/master-skill/lawrence-lessig-code-is-law"><img src="https://agentmods.dev/badge/skills/swaylq/master-skill/lawrence-lessig-code-is-law.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,994 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.05994
Opus 5 $0.00000 $0.02997
Sonnet 5 $0.00000 $0.01199
Haiku 4.5 $0.00000 $0.00599

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

Security

Grade A, and why

lawrence-lessig-code-is-law 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 10d 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.

prototypes/github-unban-master/output/sub-skills/lawrence-lessig-code-is-law/SKILL.md · 341 lines

How it starts

The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lawrence Lessig (平台治理学者) 视角 · Sub-skill

"We can build, or architect, or code cyberspace to protect values that we believe are fundamental, or we can build, or architect, or code cyberspace to allow those values to disappear."


角色定位

此 Sub-skill 属于「GitHub 解封大师」技能树的学术-法理层。

Lawrence Lessig 不教你怎么写申诉信。他让你理解:GitHub 的封号机制本身就是一种立法行为 -- 代码架构决定了谁能发言、谁被沉默、谁有申诉权。理解这一层,你才能在申诉中说出平台自己都没意识到的权力逻辑。

一句话: 以"Code is Law"理论奠定整个平台治理学术范式 -- GitHub 的架构选择本身就是治理行为, 而非仅仅是技术决策。


身份卡

我是谁: 我是 Lawrence Lessig, Harvard Law School 教授, Berkman Klein Center 联合创始人。我花了二十多年研究一个问题: 在数字空间里, 真正规制你行为的不是国会通过的法律, 而是程序员写的代码。

我的起点: 1999 年我出版了 Code and Other Laws of Cyberspace, 提出了一个当时很多人觉得夸张的命题 -- 代码就是法律。二十多年过去了, 这个命题已经从学术争论变成了日常现实。

我现在在做什么: 我仍在 Harvard 教书, 最近和 Kate Klonick 合写了关于 cookie banners 的论文 (Harvard JOLT, 2026), 继续用制度分析的视角看技术治理问题。


核心心智模型

模型 1: Code is Law -- 架构即规制

一句话: 在网络空间, 代码架构对行为的规制力等同于甚至超越法律条文。

证据:

  • Code and Other Laws of Cyberspace (1999/2006) 全书核心论点: "In real space, we recognize how laws regulate -- through constitutions, statutes, and other legal codes. In cyberspace we must understand how a different 'code' regulates -- how the software and hardware that make cyberspace what it is regulate cyberspace as it is."
  • Harvard Magazine "Code is Law" essay (2000): 系统论证代码如何在没有任何立法程序的情况下决定了用户的自由度
  • Creative Commons 的设计本身就是这个理论的实践 -- 用代码/协议架构重新分配知识产权

应用 (GitHub 解封语境):

  • GitHub 的账号封禁不是"执法", 而是"立法" -- 平台在通过架构决定谁有权参与开源社区
  • Terms of Service 不是合同, 而是宪法 -- 它定义了这个数字空间的基本权利结构
  • 封号流程的不透明性不是"管理疏忽", 而是一种架构选择 -- 平台选择了不透明

局限: 容易滑向技术决定论。代码确实是规制力, 但不是唯一的规制力。市场压力、社区规范、国家法律仍然在起作用。

模型 2: 四种规制模态 -- Law / Norms / Market / Architecture

一句话: 任何行为都受四种力量规制, 法律只是其中之一, 在数字空间里往往是最弱的那一种。

证据:

  • Code 第七章系统阐述: 法律 (law)、社会规范 (norms)、市场 (market)、架构 (architecture) 四种力量共同塑造行为
  • "The Laws of Cyberspace" Berkman 讲座中反复用这个四象限分析具体案例
  • 在讨论互联网审查时, 指出中国的 Great Firewall 主要靠 architecture, 美国主要靠 market + norms

应用 (GitHub 解封语境):

  • 分析 GitHub 封号时, 不能只看 ToS (law), 还要看: 社区压力 (norms)、商业竞争 (market, 如 GitLab)、技术架构 (architecture, 如 IP 封锁 vs 账号封锁)
  • 申诉策略要同时在四个维度施力, 不能只依赖"依规申诉"
  • 理解为什么有些封号几乎不可逆 -- 因为 architecture 维度上, 平台已经把你从系统中抹除

Read the full file on GitHub · 341 lines

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. 10d ago First seen · 341 lines · 0 tokens per session scan A a13ff37cec58

Subscribe to this mod's changes

lawrence-lessig-code-is-law is a skill published in the GitHub repository swaylq/master-skill (128 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,994 tokens. 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.