Skip to content
Projects

Imbad0202/tw-formal-writing

View on GitHub

About

台灣正式文件撰寫 AI Skill:公文、存證信函、陳情書、合約 — 匯入 ChatGPT / Claude / Gemini 即可使用

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+2
in 15 days
+8
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

English | 中文

Taiwan Official Document Writing AI Skill

Version License: MIT Sponsor

Why does formal document writing matter?

In Taiwan, official documents follow strict rules governed by the Official Document Format Act and the Document Processing Handbook. Getting them wrong has real consequences.

For government employees:

  • New civil servants receive minimal training — they learn by getting documents rejected and rewritten
  • Using the wrong honorific (鈞 vs 貴), citation verb (奉 vs 據), or closing phrase can be seen as disrespectful to superiors
  • Choosing the wrong processing method (先簽後稿 vs 簽稿併陳) means the entire workflow restarts
  • Abolished phrases still slip in, and supervisors send them back

For regular citizens and foreigners:

  • You want to petition the government, apply for a permit, or file an appeal — but have no idea how to format it
  • You need to send a certified letter (存證信函) to your landlord but aren't sure about the legal phrasing
  • An administrative appeal (訴願書) has a strict 30-day legal deadline — if the format is rejected, you may miss it

What this Skill solves:

  • Import it into your AI tool (ChatGPT, Claude, Gemini), describe your situation in plain language, and get a properly formatted document that follows all regulations
  • Correct terminology, format, and processing method are selected automatically
  • Built-in quality checks catch common mistakes before you submit
  • Already written a document? Paste it in and the AI will review and correct it

Coverage

Category Document Types
Government Official Documents Internal Memo (簽), Official Letter (函), Simple Letter (書函), Decree (令), Report to President (呈), Presidential Correspondence (咨), Public Announcement (公告), Courtesy Letter (箋函), Internal Note (便簽)
Other Government Documents Meeting Minutes (會議紀錄), Meeting Notice (開會通知單), Press Release (新聞稿), Policy Report (施政報告), Appointment Letter (聘函), Certificate of Award (獎狀)
Legal Documents Certified Letter (存證信函), Contract (合約書), Lawyer's Letter (律師函), MOU (備忘錄), Declaration (聲明書), Affidavit (切結書), Power of Attorney (委託書)
Citizen-to-Government Petition (陳情書), Application (申請書), Administrative Appeal (訴願書), Objection (異議書)

What's New (v1.5.2)

v1.5.2: checks the guidance item by item against the Document Processing Handbook, the Executive Yuan's two interpretation compilations, and the National Academy of Civil Service textbook 公文撰作解析 (December 2025 edition), and corrects content that misread or misquoted its source or had no source at all, such as "an upward letter must not have a third section", "write only the lowest-level unit in 簽於何處", and "no English in a Chinese letter". Several ruling dates and an appendix number are also corrected. Conventions found only in the textbook and not required by the Handbook (such as the direction of 奉/准/據, not naming the third section of an upward letter 辦法, and leaving the closing request phrase out of a public notice) are now flagged as warnings instead of errors, and a warning now means the model points out the issue and its source and lets the user decide; where the rulings and the textbook disagree, both are shown. Approval, rejection, and request phrases grouped by recipient, and the term 抄發, are added from the textbook. See the CHANGELOG for what each version receives. None of this has been tested against models on any platform.

v1.5.1: reviews and adjusts the guidance wording against how current Claude models follow instructions literally. Step one of the guidance for government official documents now tells the model to infer what it can from the request and to ask only when a detail cannot be inferred and would change the document; a line of emphasis was removed from SKILL.md, and three content errors were fixed. The changes to the official-document guidance also reach the complete single file STANDALONE.md and the Codex and Gemini entry files; see the CHANGELOG for what each version receives. None of this has been tested against models on any platform.

v1.5.0: adds 12 case scenarios: reminders, extensions, requests for missing documents, application denials, opportunities to state an opinion, petition responses and transfers, corrections, internal consultation, site inspections, meeting follow-up, personal correspondence on official business, and official telephone records. Each covers required context, document selection, and drafting decisions. The single-file edition includes them in Appendix 6; multi-file skills read relevant scenarios as needed.

