feat(skills): add extraDirs load paths

This commit is contained in:
Peter Steinberger
2025-12-20 12:26:58 +00:00
parent ff6a918e7e
commit 973bf67683
5 changed files with 88 additions and 2 deletions

View File

@@ -127,6 +127,14 @@ export type SkillConfig = {
[key: string]: unknown;
};
export type SkillsLoadConfig = {
/**
* Additional skill folders to scan (lowest precedence).
* Each directory should contain skill subfolders with `SKILL.md`.
*/
extraDirs?: string[];
};
export type ClawdisConfig = {
identity?: {
name?: string;
@@ -135,6 +143,7 @@ export type ClawdisConfig = {
};
logging?: LoggingConfig;
browser?: BrowserConfig;
skillsLoad?: SkillsLoadConfig;
inbound?: {
allowFrom?: string[]; // E.164 numbers allowed to trigger auto-reply (without whatsapp:)
/** Agent working directory (preferred). Used as the default cwd for agent runs. */
@@ -357,6 +366,11 @@ const ClawdisSchema = z.object({
.optional(),
})
.optional(),
skillsLoad: z
.object({
extraDirs: z.array(z.string()).optional(),
})
.optional(),
skills: z
.record(
z.string(),