microsoft/vscode · error · Error

Skill "${skillName}" not found.${skillListMessage}

Error message

Skill "${skillName}" not found.${skillListMessage}

What it means

Error "Skill "${skillName}" not found.${skillListMessage}" thrown in microsoft/vscode.

Source

Thrown at extensions/copilot/src/extension/tools/node/skillTool.ts:250

	const availableSkills: string[] = [];

	if (isString(indexValue)) {
		const indexFile = parseInstructionIndexFile(indexValue);
		for (const skillUri of indexFile.skills) {
			const info = getSkillInfo(skillUri);
			if (info) {
				if (info.skillName === skillName) {
					return skillUri;
				}
				availableSkills.push(info.skillName);
			}
		}
	}

	const skillListMessage = availableSkills.length > 0
		? ` Available skills: ${availableSkills.join(', ')}`
		: '';
	throw new Error(`Skill "${skillName}" not found.${skillListMessage}`);
}

/**
 * List files in a skill directory, excluding SKILL.md and skipped directories.
 */
export async function listRelatedFiles(skillFolderUri: URI, readDirectory: ReadDirectoryFn): Promise<string[]> {
	try {
		const files: string[] = [];
		await listRelatedFilesRecursive(skillFolderUri, skillFolderUri, files, readDirectory);
		return files;
	} catch {
		return [];
	}
}

export async function listRelatedFilesRecursive(baseUri: URI, currentUri: URI, files: string[], readDirectory: ReadDirectoryFn, depth: number = 0): Promise<void> {
	if (files.length >= MAX_RELATED_FILES || depth > 5) {
		return;

View on GitHub (pinned to a94b963a32)

When it happens

Trigger: Thrown at extensions/copilot/src/extension/tools/node/skillTool.ts:250 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12). Data as JSON: /api/errors/4a640d3913edd5b6. Report an issue: GitHub.