用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill project-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类
正在显示 SKILL.md
| title | project-init: Initialize projects with AI Dev Flow framework |
| name | project-init |
| description | Initialize projects with AI Dev Flow framework using domain-aware setup |
| tags | ["sdd-workflow","shared-architecture"] |
| custom_fields | {"layer":null,"artifact_type":null,"architecture_approaches":["ai-agent-based","traditional-8layer"],"priority":"shared","development_status":"active","skill_category":"utility","upstream_artifacts":[],"downstream_artifacts":["BRD"]} |
Provide AI assistants with structured guidance for initializing brand new (greenfield) projects using the AI Dev Flow framework. This skill handles the one-time setup process that must occur BEFORE workflow execution begins.
⚠️ CRITICAL: This skill is for NEW PROJECT INITIALIZATION ONLY. For ongoing workflow execution on existing projects, use the doc-flow skill instead.
Use project-init when:
Do NOT use project-init when:
doc-flow skill instead for workflow executionAfter completing project initialization, AI Assistant MUST inform user:
✅ Project initialization complete!
Next: Use the `doc-flow` skill to begin workflow execution:
- Create BRD (Business Requirements)
- Create PRD (Product Requirements)
- Follow 15-layer architecture (Layers 0-14) with 11 artifact directories (BRD through TASKS): BRD → PRD → EARS → BDD → ADR → SYS → REQ → [IMPL] → [CTR] → SPEC → TASKS → Code → Tests → Validation
File: AI_ASSISTANT_RULES.md
Purpose: Understand core execution rules before starting
Key Rules:
Action: AI Assistant reads this file to understand all 15 rules
File: DOMAIN_SELECTION_QUESTIONNAIRE.md
Purpose: Determine project domain to load correct configuration
AI Assistant Action: Present questionnaire to user
═══════════════════════════════════════════════════════════
PROJECT DOMAIN SELECTION
═══════════════════════════════════════════════════════════
What is the purpose and focus of this new project?
Select one:
1. Financial Services (DEFAULT)
- Trading platforms, banking, insurance, portfolio management
- Regulatory: SEC, FINRA, SOX, Basel III, PCI-DSS
2. Software/SaaS
- B2B/B2C software services, multi-tenant applications
- Regulatory: SOC2, GDPR/CCPA, ISO 27001
3. Healthcare
- EMR, telemedicine, medical devices, patient management
- Regulatory: HIPAA, FDA, HITECH, 21 CFR Part 11
4. E-commerce
- Retail, marketplace, subscription services
- Regulatory: PCI-DSS, GDPR/CCPA, FTC
5. IoT (Internet of Things)
- Connected devices, sensors, industrial systems
- Regulatory: FCC, CE, UL/IEC, FDA (medical devices)
6. Other/Generic
- Internal tools, utilities, custom domain
- Regulatory: Company policies only
Enter selection (1-6) or press Enter for default (1):
Output: Domain selected, configuration file determined
Domain Configuration Mapping:
| Selection | Domain | Config File |
|---|---|---|
| 1 or Enter | Financial Services | FINANCIAL_DOMAIN_CONFIG.md |
| 2 | Software/SaaS | SOFTWARE_DOMAIN_CONFIG.md |
| 3 | Healthcare | DOMAIN_ADAPTATION_GUIDE.md (Healthcare) |
| 4 | E-commerce | DOMAIN_ADAPTATION_GUIDE.md (E-commerce) |
| 5 | IoT | DOMAIN_ADAPTATION_GUIDE.md (IoT) |
| 6 | Other/Generic | GENERIC_DOMAIN_CONFIG.md |
Rule: AI Assistant MUST create complete directory structure BEFORE creating any documents.
Why: Prevents "file not found" errors, ensures proper organization
IMPORTANT: Ensure project root directory exists first:
# Create project root directory if it doesn't exist
mkdir -p {project_root}
cd {project_root}
Replace
{project_root}with your actual project path (e.g.,/opt/data/my_project)
Commands to Execute:
# Core 11 artifact directories (BRD through TASKS)
mkdir -p docs/BRD
mkdir -p docs/PRD
mkdir -p docs/EARS
mkdir -p docs/BDD
mkdir -p docs/ADR
mkdir -p docs/SYS
mkdir -p docs/REQ
mkdir -p docs/IMPL
mkdir -p docs/CTR
mkdir -p docs/SPEC
mkdir -p docs/TASKS
# NOTE: REQ and CTR subdirectories are created on-demand by doc-req and doc-ctr skills
# when documents are generated. This ensures folders match actual project needs.
# Scripts directory
mkdir -p scripts
# Work plans directory (for /save-plan command output)
mkdir -p work_plans
Validation:
ls -la docs/ # Verify 11 artifact directories created
ls -la work_plans/ # Verify work_plans directory
Files:
Purpose: Apply domain-specific terminology and placeholders
AI Assistant Action:
Example Mappings:
Financial Services:
[RESOURCE_COLLECTION] → Portfolio
[RESOURCE_ITEM] → Position
[USER_ROLE] → Trader / Portfolio Manager
[TRANSACTION] → Trade
[REGULATORY_REQUIREMENT] → SEC Rule 15c3-5
Software/SaaS:
[RESOURCE_COLLECTION] → Workspace
[RESOURCE_ITEM] → Resource
[USER_ROLE] → Account Admin / Member
[TRANSACTION] → API Call
[REGULATORY_REQUIREMENT] → SOC2 Control
Generic:
[RESOURCE_COLLECTION] → Collection
[RESOURCE_ITEM] → Entity
[USER_ROLE] → User
[TRANSACTION] → Action
[REGULATORY_REQUIREMENT] → Company Policy
Purpose: Copy framework templates to project (optional step)
Commands:
# Create ai_dev_flow directory for framework templates
mkdir -p ai_dev_flow
# Copy all templates (if framework templates exist)
cp -r {framework_root}/ai_dev_flow/* ai_dev_flow/
# Copy validation scripts
cp {framework_root}/ai_dev_flow/scripts/*.py scripts/
Directory Purpose:
ai_dev_flow/ = Framework templates (BRD-TEMPLATE.md, examples/, etc.)docs/ = Project documentation (BRD-01.md, PRD-01.md, etc.)Note: This step is optional. Templates can also be referenced directly from framework location.
File: CONTRACT_DECISION_QUESTIONNAIRE.md
Purpose: Determine if CTR (Contracts) layer should be included in workflow
AI Assistant Action: Present questionnaire to user
═══════════════════════════════════════════════════════════
CONTRACT DECISION QUESTIONNAIRE
═══════════════════════════════════════════════════════════
Does this project require API contracts or interface definitions?
Select all that apply:
1. ☐ REST/GraphQL APIs (External HTTP endpoints)
2. ☐ Event Schemas (Pub/Sub, message queues, webhooks)
3. ☐ Data Contracts (Shared database schemas, data models between services)
4. ☐ RPC/gRPC Interfaces (Service-to-service communication)
5. ☐ WebSocket APIs (Real-time bidirectional communication)
6. ☐ File Format Specifications (CSV, JSON, XML exchange formats)
7. ☐ None - Internal logic only
8. ☐ Unsure - Need guidance
Enter selections (comma-separated, e.g., "1,2" or single "7"):
Decision Matrix:
| Selection | Include CTR? | Workflow |
|---|---|---|
| 1-6 | YES | REQ → IMPL → CTR → SPEC → TASKS |
| 7 | NO | REQ → IMPL → SPEC → TASKS |
| 8 | Ask follow-up questions | See CONTRACT_DECISION_QUESTIONNAIRE.md |
Output: Workflow determined (with or without CTR layer)
Purpose: Create index files for each document type
Document Control Requirements: All AI Dev Flow templates include a Document Control section with:
AI Assistant Must Emphasize: When creating documents from templates, users must complete the Document Control section with all required fields.
Commands:
# Create index files
touch docs/BRD/BRD-00_index.md
touch docs/prd/PRD-00_index.md
touch docs/ears/EARS-00_index.md
touch docs/BDD/BDD-00_index.md
touch docs/adrs/ADR-00_index.md
touch docs/sys/SYS-00_index.md
touch docs/REQ/REQ-00_index.md
touch docs/IMPL/IMPL-00_index.md
touch docs/CTR/CTR-00_index.md
touch docs/specs/SPEC-00_index.yaml
touch docs/TASKS/TASKS-00_index.md
Index File Purpose:
Purpose: Verify setup complete and correct
Validation Commands:
# Verify directory structure
ls -laR docs/
# Verify index files exist
ls docs/*/index.* || ls docs/*/*_index.*
# Expected: 11 artifact directories (BRD through TASKS) + domain subdirectories
# Expected: 11 index files
Success Criteria:
Error Handling:
AI Assistant Confirmation Message:
═══════════════════════════════════════════════════════════
PROJECT INITIALIZATION COMPLETE
═══════════════════════════════════════════════════════════
✓ Domain: [Financial Services / Software/SaaS / etc.]
✓ Folders: Created (11 artifact directories + domain subdirectories)
✓ Domain Config: Applied ([PLACEHOLDERS] → [domain terms])
✓ Contracts: [Included / Skipped] (CTR layer [active / inactive])
✓ Index Files: Initialized (11 files)
✓ Validation: Passed
Workflow Configuration:
[With CTR]: REQ → IMPL → CTR → SPEC → TASKS → Code
[Without CTR]: REQ → IMPL → SPEC → TASKS → Code
═══════════════════════════════════════════════════════════
NEXT STEPS
═══════════════════════════════════════════════════════════
✅ Project structure ready for development!
Next: Use the `doc-flow` skill to begin workflow execution
Week 1 Tasks (see PROJECT_KICKOFF_TASKS.md):
- Day 1: Create BRD (Business Requirements)
- Day 2: Create PRD + EARS (Product Requirements)
- Day 3: Create BDD + ADR (Tests + Architecture)
- Day 4: Create SYS + REQ (System Specs + Requirements)
- Day 5: Create IMPL + CTR (Implementation Plan + Contracts)
- Day 6: Create SPEC (Technical Specifications)
- Day 7: Create TASKS + Validation
Invoke: doc-flow skill to start Day 1
═══════════════════════════════════════════════════════════
All guidance files located in: {project_root}/ai_dev_flow/
User: "Initialize new software application project"
AI Assistant (using project-init skill):
Step 1: Domain Selection
"What is the purpose and focus of this new project?"
User: "2" (Software/SaaS)
AI Assistant:
✓ Domain selected: Software/SaaS
✓ Loading configuration: SOFTWARE_DOMAIN_CONFIG.md
✓ Domain-specific subdirectories: tenant, subscription, billing, workspace
Step 2: Folder Creation
Creating 15-layer architecture (12 artifact directories)...
✓ Created: docs/BRD/
✓ Created: docs/PRD/
✓ Created: docs/EARS/
✓ Created: docs/BDD/
✓ Created: docs/ADR/
✓ Created: docs/SYS/
✓ Created: docs/REQ/
✓ Created: docs/IMPL/
✓ Created: docs/CTR/
✓ Created: docs/SPEC/
✓ Created: docs/TASKS/
✓ Created: docs/REQ/tenant/
✓ Created: docs/REQ/subscription/
✓ Created: docs/REQ/billing/
✓ Created: docs/REQ/workspace/
✓ Created: scripts/
✓ Created: work_plans/
Step 3: Domain Configuration
Applying Software/SaaS terminology:
✓ [RESOURCE_COLLECTION] → Workspace
✓ [RESOURCE_ITEM] → Resource
✓ [USER_ROLE] → Account Admin
✓ [REGULATORY_REQUIREMENT] → SOC2 Control
Step 5: Contract Decision
"Does this project require API contracts?"
User: "1,2" (REST APIs + Event Schemas)
AI Assistant:
✓ Contracts needed
✓ Contract types: REST API (OpenAPI), Event Schemas (AsyncAPI)
✓ Workflow: REQ → IMPL → CTR → SPEC → TASKS
Step 6: Index Files
✓ All 11 index files created
Step 7: Validation
✓ All directories verified
✓ All index files verified
═══════════════════════════════════════════════════════════
PROJECT INITIALIZATION COMPLETE
═══════════════════════════════════════════════════════════
✓ Domain: Software/SaaS
✓ Folders: Created (11 artifact directories + 4 SaaS subdirectories)
✓ Contracts: Included (CTR layer active)
✓ Workflow: REQ → IMPL → CTR → SPEC → TASKS
Next: Use `doc-flow` skill to begin workflow execution
Start with: BRD-01 (Business Requirements Document)
═══════════════════════════════════════════════════════════
User: "Set up new SaaS project for team collaboration platform"
AI Assistant (using project-init skill):
Step 1: Domain Selection
User: "2" (Software/SaaS)
AI Assistant:
✓ Domain selected: Software/SaaS
✓ Loading configuration: SOFTWARE_DOMAIN_CONFIG.md
✓ Domain-specific subdirectories: tenant, subscription, billing, workspace
Step 2: Folder Creation
✓ All core directories created
✓ SaaS subdirectories created: tenant/, subscription/, billing/, workspace/
✓ Support directories created: scripts/, work_plans/
Step 3: Domain Configuration
✓ [RESOURCE_COLLECTION] → Workspace
✓ [RESOURCE_ITEM] → Resource
✓ [USER_ROLE] → Account Admin
✓ [TRANSACTION] → API Call
✓ [REGULATORY_REQUIREMENT] → SOC2 Control
Step 5: Contract Decision
User: "1,2" (REST API + Event Schemas)
AI Assistant:
✓ Contracts included
✓ Workflow: REQ → IMPL → CTR → SPEC → TASKS
Project Ready!
Next: Use `doc-flow` skill for BRD-01 creation
Error: mkdir: cannot create directory 'docs': File exists
Resolution:
ls -la docs/Error: mkdir: cannot create directory: Permission denied
Resolution:
pwd to verify locationUser says: "I'm not sure which domain to choose"
AI Assistant Action: Run follow-up questions from DOMAIN_SELECTION_QUESTIONNAIRE.md:
@gemini read FILE.mdAfter project-init completes, use:
Other complementary skills:
When to use project-init:
When to use doc-flow:
Workflow sequence:
project-init (Day 0) → doc-flow (Day 1+) → other skills (as needed)
End of project-init Skill