返回 Skill 列表
extension
分类: 开发与工程无需 API Key

aico-pm-init

通过从模板创建章程文档来初始化PM环境。在以下情况下使用此技能:- 运行/pm.init命令 - 用户要求“初始化PM”,“设置产品管理”,“创建章程”- 开始新项目并需要建立产品约束和领域信息- 需要为新项目创建docs/reference/pm/constitution.md

person作者: jakexiaohubgithub

PM Init

Initialize the product constitution document that provides shared constraints and domain information for all PM activities.

Language Configuration

Before generating any content, check aico.json in project root for language field to determine the output language. If not set, default to English.

Process

  1. Check existing: Look for docs/reference/pm/constitution.md
  2. If exists: Ask user if they want to overwrite or update specific sections
  3. If not exists:
    • Read template from references/constitution.template.md
    • Guide user through questions to fill template
  4. Save output: Write to docs/reference/pm/constitution.md

Document Header Format

All generated documents MUST use this unified header format:

# [Document Title]

> Project: [project-name]
> Created: YYYY-MM-DD
> Last Updated: YYYY-MM-DD

Guided Questions

Ask user about:

| Section | Questions | | ---------------- | ---------------------------------------------------------- | | Product Overview | Product name? One-line description? Target users? | | Domain Info | Industry/market? Key terminology? Compliance requirements? | | Constraints | Technical stack? Business constraints? | | Standards | Documentation language? Naming conventions? |

Template

See references/constitution.template.md for the full constitution template.

Update Instructions File

After creating constraint files, update the project's AI instructions file to reference them:

  1. Check for existing instructions file:

    • Look for CLAUDE.md (Claude Code) or AGENTS.md (Codex) in project root
    • If neither exists, create CLAUDE.md
  2. Add reference section at the end of the file:

    ## Reference Documents
    
    The following constraint documents should be read before starting work:
    
    - `docs/reference/pm/constitution.md` - Product constitution with domain info and constraints
    
  3. If file already has Reference Documents section: Append the new reference if not already present

Output

✓ Created docs/reference/pm/constitution.md
✓ Updated CLAUDE.md with reference to constitution
✓ PM environment initialized

Key Rules

  • ALWAYS use the unified header format
  • MUST guide user through key questions before generating
  • ALWAYS save to docs/reference/pm/constitution.md
  • MUST update CLAUDE.md or AGENTS.md with reference to constraint files