Also fixes inconsistent instructions for drafting after approval, meeting-record and notice fields, overgeneralized remedies guidance, and an example that incorrectly rejected the citation phrase 依據. See the coverage audit and remaining gaps, 20 behavioral evaluation cases, and worked examples. Specialized rulemaking, joint issuance, procurement, and information-access workflows still need dedicated guidance.

v1.4.1: fixes a few docs and script rough edges from v1.4.0, including the README update instruction, a dangling cross-reference to a nonexistent file in the single-file build, and a macOS temp file that could make the local consistency check misfire. No guidance content changed; see the CHANGELOG.

v1.4.0: this repo is now also a Claude Code plugin marketplace, installable directly via /plugin marketplace add (see the Claude Code section below) in both the CLI and the desktop app. This release also fixes the guidance files being unreachable in plugin mode, and removes every symlink from the repo (they break on Windows clones).

v1.3.0: a batch reinforcement of the guidance itself, with line-by-line first-party verification against the full text of the Executive Yuan Document Processing Manual (2023 edition) and its two official interpretation compilations, fixing three incorrect existing citations and adding rules on the 惠 particle, numbers/dates/times/amounts, letter-field conventions, the complete Legal Uniform Character Table, and more. See the CHANGELOG.

Three Versions

File Size Use Case
LITE.md Concise summary ChatGPT GPTs Instructions (size-limited fields)
STANDALONE.md Complete single file File upload (6 appendices and quality checks)
SKILL.md + references/ Multi-file Tools that support multi-file skills (Claude Code, etc.)
skill.zip (Releases asset) Packaged Tools that accept a skill bundle upload (claude.ai / cowork)

Cross-vendor entries: AGENTS.md / GEMINI.md at the repo root (each carrying the full single-file STANDALONE.md content) are read directly by Codex / Gemini CLIs; plugin.json and marketplace.json under .claude-plugin/ make this repo both a Claude Code plugin and a plugin marketplace, installable via /plugin marketplace add. One content source, multiple entries.

For contributors: references/ is the single source of truth for the guidance. STANDALONE.md, skills/tw-formal-writing/, and AGENTS.md / GEMINI.md are all generated by scripts/build.py—do not edit them by hand; change the guidance under references/ and re-run python3 scripts/build.py. LITE.md is a hand-maintained lossy summary, but scripts/check_consistency.py verifies it does not drop key rule anchors. The released skill.zip is built by python3 scripts/package.py in pure Python (SKILL.md + references/ + examples/ + LICENSE, under a top-level tw-formal-writing/ folder); --check validates the manifest without writing, and --release builds the zip and creates a GitHub Release. CI gates all of these (including manifest completeness).

Setup Instructions

ChatGPT GPTs

Method A (Recommended): Upload the full version

  1. Go to ChatGPT → My GPTs → Create a GPT
  2. In Configure → Knowledge, upload STANDALONE.md
  3. Paste this into the Instructions field:
    You are a Taiwan formal document writing expert. Follow the rules in
    STANDALONE.md from Knowledge to help users write official documents and
    formal correspondence. First identify the document category, then write
    according to the corresponding rules. Run a quality check after generating.
    

Method B: Paste the lite version directly

  1. Go to My GPTs → Create a GPT
  2. Paste the entire contents of LITE.md into the Instructions field

ChatGPT Projects

  1. Go to ChatGPT → Projects → Create or select a Project
  2. Upload STANDALONE.md as a Project File
  3. Start chatting

Claude (claude.ai)

  1. Go to Claude → Projects → Create a new Project
  2. Upload STANDALONE.md to Project Knowledge
  3. Start chatting within that Project

Claude Code (including the desktop app)

Method A (recommended): install the plugin from the marketplace

This repo is itself a Claude Code plugin marketplace. In Claude Code (CLI or desktop app), run:

/plugin marketplace add Imbad0202/tw-formal-writing
/plugin install tw-formal-writing@tw-formal-writing

Use /plugin afterwards to enable or disable it. To update to a newer version, run claude plugin update tw-formal-writing in your terminal, then restart Claude Code to apply.

Method B: clone manually as a skill

# Global install (available in all projects)
mkdir -p ~/.claude/skills
git clone https://github.com/Imbad0202/tw-formal-writing.git ~/.claude/skills/tw-formal-writing

# Project-level install
mkdir -p .claude/skills
git clone https://github.com/Imbad0202/tw-formal-writing.git .claude/skills/tw-formal-writing

claude.ai / cowork

Download tw-formal-writing-skill-vX.Y.Z.zip from Releases and upload it in claude.ai or cowork.

Codex / Gemini CLIs

git clone https://github.com/Imbad0202/tw-formal-writing.git

After cloning, it works in your working directory: AGENTS.md (Codex, etc.) and GEMINI.md (Gemini CLI) at the repo root both carry the full single-file STANDALONE.md content, which the agent reads automatically.

By default Codex auto-loads at most 32 KiB of AGENTS.md. The full single file is over 100 KiB, so only the first part of the official-document guidance is loaded (up to around the honorifics section); the request phrases, the quality checklist, and the other document categories are not loaded automatically. To have Codex load the full guidance, add this line near the top of ~/.codex/config.toml, before any [section] header (placed after a header, it belongs to that section and has no effect), or pass -c project_doc_max_bytes=262144 when you run Codex:

project_doc_max_bytes = 262144

Gemini Gems

  1. Go to Gemini → Gems → Create a new Gem
  2. Use the full edition where the current interface has enough capacity. If the instructions field is too small, use the summary and attach STANDALONE.md as reference material where attachments are supported. The full edition grows with updates; fitting every platform's instructions field is not guaranteed.

Important Notice

Per the Executive Yuan Guidelines on Generative AI Use by Government Agencies, classified documents must be written by the responsible officer and may not be produced using generative AI. Do not input classified information, non-public restricted information, or unnecessary personal data into this tool. For citizen-to-government documents, provide only the minimum identifying and contact details required for that procedure; avoid national ID numbers, ID-card scans, or similar high-sensitivity data unless a law, agency form, or workflow explicitly requires them.

This skill offers general guidance, not a standard answer or the only acceptable wording; its position follows the Document Processing Handbook. For agency-specific conventions, you are welcome to fork the repo and customize it.

Example Prompts

After importing, just tell the AI what you need:

  • "I need to write a petition to the Taipei City Government about a noise complaint in my neighborhood"
  • "Help me draft an application letter to the local district office to apply for a residence certificate"
  • "I want to send a certified letter (存證信函) to my landlord demanding the return of my deposit"
  • "How do I write a formal appeal (訴願書) against a traffic fine?"
  • "I need to write a formal application (申請書) for a street vendor permit"

You can describe your situation in English — the AI will ask clarifying questions and generate the formal document in proper Chinese, following Taiwanese formatting rules, plus a separate explanation/translation for your reference. Submit the Chinese formal document after checking whether the receiving agency requires a standard form or extra attachments.

For Foreigners in Taiwan

If you're a foreigner living or working in Taiwan and need to write formal documents to government agencies, this skill can help. Common scenarios:

  • Petitioning a government office about a local issue (noise, construction, public safety)
  • Applying for permits or certificates at district offices
  • Sending a certified letter (存證信函) to a landlord, employer, or business
  • Filing an administrative appeal (訴願) against a government decision
  • Writing a formal application (申請書) for various government services

The AI communicates with you in English but generates the formal document in Traditional Chinese, the language Taiwanese official documents are written in. It can also provide a separate paragraph-by-paragraph English explanation so you understand what you're submitting, but that explanation should stay separate from the filing version.

Regulatory Basis

Support This Project

If this tool helped you:

  • Hit Star so more people can find it
  • Share with colleagues, classmates, or anyone who needs to write formal documents in Taiwan
  • Buy Me a Coffee to support ongoing development
  • Found a bug or have a suggestion? Open an Issue

Author

Cheng-I Wu — GitHub | Buy Me a Coffee

License

MIT License — free to use, modify, and share.

Explore related projects

Loading…