feat: add fail-closed Aider development skill

This commit is contained in:
john
2026-07-24 19:48:04 +08:00
parent 1c82b34ad9
commit be9c25f1d0
15 changed files with 320 additions and 7 deletions
+14
View File
@@ -2,6 +2,7 @@
const PUBLISH_SKILL_NAME = 'static-page-publish';
export const PAGE_DATA_COLLECT_SKILL_NAME = 'page-data-collect';
export const EXCEL_ANALYST_SKILL_NAME = 'excel-analyst';
export const AIDER_DEVELOPMENT_SKILL_NAME = 'aider-development';
export const SKILL_ROUTER_V2_ENV = 'TKMIND_SKILL_ROUTER_V2';
const EXCEL_ANALYSIS_INTENT_PATTERNS = [
@@ -173,6 +174,14 @@ export const CHAT_SKILL_DEFINITIONS = [
prefillOnly: true,
promptKey: 'service-integration-smoke',
},
{
id: AIDER_DEVELOPMENT_SKILL_NAME,
label: 'Aider 开发',
icon: 'spark',
skillName: AIDER_DEVELOPMENT_SKILL_NAME,
requiresSkill: AIDER_DEVELOPMENT_SKILL_NAME,
promptKey: AIDER_DEVELOPMENT_SKILL_NAME,
},
{
id: 'form-collect',
label: '表单收集',
@@ -253,6 +262,11 @@ export function buildChatSkillPrompt(promptKey, skillName) {
);
case 'service-integration-smoke':
return `请使用 ${skillName ?? 'service-integration-smoke'} 技能:按标准联调流程检查当前服务,覆盖身份、普通聊天、记忆读取,以及我本轮明确要求验证的技能/发布链路,并输出通过项、失败项、待确认项:`;
case AIDER_DEVELOPMENT_SKILL_NAME:
return (
`请使用 ${skillName ?? AIDER_DEVELOPMENT_SKILL_NAME} 技能:` +
'本轮必须由 Aider code run 在当前用户工作区执行开发、修复和验证;Aider 或 Tool Gateway 不可用时直接失败,禁止回退到 Goose、OpenHands 或普通聊天冒充执行。我的开发任务是:'
);
case 'table-viewer':
return `请使用 ${skillName ?? 'table-viewer'} 技能:请把以下数据整理成可排序、可筛选的交互式表格:`;
case 'product-campaign-page':