Precipitate generic Agent routing and how-to gold standards
All checks were successful
技能自动化发布 / release (push) Successful in 13s
All checks were successful
技能自动化发布 / release (push) Successful in 13s
This commit is contained in:
@@ -315,6 +315,12 @@ class TestDocsStandards(unittest.TestCase):
|
||||
msg="CLI.md must not recommend uv run for skill scripts",
|
||||
)
|
||||
|
||||
def test_cli_md_has_agent_routing_tables(self) -> None:
|
||||
text = self._read("references/CLI.md")
|
||||
self.assertIn("短 CLI 白名单", text)
|
||||
self.assertIn("Action 强制黑名单", text)
|
||||
self.assertIn("run_skill_action", text)
|
||||
|
||||
def test_skill_md_requires_shared_python_not_uv_run(self) -> None:
|
||||
text = self._read("SKILL.md")
|
||||
self.assertIn("python {baseDir}/scripts/main.py", text)
|
||||
@@ -328,6 +334,31 @@ class TestDocsStandards(unittest.TestCase):
|
||||
msg="SKILL.md must state Task Center is independent of entry point",
|
||||
)
|
||||
|
||||
def test_skill_md_has_intent_routing_table(self) -> None:
|
||||
text = self._read("SKILL.md")
|
||||
self.assertIn("用户意图路由表", text)
|
||||
self.assertIn("用户意图", text)
|
||||
self.assertIn("准备 vs 执行", text)
|
||||
|
||||
def test_skill_md_how_to_forbids_cli_paste(self) -> None:
|
||||
text = self._read("SKILL.md")
|
||||
self.assertIn("回答「怎么用", text)
|
||||
self.assertIn("禁止", text)
|
||||
self.assertTrue(
|
||||
"粘贴" in text and "python" in text,
|
||||
msg="SKILL.md must forbid pasting python CLI when answering how-to",
|
||||
)
|
||||
self.assertTrue(
|
||||
"dir" in text or "列" in text,
|
||||
msg="SKILL.md must discourage directory probing for how-to answers",
|
||||
)
|
||||
|
||||
def test_actions_md_has_async_side_effect_checklist(self) -> None:
|
||||
text = self._read("references/ACTIONS.md")
|
||||
self.assertIn("最小组合", text)
|
||||
self.assertIn("confirmation.message", text)
|
||||
self.assertIn("用户意图路由表", text)
|
||||
|
||||
def test_actions_md_states_profile_not_entry_for_task_center(self) -> None:
|
||||
text = self._read("references/ACTIONS.md")
|
||||
self.assertIn("executionProfile", text)
|
||||
|
||||
Reference in New Issue
Block a user