project-init SKILL.md skillA
project-init from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/project-init@v1.2.6Pins v1.2.6 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/project-init/SKILL.md- Versions recorded
- 5
- Latest version
- v1.2.6, committed Sep 29, 2026
- First version recorded
- Jun 14, 2026
- Size
- 7,330 bytes
- Repository stars
- 775
- License
- none declared
项目初始化工具。读取全局协议 ~/.claude/CLAUDE.md,分析项目实际情况,生成项目特定的 CLAUDE.md 和 docs/ 上下文。本技能应在用户说"初始化项目"、"项目设置"、"配置 Claude Code"、"新建项目配置"时使用,或在进入一个新项目需要快速配置时使用。不要用于:Skill 内容开发或验收(用 skill-lint)、单次 Skill 安装(用 skill-manager)、代码生成。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Project Init 读取全局协议,分析项目,生成上下文。 ## 工作流程 ### Step 1: 读取全局协议 读取 `~/.claude/CLAUDE.md`(及其 `@include` 引用的文件),理解全局协作协议。这是生成项目上下文的基准——项目文档的格式和结构应对齐全局协议中的定义(如文档体系、SOP、DECISIONS 格式等)。 ### Step 2: 读取配置 读取本 skill 目录下的 `config/profiles.yaml`,获取: - `skill_sources`: Skill 源仓库路径 - `profiles`: 各项目类型的检测规则和 Skill 列表 ### Step 3: 检测项目类型 1. 调用 `scripts/init.sh detect <project_dir>` 获取指示文件列表。 2. 按配置中 profiles 的定义顺序评估 `detect` 规则: - `any_of`: 任一文件存在即匹配 - `has_skill_md`: 根目录或 `skills/` 子目录下存在 SKILL.md - `extensions`: 指定扩展名文件数 >= `min_count` - `dir_patterns`: 任一目录名存在即匹配 3. 第一个命中的 profile 即为检测结果。未命中则使用 `default_profile`。 ### Step 4: 分析项目 **在生成任何文件之前,先分析项目实际情况:** - 读取 `package.json` / `pyproject.toml` / `Cargo.toml` 等获取技术栈 - 扫描目录结构了解项目架构(`src/`、`app/`、`lib/` 等) - 读取已有的 README.md 或代码了解项目用途 - 检查是否已有 `.claude/`、`CLAUDE.md`、`docs/` 等 将这些信息汇总,作为后续生成上下文的素材。 ### Step 5: 展示计划并确认 向用户展示检测结果和生成计划,**必须等待确认**。若计划使用文件化任务源,同时说明: - 任务文件的名称与位置; - 根据风险与复杂度选择的 `Lite`、`Standard` 或 `Strict` 配置及理由; - 将写入的首批真实任务,以及已有任务文件的合并或跳过策略。 ### Step 6: 创建 .claude/ 和安装 Skill ```bash mkdir -p .claude/skills/ ``` …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/project-init@sha256:735209aeff9e4359The line at the top of this page pins the label v1.2.6, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_i7k4cym44wkmttjy)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jun 14, 2026 and Sep 29, 2026, about one every 27 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.2.6 latest | 2026-09-29 | bca18fa | 7,330 B | A | view · diff |
| v1.2.5 | 2026-09-23 | c76f33f | 6,934 B | A | view · diff |
| v1.2.4 | 2026-07-30 | a92f5a4 | 6,934 B | A | view · diff |
| v1.2.1 | 2026-07-30 | d34beee | 6,640 B | A | view · diff |
| git:20260614.8593e21 | 2026-06-14 | 8593e21 | 5,171 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7330 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_i7k4cym44wkmttjy GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/project-init GET https://markdownregistry.com/api/v1/blob/735209aeff9e435971b63eab92c146ed45020b800a05981d4ccd50c9bde1b489
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from cat-xierluo/legal-skills
Every file in cat-xierluo/legal-skills