# Interface SkillLibraryConfig

Configuration for the skill library.

interface SkillLibraryConfig {
maxSkills: number;
minSuccessRateForRetention: number;
executionsBeforeEvaluation: number;
enablePruning: boolean;
trackExecutionHistory: boolean;
maxHistoryPerSkill: number;
minSuccessesForPromotion: number;
skillPromoter?: SkillPromoter;
}

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:305

##### Index

### Properties

maxSkills
minSuccessRateForRetention
executionsBeforeEvaluation
enablePruning
trackExecutionHistory
maxHistoryPerSkill
minSuccessesForPromotion
skillPromoter?

## Properties

### `Readonly` maxSkills

maxSkills: number

Maximum skills to store

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:307

### `Readonly` minSuccessRateForRetention

minSuccessRateForRetention: number

Minimum success rate to keep skill (0-1)

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:309

### `Readonly` executionsBeforeEvaluation

executionsBeforeEvaluation: number

Number of executions before evaluating retention

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:311

### `Readonly` enablePruning

enablePruning: boolean

Enable automatic skill pruning

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:313

### `Readonly` trackExecutionHistory

trackExecutionHistory: boolean

Whether to track detailed execution history

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:315

### `Readonly` maxHistoryPerSkill

maxHistoryPerSkill: number

Maximum execution history entries per skill

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:317

### `Readonly` minSuccessesForPromotion

minSuccessesForPromotion: number

Minimum successful executions before promoting the skill as a belief into the shared substrate (Phase 6 of #2792). Default 5. Skills below this threshold are still tracked locally; promotion only fires once the signal stabilizes.

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:324

### `Optional` `Readonly` skillPromoter

skillPromoter?: SkillPromoter

Optional promotion bridge to the shared belief store. When set, SkillLibrary fires the callback whenever a skill crosses the `minSuccessesForPromotion` threshold. Default: undefined (no-op).

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:330