agentleFS
bokuwalilybokuwalily/claude-code-skills/skills/md-to-docx-report/SKILL.md

md-to-docx-report

Skill0 starsChanged 5 months agoMITView on GitHub

Markdown(見出し・表・箇条書き・太字・引用)を配布用docxに変換し、再抽出でキー数値を照合する。事業計画・資金資料・定款など配布用の正式文書を作る時に使う。

  • Installs packages

The file

Files
SKILL.md

md-to-docx-report

手順

  1. Markdownを書く(frontmatterは自動で捨てる。表はGFM、見出しは #/##/###、👉 行は黄色地)。
  2. 変換(npm docx v9 が要る。scratchpadで npm i docx@9):
    node ~/.claude/skills/md-to-docx-report/md2docx.mjs <in.md> ~/Desktop/<出力名>.docx
    ※ docx を resolve できる dir(node_modules がある所)で実行する。
  3. 再抽出でキー数値を照合する(「書いたはず」を信じない):
    python3 -c "import zipfile,re;x=zipfile.ZipFile('<docx>').read('word/document.xml').decode();x=re.sub(r'<[^>]+>','',x);print(all(k in x for k in ['<キー数値1>','<キー数値2>']))"
  4. 配布先は ~/Desktop/。外部送信は必ず本人の承認を得てから行う。

罠

  • 本文フォントは Hiragino Sans 固定(Windows側で開くと代替フォントになるが崩れない)。
  • 表の1行目をヘッダー扱い(灰色地)。|---| 行は自動で捨てる。
  • pandoc も python-docx もこのMacには無い。入れずに docx npm で済ませる。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.