office-pdf-contracts

Validate quotation and contract workflows for VAT, discounts, and PDF output.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/createtree2017/createtree-office --skill office-pdf-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-pdf-contracts
Source: https://github.com/createtree2017/createtree-office/tree/main/.agents/skills/office-pdf-contracts
Command: npx skills add https://github.com/createtree2017/createtree-office --skill office-pdf-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

견적서와 계약서의 금액(부가세/할인), 계약 상태 전이, 거래처 활성 서비스 연결, 그리고 PDF 생성·다운로드가 어긋날 때 발생하는 재작업과 오류를 방지합니다.

Core Features & Use Cases

  • 견적 수락 ~ 계약 전환 흐름 검증: 견적서 수락, 계약 변환(전환), 활성화, 해지, 갱신 상태 전이를 함께 확인하고 유지합니다.
  • VAT/할인/금액 정책 일관성: 금액 단위·VAT 표기·계약기간 할인 정책을 코드 기준으로 점검해 화면/UI 변경에도 계산/상태/API 흐름이 깨지지 않게 합니다.
  • PDF 출력 기준 고정: A4 레이아웃, 여백, 파일명, 대상 DOM, 그리고 생성 방식(html2pdf.js vs 서버 Playwright)을 기준으로 출력 안정성을 확보합니다.
  • 마이페이지 가시성: 마이페이지에서 계약이 올바르게 표시되는지 확인합니다.

Quick Start

견적서 수락 이후 계약 전환, 계약 상태 전이, 그리고 PDF 다운로드까지 실제 코드 흐름을 기준으로 검증할 작업을 office-pdf-contracts 스킬로 안내해 달라고 요청하세요.

Frequently Asked Questions about office-pdf-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep VAT and discount calculations consistent across quotation and contract workflows?

VAT and discount calculations are kept consistent by validating monetary units, VAT notation, and contract period discount policies against the code base, ensuring calculation and API flows remain intact during UI changes.

How do I generate A4 PDF contracts from HTML without breaking the layout?

A4 PDF contract generation is stabilized by fixing DOM targeting, layout margins, and file naming while validating the generation method, using either html2pdf.js or server-side Playwright for output integrity.

What is the correct way to handle contract status transitions from quotation acceptance to renewal?

Contract status transitions from quotation acceptance to conversion, activation, cancellation, and renewal are verified together across route, page, hook, schema, and API flows to maintain state consistency.

Does html2pdf.js work with server-side Playwright for contract PDF generation?

html2pdf.js and server-side Playwright are both supported as PDF generation methods, with the Skill validating the chosen approach and running skills:sync and skills:check after updates to ensure output stability.

Why does my contract disappear from my-page after a status transition?

Contract visibility on my-page is maintained by verifying that route, page, hook, and schema flows correctly reflect contract status transitions, ensuring contracts display properly after activation or cancellation changes.