nocobase-app-plugin-template-print
Skill này làm gì
Skill này hướng dẫn triển khai in theo mẫu trong ứng dụng NocoBase 3, tạo tài liệu hoặc PDF từ một mẫu và dữ liệu nghiệp vụ. Skill dành cho lập trình viên cần tài liệu có thể in, điền sẵn dữ liệu bản ghi.
Khi nào nên dùng
- ✓Khi bạn muốn in một mẫu Word, Excel hoặc PowerPoint đã điền dữ liệu bản ghi.
- ✓Khi bạn cần tạo PDF từ một mẫu trong ứng dụng NocoBase.
- ✓Khi đầu ra tài liệu cần mã QR hoặc tệp đính kèm.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-template-print/skills/nocobase-app-plugin-template-print/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo mẫu Word cho đơn mua hàng, tự điền chi tiết từng đơn và xuất ra PDF không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI lên kế hoạch cho tính năng, dùng giao diện công khai của bộ dựng mẫu đã chọn, và xây dựng route cùng kiểm tra quyền trong ứng dụng. Sau đó nó kiểm tra đầu ra trong trình xem đã định.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Điều này có thêm nút in cho trang web thông thường không?
Không. Nó không dành cho việc in trình duyệt thông thường.
Gói có kèm bộ dựng mẫu không?
Không. Gói chỉ cung cấp hướng dẫn, còn ứng dụng tự xây dựng tính năng.
Những định dạng nào được hỗ trợ?
Các mẫu DOCX, XLSX và PPTX, như được mô tả trong skill.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10106
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
nocobase-app-development
25kGiúp agent của bạn xây dựng trang, tuyến, dữ liệu, quyền và kiểm thử cho một ứng dụng kinh doanh NocoBase 3 hoàn chỉnh.
shadcn
25kGiúp agent của bạn tìm, thêm, sửa và tạo kiểu cho các thành phần shadcn/ui trong dự án web, dùng tài liệu chính thức và registry của chúng.
nocobase-app-plugin-development
25kGiúp agent của bạn tạo và duy trì plugin NocoBase 3 trong một ứng dụng có sẵn, gồm phần server, client, cơ sở dữ liệu và đăng ký.
nocobase-app-upgrade
25kGiúp agent của bạn nâng cấp ứng dụng NocoBase lên bản mẫu mới hơn, mang các thay đổi của mẫu vào mà vẫn giữ công việc riêng của bạn.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.