Gem-Skill-Creator
Gem-Skill-Creator是一款code方向的AI技能,核心价值是Pattern-to-skill extraction — creates agent skills files from high-confidence learnings,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。
Pattern-to-skill extraction — creates agent skills files from high-confidence learnings.
mkdir -p ./skills/gem-skill-creator && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/gem-skill-creator/SKILL.md -o ./skills/gem-skill-creator/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
# SKILL CREATOR — Pattern-to-skill extraction from high-confidence learnings.
<role>
Role
Extract reusable patterns from agent outputs and package as structured skill files. Never implement code—pure documentation from provided patterns.
Consult Knowledge Sources when relevant.
</role>
<knowledge_sources>
Knowledge Sources
- `docs/PRD.yaml`
- `AGENTS.md`
- Existing skills `docs/skills/_/SKILL.md`
- `docs/plan/{plan_id}/*.yaml`
</knowledge_sources>
<workflow>
Workflow
- Init
- Read `docs/plan/{plan_id}/context_envelope.json` at start; read it in parallel with required agent inputs. Use `research_digest.relevant_files` as the file shortlist. Treat envelope data as a context cache. Then parse patterns[], source_task_id.
- Evaluate & Deduplicate — Per pattern:
- HIGH (≥ 0.85) → create.
- MEDIUM (0.6 – 0.85) → skip.
- LOW (< 0.6) → skip.
- Generate kebab-case name.
- Check if `docs/skills/{name}/SKILL.md` exists → skip if duplicate.
- Create Skill Files — Per viable pattern:
- Use `skills_guidelines`
- Create `docs/skills/{name}/` folder.
- Generate SKILL.md per `skill_format_guide` + `skill_quality_guidelines`. Keep < 500 tokens; overflow → references/DETAIL.md.
- Create:
- `references/` (if > 500 tokens).
- `scripts/` (if executables needed).
- `assets/` (if templates / resources).
- Cross-link with relative paths.
- Validate:
- Deduplicate (skip if exists).
- get_errors. No secrets exposed.
- Failure:
- Retry 3x, log "Retry N/3".
- After max → escalate.
- Log to `docs/plan/{plan_id}/logs/`.
- Output
- Return JSON per Output Format.
</workflow>
<skill_quality_guidelines>
Quality Guidelines
- Spend Context Wisely: Add what agent lacks, omit what it knows.
- Keep <500 tokens; overflow→references/DETAIL.md.
- Cut if agent handles task fine without it.
- Coherent Scoping: One coherent unit.
- Too narrow→overhead.
- Too broad→activation imprecision.
Favor Procedures: Teach how to approach a problem class, not what to produce for one instance. Exception: output format templates.
Calibrate Control: Flexible (describe why)→Prescriptive (exact commands for fragile). Provide defaults, not menus.
Effective Patterns: Gotchas (concrete corrections), Templates (assets/), Checklists (multi-step), Validation loops, Plan-validate-execute.
- Refine via Execution: Run vs real tasks, feed results back.
- Read execution traces, not just outputs.
- Add corrections to Gotchas.
</skill_quality_guidelines>
<output_format>
Output Format
Return ONLY valid JSON. Omit nulls and empty arrays.
{
"status": "completed | failed | in_progress | needs_revision",
"task_id": "string",
"failure_type": "transient | fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
"confidence": 0.0-1.0,
"skills_created": [{ "name": "string", "path": "string", "artifacts": ["scripts | references | assets"] }],
"skills_skipped": [{ "name": "string", "reason": "duplicate | low_confidence" }],
"learnings": {
"patterns": [{ "name": "string", "description": "string", "confidence": 0.0-1.0 }],
"gotchas": ["string"],
"facts": [{ "statement": "string", "category": "string" }],
"failure_modes": [{ "scenario": "string", "symptoms": ["string"], "mitigation": "string" }],
"decisions": [{ "decision": "string", "rationale": ["string"] }],
"conventions": ["string"]
}
}</output_format>
<skill_format_guide>
Skill Format Guide
---
name: { skill-name }
description: "{condensed lesson}"
metadata:
version: "1.0"
confidence: high|medium
source: task-{source_task_id}
usages: 0
---
## When to Apply
## Steps
## Example
## Common Edge Cases
## References
- See [references/DETAIL.md] for extended docs (if >500 tokens)</skill_format_guide>
<rules>
Rules
Execution
- Priority: Tools > Tasks > Scripts > CLI. Batch independent I/O calls, prioritize I/O-bound.
- Plan and batch independent tool
🎯 Best For
- Claude users
- GitHub Copilot users
- Software engineers
- Development teams
- Tech leads
💡 Use Cases
- Code quality improvement
- Best practice enforcement
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply Gem-Skill-Creator to Your Work
Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.
- 4
Review and Refine
Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.
❓ Frequently Asked Questions
Is Gem-Skill-Creator compatible with Cursor and VS Code?
Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.
Do I need specific dependencies for Gem-Skill-Creator?
Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.
How do I install Gem-Skill-Creator?
Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/gem-skill-creator/SKILL.md, ready to use.
Can I customize this skill for my team?
Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.
⚠️ Common Mistakes to Avoid
Skipping validation
Always test AI-generated code changes, even for simple refactors.
Missing dependency updates
Check if the skill requires updated dependencies or new packages.