Agent skill

Offline Prompt Packager

by zhaohui-yang in zhaohui-yang/official-document-drafting

把基于 prompts/ 主源的 skill 打包成断网单机可用的离线提示词包。Use when the user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai), generate self-contained systemprompt /…

Custom licenceAuto-check passedAI & LLM Engineering

Install Offline Prompt Packager

skills CLI
$ npx skills add zhaohui-yang/official-document-drafting --skill offline-prompt-packager -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhaohui-yang/official-document-drafting offline-prompt-packager --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhaohui-yang/official-document-drafting.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/offline-prompt-packager .claude/skills/offline-prompt-packager && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
offline-prompt-packager
GitHub stars
140
Token cost
~433 tokens
SKILL.md length
66 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

把基于 prompts/ 主源的 skill 打包成断网单机可用的离线提示词包。Use when the user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai), generate self-contained systemprompt /…

  • Works in 3 steps: 选任务:基础… → 生成后产物落 dist/offline//;分发时整包提示词粘进宿主即可。 → 改了 prompts/ 主源后重新打包,保证离线包与在线 skill 同源。
  • The user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai)
  • SKILL.md covers 文件索引, 调用方式, 默认流程 and 复用到其它 skill, plus 1 more section
  • Calls python3

What it does

Offline Prompt Packager is an agent skill from zhaohui-yang/official-document-drafting. 把基于 prompts/ 主源的 skill 打包成断网单机可用的离线提示词包。Use when the user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai), generate self-contained systemprompt / userprompt bundles, or build a per-文种 prompt.

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Prompt engineering. It works with Qwen and Microsoft Word. The repository describes itself as: A Codex skill for drafting, standardizing, and exporting Chinese official documents and formal reports to Markdown and Word (.docx).

When your agent uses it

  • The user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai)
  • Generate self-contained systemprompt / userprompt bundles
  • Build a per-文种 prompt

Example prompts

  • “/offline-prompt-packager”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 选任务:基础 system(--emit-system)或按文种完整提示词(--doc-type)。
  2. 生成后产物落 dist/offline//;分发时整包提示词粘进宿主即可。
  3. 改了 prompts/ 主源后重新打包,保证离线包与在线 skill 同源。

What it can do on your machine

Read from SKILL.md and the folder at commit 6b4166a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Offline Prompt Packager loads about 433 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 66 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~433

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 66 words (~433 tokens).

“把一个基于 prompts/ 主源的 skill 打包成断网单机也能用的提示词包——目标是只能粘贴提示词、装不了 skill 的宿主(WebUI / Qwen / AnythingLLM / Claude.ai)。”

— opening of SKILL.md by zhaohui-yang, Custom licence
name
offline-prompt-packager

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/offline-prompt-packager of zhaohui-yang/official-document-drafting.

Open the folder on GitHubat commit 6b4166a

Compare with similar skills

Offline Prompt Packager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Offline Prompt Packager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Offline Prompt Packager this skillzhaohui-yang/official-document-drafting140—~433Automated safety check: PassCustom licence
Ccw CLI Toolscatlog22/Claude-Code-Workflow2.1k—~5.1kAutomated safety check: PassMIT
Qwen Image Editartokun/comfyui-mcp803—~4.6kAutomated safety check: PassMIT
Create Simple Promptpnp/copilot-prompts893—~2.6kAutomated safety check: PassMIT
Scholar Annotatejoshzyj/open-scholar-skill168—~4.6kAutomated safety check: PassCustom licence
Flux2 Klein PromptingAnastasiyaW/codex-claude-code-config154—~2.8kAutomated safety check: PassMIT

Similar skills

  • Ccw CLI Tools

    catlog22/Claude-Code-Workflow

    CLI tools execution specification (gemini/claude/codex/qwen/opencode) with unified prompt template, mode options, and auto-invoke triggers for code analysis and implementation tasks.

    2.1k GitHub stars~5.1k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Qwen Image Edit

    artokun/comfyui-mcp

    Build Qwen Image Edit workflows covering model loading, conditioning, LoRAs, prompt patterns, and XY plot testing

    803 GitHub stars~4.6k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Create Simple Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to…

    893 GitHub stars~2.6k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Scholar Annotate

    joshzyj/open-scholar-skill

    Turn unstructured text into validated, structured variables at corpus scale with LLMs: codebook design, dev/gold-set construction, DSPy prompt optimization, a hard reliability gate (Cohen κ ≥ 0.70)…

    168 GitHub stars~4.6k tokensUpdated 22 days ago
    AI & LLM EngineeringAuto-check passed
  • Flux2 Klein Prompting

    AnastasiyaW/codex-claude-code-config

    Expert prompt engineering for FLUX.2 [klein] image generation and editing model.

    154 GitHub stars~2.8k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Prompt Improver

    severity1/claude-code-prompt-improver

    This skill enriches vague prompts with targeted research and clarification before execution.

    1.9k GitHub starsUsed in 1 repo~1.7k tokens
    AI & LLM EngineeringAuto-check passed

