Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

kidockidoc 搜索

Agent Skill

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

总安装

685

周安装

28

GitHub Stars

251

下载量

220
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aklofas/kicad-happy --skill kidoc

简介

kidoc 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从知识库中提取内容的场景。
  • 通过 npx skills add 命令安装,需确认权限范围和联网行为。
  • 建议结合原始 README 核验具体用法,注意维护状态和文件读写限制。
  • 使用前请评估是否会触发命令执行或外部依赖调用。

SKILL.md

kidoc — Engineering Documentation Skill

Generate professional engineering documentation from KiCad project files.

Quick Start

One command generates the full scaffold — analyses, diagrams, renders, and markdown are all produced automatically:

python3 skills/kidoc/scripts/kidoc_scaffold.py \
  --project-dir /path/to/kicad/project \
  --type hdd \
  --output reports/HDD.md

This auto-detects .kicad_sch and .kicad_pcb files, runs schematic/PCB/EMC/thermal analyses, generates block diagrams and schematic SVG renders, and produces a structured markdown scaffold with pre-filled data tables and narrative placeholders.

To produce a PDF:

python3 skills/kidoc/scripts/kidoc_generate.py \
  --project-dir /path/to/kicad/project \
  --doc reports/HDD.md \
  --format pdf

Creates reports/.venv/ automatically on first run (PDF/DOCX/ODT only — HTML is zero-dep).

Workflow

  1. Generate scaffoldkidoc_scaffold.py auto-runs all available analyses, renders schematics, generates diagrams, and writes the markdown scaffold.
  2. Fill narratives — The agent reads the scaffold and writes engineering prose for each <!-- NARRATIVE: section_name --> placeholder. The engineer reviews and edits.
  3. Regenerate — On re-run, data sections between <!-- GENERATED: section_id --> markers update from fresh analysis; user-written narrative content is preserved.
  4. Render outputkidoc_generate.py produces PDF, HTML, DOCX, or ODT.

Document Types

TypeNameKey Sections
hddHardware Design DescriptionSystem overview, power, signals, analog, thermal, EMC, PCB, mechanical, BOM, test, compliance
ce_technical_fileCE Technical FileProduct ID, essential requirements, harmonized standards, risk assessment, Declaration of Conformity
design_reviewDesign Review PackageReview summary (cross-analyzer scores), findings, action items
icdInterface Control DocumentInterface list, per-connector pinout details, electrical characteristics
manufacturingManufacturing Transfer PackageAssembly overview, PCB fab notes, assembly instructions, test procedures
schematic_reviewSchematic Review ReportSystem overview, power, signals, analog, BOM, schematic appendix
power_analysisPower Analysis ReportPower design, thermal, EMC, BOM
emc_reportEMC Pre-Compliance ReportEMC analysis, compliance, schematic appendix

Custom Reports

Use --spec to generate reports with arbitrary section ordering:

python3 skills/kidoc/scripts/kidoc_scaffold.py \
  --project-dir . --spec my-report.json --output reports/custom.md

Spec format (JSON):

{
  "type": "custom",
  "title": "USB Interface Analysis",
  "sections": [
    {"id": "front_matter", "type": "front_matter"},
    {"id": "signal_interfaces", "type": "signal_interfaces"},
    {"id": "bom", "type": "bom_summary"}
  ]
}

Each section's type must match a known section type (same names used in the document types table above). The id field is a unique key for that section instance.

To see the full default spec for any built-in type:

python3 skills/kidoc/scripts/kidoc_spec.py --expand hdd
python3 skills/kidoc/scripts/kidoc_spec.py --list

The --spec flag also works with kidoc_generate.py (uses the spec title as fallback project name).

Schematic and PCB Rendering

Rendering is integrated into the figure generation engine. The orchestrator and scaffold automatically render schematics and PCB views as part of document generation:

# Generate all figures (diagrams + schematic/PCB renders) from analysis JSON
python3 skills/kidoc/scripts/kidoc_diagrams.py --analysis schematic.json --output reports/figures/

# Full orchestration with spec, analysis, and project files
python3 skills/kidoc/scripts/kidoc_orchestrator.py --analysis schematic.json \
    --project-dir . --output reports/figures/

The figure generators support: full-sheet rendering (root + all sub-sheets), subsystem cropping (focus_refs in spec sections), net highlighting, pin-level net annotation, and all PCB layer presets. These options are configured in the document spec or passed through the analysis dict.

Rendering features available through the generator framework:

  • Crop: Focus on a subsystem bounding box around specific component refs
  • Focus/dim: Show focused components at full opacity, dim the rest to 15%
  • Highlight nets: Color-trace specific nets via BFS
  • Pin nets: Annotate pin-level net names at pin tips

For direct programmatic access, use figures.renderers:

from figures.renderers import render_schematic, render_pcb
render_schematic('design.kicad_sch', 'output/', crop_refs=['R1', 'R2'], highlight_nets=['VCC'])
render_pcb('board.kicad_pcb', 'output/', preset_name='assembly-front')

Layer presets:

PresetShows
assembly-frontFront silk, fab, pads, outline
assembly-backBack silk, fab, pads, outline (mirrored)
routing-frontFront copper, pads, vias, outline
routing-backBack copper, pads, vias, outline
routing-allAll copper layers, pads, vias, zones
powerPower planes, vias, zone outlines

Additional options: --highlight-nets, --crop-refs, --crop x,y,w,h, --mirror, --overlay annotations.json (callout boxes with leader lines).

Block Diagrams

python3 skills/kidoc/scripts/kidoc_diagrams.py --analysis schematic.json --all --output diagrams/
python3 skills/kidoc/scripts/kidoc_diagrams.py --analysis schematic.json --power-tree --output diagrams/
python3 skills/kidoc/scripts/kidoc_diagrams.py --analysis schematic.json --bus-topology --output diagrams/
python3 skills/kidoc/scripts/kidoc_diagrams.py --analysis schematic.json --architecture --output diagrams/

Generated from schematic analysis JSON. Power trees show regulator topology with inductor values, capacitor summaries, and output voltages.

Output Formats

FormatSVG HandlingDependencies
MarkdownImage referencesZero-dep
HTMLInlined as vectorZero-dep
PDFVector via svglib, custom converter fallback, raster fallbackVenv (reports/.venv/)
DOCXRasterized to 300 DPI PNGVenv
ODTRasterized to 300 DPI PNGVenv

PDF output includes a styled cover page, table of contents, formatted tables with alternating rows, and vector SVG diagrams.

Configuration

Report settings live in .kicad-happy.json under the "reports" key. Config files cascade: ~/.kicad-happy.json (user-level defaults, e.g. company branding) merges with project-level config.

{
  "project": {
    "name": "Widget Board",
    "number": "HW-2024-042",
    "revision": "1.2",
    "company": "Acme Electronics",
    "author": "Jane Smith",
    "market": "eu"
  },
  "reports": {
    "classification": "Company Confidential",
    "documents": [
      {"type": "hdd", "output": "HDD-{project}-{rev}", "formats": ["pdf", "docx"]}
    ],
    "branding": {
      "logo": "templates/logo.png",
      "header_left": "{company}",
      "header_right": "{number} Rev {rev}"
    }
  }
}

Writing Narratives

After generating a scaffold, fill the narrative placeholder sections with engineering prose.

Workflow

  1. Run the context builder to get focused data for each section: python3 skills/kidoc/scripts/kidoc_narrative.py \ --analysis analysis/schematic.json \ --section power_design Or build contexts for all narrative sections at once: python3 skills/kidoc/scripts/kidoc_narrative.py \ --analysis analysis/schematic.json \ --report reports/HDD.md
  2. For each section, read the context and write prose that:

- Explains why, not just what — engineering rationale, tradeoffs - References specific component values and part numbers - Uses quantitative language ("2.3ms hold-up time" not "adequate capacitance") - Flags deviations from datasheet recommendations - References SPICE validation results when available

  1. Replace the italic placeholder *[...]* in the markdown with real prose.
  2. On regeneration, data tables update automatically. Review narratives for consistency with any changed data.

Style Guide

Write as a senior EE explaining to a peer:

  • Lead with the key finding or decision
  • Support with specific numbers from the analysis
  • Note any risks or deviations
  • Keep paragraphs to 3-5 sentences
  • Don't repeat data that's already in tables

Requirements

  • Python 3.9+ with python3-venv (for PDF/DOCX/ODT generation)
  • KiCad schematic file (.kicad_sch, KiCad 6+) — for SVG rendering
  • Optional: Analysis JSONs are auto-generated from .kicad_sch/.kicad_pcb; pre-generated JSONs in analysis/ (or the path configured in .kicad-happy.json) are used if present. Generated figures (diagrams, schematic SVGs) are placed in reports/figures/ for git tracking

Limitations

  • Schematic and PCB renderers support KiCad 6+ formats only (.kicad_sch, .kicad_pcb)
  • Narrative sections require the agent or manual authoring — the scaffold provides structure and data, not prose
  • SPICE simulation results require manual simulation setup (not auto-run by scaffold)
  • PDF vector SVG embedding uses svglib when available; falls back to raster if svglib cannot parse a particular SVG

Related Skills

SkillRelationship
kicadProduces schematic/PCB/thermal analysis JSON consumed by scaffolds
emcProduces EMC analysis JSON for EMC sections
spiceSPICE simulation results appear in analog design sections
bomBOM data appears in BOM summary sections

Run the kicad skill's analyzers first, then emc and spice if available. The scaffold auto-runs kicad and emc analyses when source files are present, so manual pre-analysis is only needed for SPICE.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.78%
按下载量换算81

Claude

29.92%
按下载量换算66

Cursor

20.82%
按下载量换算46

Gemini CLI

10.22%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills