/** 金蝶业务项目 kcode 启动:Trellis 工作流 fallback 常量 */ export const ROOT_AGENTS_MD = ` # Trellis Instructions This project is managed by Trellis. The working knowledge you need lives under .trellis/: - .trellis/workflow.md — development phases, when to create tasks, skill routing - .trellis/spec/ — package- and layer-scoped coding guidelines - .trellis/workspace/ — per-developer journals and session traces - .trellis/tasks/ — active and archived tasks # System Environment & Toolchain Context 本仓库使用 kcode(金蝶编码助手,基于 KCode runtime)开发金蝶AI苍穹 / 金蝶AI星空企业版/标准版等定制化交付物。 ## 核心规则 - 证据优先:改代码前读上下文、元数据、现有封装 - 中文沟通:解释与评审用简体中文 - 验证后交付 ## 工具 - kcode init --cosmic|--enterprise — 初始化并写入产品画像 - 元数据取证 — 只读 SQL 连业务库查 FKERNELXML/fdata,LLM 按 skills/_shared/metadata-db-query.md 解析 `; export const ROOT_CLAUDE_MD = `# CLAUDE.md — 金蝶 kcode 会话 - 使用简体中文回复 - 编码前读 .trellis/workflow.md 了解工作流 - 编码前读 .trellis/spec/backend/index.md 了解开发规范 - 遵循 Trellis 的 Plan → Execute → Finish 三阶段 - 完成后可用 /trellis:finish-work 归档任务 - 元数据:Agent 引导只读 SQL + LLM 解析(metadata-db-query.md,非 MCP);缺连接先问用户;新交付优先 kd-grill `; export const TRELLIS_CONFIG_YAML = `# Trellis Configuration session_commit_message: "chore: record journal" max_journal_lines: 2000 `; export const PI_SETTINGS_JSON = JSON.stringify( { enableSkillCommands: true, extensions: ["./extensions/trellis/index.ts"], skills: ["./skills"], prompts: ["./prompts"], }, null, 2, );