agentleFS
cnzeroprocnzeropro/ai-playbook/references/CLAUDE.md

ai-playbook / references

CLAUDE.md0 starsChanged 30 days agoMITView on GitHub

所有行动之前,都必须先参照并遵守本规范。 规范文件:behavior-rules.md 在遵守上述规范的基础上,当任务涉及项目开发(编写、修改代码或脚本,操作项目文件与依赖)时,同时参照并遵守本规范。 规范文件:dev-rules.md 在遵守上述规范的基础上,当任务涉及编码(读写代码)时,同时参照并遵守本准则(减少 LLM 常见编码错误)。 准则文件:andrej-karpathy-skills/CLAUDE.md

The file

Files
CLAUDE.md

一级规则

规则文件获取与缓存

要求:

  1. 缓存位置:系统临时目录 + 来源仓库子目录 + 原文件名,下载时直接覆盖同名旧文件(不改名、不另存副本);来源仓库名取 URL 中的仓库段(如 ai-handbook)。示例:Windows 为 %TEMP%\ai-handbook\behavior-rules.md(PowerShell 写作 $env:TEMP\),Linux/macOS 为 ${TMPDIR:-/tmp}/ai-handbook/behavior-rules.md(TMPDIR 未设置时即 /tmp);
  2. 时效判断:以缓存文件的修改时间为准,24 小时内直接复用;过期或无法确认时效的,重新获取并覆盖;
  3. 获取方式:按序尝试,任一成功即可:
    • 命令下载:三平台基本自带 curl(Windows 10 1803+/11 自带 curl.exe,PowerShell 5.1 中 curl 是别名、须写作 curl.exe;macOS 与主流 Linux 自带 curl):
      • Linux/macOS:curl -fsSL --create-dirs "<URL>" -o "${TMPDIR:-/tmp}/ai-handbook/<文件名>"
      • Windows(PowerShell):curl.exe -fsSL --create-dirs "<URL>" -o "$env:TEMP\ai-handbook\<文件名>"
      • Windows(CMD):curl.exe -fsSL --create-dirs "<URL>" -o "%TEMP%\ai-handbook\<文件名>"
    • 直连失败:
      • Windows 可改用 PowerShell 的 iwr(自动使用系统代理):先 New-Item -ItemType Directory -Force "$env:TEMP\ai-handbook" | Out-Null,再 iwr "<URL>" -OutFile "$env:TEMP\ai-handbook\<文件名>" -UseBasicParsing。
      • 其他系统无类似命令,可继续按后续方式尝试;
    • 无法执行命令或者写文件时,改用 Agent 内置联网(如 WebFetch、web_fetch、browser、web_search 等)获取并写入;
  4. 失败处理:上述方式均失败时,可询问用户是否有可用代理,临时设置后重试(如 HTTPS_PROXY,仅当前命令/会话有效);仍失败须暂停并告知用户,不得在未参照规范的情况下行动。

通用行为规范

所有行动之前,都必须先参照并遵守本规范。

规范文件:behavior-rules.md

要求:

  1. 处理任何任务之前,先按上述机制获取该文件的最新内容并完整通读;
  2. 此后所有行动(回复、运行命令、读写文件等)均须严格遵循该规范的约束。

二级规则

通用开发规范

在遵守上述规范的基础上,当任务涉及项目开发(编写、修改代码或脚本,操作项目文件与依赖)时,同时参照并遵守本规范。

规范文件:dev-rules.md

要求:

  1. 获取、缓存、通读与遵守要求同上;
  2. 本规范与上述规范冲突时,以上述规范为准。

andrej-karpathy-skills 编码行为准则

在遵守上述规范的基础上,当任务涉及编码(读写代码)时,同时参照并遵守本准则(减少 LLM 常见编码错误)。

准则文件:andrej-karpathy-skills/CLAUDE.md

要求:

  1. 获取、缓存、通读、遵守及冲突处理要求同上。

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.