Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add liuxie85/liuxie-skills --skill "skill-manager"
Install specific skill from multi-skill repository
# Description
Lifecycle manager for GitHub-based skills. Use this to batch scan your skills directory, check for updates on GitHub, and perform guided upgrades of your skill wrappers.
# SKILL.md
name: skill-manager
description: Lifecycle manager for GitHub-based skills. Use this to batch scan your skills directory, check for updates on GitHub, and perform guided upgrades of your skill wrappers.
license: MIT
github_url: https://github.com/liuxie85/liuxie-skills/tree/main/skill-manager
Skill Lifecycle Manager
This skill helps you maintain your library of GitHub-wrapped skills by automating the detection of updates and assisting in the refactoring process.
Core Capabilities
- Audit: Scans your local skills folder for skills with
github_urlmetadata. - Check: Queries GitHub (via
git ls-remote) to compare local commit hashes against the latest remote HEAD. - Report: Generates a status report identifying which skills are "Stale" or "Current".
- Update Workflow: Provides a structured process for the Agent to upgrade a skill.
- Interactive Merge: Smart merge workflow for preserving local modifications (Rebase-like).
- Inventory Management: Lists all local skills and provides deletion capabilities.
Usage
Trigger: /skill-manager check or "Scan my skills for updates"
Trigger: /skill-manager list or "List my skills"
Trigger: /skill-manager update <skill_name> or "Update skill
Trigger: /skill-manager delete <skill_name> or "Delete skill
Workflow 1: Check for Updates
- Run Scanner: The agent runs
scripts/scan_and_check.pyto analyze all skills. - Review Report: The script outputs a JSON summary. The Agent presents this to the user.
- Example: "Found 3 outdated skills:
yt-dlp(behind 50 commits),ffmpeg-tool(behind 2 commits)..."
- Example: "Found 3 outdated skills:
Workflow 2: Update a Skill (Standard)
Trigger: "Update [Skill Name]" (after a check)
- Check Status: Checks if the skill is outdated using
scripts/update_skill.py. - Update Files: Automatically downloads modified files from the remote repository.
- Result: Reports success or failure.
Workflow 3: Interactive Merge (Rebase)
Trigger: "Smart update [Skill Name]" or "Merge updates for [Skill Name]"
Use this workflow when you have local modifications (custom prompts, modified scripts) that must be preserved.
-
Analyze Diff:
- Fetch remote file content (README/Script).
- Compare with local version.
- Summarize changes to User (e.g., "Remote added Feature X, but you have local Logic Y").
-
Code/Docs Fusion:
- For SKILL.md: Use
edittool to inject new features while strictly preserving local custom prompts. - For Scripts:
- Download remote script to a temp file.
- Read both local and remote scripts.
- Complexity Check:
- IF simple: Synthesize a new script merging remote fixes AND local logic.
- IF complex: Rename Strategy. Save remote script as
script_name_v2.py(Side-by-side) and let user choose, to avoid breaking logic.
- For SKILL.md: Use
-
Finalize:
- Update
github_hashin frontmatter. - Cleanup temp files.
- Update
Scripts
scripts/scan_and_check.py: The workhorse. Scans directories, parses Frontmatter, fetches remote tags, returns status.scripts/update_helper.py: (Optional) Helper to backup files before update.scripts/list_skills.py: Lists all installed skills with type and version.scripts/delete_skill.py: Permanently removes a skill folder.
Metadata Requirements
This manager relies on the github-to-skills metadata standard:
- github_url: Source of truth.
- github_hash: State of truth.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.