This guide shows the fastest way to install and use software-thesis-docx inside Codex.
$skill-installer install https://github.com/Jonnys-Li/software-thesis-docx-skill/tree/main/skills/software-thesis-docx
curl -fsSL https://raw.githubusercontent.com/Jonnys-Li/software-thesis-docx-skill/main/install.sh | bashirm https://raw.githubusercontent.com/Jonnys-Li/software-thesis-docx-skill/main/install.ps1 | iexRestart Codex after installation.
The installed skill directory should contain:
SKILL.mdagents/openai.yamlassets/examples/assets/presets/references/scripts/requirements.txt
The important part is that SKILL.md stays at the root of the installed skill.
- manifest-driven thesis DOCX generation
- caption-based image replacement
- exact paragraph rewrites for layout-safe terminology or citation cleanup
- built-in academic style preset
- custom style preset extraction from
.docxtemplates - Mermaid planning contracts
- optional subagent rigorous-writing mode
- optional AIGC risk checking and dual-profile reduction workflow
Ask Codex to use the skill explicitly:
Use $software-thesis-docx to build my thesis DOCX workflow from my software repository and ask me whether to use the default preset, Mermaid generation, subagents, and AIGC checks.
Typical prompts:
Use $software-thesis-docx to turn my project repo into a structured thesis manifest and generate a DOCX with the built-in preset.Use $software-thesis-docx to read my Word template, extract a style preset, and build the thesis in that format.Use $software-thesis-docx to generate Mermaid flowchart and sequenceDiagram code for my thesis based on the repo architecture.Use $software-thesis-docx to run an AIGC risk review on my thesis DOCX and only rewrite the flagged single-run paragraphs after showing me the report.Use $software-thesis-docx to lower AIGC for my thesis, keep academic_safe by default, and only switch to explicit_low_aigc if I explicitly ask for it.
If your Python environment does not already include the required libraries:
python3 -m pip install -r "$HOME/.codex/skills/software-thesis-docx/requirements.txt"If you use a custom CODEX_HOME, replace the path accordingly.
Build from the bundled example manifest:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/build_docx_from_manifest.py" \
--manifest "$HOME/.codex/skills/software-thesis-docx/assets/examples/thesis_manifest.example.json" \
--output /tmp/example-thesis.docxExtract a preset from a school template:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/extract_docx_style_preset.py" \
--input school-template.docx \
--output /tmp/style-preset.jsonBuild with that preset:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/build_docx_from_manifest.py" \
--manifest thesis_manifest.json \
--style-preset /tmp/style-preset.json \
--output /tmp/custom-thesis.docxRun the AIGC risk checker:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/check_aigc_risk.py" \
--input thesis.docx \
--output /tmp/aigc-risk-report.jsonRewrite authorized paragraphs for lower AIGC risk:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/rewrite_low_aigc_docx.py" \
--input thesis.docx \
--report /tmp/aigc-risk-report.json \
--output /tmp/thesis-low-aigc.docx \
--pending-output /tmp/aigc-pending-review.json \
--profile academic_safe \
--normalize-typographyReplace images by caption:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/replace_images_by_caption.py" \
--input thesis.docx \
--output thesis-images-updated.docx \
--mapping "$HOME/.codex/skills/software-thesis-docx/assets/examples/image_map.example.json"Rewrite exact-match paragraphs:
python3 "$HOME/.codex/skills/software-thesis-docx/scripts/rewrite_paragraphs.py" \
--input thesis.docx \
--output thesis-rewritten.docx \
--replacements "$HOME/.codex/skills/software-thesis-docx/assets/examples/rewrites.example.json"Bundled examples:
assets/examples/thesis_manifest.example.jsonassets/examples/thesis_workflow_options.example.jsonassets/examples/mermaid_requests.example.jsonassets/examples/image_map.example.jsonassets/examples/rewrites.example.json
This repository currently ships the Codex-compatible skill layout only.
Planned next steps:
- OpenCode packaging and install instructions
- Claude Code packaging and prompt guidance
- Shared smoke tests across runtimes
- If Codex does not discover the skill, confirm the install path and make sure
SKILL.mdis at the root. - If the builder output looks wrong, check whether the manifest is using the right
formatting.mode. - If preset extraction is weak, confirm the source
.docxactually contains the semantic roles you expect. - If image replacement fails, check that each target caption exactly matches the caption text in the DOCX.
- If paragraph rewriting fails, confirm the paragraph is a single-run exact match.