Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

pdf-forgePDF forge 搜索

Agent Skill

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

总安装

519

周安装

21

GitHub Stars

公开资料未说明

下载量

163
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rendis/pdf-forge --skill pdf-forge

简介

pdf-forge 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写操作。
  • 当前分类为研究检索,暂无更多功能说明。

SKILL.md

pdf-forge

Use this skill when an agent needs to operate pdf-forge through MCP instead of asking the user to perform actions in the UI.

This skill is intentionally split into:

  • this file → the operational entrypoint for agents
  • reference docs → the authoritative capability and contract references

Installation

npx skills add https://github.com/rendis/pdf-forge --skill pdf-forge

What This Skill Is For

Use this skill for tasks such as:

  • discovering and calling pdf-forge APIs through MCP
  • listing templates, versions, injectables, and render endpoints
  • reading and updating contentStructure safely
  • understanding what the editor supports today without reverse-engineering the frontend
  • distinguishing between:

- what the current UI exposes - what PortableDoc / contentStructure can represent - what the Typst renderer actually renders - what is safe for agent automation today

Operating Model for Agents

This is the rule that matters:

Do not assume that “TipTap supports it” means “pdf-forge supports it end-to-end.”

Always separate these layers:

  1. UI support — what the current body/header/footer editing surfaces expose
  2. PortableDoc support — what contentStructure can legally encode
  3. Typst support — what the backend converter renders into PDF
  4. Agent-safe support — what is documented as safe for MCP automation today

If those layers disagree, be conservative.

Quick Decision Rules

SituationDefault agent behavior
UI support = No and Agent-safe = Not documented as safeDo not introduce it in new content.
PortableDoc/schema = Yes and Typst = Yes, but Agent-safe = CautionPreserve existing usage if needed, but avoid inventing new usage casually.
UI / PortableDoc / Typst / Agent-safe all alignSafe default for routine MCP automation.

MCP Proxy

This project uses mcp-openapi-proxy as the default MCP integration.

  • Repository: https://github.com/rendis/mcp-openapi-proxy
  • Install: go install github.com/rendis/mcp-openapi-proxy/cmd/mcp-openapi-proxy@latest
  • Repo config: .mcp.json (Claude Code) + .codex/config.toml (Codex)
  • Canonical MCP spec: core/docs/openapi.yaml
  • Default server name: pdf-forge
  • Default tool prefix: pf

MCP Tool Contract

The proxy does not register one MCP tool per endpoint. It always exposes exactly 3 tools:

  • pf_list_endpoints
  • pf_describe_endpoint
  • pf_call_endpoint

Recommended workflow:

  1. pf_list_endpoints → discover candidate endpoints
  2. pf_describe_endpoint → inspect the exact contract for one toolName
  3. pf_call_endpoint → execute the request with path/query/headers/cookies/body

Common toolName examples:

  • pf_get_api_v1_content_templates
  • pf_get_api_v1_content_templates_templateId_all_versions
  • pf_get_api_v1_content_templates_templateId_versions_versionId
  • pf_put_api_v1_content_templates_templateId_versions_versionId
  • pf_post_api_v1_workspace_document_types_code_render
  • pf_post_api_v1_workspace_templates_versions_versionId_render

Multi-tenant Headers

pdf-forge is multi-tenant. MCP calls often need contextual headers.

Panel routes usually require:

  • X-Tenant-ID
  • X-Workspace-ID

Render routes require:

  • X-Tenant-Code
  • X-Workspace-Code
  • X-Environment (dev or prod)

Pass them:

  • per request in pf_call_endpoint.headers, or
  • globally with MCP_EXTRA_HEADERS

Dummy auth mode skips JWT validation, but tenant/workspace headers are still required where the route expects them.

Agent-Safe Editing Rules

When editing a template version through MCP:

  1. Fetch the current version first.
  2. Treat contentStructure as the canonical document contract.
  3. Preserve unknown fields and untouched subtrees.
  4. Do read → modify → write, never blind overwrite.
  5. Validate body, header, and footer separately.
  6. Only use features documented as Supported or Partially supported / use with caution.
  7. If a feature is only known to exist in backend/schema but is not documented as agent-safe, do not introduce it casually.
  8. Preserve existing style attrs unless the task explicitly changes them. In particular, do not rewrite textStyle.color values just because they are not in your preferred format.
  9. Inline injector placeholders can carry supported text marks/styles (for example bold, italic, strike, font family, font size, and color). Preserve those marks when editing injector nodes.
  10. POST /api/v1/workspace/templates/versions/{versionId}/render does not make DRAFT versions renderable. It only renders PUBLISHED versions, plus STAGING versions when X-Environment: dev.
  11. If you need MCP render validation for a version that is still DRAFT, stage it first, then render it in dev.
  12. Do not treat a successful draft save as proof of semantic correctness; render/publish validation is stronger than draft update validation.

Before Editing a Template Version

Minimum checklist:

  1. Read template + version details
  2. Inspect the current contentStructure
  3. Confirm whether the change affects:

- body content - header content - footer content - header/footer image/layout - variableIds - pageConfig

  1. Preserve document versioning and unknown metadata
  2. Update only the intended subtree/fields
  3. Save with the version update endpoint
  4. Render or preview to validate the result

Color Contract for Agents

When editing or reviewing contentStructure styles:

  • prefer #RRGGBB / #RGB when introducing a new color manually
  • preserve existing textStyle.color values if they already exist in live content
  • do not assume stored documents are hex-only
  • expect persisted content to contain CSS color strings such as rgb(...) or rgba(...), especially when rich-text styling came from the editor
  • if a change touches color-heavy content, render after saving instead of trusting the draft update alone

