17-项目目录标准

17-项目目录标准 is a skill for Codex from xcodethink/open-claude-code-skills. It costs 199 tokens per session (2,384 once invoked), scanned A, original, MIT.

A general standard for organising project folders and documentation. It defines common top-level folders such as apps, packages, infrastructure, scripts, docs, and archive, plus categories for different kinds of documents.

In plain words
What is it for?
Use it when starting a project, cleaning up an existing repository, adding documentation categories, or deciding where files and README documents belong.
Why use it?
It gives a project a predictable layout so people can find code, documentation, configuration, and archived material without inventing a new structure each time.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 与 [18-Git仓与安全](../18-Git仓与安全/) 配套使用。.

Good fit Use it when starting a project, cleaning up an existing repository, adding documentation categories, or deciding where files and README documents belong.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills
agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/17

Made for: 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 17-项目目录标准

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/17/github.svg)](https://agentmods.dev/skills/xcodethink/open-claude-code-skills/17)
Your own site
<a href="https://agentmods.dev/skills/xcodethink/open-claude-code-skills/17"><img src="https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/17/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 17-项目目录标准

Your own site · 80×15
<a href="https://agentmods.dev/skills/xcodethink/open-claude-code-skills/17"><img src="https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/17.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,384 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.
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.00199 $0.02384
Opus 5.5 $0.00080 $0.00954
Sonnet 5.5 $0.00040 $0.00477
Haiku 4.5 $0.00020 $0.00238

Measured 1mo ago against content hash 118a714fd292, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

17-项目目录标准 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 1mo 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.

skills/17-项目目录标准/SKILL.md · 166 lines

How it starts

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

项目目录结构标准

通用 skill — 所有新项目(SaaS / 工具 / 内部系统 / 实验项目)按本标准建立目录结构。 与 18-Git仓与安全 配套使用。

何时应用

  • 新项目初始化时(创建仓库前必读)
  • 老项目整理 cleanup 时
  • 添加新文档分类时(确认是否进现有 10 大类还是新建)

顶层结构(强制)

project-root/
├── README.md                 入口 — 一句话定位 + 导航 + 状态
├── CHANGELOG.md              发布日志(Keep a Changelog 格式)
├── CLAUDE.md                 项目级 AI 协作规范
├── LICENSE                   如适用(闭源项目可省)
├── .gitignore                根级 gitignore(参考 18-Git 规范模板)
├── .editorconfig             编辑器统一配置
│
├── apps/                     业务代码(client / server / mobile / extension)
├── packages/                 共享代码(types / utils / ui,可选)
├── infra/                    基础设施(Docker / K8s / Terraform / CI 配置)
├── scripts/                  工具脚本(含 promote.sh)
│
├── docs/                     全部业务/产品/运营文档(10 大分类,见下)
│
└── archive/                  项目级整体归档(旧版本/已废弃模块)

单 app 的简化版(早期 0-1 项目可省 apps/):

project-root/
├── client/                   平铺
├── server/
├── docs/
└── ...

团队规模 > 3 人 或 子项目 ≥ 3 个时必须升级到 apps/ 结构。

docs/ 10 大分类(标准)

# 目录 中文术语 内容 更新频率 默认 classification
00 glossary.md(文件,非目录) 术语 术语 + 跨域资源索引 持续 L0-L1
01 01-strategy/ 战略层 vision / business model / 5 期演进 / tech architecture / north star metrics 季度 review L1
02 02-planning/ 规划资料 roadmap / phase-1/2/3 / OKR / milestones / 验收标准 阶段 review L1
03 03-research/ 参考资料 competitors / industry / customer interviews / benchmarks 持续累积 L2
04 04-decisions/ 思考资料 ADRs / 决策记录 / pending / retros / hypothesis log 事件驱动 L2
05 05-product/ 产品规划 PRDs / specs / wireframes / 用户研究 每个 feature L0-L1
06 06-engineering/ 工程规范 architecture / API spec / runbooks / postmortems / coding-standards 每月 review L0-L1
07 07-marketing/ 市场规划 brand / messaging / GTM / launch / content-calendar / channels 月度 L0-L1
08 08-operations/ 运营规划 team / hiring / finance / compliance / vendors / support SOP 月度 L2
09 09-investor/ 投资人 pitch-deck / data-room / cap-table / 月报 融资节奏 L3 — 不进 git
99 99-archive/ 归档 已废弃版本,按 YYYY-MM-DD-描述/ 子目录 不删除 跟原文档同级

Read the full file on GitHub · 166 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 166 lines · 199 tokens per session scan A 118a714fd292

Subscribe to this mod's changes

17-项目目录标准 is a skill published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 199 tokens to every session and 2,384 once invoked, about $0.0008 per session on Opus 5.5. 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-31.