JSON 结构与类型推断
jqschema
通过基于 jq 的模式发现(schema discovery)来推断 JSON 的结构和类型。
- License 许可
- MIT
- 所属仓库
- github/gh-aw
- 最近更新
- 2026-11-15
- Stars
- ★ 5.6k
- Forks
- 626
01 前言 Front Matter
- name
- jqschema
- tools
- { "bash": [ "jq *", "./.github/skills/jqschema/jqschema.sh", "git" ] }
- description
- Infer JSON structure and types with jq-based schema discovery.
02 资源文件 2
- 脚本jqschema.sh271 B
- 参考文档ssl.json3.7 KB
03 SKILL.md 正文
jqschema - JSON Schema Discovery
Use ./.github/skills/jqschema/jqschema.sh to generate a compact structural schema (keys + types) from JSON input. Pipe any JSON source through it to discover structure before querying full data.
# Analyze a file or command output
cat data.json | ./.github/skills/jqschema/jqschema.sh
gh api search/repositories?q=language:go | ./.github/skills/jqschema/jqschema.sh
The script replaces object values with type names ("string", "number", "boolean", "null"), reduces arrays to first-element structure, and outputs compact JSON. Use perPage: 1 to fetch minimal data when exploring unknown API shapes.
Example: {"total_count":1000,"items":[{"login":"user1","id":123}]} → {"total_count":"number","items":[{"login":"string","id":"number"}]}
04 同仓库更多 Skills
cracktro
Edit, preview, and verify the standalone interactive talk deck in docs/public/cracktro (slides, SVG diagrams, transitions, WebAudio sound).
create-connector
Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.
GitHub 智能体工作流
GitHub Agentic Workflows
GitHub Agentic Workflows(`gh-aw`)是一个 GitHub CLI 扩展,用于以 Markdown 编写 Agentic Workflows(智能体工作流)并将其编译为 GitHub Actions。
Windows 跨平台兼容处理
windows-compatibility
跨平台路径处理和命令模式。
Squad SDK 语义化版本规范
versioning-policy
Squad SDK 和 CLI 的 Semver(语义化版本)版本规则——防止预发布版本事故。
智能体分层记忆管理
tiered-memory
三层智能体记忆模型(热/冷/维基),用于减少每次生成(spawn)时的上下文。