Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

schemaschema 搜索

Agent Skill

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

总安装

346

周安装

14

GitHub Stars

公开资料未说明

下载量

109
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "schema"

简介

用于查找、检索和筛选相关信息。schema 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在关键词搜索或任务场景中快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

name
schema
description
Generate knowledge schemas and ontologies from any input format. Extract semantic structures, relationships, and hierarchies. Output as Obsidian markdown with YAML frontmatter, wikilinks, tags, and mermaid diagrams, or export to semantic formats (JSON-LD, RDF, Neo4j Cypher, GraphQL). Supports fractal mode (strict hierarchical constraints) and free mode (flexible generation). Auto-activates for queries containing "schema", "ontology", "knowledge graph", "extract structure", or "generate outline".

Schema: Knowledge Ontology Generator

Transform any input into structured knowledge schemas with rich semantic metadata.

Overview

Generate ontologies from:

  • Plain text and natural language
  • Structured data (JSON, YAML, CSV, XML)
  • Markdown files with metadata
  • Code repositories

Output formats:

  • Primary: Obsidian markdown (YAML frontmatter, wikilinks, tags, callouts, mermaid)
  • Secondary: JSON-LD, RDF/OWL, Neo4j Cypher, GraphQL schemas

Modes

Fractal Mode

Strict hierarchical constraints for self-similar structures:

  • 2-3 children per non-leaf node
  • Homonymic inheritance (child labels contain parent stem)
  • Uniform relation types per parent
  • Topology score ≥4.0

Free Mode

Flexible generation optimized for semantic coherence:

  • Variable branching factor
  • Relaxed naming constraints
  • Focus on meaningful relationships

Installation

Quick Install (recommended):

cd ~/.claude/skills/hm-skills/schema
./install.sh

This will:

  • Install Python dependencies (jinja2, pyyaml)
  • Download spaCy language model (en_core_web_sm)
  • Create global schema-gen wrapper in ~/bin
  • Configure PATH in your shell rc file

Manual Setup:

pip3 install --user jinja2 pyyaml
python3 -m spacy download en_core_web_sm

Architecture

Four-layer pipeline with graceful degradation:

  1. Layer 1: Structural Extraction - AST parsing (markdown-oxide, tree-sitter, pandas)
  2. Layer 2: Semantic Analysis - NLP (spaCy, networkx)
  3. Layer 3: LLM Enrichment - Optional deep analysis (Claude API, MCP tools)
  4. Layer 4: Output Generation - Template-based formatting (Jinja2)

Usage

Recommended: Use the global wrapper schema-gen (automatically installed to ~/bin/schema-gen)

# Basic usage - text to Obsidian markdown
schema-gen --input "text content" --output schema.md

# Fractal mode with deep analysis
schema-gen --input data.json --mode fractal --deep

# Export to multiple formats
schema-gen --input code/ --format obsidian,jsonld,cypher

Alternative: Direct invocation from skill directory

cd /Users/mikhail/.claude/skills/hm-skills/schema
python3 -m scripts.schema_cli --input "text content" --output schema.md

Usage Examples

Input Formats

Text to Schema

# Simple text input
schema-gen --input "AI analyzes data" --output ai-schema.md

# From text file
schema-gen --input document.txt --output schema.md --mode fractal

JSON to Schema

# Structured data
schema-gen --input data.json --output schema.md

Markdown to Schema

# Extract hierarchy from markdown headings
schema-gen --input notes.md --output schema.md --verbose

Code to Schema

# Parse Python code structure (classes, functions, methods)
schema-gen --input mymodule.py --output code-schema.md --verbose

Output Formats

Single Format

# Obsidian markdown (default)
schema-gen --input data.json --output schema.md

Multiple Formats

# Export to all formats
schema-gen \
  --input document.txt \
  --format obsidian,jsonld,cypher,graphql \
  --output output/schema.md \
  --verbose

# Generates:
# - output/schema.md (Obsidian markdown)
# - output/schema.jsonld (JSON-LD linked data)
# - output/schema.cypher (Neo4j graph database)
# - output/schema.graphql (GraphQL schema)

Advanced Usage

Fractal Mode with Deep Analysis

schema-gen \
  --input complex.txt \
  --mode fractal \
  --deep \
  --verbose

Custom Output Directory

schema-gen \
  --input data.json \
  --output custom/path/schema.md \
  --format obsidian,cypher

Output Example

Generated Obsidian markdown includes:

---
created: 2025-01-05T12:00:00
tags: [knowledge, schema]
ontology_type: free
node_count: 10
edge_count: 15
topology_score: 2.50
---

# Schema Title

> [!info] Schema Overview
> Description of the schema

## Structure

graph TD root["Root"] --> child1["Child 1"] root --> child2["Child 2"] class root,child1,child2 internal-link


## Entities

### Root

**Properties:**
- `category`: example
- `weight`: 0.8

**Relationships:**
- parent of → [[Child 1]]
- parent of → [[Child 2]]

Configuration

Edit mode configuration files:

  • [[config/fractal-mode.yaml]] - Strict hierarchical constraints
  • [[config/free-mode.yaml]] - Flexible generation settings

Customize output templates:

  • [[config/templates/obsidian.md.j2]] - Obsidian markdown
  • [[config/templates/jsonld.json.j2]] - JSON-LD
  • [[config/templates/cypher.cypher.j2]] - Neo4j Cypher

Features

Property Inheritance

Child nodes automatically inherit properties from ancestors, following breadcrumb-plugin patterns.

Multi-Dimensional Navigation

Generate alternate navigation paths:

  • Temporal (creation order, lifecycle)
  • Conceptual (domain hierarchies, abstraction)
  • Spatial (containment, proximity)
  • Functional (purpose-based, process flows)

Implicit Relationship Inference

Automatically detect relationships based on:

  • Co-occurrence in context
  • Tag overlap (>50% shared)
  • Structural proximity
  • Semantic similarity

Error Handling

Graceful degradation ensures output even on failures:

  • Layer 1 fails → Plain text fallback
  • Layer 2 fails → Heuristic relationships
  • Layer 3 fails → Skip enrichment
  • Template fails → Raw JSON output

References

  • [[references/ast-parsing-guide|AST Parsing Guide]]
  • [[references/semantic-patterns|Semantic Pattern Reference]]
  • [[references/template-syntax|Template Variable Reference]]
  • [[references/mcp-integration|MCP Tool Integration]]

Examples

  • [[examples/text-to-schema|Text to Schema]]
  • [[examples/json-to-schema|JSON to Schema]]
  • [[examples/markdown-to-schema|Markdown to Schema]]
  • [[examples/code-to-schema|Code to Schema]]

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

OpenCode

26.57%
按下载量换算29

Claude Code

24.22%
按下载量换算26

windsurf

16.45%
按下载量换算18

Codex

11.59%
按下载量换算13

kiro-cli

7.23%
按下载量换算8

mcpjam

3.25%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add zpankz/mcp-skillset --skill "schema" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills