feat: add project path to SKILL.md description for location-based triggering

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 <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-11-03 20:58:45 +08:00
parent 360f6f79dc
commit f7a97e8159

View File

@@ -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