More from zhaohui-yang/official-document-drafting

All 8 skills in this repo
  • Chinese Official Document Drafting

    zhaohui-yang/official-document-drafting

    Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word.

    140 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Official Document Type Routing

    zhaohui-yang/official-document-drafting

    Decides which type of Chinese official document to write and in which direction it travels, using three questions, before handing off to the drafting skill.

    140 GitHub stars~441 tokensUpdated 1 mo ago
    Auto-check passed
  • Chinese Official Document QA

    zhaohui-yang/official-document-drafting

    Checks the structure and quality of a finished Chinese official document with a section-checking script and a manual checklist, without rewriting it.

    140 GitHub stars~466 tokensUpdated 1 mo ago
    Auto-check passed
  • Official Document DOCX Exporter

    zhaohui-yang/official-document-drafting

    Exports a finished Chinese official-document Markdown draft to a .docx with government-style fonts and layout, with options to preview the font and layout plan first.

    140 GitHub stars~585 tokensUpdated 1 mo ago
    Auto-check passed
  • Ministry News Daily Report

    zhaohui-yang/official-document-drafting

    Collects the latest updates from Chinese central ministry websites and drafts a daily formal report on them, optionally exported to Word.

    140 GitHub stars~555 tokensUpdated 1 mo ago
    Auto-check passed
  • Policy Keyword Tracker

    zhaohui-yang/official-document-drafting

    Collects policies and developments on one topic from Chinese central ministries and compiles them into a verified situation report, with optional Word export.

    140 GitHub stars~555 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Offline Prompt Packager

What does Offline Prompt Packager do?

把基于 prompts/ 主源的 skill 打包成断网单机可用的离线提示词包。Use when the user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai), generate self-contained systemprompt /…. Offline Prompt Packager is an agent skill from zhaohui-yang/official-document-drafting.ai), generate self-contained systemprompt / userprompt bundles, or build a per-文种 prompt.

When should I use Offline Prompt Packager?

Offline Prompt Packager fits situations like: the user wants to export/package offline prompts for disconnected hosts (WebUI、Qwen、AnythingLLM、Claude.ai); generate self-contained systemprompt / userprompt bundles; build a per-文种 prompt.

How do I install Offline Prompt Packager in Claude Code?

Run `npx skills add zhaohui-yang/official-document-drafting --skill offline-prompt-packager -a claude-code`. Or copy the skill folder (skills/offline-prompt-packager in zhaohui-yang/official-document-drafting) into .claude/skills/offline-prompt-packager in your project. Claude Code loads it when a task matches its description.

How do I install Offline Prompt Packager in Codex?

Run `npx skills add zhaohui-yang/official-document-drafting --skill offline-prompt-packager -a codex`. Or copy the skill folder (skills/offline-prompt-packager in zhaohui-yang/official-document-drafting) into .agents/skills/offline-prompt-packager in your project. Codex loads it when a task matches its description.

Can I use Offline Prompt Packager in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhaohui-yang/official-document-drafting --skill offline-prompt-packager -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/offline-prompt-packager, .gemini/skills/offline-prompt-packager, .github/skills/offline-prompt-packager and .opencode/skills/offline-prompt-packager in your project.

What does Offline Prompt Packager need to run?

Going by SKILL.md and its folder, Offline Prompt Packager needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Offline Prompt Packager access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Offline Prompt Packager safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Offline Prompt Packager use?

Offline Prompt Packager has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Offline Prompt Packager use?

About 433 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Offline Prompt Packager?

Skills that share tags, products or a category with Offline Prompt Packager: Ccw CLI Tools (catlog22/Claude-Code-Workflow, 2.1k stars), Qwen Image Edit (artokun/comfyui-mcp, 803 stars), Create Simple Prompt (pnp/copilot-prompts, 893 stars) and Scholar Annotate (joshzyj/open-scholar-skill, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Offline Prompt Packager?

zhaohui-yang (a GitHub user) maintains it in zhaohui-yang/official-document-drafting, which has 140 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on August 19, 2026.

Source: zhaohui-yang/official-document-drafting on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.