WP4 Phase 2: Plugin Handler Updates for Hierarchical Skills#39
Merged
Steffen025 merged 1 commit intodevfrom Mar 5, 2026
Merged
WP4 Phase 2: Plugin Handler Updates for Hierarchical Skills#39Steffen025 merged 1 commit intodevfrom
Steffen025 merged 1 commit intodevfrom
Conversation
Updated skill-guard.ts to support WP3 hierarchical structure: - Added findSkillDir() function that searches both: * Flat structure: skills/SkillName/ (backward compatibility) * Hierarchical: skills/Category/SkillName/ (WP3) - Updated extractTriggers() to use findSkillDir() - Updated validateSkillInvocation() to search recursively - Improved error messages to indicate both structures checked This ensures plugins work with the new category structure while maintaining backward compatibility during transition. Related: WP4 Phase 2 - Plugin System Updates
Steffen025
added a commit
that referenced
this pull request
Mar 6, 2026
Der alte Plan war irreführend: - Er durchnummerierte PRs neu (PR #1 = WP3, etc.) - Ignorierte dass WP1-WP4 bereits vollständig erledigt sind - Beschrieb WP5 falsch (Algorithm bereits in WP1 erledigt) Korrigierte Darstellung: - WP1 (Algorithm v3.7.0): PR #35, #36 ✅ - WP2 (Context Modernization): PR #34 ✅ - WP3 (Category Structure): PR #37 ✅ - WP4 (Integration & Validation): PR #38, #39, #40 ✅ - WP5 (Core PAI System): Noch offen - .opencode/PAI/ Verzeichnis - WP6 (Installer & Migration): Noch offen - Final delivery Ergebnis: Nur noch 2 PRs bis v3.0 statt 4! Zeigt korrekt: - Was fehlt (Core PAI Struktur, fehlende Tools, Installer) - Dass .opencode/PAI/ neu erstellt werden muss - Dass .opencode/skills/PAI/ reduziert wird
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WP4 Phase 2: Update plugin handlers to support WP3's hierarchical skill structure.
Changes
Updated:
plugins/handlers/skill-guard.tsProblem: Skill guard used flat paths (
skills/SkillName/) which broke after WP3 reorganization.Solution: Added
findSkillDir()function that searches both structures:skills/SkillName/(backward compatibility)skills/Category/SkillName/(WP3)Implementation:
Functions Updated:
extractTriggers()- Now usesfindSkillDir()validateSkillInvocation()- Now usesfindSkillDir()Benefits
✅ Backward Compatibility: Still finds skills in old flat structure
✅ WP3 Support: Now finds skills in new hierarchical structure
✅ Zero Breaking Changes: Existing skills continue to work
✅ Better Error Messages: Indicates both structures were checked
Testing
Files Changed
.opencode/plugins/handlers/skill-guard.ts(+40 lines, -5 lines)Related
Next Steps
Phase 3 will add skill discovery validation scripts.