Fix gh skill command to gh skills and update README (#1531)

* Fixing gh skill to be gh skills and adding to the README

* Adding skills install instruction to readme

* Fixing escapes
This commit is contained in:
Aaron Powell
2026-04-28 16:58:22 +10:00
committed by GitHub
parent daa7f3d4ef
commit 4b13306427
6 changed files with 389 additions and 371 deletions
+6 -4
View File
@@ -52,7 +52,7 @@ let currentFilters = {
categories: [] as string[],
hasAssets: false,
};
let currentSort: SkillSortOption = 'title';
let currentSort: SkillSortOption = "title";
let resourceListHandlersReady = false;
function sortItems(items: Skill[]): Skill[] {
@@ -155,7 +155,7 @@ async function copyInstallCommand(
skillId: string,
btn: HTMLButtonElement
): Promise<void> {
const command = `gh skill install ${REPO_IDENTIFIER} ${skillId}`;
const command = `gh skills install ${REPO_IDENTIFIER} ${skillId}`;
const originalContent = btn.innerHTML;
const success = await copyToClipboard(command);
showToast(
@@ -216,7 +216,9 @@ export async function initSkillsPage(): Promise<void> {
"filter-has-assets"
) as HTMLInputElement;
const clearFiltersBtn = document.getElementById("clear-filters");
const sortSelect = document.getElementById("sort-select") as HTMLSelectElement;
const sortSelect = document.getElementById(
"sort-select"
) as HTMLSelectElement;
setupResourceListHandlers(list as HTMLElement | null);
@@ -290,7 +292,7 @@ export async function initSkillsPage(): Promise<void> {
clearFiltersBtn?.addEventListener("click", () => {
currentFilters = { categories: [], hasAssets: false };
currentSort = 'title';
currentSort = "title";
categorySelect.removeActiveItems();
if (hasAssetsCheckbox) hasAssetsCheckbox.checked = false;
if (searchInput) searchInput.value = "";