Skip to main content

eslint-plugin-copilot Documentation / _internal/copilot-customization-names / getSkillName

Function: getSkillName()

function getSkillName(
filePath: string,
frontmatter: Readonly<{
body: string;
content: string;
fields: ReadonlyMap<string, FrontmatterField>;
}> | null
): string;

Defined in: _internal/copilot-customization-names.ts:96

Get the effective skill name when declared.

Parameters​

| Parameter | Type | | ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | | filePath | string | | frontmatter | | Readonly<{ body: string; content: string; fields: ReadonlyMap<string, FrontmatterField>; }> | null |

Returns​

string