From f7a97e8159eb5ac0e015aeea987baf3590ba34ed Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 3 Nov 2025 20:58:45 +0800 Subject: [PATCH] feat: add project path to SKILL.md description for location-based triggering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhance description format to include project path information: - Add "(located at {project_path})" to description format - Reference TARGET_PATH from Phase 1 for accurate path - Include "or files under this path" trigger condition - Improve sensitivity when users mention specific directories Benefits: - SKILL triggers when user asks about files in project directory - Path-based context identification improves accuracy - Better integration with file location queries Before: "{Project} {capabilities}. Load when {scenarios}..." After: "{Project} {capabilities} (located at {path}). Load when {scenarios} or files under this path..." Example: "Workflow orchestration system with CLI tools (located at /d/Claude_dms3). Load this SKILL when analyzing, working with, or learning about workflow management or files under this path for comprehensive context." 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/commands/memory/skill-memory.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.claude/commands/memory/skill-memory.md b/.claude/commands/memory/skill-memory.md index fa47b521..c26e354a 100644 --- a/.claude/commands/memory/skill-memory.md +++ b/.claude/commands/memory/skill-memory.md @@ -197,11 +197,13 @@ bash(find .workflow/docs/{project_name} -name "*.md" | sed 's|.workflow/docs/{pr Extract from README + structure: Function (capabilities), Modules (names), Keywords (API/CLI/auth/etc.) -**Format**: `{Project} {core capabilities}. Load this SKILL when analyzing, working with, or learning about {project_name} for comprehensive context.` +**Format**: `{Project} {core capabilities} (located at {project_path}). Load this SKILL when analyzing, working with, or learning about {project_name} or files under this path for comprehensive context.` -**Trigger Optimization**: Emphasize "Load this SKILL" pattern to improve sensitivity for context retrieval scenarios. +**Path Reference**: Use `TARGET_PATH` from Phase 1 for precise location identification. -**Example**: "Workflow orchestration system with CLI tools and documentation generation. Load this SKILL when analyzing, working with, or learning about workflow management for comprehensive context." +**Trigger Optimization**: Include project path to improve triggering when users mention specific directories or file locations. + +**Example**: "Workflow orchestration system with CLI tools and documentation generation (located at /d/Claude_dms3). Load this SKILL when analyzing, working with, or learning about workflow management or files under this path for comprehensive context." **Step 4: Write SKILL.md** (Use Write tool) ```bash