Imbad0202/tw-formal-writing
About
台灣正式文件撰寫 AI Skill:公文、存證信函、陳情書、合約 — 匯入 ChatGPT / Claude / Gemini 即可使用
AI & Machine LearningMeasured 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
OriginalEnglish | 中文
Taiwan Official Document Writing AI Skill
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.mdat the repo root (each carrying the full single-fileSTANDALONE.mdcontent) are read directly by Codex / Gemini CLIs;plugin.jsonandmarketplace.jsonunder.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/, andAGENTS.md/GEMINI.mdare all generated byscripts/build.py—do not edit them by hand; change the guidance underreferences/and re-runpython3 scripts/build.py.LITE.mdis a hand-maintained lossy summary, butscripts/check_consistency.pyverifies it does not drop key rule anchors. The releasedskill.zipis built bypython3 scripts/package.pyin pure Python (SKILL.md+references/+examples/+LICENSE, under a top-leveltw-formal-writing/folder);--checkvalidates the manifest without writing, and--releasebuilds 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
- Go to ChatGPT → My GPTs → Create a GPT
- In Configure → Knowledge, upload
STANDALONE.md - 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
- Go to My GPTs → Create a GPT
- Paste the entire contents of
LITE.mdinto the Instructions field
ChatGPT Projects
- Go to ChatGPT → Projects → Create or select a Project
- Upload
STANDALONE.mdas a Project File - Start chatting
Claude (claude.ai)
- Go to Claude → Projects → Create a new Project
- Upload
STANDALONE.mdto Project Knowledge - 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
- Go to Gemini → Gems → Create a new Gem
- Use the full edition where the current interface has enough capacity. If the instructions field is too small, use the summary and attach
STANDALONE.mdas 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
- Executive Yuan "Document Processing Handbook" (文書處理手冊, revised June 8, 2023)
- "Official Document Format Act" (公文程式條例)
- National Academy of Civil Service "Official Document Writing Guide" (公文撰作解析, December 2025 edition): public PDF
- Official interpretations and rulings — Letters of Interpretation (文書處理相關釋例-函釋, updated to April 30, 2026)
- Official interpretations and rulings — Premier's Mailbox (文書處理相關釋例-院長電子信箱, updated to August 31, 2026)
- Administrative Procedure Act (official text): https://law.moj.gov.tw/LawClass/LawAll.aspx?media=print&pcode=A0030055
- Administrative Appeal Act (official text): https://law.moj.gov.tw/LawClass/LawAll.aspx?media=print&pcode=A0030020
- Directions for Handling Public Petitions by Executive Yuan Agencies: https://theme.ndc.gov.tw/lawout/LawContent.aspx?id=GL000017
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…