Document Template Generator: Using Skill to Generate Office Document Markdown Skeleton

Preface

When writing weekly reports, project proposals, or annual plans, the hardest part is often not the wording, but the section arrangement: which blocks are mandatory, what the order is, and what to write in the placeholders. Many people copy an old document and change the titles, which leads to missing structural items and hinders subsequent automatic content filling by Agents.

Below is an introduction to the community Skill “Document Template Generator” on SkillHub (Coordinate @user_f28fdad8/oc-doc-template, version 1.0.0). It generates structured templates based on document type and requirements, outputting standard Markdown. The script depends solely on the Python standard library and requires no API Key.

What is this

The “Document Template Generator” is maintained by community publisher user_f28fdad8, categorized as office-efficiency, and labeled as originating from the community. Its positioning is document skeleton generation: input the document type and key information to obtain a Markdown structure with placeholder hints, rather than summarizing or polishing existing long texts.

The SkillHub page description is consistent with the SKILL metadata: it covers four types of office scenarios—reports, proposals, plans, and summaries. The store displays a rating of 100000 and approximately 902 downloads (based on SkillHub page statistics), with the tag requires_api_key=false.

Core Functions

Based on a review of the SKILL.md, the capabilities are divided into four pipelines, all driven by JSON inputs via scripts in scripts/:

  1. Report Template: scripts/report.py, supporting types such as daily reports, weekly reports, monthly reports, quarterly reports, annual reports, and special reports.
  2. Proposal Template: scripts/proposal.py, generating proposal document structures based on topic, audience, and scope.
  3. Plan Template: scripts/plan.py, creating skeletons for work plans based on goals, duration, and team size.
  4. Summary Template: scripts/summary.py, generating summary document templates based on summary scope, role, highlights, etc.

The design principles are clearly stated in the SKILL: output standard Markdown; include filling hints within the template; implementation uses only the Python standard library; and inputs are unified as JSON to facilitate Agent integration.

Installation and Activation

Method 1: Let the Agent install according to SkillHub instructions

The prompt provided on the SkillHub skill page is: Please install @user_f28fdad8/oc-doc-template according to https://skillhub.cn/install/skillhub.md. This applies to conversational environments like Cursor or Claude Code that support Skills, where the Agent reads the installation documentation and installs the skill into the current client’s skills directory.

Method 2: SkillHub CLI

First, confirm that skillhub is installed on your local machine (see https://skillhub.cn/install/skillhub.md for installation methods). When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, if it defaults to ./skills/, it may not be recognized.

In Cursor, the common path is ~/.cursor/skills/; Codex CLI typically uses ~/.codex/skills/ or .agents/skills/ within the project. The following example uses the Cursor user directory:

command -v skillhub && skillhub --version

skillhub install oc-doc-template --namespace user_f28fdad8 --dir ~/.cursor/skills/

The coordinate format given in the search index is equivalent to the above; the full package name is @user_f28fdad8/oc-doc-template.

After installation, restart or refresh the Agent according to the client’s requirements to ensure the new Skill is loaded.

Typical Usage

After installing the skill package, run the scripts in the skill’s root directory (paths are relative to the @user_f28fdad8/oc-doc-template package). The official SKILL.md provides four reproducible commands.

Generate Report Template (Example: Technical Department Weekly Report):

python scripts/report.py --input '{"type": "周报", "department": "技术部", "period": "2026年第23周"}'

Generate Proposal Template:

python scripts/proposal.py --input '{"topic": "AI智能体商业化", "target": "投资人", "scope": "技术方案+商业模式"}'

Generate Plan Template:

python scripts/plan.py --input '{"goal": "Q3产品上线", "duration": "3个月", "team_size": 5}'

Generate Summary Template:

python scripts/summary.py --input '{"scope": "年度总结", "role": "技术负责人", "highlights": ["项目A上线", "团队扩展"]}'

In Agent conversations, you can also trigger it directly using natural language. The trigger in the SKILL metadata includes phrases like “Generate document template,” “Report template,” “Proposal template,” “Work plan,” and “Document structure.” The Agent reads the SKILL and selects the corresponding script and JSON fields.

After the above steps, the terminal or Agent should obtain a Markdown template file or text, which can then be filled with actual content in the placeholders of each section.

Use Cases and Notes

Who is it for

  • Those needing fixed section structures for weekly reports, monthly reports, and special reports;
  • Those drafting external proposals, internal plans, or phase summaries who need a framework first;
  • Teams wanting to use JSON to describe requirements and have Coding Agents generate homogeneous documents in bulk.

Limitations and Notes

  • The output is a template and structural hints, excluding automatic online research or fact-checking; the body text still needs to be filled in manually or with other tools.
  • The scripts depend on the local python and standard library; they must be executed within the skill package directory, or the Agent must switch to the correct working directory.
  • The store description lists terms like “Work Report / Project Proposal / Plan / Meeting Minutes,” which are consistent with the four scenarios of “Report / Proposal / Plan / Summary” in the SKILL. If a specific structure for meeting minutes is required, the need should be explicitly stated in the conversation, allowing the Agent to extend based on the summary or report flow, rather than assuming a separate script name exists.
  • The installation coordinate must include the namespace user_f28fdad8; a bare slug may result in a download failure.

Conclusion

The “Document Template Generator” consolidates repetitive layout decisions in office documents into reusable Markdown skeletons and reduces environmental costs using pure standard library scripts. To enable it locally or in an Agent, you can view the metadata and installation instructions from the SkillHub skill page and API entry:

  • https://www.skillhub.cn/skills/user_f28fdad8/oc-doc-template
  • https://api.skillhub.cn/user_f28fdad8/oc-doc-template
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye