nocobase-app-plugin-template-print
できること
NocoBase 3アプリでテンプレートによる印刷を実装する作業を案内します。テンプレートと業務データから書類またはPDFを作成します。レコードのデータを埋め込んだ印刷用の書類が必要な開発者向けです。
使う場面
- ✓レコードのデータを埋め込んだWord、Excel、PowerPointのテンプレートを印刷したいとき。
- ✓NocoBaseアプリで、テンプレートからPDFを作る必要があるとき。
- ✓書類の出力にQRコードや添付ファイルが必要なとき。
スキルのリンク
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-template-print/skills/nocobase-app-plugin-template-print/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“発注書のWordテンプレートを作り、注文ごとの詳細を埋め込んでPDFに書き出せるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは機能を計画し、選んだテンプレートの描画ツールの公開インターフェースを使い、アプリでルートと権限の確認を組み立てます。その後、意図した表示ツールで出力を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Goal
Implement or debug an App-owned NocoBase 3 template-printing workflow that produces an authorized document or PDF from a DOCX, XLSX, or PPTX template and business data, with the selected feature branches verified in the intended viewer and deployment.
Scope
This package provides implementation guidance only. It exports no rendering service, route, database collection, or Client/Server plugin. The App or business plugin owns the feature you implement. There is no pre-existing template-print API to call after installing this package.
Non-Goals
- Do not implement ordinary browser page printing or silent physical-printer access.
- Do not assume this package installs a renderer, creates a route or collection, or supplies Client/Server runtime registration.
- Use only the installed App's v3 contracts and the selected renderer's documented public APIs.
- Do not add an undocumented renderer adapter or claim format support that has not been verified.
Input Contract
| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
action |
yes | implement for a new feature; debug when a concrete failure is reported |
enum: implement, debug |
"Should I implement the workflow or diagnose an existing one?" |
format |
yes | use the supplied template extension; otherwise start with docx |
enum: docx, xlsx, pptx; must match the actual template |
"Which template format must be supported?" |
output |
no | same-format document download; add pdf only when requested |
enum: document, pdf, printable-pdf |
"Should the result be the source format, a PDF download, or a printable PDF?" |
data-scope |
yes when business data is rendered | one record for a record request; otherwise ask before selecting a broader scope | enum: record, selected, current-page, all-filtered; explicit maximum |
"Which records may be printed?" |
template-ownership |
no | fixed App-owned asset unless managed uploads are requested | enum: fixed-asset, managed-upload; separate manage/use permissions |
"Is the template fixed by the App or managed by users?" |
locale-timezone |
no | the App's current locale and timezone | validate against the App contract before querying or formatting | "Which locale and timezone should labels and dates use?" |
The supplied template, App instructions, installed package versions, and existing business code are authoritative for details not listed here. If the user says "you decide", use a fixed DOCX asset, one representative record with its required child data, same-format document output, and one authorized download. Do not add XLSX, PPTX, PDF conversion, or managed template uploads in the same first slice unless requested.
Mandatory Clarification Gate
Resolve the target App, actual template format, output mode, data scope, template ownership, authorization boundary, and converter prerequisites before adding or changing an endpoint, data query, schema, dependency, or file-processing path. If a required input is missing or ambiguous, stop and ask; do not mutate code or storage before the answer. Max clarification rounds: 2. Max questions per round: 3.
Inspect the target App's instructions, installed versions, server composition, business data access, file storage, and action UI. Use its available nocobase-app-development Skill for v3 composition; use the installed auth
よくある質問
通常のウェブページ向けの印刷ボタンを追加しますか?
いいえ。通常のブラウザでの印刷のためのものではありません。
パッケージに描画ツールは含まれていますか?
いいえ。このパッケージは案内だけを提供し、機能はアプリが作ります。
どの形式に対応していますか?
スキルに記載されたDOCX、XLSX、PPTXのテンプレートに対応します。
詳細
作者による元の説明
Use when implementing or debugging NocoBase 3 template printing with DOCX, XLSX, or PPTX templates and business data, including record/list output, attachments, QR codes, or PDF conversion; ordinary browser page printing is outside this workflow.
repo: nocobase/nocobase
人気
- GitHubのスター
- 25k
- ランキング
- #10106
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
nocobase-app-development
25kエージェントが、NocoBase 3の完全なビジネスアプリケーションのために、ページ、ルーティング、データ、権限、テストを作れるよう支援します。
shadcn
25kエージェントが、公式のドキュメントとレジストリを使い、Webプロジェクトの shadcn/uiコンポーネントを見つけ、追加し、修正し、スタイルを整えられるよう支援します。
nocobase-app-plugin-development
25kエージェントが、既存のNocoBase 3アプリの中で、サーバー、クライアント、データベース、登録の部分を含むプラグインを作成し、保守できるよう支援します。
nocobase-app-upgrade
25kエージェントが、NocoBaseのアプリを新しいテンプレートのリリースにアップグレードし、テンプレートの変更を取り込みつつ、あなた自身の作業を保てるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。