Communitygithub.com

ComeOnOliver/skillshub

阅读或审阅注重布局的 DOCX 内容(表格、图表、分页)。

skillshub 是什么?

该技能专为需要处理复杂布局的 DOCX 文件而设计,支持阅读、审阅、创建和编辑。它特别适用于那些表格、图表和分页至关重要的场景,例如合同、报告或技术文档。技能利用 LibreOffice 将 DOCX 转换为 PDF,再通过 pdftoppm 转为 PNG 以实现精确的可视化审查,确保布局准确无误。同时,借助 python-docx 库进行结构化的编辑和创建,支持标题、样式、表格和列表等元素。技能要求在每次有意义修改后重新渲染并检查页面,并提供回退方案(仅文本提取)。它支持 macOS 和 Ubuntu/Debian 系统,依赖 uv 或 pip 管理 Python 包,所有中间文件会暂存于 tmp/docs/ 目录,并在最终交付后清理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/openai/skills/doc

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

DOCX 技能

使用时机

  • 阅读或审阅注重布局的 DOCX 内容(表格、图表、分页)。
  • 创建或编辑具有专业格式的 DOCX 文件。
  • 在交付前验证视觉布局。

工作流程

  1. 优先进行视觉审查(布局、表格、图表)。
    • 如果 soffice 和 pdftoppm 可用,将 DOCX 转换为 PDF,再转换为 PNG。
    • 或者使用 scripts/render_docx.py(需要 pdf2image 和 Poppler)。
    • 如果缺少这些工具,安装它们或请用户在本地查看渲染的页面。
  2. 使用 python-docx 进行编辑和结构化创建(标题、样式、表格、列表)。
  3. 每次有意义的修改后,重新渲染并检查页面。
  4. 如果无法进行视觉审查,则回退使用 python-docx 提取文本,并指出布局风险。
  5. 保持中间输出有序,并在最终批准后清理。

临时文件和输出约定

  • 使用 tmp/docs/ 存放中间文件;处理完毕后删除。
  • 在此仓库中工作时,将最终产物写入 output/doc/ 目录。
  • 保持文件名稳定且具有描述性。

依赖项(如缺失请安装)

推荐使用 uv 管理依赖。

Python 包:

uv pip install python-docx pdf2image

如果 uv 不可用:

python3 -m pip install python-docx pdf2image

系统工具(用于渲染):

# macOS (Homebrew)
brew install libreoffice poppler

# Ubuntu/Debian
sudo apt-get install -y libreoffice poppler-utils

如果在此环境中无法安装,请告知用户缺少哪个依赖项以及如何在本地安装。

环境

无需设置环境变量。

渲染命令

DOCX -> PDF:

soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX

PDF -> PNG:

pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME

集成辅助脚本:

python3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages

质量要求

  • 交付客户就绪的文档:一致的排版、间距、页边距和清晰的层级结构。
  • 避免格式缺陷:裁剪/重叠文本、表格断裂、字符不可读或使用默认模板样式。
  • 图表、表格和视觉效果在渲染页面中必须清晰可读且对齐正确。
  • 仅使用 ASCII 连字符。避免使用 U+2011(不间断连字符)和其他 Unicode 破折号。
  • 引文和参考文献必须人类可读;切勿留下工具令牌或占位符字符串。

最终检查

  • 在最终交付前,以 100% 缩放比例重新渲染并检查每一页。
  • 修复任何间距、对齐或分页问题,并重复渲染循环。
  • 确认没有残留文件(临时文件、重复渲染),除非用户要求保留。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能