Community寫作與編輯github.com

2807334132-lab/codex-skills

Personal Codex skills sync

相容平台~Claude CodeCodex CLI~Cursor
npx skills add 2807334132-lab/codex-skills

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

說明文件

DWG To PDF

Overview

Use this skill to convert CAD drawings into PDF files without uploading the drawing to a web service. Prefer the bundled script because DWG conversion has several brittle details on Windows: ODA command-line argument order, CAD library dependencies, and non-ASCII output paths.

Workflow

  1. Confirm the source file exists and identify whether it is .dwg or .dxf.
  2. Choose an output path. If the user did not specify one, save <source-stem>.pdf beside the source file.
  3. Run scripts/convert_dwg_to_pdf.py with absolute paths:
python scripts/convert_dwg_to_pdf.py --input "D:\path\plan.dwg" --output "D:\path\plan.pdf"
  1. Verify the result in the script output:
    • pages must be at least 1.
    • bytes must be greater than 0.
    • preview should point to a rendered PNG of page 1.
  2. Open the PDF for the user when they asked to "open" it or when opening is clearly useful.

Tooling

The script supports:

  • .dwg: convert to DXF with ODA File Converter, then render to PDF.
  • .dxf: render directly to PDF.

If ODA File Converter is missing, install it with Windows Package Manager when allowed:

winget install --id ODA.ODAFileConverter -e --accept-source-agreements --accept-package-agreements --disable-interactivity

The script requires Python packages ezdxf, matplotlib, and pymupdf. If they are missing and package installation is allowed, install them:

python -m pip install ezdxf matplotlib pymupdf

Quality Checks

Always check that the generated PDF renders. A non-empty PDF can still be wrong if the drawing was not visible, the page was badly cropped, or text/fonts failed.

Use the generated preview PNG for a quick visual check. If it is blank or heavily cropped:

  • rerun with a larger paper size, for example --paper a2-landscape;
  • try direct ODA viewer/manual print if the drawing uses layouts or features that ezdxf cannot render well;
  • tell the user if the output may not preserve every CAD feature exactly.

Notes

  • Do not modify the original DWG. Work from a copied intermediate folder when converting.
  • Avoid web converters unless the user explicitly approves uploading the drawing.
  • When saving to Chinese or other non-ASCII paths, let the script write to an ASCII temporary PDF first and copy it to the requested output path.
  • Use absolute file paths in final responses.

相關技能

smouj/super-optimizer-skill

OpenClaw skill: super-optimizer

community

andrade-fs/bitsentry-ai

It provides an intent-aware orchestration system that routes user requests to appropriate development workflows (SDD, SDR, Support), manages AI agent integrations (OpenCode), and installs capability packs for persistent memory, documentation lookup, and skill-based task execution.

community

Docsbook-io/docs

Documentation platform for github. Docs from GitHub. For humans and AI agents. Docsbook turns any GitHub repo into a documentation site AND an API for AI agents in 5 seconds. Built-in MCP server, llms.txt, AI chat, analytics, and translation into 15 languages.

community

Waiel5/website-replicator

Claude Code skill: pixel-faithful Astro 6 + Tailwind v4 replication of any production website. 11 phases, 28 documented pitfalls, parallel-agent dispatch.

community

kokuren333/Evidence-Based-Everything

Evidence Based Everything tool for research and writing Obsidian Vault based on Evidence using Codex Skills.

community

zczjyq/de-AIGC-skill

降低中文学术写作(本/专科毕业论文)AIGC检测率的专项 skill。 基于真实论文改写实验(AIGC率从 >50% 降至 11%)归纳的规律,并参考 Wikipedia「Signs of AI writing」项目的系统性模式分类。 检测并修复中文AI写作的典型模式;含中英术语与缩写规范、会话记忆库(避免 重复释义、滚动段落摘要防前后不一致)、LaTeX 源文件保护规则。支持:降低AI率、人工润色、降低AIGC、 humanize、去AI味、学术写作润色、论文降重、AIGC检测、AI痕迹消除、学术文本 人工化处理、AIGC检测报告。

community