跳到主要内容
知仓学习社ZHICANG

claude-project-setup

Set up a repo or project so an AI coding agent works well in it — the CLAUDE.md, the context, the guardrails, and the conventions the agent needs to…

不碰外部(只输出文字)无严重或高危命中mohitagw15856/pm-claude-skills

它会碰到什么

扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Claude Project Setup

An AI coding agent is only as good as the context it starts with — drop it into a repo with no orientation and it guesses at your architecture, conventions, and commands. A good CLAUDE.md (or equivalent project-context file) is the onboarding doc that turns flailing into fluency. This builds yours: the architecture and conventions the agent needs, the commands to run, the guardrails on what not to touch, and a habit to keep it current.

What This Skill Produces

  • A structured CLAUDE.md — the sections an agent actually needs: what the project is, architecture/layout, key conventions, the commands (build/test/lint/run), and the do-nots
  • The right altitude — enough to orient the agent fast, not an exhaustive doc it drowns in; signal over completeness
  • Guardrails — what the agent must not touch, how to run tests before claiming done, and where irreversible actions need a human
  • Convention capture — the implicit rules a human learns over months (naming, patterns, where things go) made explicit
  • A commands block — the exact commands to build, test, lint, and run, so the agent verifies its own work
  • A maintenance habit — updating it as the project changes so it doesn't drift into wrong

Required Inputs

Ask for these if not provided:

  • The project — what it is, the stack, rough architecture
  • The conventions — the patterns and rules you'd tell a new hire
  • The commands — how to build, test, lint, run
  • The danger zones — what an agent should never touch or must be careful with
  • Your agent — Claude Code, Cursor, etc. (file name/location may differ)

Framework: Orient, Constrain, Verify, Maintain

  1. Orient fast. Lead with what the project is and its architecture at a glance — the agent needs the map before the details.
  2. Capture the implicit conventions. The rules a human absorbs over months (where files go, naming, preferred patterns) are exactly what an agent can't infer — write them down.
  3. Give the commands. Build/test/lint/run commands let the agent verify its own work instead of guessing — this single section prevents most bad output.
  4. Set guardrails. What not to touch, always-run-tests-before-done, and where a human must approve — so autonomy doesn't become damage.
  5. Keep the altitude right. Enough to be useful, short enough to be read — prune anything that doesn't change the agent's behavior.
  6. Maintain it. Update as the project evolves; a stale context file is worse than none because it misleads.

Output Format

CLAUDE.md for [project]

What this is: [one-paragraph orientation + architecture at a glance].

Layout: [key directories/modules and what they do].

Conventions: [naming · patterns · where things go · style].

Commands: build: · test: · lint: · run:.

Guardrails: [do-not-touch · run tests before done · human-approval zones].

Maintenance: [update when X changes — keep it current].

Quality Checks

  • [ ] Orients the agent to purpose and architecture first
  • [ ] Makes implicit conventions explicit
  • [ ] Includes the exact build/test/lint/run commands
  • [ ] Sets guardrails on danger zones and verification
  • [ ] Keeps the doc at a readable altitude; sets a maintenance habit

Anti-Patterns

  • A novel the agent won't read, or a stub that orients nothing.
  • Omitting the commands, so the agent can't verify its work.
  • Missing guardrails on irreversible or dangerous actions.
  • Assuming the agent infers conventions it has no way to know.
  • Writing it once and letting it drift out of date.

Example Trigger Phrases

  • "How do I set up a CLAUDE.md for my repo?"
  • "Configure my project so Claude Code works well in it."
  • "My AI agent keeps misunderstanding my codebase — how do I fix that?"
  • "What should go in my project's AI context file?"
  • "Onboard an AI coding agent to my project properly."

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 claude-project-setup 的技能。它们内容并不相同,别混用: