Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

skill-builder技能构建

Agent Skill

skill-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

247

周安装

10

GitHub Stars

2

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-builder(技能构建)
来源仓库:https://github.com/lev-os/agents
仓库路径:skills/skill-builder
安装命令:
npx skills add https://github.com/lev-os/agents --skill skill-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lev-os/agents --skill skill-builder

简介

skill-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于 Agent 技能开发文档查询、功能模块设计参考和技能组合方案筛选等场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和联网需求。
  • 建议结合原始 README 核验具体用法,注意维护状态及是否触发文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Lev Skill Builder

Overview

Unified skill creation hub. Routes between documentation codification (Skill_Seekers v2.7.4) and new skill authoring (skill-creator standards). Supports website scraping, GitHub repository analysis (with AST parsing), PDF extraction, and unified multi-source with conflict detection.

When to Use This Skill

Use skill-builder when you need to:

ScenarioExampleRoute
Convert docs website to skill"Codify the FastAPI docs"Codifier pipeline (see below)
Convert GitHub repo to skill"Make a skill from facebook/react"Codifier pipeline (see below)
Extract PDF into skill"Turn this manual into a skill"Codifier pipeline (see below)
Combine multiple sources"Skill from React docs + repo + PDF"Codifier pipeline (see below)
Author new skill from scratch"Create a skill for my workflow"skill-creator
Merge existing skills"Combine these 3 skills into one"Both routes
Export for non-Claude LLMs"Package for Gemini/ChatGPT"Codifier with --target

Do NOT use for: editing existing skills (use editor), searching skills (use lev get), or installing skills (use clawdhub).

Quick Decision Tree

What does the user want?
│
├─→ Convert existing docs to skill?
│   ├─→ Website only? → Website Scraping
│   ├─→ GitHub repo only? → GitHub Analysis
│   ├─→ PDF only? → PDF Extraction
│   └─→ Multiple sources? → Unified Multi-Source
│
├─→ Create NEW skill from scratch?
│   └─→ Route to skill-creator
│       - SKILL.md format: YAML frontmatter + markdown body
│       - Progressive disclosure: metadata → body → references
│       - Body <500 lines, description is PRIMARY trigger
│       - See skill-creator skill for full standards
│
├─→ Combine/merge existing skills?
│   └─→ Route to BOTH:
│       1. Analyze existing skills (codifier patterns)
│       2. Author merged skill (skill-creator standards)
│       3. Ensure router pattern if subsumes others
│
├─→ Export for non-Claude platform?
│   └─→ Package with --target (gemini|openai|markdown)
│
└─→ First time? → references/setup.md

Skill Installation from External Sources

When intake routes a skills.sh URL or skill:// to skill-builder:

Step 1: Acquire → skills-db staging

# Extract GitHub repo URL from skills.sh page (WebFetch for the link ONLY)
git clone --depth 1 {repo} /tmp/skill-intake-{ts}/
# Find the skill: find /tmp/skill-intake-{ts}/ -name "SKILL.md" -path "*{name}*"
# Stage to skills-db (NOT directly to active):
cp -r /tmp/skill-intake-{ts}/skills/{name}/ ~/.agents/skills-db/_workshop/{source}/{name}/
rm -rf /tmp/skill-intake-{ts}/

Step 2: Validate (HARD GATES — run on staged copy)

file=~/.agents/skills-db/_workshop/{source}/{name}/SKILL.md
head -1 "$file" | grep -q "^---$"           # Has YAML frontmatter
grep -q "^name:" "$file"                     # Has name field
grep -q "^description:" "$file"              # Has description field
awk '/^---$/{c++} c==2{exit}' "$file"        # Has closing ---

If any hard gate fails → REJECT. Move to .archive/ or delete. Do NOT promote.

Step 2b: Security Audit (external skills ONLY — skip for local authoring)

Three sequential scanners with early termination. Each scanner is progressively more expensive. See references/security-audit-gates.md for full scoring rubric and quarantine protocol.

Scanner 1: Structural Decompile (free, instant)

python3 ~/.agents/skills-db/security/skill-decompile/decompile.py "$file" --output yaml
# Check: risk_score < 60 to proceed
# If risk_score >= 60: REJECT with flags

Scanner 2: Semantic Scan (agent-based, ~10s) Load security-scanner skill (hiroro) against the staged skill directory:

# Runs in sandboxed subagent with Read-only tools
# Checks for malicious NL instructions, social engineering patterns
# Output: pass/warn/fail

Scanner 3: AgentShield CLI (CLI-based, ~5s)

npx ecc-agentshield scan --path "$staged_dir" --min-severity medium
# Checks: hook injection, MCP risks, overpermissive configs
# Output: findings JSON

Security Verdict:

ResultAction
All 3 passProceed to Step 3
Scanner 1 pass + Scanner 2/3 warnProceed with user confirmation
Scanner 1 fail (risk >= 60)Hard REJECT, explain flags
Scanner 3 critical findingHard REJECT, quarantine to.archive/

Step 3: Prior Art Check

  • Search ~/.agents/skills/ for name/trigger overlap
  • Exact match → compare quality (line count, scoring), keep better version
  • Partial overlap (>30% triggers) → recommend merge
  • No overlap → proceed to scoring

Step 4: Quality Score (run on staged copy, BEFORE promotion)

Score 1-10 on 5 dimensions (read the SKILL.md content):

DimensionWhat to evaluate
ActionabilityConcrete steps/code/templates vs vague advice
DepthExpert-level detail vs surface overview
StructureDecision trees/tables vs wall of text
Trigger qualityWHAT/HOW/WHEN/WHY + tags vs bare description
UniquenessNovel frameworks vs generic blog advice

Grades: A (8+) promote, B (7-7.9) promote with note, C (5-6.9) hold in _todo, D (<5) reject

Step 5: Catalog (move from staging to skills-db home)

# A/B grade → catalog in skills-db (DEFAULT destination):
mv ~/.agents/skills-db/_workshop/{source}/{name}/ ~/.agents/skills-db/{domain}/{name}/
# C grade → move to _todo for enhancement:
mv ~/.agents/skills-db/_workshop/{source}/{name}/ ~/.agents/skills-db/_todo/{name}/
# D grade → reject:
mv ~/.agents/skills-db/_workshop/{source}/{name}/ ~/.agents/skills-db/.archive/{name}/

Step 5b: Activate (ONLY if user requests)

# Only when user explicitly wants the skill loaded into Claude Code:
cp -r ~/.agents/skills-db/{domain}/{name}/ ~/.agents/skills/{name}/
# Or symlink:
ln -s ~/.agents/skills-db/{domain}/{name}/ ~/.agents/skills/{name}

NOTE: Most skills stay in skills-db. Only day-to-day/global operational skills get activated. The user decides when to activate — skill-builder should PROPOSE activation, not assume it.

Step 6: Lifecycle Check

  • Is this skill a candidate for merging into an existing hub/router?
  • Does it overlap with 2+ existing skills in the same domain?
  • If yes → recommend leaf→hub→router graduation

Skill Lifecycle: Leaf → Hub → Router

Skills grow organically through 3 stages:

StageLinesPatternExample
LEAF<300LStandalone, no routingwriting-substack (147L)
HUB300-500LCross-references peerscontent-strategy (356L)
ROUTER80-100L bodyDispatches to sub-skillssecurity-hub (80L → 4 sub-skills)

Growth triggers

  • Merge: 2+ skills share >30% intent overlap → merge into hub
  • Router: Merged hub exceeds ~400L → graduate to router (move content to sub-skills)
  • Split: Single skill >500L without references/ → split into skill + references/

Router graduation checklist

  1. Create {domain}-hub/ directory
  2. Write SKILL.md routing header (<100L): decision tree + sub-skill table
  3. Add skill_type: router and subsumes: [list] to frontmatter
  4. Keep sub-skills as independent SKILL.md files
  5. Router description MUST include ALL sub-skill triggers (union of tags)

Full Pipeline (The Correct Order)

Every codification job follows this pipeline. Do NOT skip steps.

1. PRIOR ART CHECK → Does this skill already exist?
   ├─ lev get "{name}" --scope=knowledge --pattern="SKILL.md"
   ├─ grep -rl "{name}" ~/.claude/skills/
   └─ If found:
      • Exact match → use as-is or enhance existing, skip to step 4
      • Partial overlap → recommend merge/consolidation with existing
      • Related but different → proceed, note in description for routing

2. ESTIMATE (websites only) → How big is this job?
   └─ skill-seekers estimate configs/{name}.json
      • < 5K pages: single skill, proceed normally
      • 5K-10K: consider category split
      • 10K+: must split with router strategy

3. EXTRACT → Get the raw content
   ├─ Website:  skill-seekers scrape --name {name} --url {url}
   ├─ GitHub:   skill-seekers github --repo {owner/repo}
   ├─ PDF:      skill-seekers pdf --pdf {file} --name {name}
   └─ Unified:  skill-seekers unified --config {config.json}

4. ENHANCE → Transform raw extraction into a real skill
   └─ skill-seekers enhance output/{name}/

   ⚠️ KNOWN BUG (skill-seekers ≤2.7.4): enhance passes file path
   as positional arg to claude CLI. SKILL.md never gets updated.
   USE WORKAROUND: scripts/enhance-workaround.sh output/{name}

5. REVIEW → Check the enhanced output
   • Compare frontmatter against standards (what/how/when/why + triggers)
   • Verify description is the PRIMARY trigger mechanism
   • Check progressive disclosure (SKILL.md <500 lines, rest in references/)
   • Validate: no stats-only wrappers, real actionable content

6. PACKAGE → Bundle for distribution
   └─ echo "y" | skill-seekers package output/{name}/ [--target claude|gemini|openai|markdown]

7. INSTALL → Put it where it belongs
   ├─ Global:  cp -r output/{name} ~/.claude/skills/{name}/
   ├─ Project: cp -r output/{name} .claude/skills/{name}/
   └─ Upload:  output/{name}.zip → https://claude.ai/skills

Quick Reference: Essential Commands

1. Installation Check

command -v skill-seekers || python3 -m skill_seekers --version

If not installed, see references/setup.md for uv/venv/pip auto-detection.

2. Website Scraping (Preset)

skill-seekers scrape --config configs/react.json --enhance-local
skill-seekers package output/react/

3. Website Scraping (Custom)

skill-seekers scrape --name myframework --url https://docs.example.com/
skill-seekers package output/myframework/

4. GitHub Repository Analysis

skill-seekers github --repo facebook/react
skill-seekers package output/react/

Supports deep AST parsing for Python, JavaScript, TypeScript, Java, C++, Go. Extracts APIs, issues, PRs, changelogs, and detects doc-vs-code conflicts.

5. PDF Extraction

skill-seekers pdf --pdf docs/manual.pdf --name myskill
skill-seekers package output/myskill/

Supports OCR for scanned PDFs, table extraction, password-protected files, and parallel processing.

6. Unified Multi-Source (Docs + GitHub + PDF)

skill-seekers unified --config configs/react_unified.json
skill-seekers package output/react/

Combines all sources with automatic conflict detection and intelligent merging.

7. Multi-Platform Export

# Claude (default)
skill-seekers package output/react/

# Google Gemini
skill-seekers package output/react/ --target gemini

# OpenAI ChatGPT
skill-seekers package output/react/ --target openai

# Generic Markdown (any LLM)
skill-seekers package output/react/ --target markdown

For large docs (10K+ pages), async mode, three-stream GitHub analysis, splitting strategies, and troubleshooting, see references/advanced-commands.md.

Frontmatter Design Philosophy

The Description is Everything

The description field is the PRIMARY trigger mechanism. Agents read descriptions to route. Body loads AFTER triggering.

Every description needs What/How/When/Why + tag soup:

description: |
  [WHAT] - What this skill does (1 sentence)
  [HOW] - How it works (mechanism, tools used)
  [WHEN] - When to use it (trigger conditions)
  [WHY] - Why it exists (problem it solves)

  Triggers: "tag1", "tag2", "tag3", ...

Intentional Tag Overlap

Skills SHOULD have overlapping triggers for semantic routing:

DomainShared TriggersSkills
Context gatheringfind, search, lookup, getlev get, lev-research, lev-memory
Modificationupdate, patch, change, editlev-patch, bd, edit tools
Executionrun, execute, do, makeralph, bash, Task tool

Anti-pattern: Descriptions that only say WHAT without WHEN triggers:

# BAD
description: Manages memory storage and retrieval.

# GOOD
description: |
  Store and recall information across sessions using AutoMem.
  Triggers: "remember", "recall", "forget", "save this", "memory"

The 3-Tool Agent Model

Skills wrap 3 fundamental operations:

  1. GET (context gathering) - lev get, lev-research, read
  2. EXECUTE (run things) - ralph, bash, Task tool, skills
  3. PATCH (modify the graph) - bd, edit, write, memory_store

Categorize your skill's operations to help semantic routing.

Skill Creator Standards (Quick Reference)

When authoring a new skill from scratch:

Structure:

skill-name/
├── SKILL.md (required, 300-500 lines)
│   ├── YAML frontmatter (name, description required)
│   └── Markdown body with inline templates
├── references/ (optional, for API docs or large schemas only)
└── scripts/ (optional, deterministic code)

Rules:

  • description is the PRIMARY trigger - include what + when
  • Use imperative/infinitive form
  • No separate README.md or CHANGELOG.md - the skill IS the docs

Skill Authoring Principles (Hard-Won)

These principles come from rebuilding skills that agents couldn't follow. Apply them to every skill you create.

1. Steps are verbs, not states. Section titles tell the agent what to DO. "Save the handoff" not "EMIT". "Search these 10 sources" not "DISCOVER". If the agent reads the title and doesn't know its next action, the title is wrong.

2. Inline templates at each step. If a step produces an artifact, show the skeleton right there — 10-50 lines. Don't write "load templates/handoff.md" — agents won't do it. The template must be visible where the agent needs it.

3. The first step is the most important output. Whatever the skill's primary deliverable is, that's Step 1. Not background theory. Not architecture diagrams. Not "On Load" setup. The thing the agent produces first.

4. References don't get loaded. Agents don't cat references/gates.md in practice. If information matters for execution, it lives in SKILL.md. Use references/ only for large API docs or schemas that are genuinely loaded on demand via explicit instructions. Never put operational instructions in references/.

5. Prose is the enemy. Every paragraph explaining WHY a rule exists is a paragraph the agent skips to find WHAT to do. Lead with the format/action. Add rationale as a single-line comment if needed. Cut everything else.

6. Labels don't enforce. Marking 14 sections "Hard Contract" is the same as marking zero. The contract IS the inline format. Show the format. Skip the label.

7. Target: 300-500 lines. Under 300 and you're probably missing inline templates. Over 500 and the agent can't hold it in working memory. The 100-150 line "thin SKILL.md + references/" model produces skills that agents can't execute because the operational detail is in files they never read.

Validation (Post-Authoring)

VALIDATION RULES:
1. Can an agent read Step 1's title and immediately act? If not, rewrite.
2. Does every step that produces an artifact have an inline template? If not, add it.
3. Is SKILL.md 300-500 lines? Under → missing templates. Over → cut prose.
4. Are there references/ the agent MUST read to function? Move that content into SKILL.md.
5. Zero sections titled "Hard Contract" or abstract state names (DISCOVER, EMIT, etc.)
6. Total skill > 2000 lines? → Consider sub-skills with router

IDEAL STRUCTURE:
skill-name/
├── SKILL.md (300-500 lines)
│   ├── Frontmatter (name + description with triggers)
│   ├── Steps 1-N (verb-first titles, inline templates)
│   └── Support sections (error handling, routing table)
├── references/ (optional — API docs, large schemas ONLY)
└── scripts/ (optional — deterministic code)

Install Location

Ask user where to install:

  • ~/.claude/skills/X/ - User-level (global)
  • .claude/skills/X/ - Project-level (local)

Output & Delivery

All workflows create .zip in output/<name>.zip. Users upload to Claude at https://claude.ai/skills. For other platforms, use --target flag.

Working with This Skill

Beginners

  1. Run installation check (command -v skill-seekers)
  2. If not installed, follow references/setup.md (auto-detects uv/venv/pip)
  3. Start with a preset: skill-seekers scrape --config configs/react.json --enhance-local
  4. Package: skill-seekers package output/react/

Intermediate

  • Use unified multi-source for comprehensive skills (docs + code + PDF)
  • Enable async mode for docs over 500 pages
  • Use --enhance-local (no API key) or --enhance (with ANTHROPIC_API_KEY) for AI improvement
  • Export to multiple LLM platforms with --target

Advanced

  • Split 10K+ page docs with router strategy for parallel scraping
  • Use three-stream GitHub analysis (code + docs + insights) via Python API
  • Configure GitHub profiles for private repos: skill-seekers config --github
  • Resume interrupted scrapes: skill-seekers scrape --config config.json --resume
  • Custom endpoint support: set ANTHROPIC_BASE_URL for GLM-4.7 compatible APIs

For troubleshooting, see references/advanced-commands.md or references/troubleshooting.md.

Reference Files

FileContent
references/setup.mdInstallation with uv/venv/pip auto-detection
references/advanced-commands.mdLarge docs, async, three-stream, splitting, troubleshooting
references/advanced-workflows.mdUnified multi-source config, enhancement options
references/troubleshooting.mdInstallation issues, runtime errors, CSS selectors
references/security-audit-gates.mdSecurity audit thresholds, scoring rubric, quarantine protocol
references/skill-seekers-readme.mdFull Skill_Seekers v2.7.4 feature matrix
scripts/enhance-workaround.shFix for broken skill-seekers enhance CLI invocation

Routing Summary

IntentRoute ToAction
"codify docs", "convert docs to skill"Codifier pipelinePrior art → extract → enhance → package → install
"skill from GitHub repo"Codifier pipelinePrior art → github → enhance → package → install
"skill from PDF"Codifier pipelinePrior art → pdf → enhance → package → install
"combine docs + code + PDF"Codifier pipelinePrior art → unified → enhance → package → install
"make a skill", "new skill"skill-creatorAuthor with standards
"combine skills", "merge skills"BothAnalyze + author
"export for Gemini/ChatGPT"Codifier pipelinePackage with --target flag
"enhance skill"Enhance stepRun enhance workaround (pipe to claude -p)
"codify X" (ambiguous)Ask clarificationDocs source or new authoring?

For full skill authoring guidance, load the skill-creator skill.

Technique Map

  • Identify scope — Determine what the skill applies to before executing.
  • Follow workflow — Use documented steps; avoid ad-hoc shortcuts.
  • Verify outputs — Check results match expected contract.
  • Handle errors — Graceful degradation when dependencies missing.
  • Reference docs — Load references/ when detail needed.
  • Preserve state — Don't overwrite user config or artifacts.

Technique Notes

Skill-specific technique rationale. Apply patterns from the skill body. Progressive disclosure: metadata first, body on trigger, references on demand.

Prompt Architect Overlay

Role Definition: Specialist for skill-builder domain. Executes workflows, produces artifacts, routes to related skills when needed.

Input Contract: Context, optional config, artifacts from prior steps. Depends on skill.

Output Contract: Artifacts, status, next-step recommendations. Format per skill.

Edge Cases & Fallbacks: Missing context—ask or infer from workspace. Dependency missing—degrade gracefully; note in output. Ambiguous request—clarify before proceeding.

Agent Rules for Skill Operations

HARD LEARNED (2026-02-11):

  1. NEVER use WebFetch to extract SKILL.md content — it summarizes
  2. NEVER use haiku agents for skill installation — they hallucinate content
  3. ALWAYS git clone source repo and cp files verbatim
  4. ALWAYS verify: head -1 == "---", wc -l matches source
  5. NEVER add custom frontmatter if source already has it

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.19%
按下载量换算27

Claude

32.47%
按下载量换算25

Cursor

19.47%
按下载量换算15

Gemini CLI

9.43%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills