on main help sign in
feat: load project skills automatically from `.crush/skills` and more
commitcd5c937d2e265a1defbb45b953592286787f2346 authorAndrey Nering <andreynering@users.noreply.github.com> dateTue 24 Mar 2026, 15:10 (7 months ago) parentdb043c3
1 file changed+14
internal/config/load.go+14
internal/config/load.go+14
@@ -414,6 +414,9 @@ func (c *Config) setDefaults(workingDir, dataDir string) {
414414 }
415415 }
416416
417+ // Project specific skills dirs.
418+ c.Options.SkillsPaths = append(c.Options.SkillsPaths, ProjectSkillsDir(workingDir)...)
419+
417420 if str, ok := os.LookupEnv("CRUSH_DISABLE_PROVIDER_AUTO_UPDATE"); ok {
418421 c.Options.DisableProviderAutoUpdate, _ = strconv.ParseBool(str)
419422 }
@@ -823,4 +826,15 @@ func GlobalSkillsDirs() []string {
823826 return paths
824827}
825828
829+// ProjectSkillsDir returns the default project directories for which Crush
830+// will look for skills.
831+func ProjectSkillsDir(workingDir string) []string {
832+ return []string{
833+ filepath.Join(workingDir, ".agents/skills"),
834+ filepath.Join(workingDir, ".crush/skills"),
835+ filepath.Join(workingDir, ".claude/skills"),
836+ filepath.Join(workingDir, ".cursor/skills"),
837+ }
838+}
839+
826840func isAppleTerminal() bool { return os.Getenv("TERM_PROGRAM") == "Apple_Terminal" }