Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/docs/cli/skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,17 @@ and included in the agent's prompt context when relevant.

## Auto Skill Discovery

When running a task, ralph-starter can also query the skills.sh
registry to find and install relevant skills automatically.
If you want to disable this behavior, set:
Auto skill discovery is opt-in. When enabled, ralph-starter
queries the skills.sh registry to find and install relevant
skills automatically.

Enable it by setting:

```bash
RALPH_ENABLE_SKILL_AUTO_INSTALL=1
```

You can also force-disable it with:

```bash
RALPH_DISABLE_SKILL_AUTO_INSTALL=1
Expand Down
3 changes: 2 additions & 1 deletion src/skills/auto-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ async function installSkill(candidate: SkillCandidate, globalInstall: boolean):

export async function autoInstallSkillsFromTask(task: string, cwd: string): Promise<string[]> {
if (!task.trim()) return [];
if (process.env.RALPH_DISABLE_SKILL_AUTO_INSTALL === '1') return [];
const autoInstallEnabled = process.env.RALPH_ENABLE_SKILL_AUTO_INSTALL === '1';
if (!autoInstallEnabled || process.env.RALPH_DISABLE_SKILL_AUTO_INSTALL === '1') return [];

const queries = buildSkillQueries(task);
if (queries.length === 0) return [];
Expand Down
Loading