feat(settings): add ClaudeCode/CodeX preset tags with 8-language i18n and P1 tag_prompts injection - #1123
Open
3316891527 wants to merge 1 commit into
Open
Conversation
…i18n and P1 prompt resolution
CATMIAOZHI
self-requested a review
September 7, 2026 00:06
CATMIAOZHI
reviewed
Sep 7, 2026
CATMIAOZHI
left a comment
Collaborator
There was a problem hiding this comment.
CLEAN:完整差异与实际调用路径的静态审计未发现有充分证据的 P1/P2 问题。
审计提交:e54f7d725df5ab83a22075537b613ff4418e2484。已完成独立工作树全 diff 与调用链审查、独立 agent 复核及 diff --check;审计前已请求 CATMIAOZHI review。
验证范围:当前上游仓库该 HEAD 的 check-runs 为 0,审计前无 review 线程。现有 PR workflow 仅匹配 development,而本 PR 目标为 dev;构建/测试 push workflow 匹配 main。已核对仓库 Actions Variables(GITEE_OWNER、GITEE_REPO)及工作流任务。已核实作者 fork 的 Android Build 对应本次 HEAD 且成功;该运行的步骤只执行构建,没有 JVM 单测执行步骤,因此不将其视为单测通过证明。遵守目标仓库 AGENTS.md,本次未运行本地编译、测试、Lint 或真机验证;未修改源码。
重点核对:两个预置需用户在标签市场手动添加并绑定;未自动挂载到角色。默认正文转换与自定义正文保留已追到最终系统提示词拼装路径。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明 / Description
做了两件事:
具体做了什么
1. 新增两个预设标签(工程开发分类)
标签 图标 类型 说明
ClaudeCode预设提示词 Code FUNCTION 极简、自律与诚实的代码行动规范,抑制过度设计与测试造假
CodeX预设提示词 Terminal FUNCTION 探查优先、非破坏优先、决策闭环的工程行动规范
2.
PresetTagBilingual升级为资源驱动原本的
nameZh/nameEn/...硬编码字段扩展为支持resId驱动,标签市场界面展示随系统语言自动切换,与其它界面文案的本地化行为保持一致。3. 新增
EngineeringPromptDefaults(纯函数,无数据库改动)注入时按下述规则解析标签内容:
text
标签名命中 ClaudeCode / CodeX
│
├── 内容 == 任意语言版本的默认文案 ──> 置换为高密度英文核心(省 Token)
│
└── 内容已被用户编辑 ──> 100% 原样使用用户内容
4. 标签提示词注入结构:从纯文本拼接改为 P1 独立语义分支
此前
CharacterCardManager是把标签内容直接字符串拼接在角色人设后面,导致工程规范与角色语气在同一段纯文本里混杂,模型难以区分“我是谁”与“我该怎么干活”。现在改为独立的高权重语义区块:
text
System Prompt
├── P0 核心身份与角色人设 (角色卡 / 自我介绍)
├── P1 ← 本 PR 新增
│ ├──
│ │ Anti-Overengineering / Faithful Reporting
│ │ Reversibility & Blast Radius / Diagnostic Discipline
│ └──
│ Explore-before-ask / Non-destructive-first / Decision closure
├── P2 包系统与扩展机制 (运行时动态注入)
└── P3 工具声明 (JSON Schema) (运行时动态注入)
测试 / Testing
EngineeringPromptDefaultsTest,覆盖默认文案识别、多语言命中、用户编辑保留以及核心原则条目完整性。android-build.yml,assembleDebug)构建通过。Anti-Overengineering、Faithful Reporting、Reversibility & Blast Radius、Diagnostic Discipline四项条目,确认 P1 分支已按预期送达且未与角色人设混杂。不包含的内容