Add directory-based project skills

This commit is contained in:
武阳
2026-04-28 10:17:23 +08:00
parent fed0999f55
commit a040d80096
21 changed files with 1795 additions and 119 deletions
+4 -3
View File
@@ -2082,7 +2082,7 @@ class LocalCodingAgent:
args = str(args) if args is not None else ''
# 1. Check bundled skills first
bundled = find_bundled_skill(skill_name)
bundled = find_bundled_skill(skill_name, cwd=self.runtime_config.cwd)
if bundled is not None:
prompt = bundled.get_prompt(self, args.strip())
return ToolExecutionResult(
@@ -2092,7 +2092,8 @@ class LocalCodingAgent:
metadata={
'action': 'skill',
'skill_name': skill_name,
'source': 'bundled',
'source': bundled.source,
'skill_path': bundled.path,
'should_query': True,
},
)
@@ -2105,7 +2106,7 @@ class LocalCodingAgent:
for s in get_slash_command_specs()
for name in s.names
)
available_skills = [sk.name for sk in get_bundled_skills()]
available_skills = [sk.name for sk in get_bundled_skills(self.runtime_config.cwd)]
all_available = sorted(set(available_cmds + available_skills))
return ToolExecutionResult(
name='Skill',