{
  "id": "agents-init",
  "name": "agents-init v5 / Project Profile 初始化器",
  "description": "创建或迁移通用项目骨架与 Project Profile；运行期项目管理交给 project-runtime，Opinion 独立负责指导和审查。",
  "schema_version": "1.0",
  "version": "5.2.0",
  "status": "stable",
  "language": "zh-CN",
  "license": "CC-BY-4.0",
  "created_at": "2026-07-02",
  "updated_at": "2026-08-13",
  "authors": [{"name": "lc4t"}],
  "tags": ["agents", "project-init", "project-profile", "agent-plugins", "codex", "claude-code", "cursor"],
  "template": {
    "path": "./AGENT.template.md",
    "version": "v5.2",
    "title": "AGENT.template.md v5.2",
    "design_principle": "初始化、运行期项目管理、Opinion 审查与领域交付职责分离。"
  },
  "entrypoints": {
    "browser": "./index.html",
    "agent": "./SKILL.md",
    "metadata": "./skill.json",
    "template": "./AGENT.template.md",
    "initializer": "./scripts/init_project.py"
  },
  "files": [
    {"path": "./SKILL.md", "role": "agent-entry", "required": true},
    {"path": "./AGENT.template.md", "role": "skeleton-contract", "required": true},
    {"path": "./scripts/init_project.py", "role": "deterministic-initializer", "required": true},
    {"path": "./project.schema.json", "role": "project-profile-schema", "required": true},
    {"path": "./index.html", "role": "browser-page", "required": true},
    {"path": "./skill.json", "role": "metadata", "required": true}
  ],
  "commands": [
    {
      "id": "init",
      "triggers": ["初始化项目", "生成 AGENTS.md", "创建 Project Profile"],
      "description": "扫描仓库、预览冲突并在确认后创建 v5 骨架。"
    },
    {
      "id": "migrate",
      "triggers": ["迁移 agents-init v5", "升级项目 Agent 结构"],
      "description": "保留现有项目事实和工作数据，将职责边界迁移到 v5。"
    }
  ],
  "outputs": [
    "AGENTS.md",
    "AGENT.RULES.md",
    "OPINION.md",
    "CLAUDE.md",
    "AGENT.md",
    ".agents/plugin.json",
    ".agents/mcp.json",
    ".agents/moe.sakanano.project-runtime/project.json",
    ".agent-doc/"
  ],
  "privacy": {
    "personal_global_rules_included": false,
    "credentials_included": false,
    "project_opinion_placeholder_only": true
  },
  "compatibility": {
    "agent_plugins": "1.0.0",
    "project_runtime": "bundled in the same plugin"
  },
  "distribution": {
    "plugin_manifest": "../../plugin.json",
    "runtime_skill": "../project-runtime/SKILL.md",
    "install_unit": "repository-root"
  }
}
