agentleFS
yha9806yha9806/academic-writing-toolkit/.claude/skills/export/SKILL.md

export

Skill42 starsChanged 2 months agoMITView on GitHub

Convert thesis chapters and reading notes from Markdown to Word (.docx) and package for submission. Use when preparing materials for supervisors or examiners.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use stats.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jjenkinsSkill

    stats

    View storage usage and quota statistics for Lab Nocturne. Triggered by /stats or naturally (e.g. 'how much storage am I using'). This is an alias for the image-stats skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before converting, confirm that every author-year citation in chapters/ has a lint-conforming notes file under literature/reading_notes/, …

    line 42
  2. Very specific:

    Stop and report if anything is unresolved.

    line 51
  3. Very specific:

    Check dependencies: Verify that pypandoc is installed AND a working pandoc binary is on PATH (the script smoke-probes via …

    line 56
  4. Distinctive:

    No hardcoded paths: All paths are derived from arguments or project root.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/export — Document Export Skill

Running Python helpers

Choose the interpreter before running the examples. For a globally installed copy, use the private runtime recorded by its installer. In a checkout or linked workspace, use AWT_PYTHON when set, otherwise the toolkit's .venv (follow the skill directory link back to the toolkit): Scripts/python.exe on Windows, bin/python on macOS/Linux. Without that environment, check that python (Windows) or python3 (macOS/Linux) actually runs and has the helper's dependencies. Replace the example's python3 with that executable. In PowerShell, prefix a quoted executable with &; keep commands on one line and quote file paths.

Purpose

Convert thesis chapters and reading notes from Markdown to Word (.docx) format and package them into a ZIP archive for submission to supervisors or examiners. This skill is user-invoked only and will not be triggered automatically.

Trigger Words

This skill activates on: /export. It is never invoked automatically by the model.

Parameters

  • $ARGUMENTS[0] -- scope: chapters | notes | all (default: all)
  • $ARGUMENTS[1] -- language filter: en-only | all (default: all)

Examples:

  • /export chapters en-only -- export only chapter files, skip files with significant CJK content
  • /export notes all -- export only reading notes, include all languages
  • /export -- export everything, all languages

Workflow

  1. Resolve every source first (Advisory here; Enforced in the AWT app). Before converting, confirm that every author-year citation in chapters/ has a lint-conforming notes file under literature/reading_notes/, and that references.bib (when present) neither contains entries nothing cites nor lacks an entry a chapter cites:

    python3 .claude/skills/audit/scripts/audit-claim-positioning.py --base-dir chapters --bib references.bib --json

    Stop and report if anything is unresolved. On this surface nothing blocks you from exporting anyway — say so if you do. In the AWT app the same condition is a typed denial (EXPORT_SOURCES_UNRESOLVED) on the export_docx tool, and the export does not run.

  2. Check dependencies. Verify that pypandoc is installed AND a working pandoc binary is on PATH (the script smoke-probes via pypandoc.get_pandoc_version()). If pypandoc/pandoc are unavailable, fall back to python-docx + markdown. Report which conversion method is being used.

    Run from the project root.

  3. Run the conversion script.
    python3 .claude/skills/export/scripts/convert_to_docx.py --base-dir "{project_root}" --output-dir "{project_root}/final_output" --scope {scope} --lang-filter {lang_filter}
  4. Report results.
    ## Export Complete
    
    | Item | Value |
    |------|-------|
    | Files converted | {N} |
    | Files skipped (language filter) | {N} |
    | Output directory | {path} |
    | ZIP archive | {path} |
    | Total size | {size} |
    
    Conversion method: {pandoc | python-docx fallback}

Constraints

  1. User-invoked only. This skill has disable-model-invocation: true and must not run unless the user explicitly calls /export.
  2. No hardcoded paths. All paths are derived from arguments or project root.
  3. No emoji in output.
  4. Preserve formatting as much as possible during conversion -- headings, tables, block quotes, inline code.

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.