For the detailed boundary and document-contract guidance, read:

Recommended MCP Workflow

1) Discover and inspect endpoints

  • pf_list_endpoints → find template/version/render operations
  • pf_describe_endpoint → inspect one contract before calling it

2) Read the document version

Typical read flow:

  1. list templates
  2. get template or all versions
  3. get version detail
  4. inspect contentStructure

3) Modify contentStructure

  • preserve the existing envelope
  • update only the relevant body/header/footer/page config subtree
  • keep variableIds consistent with the content you introduce

4) Persist

  • call the version update endpoint with the updated contentStructure

5) Validate by rendering

Use either:

  • POST /api/v1/workspace/templates/versions/{versionId}/render
  • POST /api/v1/workspace/document-types/{code}/render

Important nuance:

  • render-by-version does not validate arbitrary saved drafts; it still enforces renderable statuses
  • in practice that means PUBLISHED always, and STAGING only with X-Environment: dev
  • if your edited version is still DRAFT, stage it first before claiming MCP render validation is available

Important Validation Boundary

Saving a draft version is a storage checkpoint, not a full semantic approval step.

  • draft update success mainly means the server accepted the JSON payload
  • stronger semantic confidence comes from render/publish-oriented validation

Agents should therefore save, then render or otherwise validate before claiming the document is correct.

Canonical References

Read these before making non-trivial document edits:

Also keep these existing references handy when relevant:

Issue Routing / Escalation

When a user reports a bug, asks for a missing behavior, or requests a new capability, do not route the issue by “bug vs feature”.

Route it by ownership of the change.

Suggest pdf-forge library repo when the change belongs to core reusable behavior

Typical library-owned areas:

  • editor base behavior
  • Typst rendering / layout
  • PortableDoc / contentStructure
  • public SDK or extension-point limitations
  • generic API behavior
  • docs / skill / MCP guidance
  • bugs reproducible in a vanilla pdf-forge setup

Suggest the implementation repo when the change belongs to custom project behavior

Typical implementation-owned areas:

  • domain-specific injectors
  • WorkspaceInjectableProvider
  • RequestMapper
  • custom middleware or auth wiring
  • external integrations
  • business rules
  • project-specific configuration or extension code

Mandatory routing flow

Before suggesting or creating an issue:

  1. verify whether the behavior already exists
  2. verify whether it is a real bug/gap vs expected custom extensibility
  3. classify ownership:

- core reusable - downstream custom - ambiguous

  1. suggest the target repo
  2. only offer issue creation when the destination is clear

Conservative defaults

  • Missing domain injector by default → implementation repo
  • Generic editor/render/API/PortableDoc bug by default → pdf-forge
  • If the issue only appears with custom project code, assume implementation repo until proven otherwise
  • If the downstream repo is not known, do not invent it

When the implementation repo is unknown, explain the probable owner and ask the user for the target repo/path before creating the issue.

Issue metadata to prepare

When offering issue creation, prepare at least:

  • target repo
  • issue type (bug, feature, docs, enhancement)
  • short title
  • observed behavior
  • expected behavior
  • why this belongs to that repo
  • affected layer (editor, render, PortableDoc, MCP/docs, custom injector/provider/mapper, etc.)
  • evidence (paths, endpoint/toolName, logs, screenshots when available)

Use issue-routing.md for detailed routing rules, examples, and ambiguous cases.

Capability Summary (Short Version)

Supported today for agent workflows

  • body text content with headings 1-3
  • bold / italic / strike
  • text color, font family, font size
  • line spacing presets
  • text alignment
  • bullet and ordered lists
  • blockquote and horizontal rule
  • body images
  • conditional blocks
  • editable tables
  • table injectors and list injectors
  • header/footer text + surface image layouts
  • inline injector placeholders with supported text marks/styles

Use with caution

  • page breaks
  • image behaviors that depend on wrapping/layout details
  • features supported by renderer/schema but not clearly exposed in the current toolbar/UI

Not documented as safe by default

  • marks/nodes that exist in backend rendering but are not clearly exposed and validated as part of the current editing UX
  • any new attrs/structures invented ad hoc by the agent

Portable Document Reminder

contentStructure is not “just editor HTML”. It is a PortableDoc envelope that includes:

  • document version
  • pageConfig
  • variableIds
  • body content
  • optional header
  • optional footer
  • exportInfo

That envelope is what the backend validates and renders.

Editor Surface Reminder

The body, header, and footer are not equivalent surfaces.

  • body supports richer structures such as conditionals and tables
  • header and footer are intentionally constrained surfaces with dedicated image/layout behavior
  • header renders on the first page; footer renders on the last page

Never assume a body-safe operation is automatically safe for header/footer surfaces.

Typst Reminder

The renderer supports more nodes/marks than the current toolbar obviously exposes. That does not automatically make them safe defaults for agents.

When in doubt:

  • prefer the documented subset
  • preserve existing structures
  • render to verify

Spec Generation

mcp-openapi-proxy requires OpenAPI 3.x. This repo still generates Swagger 2.0 for Swagger UI, and make swagger converts it into core/docs/openapi.yaml for MCP.

make swagger

If you are working with local, uncommitted API changes, regenerate the spec and temporarily point MCP_SPEC to ./core/docs/openapi.yaml. The committed default config intentionally uses the GitHub raw URL from main.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.44%
按下载量换算64

Claude

28.74%
按下载量换算47

Cursor

17.23%
按下载量换算28

Gemini CLI

8.98%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills