shynlee04/hivemind-plugin/hf-l2-skill-synthesis
Claude Code and agent skill by shynlee04/hivemind-plugin
- community
Checking that the SKILL.md file is still in the repository.
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven skill scaffolds. Triggers on: 'create skills from GitHub', 'find skill patterns', 'classify skills', 'generate evals', 'synthesize a skill from a codebase'.
Install
npx vskill@latest install shynlee04/hivemind-plugin/hf-l2-skill-synthesisSKILL.md
Overview
Synthesize new skills from GitHub repositories, existing codebases, or design patterns. Use when creating skills from repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven skill scaffolds. Produces complete skill packages with evals and trigger queries.
The Iron Law
Every skill produced by this pipeline must include evaluation test cases (≥3) and trigger queries (≥20). A scaffold without evaluation coverage is incomplete. A skill without executed validation is untested.
skill-synthesis
On Load
- Fetch the canonical spec — always fresh, never cached:
``bash webfetch https://agentskills.io/llms.txt `` Use this as the ground truth for frontmatter format, pattern definitions, and eval structure.
- Check for planning files — if
task_plan.mdexists, read the Goal field. If missing, run:
``bash bash scripts/validate-gate.sh synthesize "<user-request>" <output-dir> `` This creates the planning scaffold and validates intent.
Pipeline Overview
Phase 1: INGEST
Input: GitHub repo URL or owner/repo string Tools: repomix --remote, webfetch, websearch
Output: Packed XML with all SKILL.md files, fresh spec, pattern corpus
Phase 2: CLASSIFY
For each SKILL.md found, classify along these axes:
| Axis | Categories | Detection | |
|---|---|---|---|
| Pattern | P1 (<200L), P2 (200-400L), P3 (400L+) | Line count + reference count | |
| Routing | Thin router, Context router, Not-a-router | Decision tree present? Ref count 0-2? | |
| Efficiency | Token-efficient, Context-heavy, Script-bundled, Pure-instructions | Token/line ratio, scripts/ presence | |
| Testing | Has evals (≥3 cases), Has triggers (≥20 queries), Has scripts, Has matrix, Complete | Evaluation presence, trigger coverage | |
| Quality | Excellent (4.5+), Good (4.0+), Acceptable (3.5+), Needs Work (<3.5) | 5-dimension weighted score |
Output: Classification report per skill, ranked by quality score
Phase 3: SCAFFOLD
- Select top 3 examples matching target category
- Extract common structural patterns (frontmatter shape, reference topics, script types)
- Generate scaffold:
- SKILL.md with proper frontmatter (trigger phrases from decision tree analysis)
- Numbered reference files (150-300 lines each)
- Validation scripts (co-located with the skill's scripts/ directory)
- Evals:
evals.json(3-8 test cases) +trigger-queries.json(20 queries, 60/40 train/val split)
- Write to target directory
Output: Complete skill directory, ready for validation
Phase 4: VALIDATE
If any step fails: Fix → re-run. Max 5 iterations. Output: Validated skill with passing evals and quality score ≥ 3.5
Decision Tree — Pick Your Path
Rule: Load only ONE reference file. Do not load all references.
Reference Map
| File | When to Read | |
|---|---|---|
references/01-github-ingestion.md | GitHub repo ingestion, repomix patterns | |
references/02-pattern-classifier.md | P1/P2/P3 classification, taxonomy | |
references/03-eval-framework.md | Eval structure, trigger queries, grading | |
references/04-quality-matrix.md | 5-dimension scoring, block rules | |
references/05-template-library.md | Template extraction, scaffolding |
Anti-Patterns
| Anti-Pattern | Detection | Correction | |
|---|---|---|---|
| The Hoarder — loading all references instead of following decision tree | All reference files read in one session | Follow the decision tree. Load ONE reference. | |
| The LLM Simulator — trying to run LLM-based evals in bash scripts | Script calls external LLM API or simulates semantic matching | Use structural keyword overlap checks only (see run-trigger-evals.sh spec) | |
| The Template Copier — copy-pasting SKILL.md content without adapting to domain | Generated SKILL.md contains generic placeholder text | Extract patterns, not content. Adapt frontmatter and body to target domain | |
| The Silent Failure — not running validation gates before declaring done | No evidence of validate-gate.sh, validate-skill.sh, or run-trigger-evals.sh execution | Run all gates. Report exit codes. Max 5 fix iterations |
Error Handling
| Failure Mode | Detection | Recovery | |
|---|---|---|---|
| Repo not found / private | repomix exits non-zero | Inform user, verify repo exists and is public | |
| No SKILL.md files in repo | ingest-repo.sh reports 0 skills | Inform user, suggest broader search | |
| Classification ambiguous | classify-pattern.sh outputs low confidence | Flag for human review, proceed with best guess | |
| Eval rate < 80% | run-trigger-evals.sh exits non-zero | Auto-revise description, re-run (max 3 iterations) | |
| Quality score < 3.5 | grade-outputs.sh exits non-zero | Flag specific dimensions, suggest improvements | |
| Overlap with existing skill | check-overlaps.sh reports conflict | Report overlap percentage, let user decide |
Non-Interactive Shell Compliance
All scripts must:
- Set
CI=true,GIT_TERMINAL_PROMPT=0,GIT_PAGER=cat,PAGER=cat - Use
--yes/-yflags for all package managers - Output structured JSON (not free-form text)
- Exit non-zero on any failure (
set -euo pipefail) - Include
timeout 30wrapper for any command that might hang - Never use banned commands (vim, less, git add -p, etc.)
Integration with Existing Skills
| Existing Skill | Relationship | |
|---|---|---|
meta-builder | Routes "synthesize skills" → skill-synthesis | |
use-authoring-skills | Provides validation scripts reused by this pipeline | |
skill-judge (external) | Provides the 5-dimension quality matrix | |
repomix-exploration-guide | Provides repomix patterns used by ingestion | |
opencode-platform-reference | Source of domain knowledge for OpenCode-specific patterns |
Self-Correction
When the Task Keeps Failing
[Detection] repomix returns empty output or non-zero exit after 3 attempts. Classification is low-confidence across all axes. Validation loop hits 5-iteration max without passing. [Recovery] STOP the pipeline. Report what failed and where: which phase (INGEST/CLASSIFY/SCAFFOLD/VALIDATE), the specific error, and what was attempted. For repo ingestion failures: verify the repo exists, is public, and contains SKILL.md files. For validation failures: flag specific dimensions from grade-outputs.sh and suggest manual review.
When Unsure About the Next Step
[Detection] The user's request doesn't clearly map to a pipeline phase. Classification results are ambiguous (moderate confidence across conflicting axes). Unclear whether to scaffold from templates or synthesize from patterns. [Recovery] Run validate-gate.sh synthesize "<user-request>" <output-dir> to create a planning scaffold. The task_plan.md Goal field will clarify intent. If still unsure, ask the user up to 3 clarifying questions via the question tool — but default to the full pipeline (INGEST through VALIDATE) if ambiguity persists.
When the User Contradicts Skill Guidance
[Detection] User says "skip evals, just create the SKILL.md" or "I don't need validation, the output looks fine." User wants to bypass the "NO SKILL WITHOUT EVALS" iron law or validation gates. [Recovery] Acknowledge: "This skill's iron law states: NO SKILL WITHOUT EVALS. Skipping evals produces an untestable skill that may fail silently." If the user insists, proceed but document in the output SKILL.md as ## Known Limitations: Evals skipped by user request. Never claim the skill is "complete" without evals — mark it as "scaffold only."
When an Edge Case Is Encountered
[Detection] Repo has non-standard skill format (not agentskills.io spec). Skill content is in a language the classifier can't parse. Multiple repos provided simultaneously. Overlap with existing skill exceeds 80%. [Recovery] For non-standard formats: classify best-effort and flag as "non-standard — manual review recommended." For multiple repos: process sequentially, one pipeline per repo. For high overlap: report percentage to user with option to merge vs replace. Always surface edge cases in the classification report rather than silently handling them.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingassets/skills/hf-l2-skill-synthesis/SKILL.md
Popularity
- Repository stars
- 50
- Repository forks
- 17
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shynlee04/hivemind-plugin/hf-l2-skill-synthesis)