Claude Code提示词与配置约 4 分钟

四层架构配好日常节奏

Four-Layer Claude Code Stack

要点

  1. 安装后会扫仓库并生成入门 CLAUDE.md,环境只需 Node 18+。
  2. CLAUDE.md 当每轮重载的大脑,写入技术栈、架构和已知坑,控制在 200 行内。
  3. 四层:规则文件、按任务唤起的 skills、不可绕过的 hooks、隔离的 agents。
  4. Hooks 用 PreToolUse、PostToolUse、Notification;0 放行、2 拦截。
  5. 日常:Shift+Tab 进计划,先说意图再改代码,常 /compact 并勤提交。

原帖开头

Most developers are using Claude Code wrong (100%) Claude Code fixes it in 90 seconds flat. Here is exactly how: ☑️ 1. Getting Started → One curl command and Claude Code scans your codebase. → It generates a starter CLAUDE. md on the first run. → Only requirement is Node.js 1