Skip to content

Commit 2cfa178

Browse files
fix: improve skill detection (#2079)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent a6557a2 commit 2cfa178

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/forge_services/src/tool_services/skill.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use forge_app::SkillFetchService;
55
use forge_domain::Skill;
66
use tokio::sync::OnceCell;
77

8-
/// Fetches detailed information about a specific skill. Use this tool to load
9-
/// skill content and instructions when you need to understand how to perform a
10-
/// specialized task. Skills provide domain-specific knowledge, workflows, and
11-
/// best practices. Only invoke skills that are listed in the available skills
12-
/// section. Do not invoke a skill that is already active.
8+
/// Loads specialized skills for specific task types. ALWAYS check the
9+
/// available_skills list when a user request matches a skill's description or
10+
/// trigger conditions. Skills provide domain-specific workflows and must be
11+
/// invoked BEFORE attempting the task directly. Only invoke skills listed in
12+
/// available_skills. Do not invoke a skill that is already active.
1313
pub struct ForgeSkillFetch<R> {
1414
repository: Arc<R>,
1515
cache: OnceCell<Vec<Skill>>,

templates/forge-partial-skill-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Skill Instructions:
22

3-
When users ask you to perform tasks, check if any of the available skills below can help complete the task more effectively. Skills provide specialized capabilities and domain knowledge.
3+
**CRITICAL**: Before attempting any task, ALWAYS check if a skill exists for it in the available_skills list below. Skills are specialized workflows that must be invoked when their trigger conditions match the user's request.
44

55
How skills work:
66

0 commit comments

Comments
 (0)