Agent skill
github-to-skills
Automated factory for converting GitHub repositories into specialized AI skills. Use this skill when the user provides a GitHub URL and wants to "package", "wrap", or "create a skill" from it. It automatically fetches repository details, latest commit hashes, and generates a standardized skill structure with enhanced metadata suitable for lifecycle management.
Install this agent skill to your Project
npx add-skill https://github.com/KKKKhazix/Khazix-Skills/tree/main/github-to-skills
SKILL.md
GitHub to Skills Factory
This skill automates the conversion of GitHub repositories into fully functional AI skills.
Core Functionality
- Analysis: Fetches repository metadata (Description, README, Latest Commit Hash).
- Scaffolding: Creates a standardized skill directory structure.
- Metadata Injection: Generates
SKILL.mdwith extended frontmatter (tracking source, version, hash) for future automated management. - Wrapper Generation: Creates a
scripts/wrapper.py(or similar) to interface with the tool.
Usage
Trigger: /GitHub-to-skills <github_url> or "Package this repo into a skill: "
Required Metadata Schema
Every skill created by this factory MUST include the following extended YAML frontmatter in its SKILL.md. This is critical for the skill-manager to function later.
---
name: <kebab-case-repo-name>
description: <concise-description-for-agent-triggering>
# EXTENDED METADATA (MANDATORY)
github_url: <original-repo-url>
github_hash: <latest-commit-hash-at-time-of-creation>
version: <tag-or-0.1.0>
created_at: <ISO-8601-date>
entry_point: scripts/wrapper.py # or main script
dependencies: # List main dependencies if known, e.g., ["yt-dlp", "ffmpeg"]
---
Workflow
- Fetch Info: The agent first runs
scripts/fetch_github_info.pyto get the raw data from the repo. - Plan: The agent analyzes the README to understand how to invoke the tool (CLI args, Python API, etc.).
- Generate: The agent uses the
skill-creatorpatterns to write theSKILL.mdand wrapper scripts, ensuring the extended metadata is present. - Verify: Checks if the commit hash was correctly captured.
Resources
scripts/fetch_github_info.py: Utility to scrape/API fetch repo details (README, Hash, Tags).scripts/create_github_skill.py: Orchestrator to scaffold the folder and write the initial files.
Best Practices for Generated Skills
- Isolation: The generated skill should install its own dependencies (e.g., in a venv or via
uv/pip) if possible, or clearly state them. - Progressive Disclosure: Do not dump the entire repo into the skill. Only include the necessary wrapper code and reference the original repo for deep dives.
- Idempotency: The
github_hashfield allows the futureskill-managerto checkif remote_hash != local_hashto trigger updates.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Skill Evolution Manager
专门用于在对话结束时,根据用户反馈和对话内容总结优化并迭代现有 Skills 的核心工具。它通过吸取对话中的“精华”(如成功的解决方案、失败的教训、特定的代码规范)来持续演进 Skills 库。
skill-manager
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.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Didn't find tool you were looking for?