# MentorPreferredSkillsSource class

> The MentorPreferredSkillsSource class of Novior.MentorAgent.Core: An AgentSkillsSource whose skills win a name: wrap a source in it, in…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-core/mentorpreferredskillssource
- Verified with: MentorAgent 1.4.0
- Last updated: 2026-11-18
- Packages: Novior.MentorAgent

An `AgentSkillsSource` whose skills win a name: wrap a source in it, in [`MentorOptions.SkillSources`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#skillsources), when the skills it gives must replace the application's own of the same name, and those of the other sources (rule `skill.name-precedence`). Without it the application's skills win, then the first source registered.

It is for a source the application trusts to decide, such as the console of an integration that manages the assistant's skills: the decision is the application's, made where it registers the source, never the source's. Every replacement is logged, naming the skill. Several preferred sources are asked first, in the order they were registered; [`MentorOptions.SkillFilter`](https://docs.mentoragent.net/api/novior-mentoragent-options/mentoroptions#skillfilter) applies to their skills as to the others'.

```text title="Example"
options.SkillSources =
[
    new MentorPreferredSkillsSource(consoleSkills),        // its skills replace yours of the same name
    new AgentFileSkillsSource("/srv/shared-skills"),       // yours win over these
];
```

## Definition

Namespace: `Novior.MentorAgent.Core`. Package: `Novior.MentorAgent`.

`public sealed class MentorPreferredSkillsSource : AgentSkillsSource`

```shell
dotnet add package Novior.MentorAgent
```

## Constructors

`public MentorPreferredSkillsSource(AgentSkillsSource inner)`

Wraps `inner`, whose skills then win a name.

## Properties

### `Inner`

`public AgentSkillsSource Inner { get; }`

The source whose skills win a name.

## Methods

### `GetSkillsAsync`

`public override Task<IList<AgentSkill>> GetSkillsAsync(AgentSkillsSourceContext context, CancellationToken cancellationToken = default)`

---

- Previous: [MentorMetrics class](https://docs.mentoragent.net/api/novior-mentoragent-core/mentormetrics.md)
- Next: [MentorRateLimiter class](https://docs.mentoragent.net/api/novior-mentoragent-core/mentorratelimiter.md)
