AgentSkillsCN

init

初始化并分析新项目。首先与用户展开深度对话,了解其具体需求,随后生成相关文档。适用于任何新代码库的启动阶段使用。

SKILL.md
--- frontmatter
name: init
description: Initialize and analyze a new project. First engages in discovery conversation to understand user requirements, then generates documentation. Use when starting work on any new codebase.

Project Initialization Skill

Usage

code
/init [path] [--discover|--generate|--full|--quick|--sync|--update]

Parameters

ModeInputOutputUse When
--fullNone.codex/ + DISCOVERY + Docs + PhasesNew project (RECOMMENDED)
--discoverNoneDISCOVERY.mdIdea stage only
--generateDISCOVERY.mdPRD + TECH-SPEC + PROGRESS + CONTEXTAfter discovery
--sync.codex/Merged .codex/Existing project
--updateNoneUpdated ultra-codex-init + syncFramework update
--quickCodeAGENTS.mdQuick context

Examples

bash
/init --full               # Full workflow (NEW PROJECT)
/init --discover           # Discovery conversation only
/init --generate           # Generate from existing DISCOVERY.md
/init --sync               # Sync framework to existing project
/init --update             # Update ultra-codex-init + sync
/init ./my-project --full  # Initialize specific path

Workflow Chain

code
/init --full   → Framework Setup → Discovery → Confirmation → Generate → Phase Split
/init --sync   → Analyze .codex/ → Merge missing → Validate → Report
/init --update → Locate source → git pull → Sync → Report

Critical Rule

For new projects, ALWAYS start with discovery. Never generate docs without understanding.


Full implementation: Load references/DETAIL.md for mode details, step implementations, decision flow, best practices, integration points, and framework sync details.