project-init
Skill0 starsChanged yesterdayMITView on GitHub
Initialize or upgrade a software project to a universal documentation standard. Runs git init, generates PRD.md / TRD.md / EXECUTED.md at the root, builds a four-audience docs/ knowledge base (ai, technical, layman, non-technical), writes an AGENTS.md conventions file, and in full mode documents every folder and file with header comments carrying doc references, ISO-8601 timestamps, and author. Use when creating, initializing, or scaffolding a new project or repository, or when asked to document an existing codebase to this standard.
41 other projects use a version of this.
Adopted by
Most recently taken up by
- veraetogrex-portfolio/solo-sddtheir own version, first seen Nov 15, 2026
- CT-masato-hino/claude-code-project-packtheir own version, first seen Nov 15, 2026
- UnBergant/bergant-workflowtheir own version, first seen Nov 8, 2026
- 70asunflower/70asunflower-skillstheir own version, first seen Nov 8, 2026
- u9401066/zotero-keepertheir own version, first seen Nov 8, 2026
- DaeSeokSong/oh-my-ouroborostheir own version, first seen Nov 1, 2026
Used with
Projects with it also use harness-audit, workflow and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
sattva2020Skillharness-audit
Audits a codebase for "AI-agent harness" maturity across six layers (context engineering, tools & MCP, memory & state, tests & evals, observability, guardrails & approvals). Scores each layer, flags AGENTS.md/CLAUDE.md drift, gives prioritized fixes. Use for "audit harness", "оцени харнес", "check agent readiness", "is this project agent-ready", "проверь готовность к AI-агентам".
Also in 3 projects that use this
VercelSkillworkflow
Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 4 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- bkywksj/knowledge-base★ 340same name
- zephyrwang6/myskill★ 339same name
- AlexZio00/sovereign-skills★ 157same name
- claude-world/director-mode-lite★ 80same name
- agencia-conversion/agentic-seo-skills★ 51same name
- u9401066/pubmed-search-mcp★ 28same name
- mathruffian-dot/cross-device-agent-skills★ 27same name
- ecodelearn/template-claude-code-open★ 25same name
- peter-tu-zynkr/zynkr-skill-builder★ 21same name
- SpaceZephyr/allSkills★ 14same name
31 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-init/templates/AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 1 is distinctive, and 10 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If the user phrases intent as "prod-ready from the start" → treat as full.
- Distinctive: line 28
Before creating anything, ask and confirm.
- Very specific: line 37
If .git/ is absent: git init -b main (older git: git init then git checkout -b main).
- Very specific: line 38
If .git/ exists: leave history untouched.
- Very specific: line 39
Write .gitignore from templates/GITIGNORE.
- Very specific: line 57
Create the docs/ tree per templates/docs/:
- Very specific: line 73
Every existing folder: a README.md per references/conventions.md (folder README format).
- Very specific: line 74
Every existing source file: prepend a header comment per references/headers.md — pick the comment syntax by file extension.
- Very specific: line 79
Create README.md (from templates/README.md) and LICENSE (if the user opted in — copy templates/LICENSE for MIT, substituting {{YEAR}} + …
- Very specific: line 81
If commits were approved: git add -A && git commit -m "chore: initialize project docs and structure".
- Very specific: line 98
Traceability: every header links to a docs/ reference.
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
project-init
Bootstrap a project to a universal documentation standard, or retrofit an existing project to it.
Modes
| Argument | Effect |
init (default) | Full setup for a new/empty project |
upgrade or full | Idempotent retrofit of an existing project — fill gaps, never overwrite |
lite | Skeleton docs only; user re-invokes upgrade/full later for complete documentation |
If the user phrases intent as "prod-ready from the start" → treat as full. "Minimal for now, document properly later" → lite.
Bundled resources (same directory as this file): templates/ (copy + substitute tokens) and references/ (read for the detailed spec — conventions.md, headers.md).
Workflow
Step 0 — Confirm with the user (required)
Before creating anything, ask and confirm. Propose defaults; skip anything the user already answered:
- Project name and one-line purpose (infer from folder name / conversation).
- Mode: full documentation now, or lite now + upgrade later.
- Author name: propose
git config user.name; if unset, OS username; ask only if both fail. - Extras: README.md (default yes), LICENSE (default MIT — ask which), initial git commit (default yes).
Step 1 — Git
- If
.git/is absent:git init -b main(older git:git initthengit checkout -b main). - If
.git/exists: leave history untouched. - Write
.gitignorefromtemplates/GITIGNORE; if one exists, merge missing entries — never replace.
Step 2 — Resolve tokens
{{PROJECT_NAME}}— confirmed name{{ONE_LINER}}— confirmed purpose{{AUTHOR}}— per Step 0{{ISO_DATE}}— current local time, ISO 8601 with timezone offset (2026-11-14T10:35:00+05:30). Bash:date -Iseconds. PowerShell:Get-Date -Format o.{{DATE}}—YYYY-MM-DD;{{YEAR}}—YYYY{{AGENT_TOOL}}— your tool + model, e.g. "Devin CLI / SWE-2", "Claude Code / Opus", "Cursor / GPT-5"{{MODE}}—fullorlite
Step 3 — Root documents
Copy templates/PRD.md, templates/TRD.md, templates/EXECUTED.md to the project root, substituting tokens. Draft real content — fill PRD/TRD sections from the user's description and codebase evidence; where info is genuinely unknown, leave a > TODO: marker rather than fabricating. Add the first EXECUTED.md entry recording this initialization (action, files created, outcome).
Step 4 — Knowledge base
Create the docs/ tree per templates/docs/:
docs/README.md— index linking all four tracksdocs/ai/— dense, structured, machine-optimized docs (architecture map, API surface, invariants, glossary)docs/technical/— engineer-facing (setup, architecture, APIs, runbooks)docs/layman/— plain-language explanation with analogiesdocs/non-technical/— business/product framing for stakeholders
Seed each track README with project context plus a "what goes here" guide. Audience rules are in references/conventions.md.
Step 5 — Conventions file
Copy templates/AGENTS.md to the project root — merge if one exists (append the conventions section; never delete user content). This file re-teaches the standard to every future agent session. For maximum coverage also create CLAUDE.md and GEMINI.md, each containing a single line: See AGENTS.md.
Step 6 — Document the tree (full mode only — skip in lite)
- Every existing folder: a
README.mdperreferences/conventions.md(folder README format). - Every existing source file: prepend a header comment per
references/headers.md— pick the comment syntax by file extension. Skip binaries, generated files, and formats that cannot hold comments (JSON, lockfiles) — the folder README covers them. - Large repo? Work folder-by-folder and ask the user to scope (e.g. start with
src/).
Step 7 — Finish
- Create
README.md(fromtemplates/README.md) andLICENSE(if the user opted in — copytemplates/LICENSEfor MIT, substituting{{YEAR}}+{{AUTHOR}}; if they chose another license, write its standard text instead). - lite: report what is skeletal and tell the user to run
/project-init upgradewhen ready. - If commits were approved:
git add -A && git commit -m "chore: initialize project docs and structure". - Append the final EXECUTED.md entry.
- Report: what was created, which
> TODO:markers need user input, how to invoke the upgrade later.
Upgrade mode (upgrade / full on an existing repo)
Idempotent pass — never overwrite existing docs:
- Missing root docs → create from templates (record "retroactive init" in EXECUTED.md).
- Missing
docs/tracks → create; existing → keep content, ensuredocs/README.mdlinks them. - Missing
AGENTS.md→ create; present → merge the conventions section if absent. - Files/folders lacking headers/READMEs → add per
references/. - Append an EXECUTED.md entry; offer a commit.
Standing rules
- Timestamps: ISO 8601 with offset, always. Bump
Last-Updatedon every file/doc edit. - Traceability: every header links to a
docs/reference; every doc links back to the index. - Never destroy: merge or append; never delete user content.
- No fabrication: unknowns become
> TODO:markers.
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
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.

