Claude Code plugin for Dilon Technologies document authoring tools
This repository is a Claude Code plugin that bundles four Skills for working with Dilon Technologies' regulatory-compliant technical documentation:
dilon-document-writer- create a new Dilon document from the standard template, and apply Dilon markdown styling conventions while editing existing Dilon documents.dilon-document-compiler- compile a Dilon-formatted markdown file into a Word document: a regulatory-compliant document (signature page, revision history table, table of contents) by default, or a header/footer-only form/traveler when the front matter setsinclude_front_matter: false.dilon-document-form-writer- create a new Dilon form/traveler document from its own template, and document the form-only markdown markers (FillLine,FieldGrid,Form_Section_Header, and the@@@FORM_SECTION@@@wrapper they require).dilon-document-extractor- bootstrap a Dilon markdown draft from an existing Word or PDF document.
- Python (>= 3.8) and the following pip packages:
python-docx,docxcompose>=2.2.0,pyyaml>=6.0,pymupdf,jinja2 - Pandoc (for Markdown to Word conversion), on PATH
Clone the repository:
git clone https://github.com/dilontechnologies/dilon-claude-tools.git C:\Users\YourUsername\Local_Documents\Local_Repos\dilon-claude-toolsThen, from an elevated (Administrator) PowerShell session, run install.ps1 from the repo root to auto-install the prerequisites above via winget and pip:
cd C:\Users\YourUsername\Local_Documents\Local_Repos\dilon-claude-tools
.\install.ps1This also installs the Compile-DilonDoc / dilonc PowerShell alias for compiling documents outside of Claude Code.
The dilon-document-writer and dilon-document-form-writer skills have no external dependencies - they work without running install.ps1. The dilon-document-extractor skill's PDF path needs pymupdf, also installed by install.ps1.
If Claude is installing this for you:
install.ps1requires an elevated (Administrator) PowerShell session and installs software system-wide via winget (Python, Pandoc). Claude can rungit cloneitself, but should not runinstall.ps1- run that command yourself in your own elevated terminal. Claude can then run the/plugin marketplace add//plugin installcommands below directly, in your regular Claude Code session.
This repo is its own plugin marketplace. From within Claude Code:
/plugin marketplace add dilontechnologies/dilon-claude-tools
/plugin install dilon-tools@dilon-claude-tools
Authentication uses your existing git credentials (PAT or SSH) - the same access you already use to git clone it.
/plugin marketplace update dilon-claude-tools
/plugin update dilon-tools@dilon-claude-tools
/plugin marketplace add ./dilon-claude-tools
/plugin install dilon-tools@dilon-claude-tools
(Run from the parent directory of a local clone, or substitute the absolute path.)
This repo follows a governed branch and release model - see RELEASING.md before opening a PR or cutting a release.
Once installed, just describe what you want in conversation - the skills trigger automatically:
User: "Create a new Dilon document for a software requirements spec"
Claude: *uses dilon-document-writer skill*
Creates the new markdown file from the template with your supplied metadata.
User: "Compile Documentation/Requirements.md to a Word document"
Claude: *uses dilon-document-compiler skill*
Document compiled successfully!
Input: Documentation/Requirements.md
Output: Documentation/Requirements.docx
dilon-claude-tools/
├── CLAUDE.md # project knowledge doc for Claude Code sessions
├── RELEASING.md # branch/release model (REL/DEV/BUG, versioning, CI gates)
├── VERSION.txt # canonical version for CI - keep in sync with plugin.json
├── .claude-plugin/
│ ├── plugin.json # plugin manifest (version must match VERSION.txt)
│ └── marketplace.json # self-hosted marketplace listing this plugin
├── .github/
│ ├── CODEOWNERS
│ ├── PULL_REQUEST_TEMPLATE/ # feature.md, bug-fix.md, release.md
│ └── workflows/
│ ├── ci-feature.yml # PR -> REL/**: dependency check + all test suites
│ ├── ci-release.yml # PR -> master: same, plus the version-tag-availability gate
│ └── release.yml # push -> master: tags + publishes a GitHub Release
├── .claude/
│ ├── settings.json # PreToolUse hook wiring
│ └── scripts/
│ └── main-guard.sh # blocks Claude Code edits while checked out on master
├── templates/ # shared Word reference templates
│ ├── TEMPLATE_Word_Base.docx # header/footer + styles only, shared by the compiler and extractor
│ └── assets/
│ └── dilon_logo.png # header logo
├── lib/
│ ├── dilon_docx_common.py # Pandoc-conversion/styling helpers
│ └── dilon_form_fields.py # @@@FORM_FIELD@@@/@@@FORM_SECTION@@@ markers
├── skills/
│ ├── dilon-document-writer/
│ │ ├── SKILL.md
│ │ ├── MARKDOWN_STYLING_GUIDE.md
│ │ └── TEMPLATE_Document.md
│ ├── dilon-document-compiler/
│ │ ├── SKILL.md
│ │ └── scripts/
│ │ ├── generate_dilon_doc.py
│ │ ├── read_docx_sizes.py
│ │ └── check_deps.py
│ ├── dilon-document-form-writer/
│ │ ├── SKILL.md
│ │ └── TEMPLATE_Form.md
│ └── dilon-document-extractor/
│ ├── SKILL.md
│ └── scripts/
│ ├── extract_docx.py
│ ├── extract_pdf.py
│ └── check_deps.py
├── install.ps1 # dependency setup (Python, Pandoc, pip packages)
├── tests/
│ ├── run_tests.py
│ ├── run_form_tests.py
│ ├── run_extractor_tests.py
│ ├── validate-output.py
│ ├── README.md
│ ├── STYLING_TEST_TEMPLATE.md
│ ├── STYLING_TEST_TEMPLATE.docx
│ └── diagrams/ # figures referenced by STYLING_TEST_TEMPLATE.md
└── CHANGELOG.md
py -3 tests/run_tests.py
py -3 tests/run_extractor_tests.pyRequires the same Python/Pandoc prerequisites listed above. Use py -3 explicitly rather than bare python/py — on some Windows setups those resolve through a shebang-re-resolution quirk to a package-less Microsoft Store stub instead of the real interpreter.
- Confirm the plugin installed:
/plugin listshould showdilon-tools@dilon-claude-toolsas enabled. - Run
claude plugin validate .from the repo root to check for manifest/skill errors. - Run
claude --debugto see plugin loading details.
Run the relevant dependency checker directly:
python skills/dilon-document-compiler/scripts/check_deps.py
python skills/dilon-document-extractor/scripts/check_deps.pyAny [FAIL] line names the missing piece. Re-run install.ps1 to fix Python/Pandoc/pip packages.
pandoc --versionIf this fails, install Pandoc from https://pandoc.org/installing.html and ensure it's on PATH.
Internal use only - Dilon Technologies LLC
Contact the Engineering Department.