Skip to content

Commit 3af87d8

Browse files
committed
feat(preamble): 新增 IOS_ENGINEER_SKILLS_DIR 占位符并更新门控名称
1 parent 07dbf97 commit 3af87d8

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎skills-engineering/scripts/sync-agent-preamble.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ render_managed_block() {
195195
print
196196
}
197197
' "${TEMPLATE}" | sed -e "s|{{TOOL_NAME}}|${tool_name}|g" \
198+
-e "s|{{IOS_ENGINEER_SKILLS_DIR}}|${skills_dir}|g" \
198199
-e "s|{{SKILLS_DIR}}|${skills_dir}|g" \
199200
-e "s|{{COGNITIVE_EXPANSION_SKILLS_DIR}}|${ce_dir}|g" \
200201
-e "s|{{LOGICAL_REASONING_SKILLS_DIR}}|${lr_dir}|g" \

‎skills-engineering/scripts/templates/agent-preamble.md.tmpl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ skill:historical-recall
2626
- `{{COGNITIVE_EXPANSION_SKILLS_DIR}}SKILL.md`
2727
- `{{COGNITIVE_EXPANSION_SKILLS_DIR}}references/cognitive_expansion.md`
2828

29-
并按其中 Tier 0 / Tier 3、邻域对照池、跳过条件与迎合自检执行。Tier 2 认知对手见 `{{SKILLS_DIR}}references/cognitive_adversary_mode.md`。
29+
并按其中 Tier 0 / Tier 3、邻域对照池、跳过条件与迎合自检执行。Tier 2 认知对手见 `{{IOS_ENGINEER_SKILLS_DIR}}references/cognitive_adversary_mode.md`。
3030

3131
# global logical reasoning
3232

@@ -57,7 +57,7 @@ skill:historical-recall
5757

5858
{{HISTORICAL_RECALL_BLOCK}}
5959

60-
# global requirements clarity gate
60+
# global plan-grill requirements clarity gate
6161

6262
problem-analysis 完成后,对每个非平凡构建、修改或方案请求执行 `plan-grill` PG-000 门控。若仍存在无法从代码/文档/当前上下文查明,且不同答案会实质改变交付行为、公共契约、数据、安全性或验收结果的阻塞性决策,必须自动加载并遵循:
6363

@@ -79,7 +79,7 @@ problem-analysis 完成后,对每个非平凡构建、修改或方案请求执
7979

8080
执行 iOS / Swift / SwiftUI / UIKit / Xcode 工程任务前,必须先加载并遵循 `ios-engineer` SKILL 规则(SKILL.md + references/rule_index.md 中 `status=active` 的 IR / SYM / ROUTE / OUT 条目)。
8181

82-
SKILL 规则位于 `{{SKILLS_DIR}}`,可直接加载。
82+
SKILL 规则位于 `{{IOS_ENGINEER_SKILLS_DIR}}`,可直接加载。
8383

8484
# ios-engineer skill audit
8585

@@ -102,7 +102,7 @@ evolution-signal: <none | 修正表达 | 新增能力 | 合并重复 | 退役规
102102

103103
可选字段:`session-id: <id>`(默认省略 = null)。
104104

105-
Rule ID 词表取自 `{{SKILLS_DIR}}references/rule_index.md`,仅使用 `status=active` 的 ID(IR-NNN / SYM-NNN / ROUTE-NNN / OUT-NNN / GR-NNN)。完整 schema、写入协议、self-grading 偏差告示见同目录下 `usage_ledger.md` §1-§7。
105+
Rule ID 词表取自 `{{IOS_ENGINEER_SKILLS_DIR}}references/rule_index.md`,仅使用 `status=active` 的 ID(IR-NNN / SYM-NNN / ROUTE-NNN / OUT-NNN / GR-NNN)。完整 schema、写入协议、self-grading 偏差告示见同目录下 `usage_ledger.md` §1-§7。
106106

107107
**非 iOS 工程任务不输出这个块**:写文档、答 API 问题、通用重构、元工程 / 自进化讨论 / SkillOps 维护本身都跳过。task-type 落不进 12 选 1 时也跳过。
108108
<!-- managed-block:agent-preamble:end -->

0 commit comments

Comments
 (0)