Λογότυπο Docx Extract Template

Docx Extract Template

Οργανισμός
okou-ai
docx-extract-template

Extract a template skill from a Word document for filling slots, reusing structure and expression, or applying its visual style. Use when asked to extract a Word template, build a reference.docx, apply a company template to Markdown, or set up --reference-doc.

Επισκόπηση

Εκδότηςokou-ai
Αποθετήριοokou-skills
Όνομα δεξιότηταςdocx-extract-template
Αστέρια
81
Διακλαδώσεις
19
Συνοδευτικά αρχεία
11
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 11

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό okou-ai. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Docx Extract Template στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/okou-ai/okou-skills/tree/main/extract-template/docx
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/okou-ai/okou-skills.git /tmp/okou-skills
mkdir -p .claude/skills
cp -r /tmp/okou-skills/extract-template/docx .claude/skills/docx-extract-template
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Docx Extract Template σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Docx Extract Template μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Docx Extract Template δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Extract a template package from a docx

Input: one .docx. Output: a loadable skill package whose instructions and resources match the selected reuse scope.

Run every command below from extract-template/docx/.

For .doc or WPS-authored .docx input, first save a separate .docx copy from Word and keep the supplied original.

Create page images to inspect the document's layout, typography and fillable areas, then choose the reuse scope. Keep the original for its editable structure and styles. Reuse existing source captures; otherwise render once at the original page proportions:

bash
node ../scripts/render-document.mjs --input <source.docx> --out source-render

Inspect the returned page images; the returned PDF is also available for reference. Use a new output directory for each render.

Choose the reuse scope

Read ../document-reuse.md, choose from representative rendered pages and the user's purpose, then use the matching section below. For style extraction, continue at Style extraction.

Slot filling

Copy the source to package/template.docx. Write package/SKILL.md with the slot map and filling instructions from the shared guide. Locate each slot in the document's XML and record enough context to distinguish repeated blanks.

Tell the generated skill to edit only those slots in a copy of template.docx. Replace their text inside <w:t> while preserving run and paragraph properties. Slots may use non-text XML such as an underlined <w:tab/>. Record their blank area and how to insert a value while preserving fixed labels, alignment and underline extent. Replacing a tab outright can move the text that follows it; verify the filled rendering.

Patch the affected XML entries in the ZIP; preserve all other entries as they are. Opening and saving through python-docx or LibreOffice can rewrite parts outside the slots. Render the filled copy and verify the values fit and the rest of the document is unchanged. Continue at Publish the source package.

Structure and expression reuse

Copy the source to package/example.docx. Write package/SKILL.md with the structure and writing rules from the shared guide, grounded in the source's actual wording. Include where each kind of new content belongs, what may vary in length or number, and which passages remain fixed.

Instruct the skill to draft content using those rules and edit a copy of example.docx. Preserve the formatting of each kind of block. Add or remove repeating items by copying or deleting the matching paragraph, table row or section as a whole, keeping its formatting and required XML relationships. Include separator paragraphs in the copied group when they provide its spacing. Preserve run boundaries; clear unused fragments, including superscript text. Regenerate identifiers that must be unique in cloned blocks. Let text reflow and items grow within the recorded layout rules. Render the result to check the layout, content organization and expression. Continue at Publish the source package.

Locate editable text when needed

After choosing the scope, locate text across the document, headers and footers:

bash
python3 scripts/inspect_docx.py <source.docx> --slots
python3 scripts/inspect_docx.py <source.docx> --slots --json

It does not classify the document or identify which text may change. It lists runs containing <w:t>, so check the rendered pages and XML for gaps without text, such as underlined tabs. Do not treat a field's cached result as editable text; Word recomputes it.

Address edits by the part and node path, checking the old text before replacing it. Use the paragraph text to group split runs; retain their individual formatting and whitespace. Inspect linked placeholders and empty separator paragraphs.

For a filled content control, remove w:showingPlcHdr so its value is treated as content. Preserve its placeholder definition for future empty values. If it has w:dataBinding, update the referenced custom XML value as well; do not leave the displayed value and its binding inconsistent.

Publish the source package

Before publishing, follow the package's own recipe on a disposable copy with sample content. Verify repeated values in the body, header and footer; exercise an added and removed item only where the selected scope permits it. Render all pages and compare the formatting, artwork, spacing and content with the original. Fix the recipe and repeat this check if it changes.

bash
node ../scripts/cover-page.mjs --input <the original .docx> --out cover.png
bash
npx --yes --package="${CLI_PKG_URL}" okou user-template publish \
  --title "<user-visible template name>" \
  --kind document \
  --source <the original .docx> \
  --cover cover.png \
  --page-count <pageCount from cover-page.mjs> \
  --package package

--source and the copy in package/ are both needed: the first is what a reader opens, the second is the only one a later run can open. Publish without --cover and --page-count only when cover-page.mjs failed; report what it said.

Say the template exists only after the command succeeds, then stop.

Style extraction

Prerequisites

bash
python3 -m pip install --break-system-packages pymupdf
python3 scripts/ensure_pandoc.py --dir ./vendor   # then run the export PATH line it prints

1. Inspect

bash
python3 scripts/inspect_docx.py <source.docx>

Note the missing required styles, numbered sections, body candidates and every REVIEW line. Check the body style and section against a body page. Map a heading by its role there; a style named Heading1 may belong to the cover. [styles in use] decides how to extract the visual styles:

  • the document uses its own style names: run step 2 with the --map it prints, after checking which pandoc style each name plays the part of;
  • the document is formatted by hand (Normal with direct formatting): its styles carry nothing. Render it as the inspector says and follow the Style extraction steps in ../pdf/SKILL.md on the render instead of continuing here. Ignore the exit code.

2. Build

bash
python3 scripts/build_reference.py <source.docx> reference.docx \
        [--map 'Memo Title=Title,Section Head=Heading1,__body__=Body Copy'] \
        [--section <1-based body section number>]

Use __body__ to choose an existing source style for ordinary paragraphs; this does not modify the source. Check the reported section selection. If selection is ambiguous, pass the section and body style read from the source. Resolve each ACTION REQUIRED before continuing. Do not strip a cover's frame or change its colours to force it into a body-heading role.

3. Adjust

Required when step 1 or 2 asked for it; otherwise optional.

bash
# paper size, and the header values step 1 flagged (left = literal text in the source)
python3 scripts/set_header_footer.py reference.docx --paper A4 \
        --replace "DOC-2026-001=[DOC ID]" --replace "Jane Doe=[OWNER]"

# style values
python3 scripts/set_style.py reference.docx --list
python3 scripts/set_style.py reference.docx "Block Text" --font Georgia --size 10.5 --color 6C757D
python3 scripts/set_style.py reference.docx "Source Code" --create --font Consolas --size 9

# only to change the layout; a multi-column source is already multi-column
python3 scripts/set_header_footer.py reference.docx --columns 2 --column-gap 20

# only for a plain-text header/footer, or to add one; rebuilds the part
python3 scripts/set_header_footer.py reference.docx --footer "Confidential - page " --page-number

Style names are the w:name, case-insensitive. set_style.py options: --font --east-asia-font --size --color --bold/--no-bold --italic/--no-italic --before --after --line --indent --left-indent --align --keep-next.

4. Verify

bash
python3 scripts/verify_reference.py reference.docx --render-dir verified-probe

Exit code must be 0. Inspect every probe page for the correct heading roles, body placement and required visual assets before packaging. Dangling or framed styles → step 2. No paper size → step 3 with --paper. After a correction, verify again into a new directory.

5. Package

bash
python3 scripts/make_package.py <source.docx> reference.docx <out dir>

The output directory name is the skill name; --name overrides it. Add anything the scripts could not read to the package's Limits.

6. Publish

bash
node ../scripts/cover-page.mjs --input <source.docx> --out cover.png
bash
npx --yes --package="${CLI_PKG_URL}" okou user-template publish \
  --title "<user-visible template name>" \
  --kind document \
  --source <source.docx> \
  --cover cover.png \
  --page-count <pageCount from cover-page.mjs> \
  --package <out dir>

Publish without --cover and --page-count only when cover-page.mjs failed; report what it said. Say the template exists only after the command succeeds.

Rules

  • Reproduce the source. Do not correct an inverted hierarchy or a style left at a default; the package records it.
  • Replace the source's own title, document number, version, owner and date in the header and footer with --replace; they are copied into every output.
  • Change the column layout only when asked.
  • Do not edit w:styleId. Do not add style names outside pandoc's set.
  • Step 4 is mandatory.

Troubleshooting

SymptomAction
Headings render like body textStep 4 names the missing style
CJK text falls back to a serif fontThe source names no East Asian font. set_style.py Normal --east-asia-font NAME fills that slot and leaves the Latin font alone
Code blocks will not restyleset_style.py reference.docx "Source Code" --create
Output carries the source's number or ownerset_header_footer.py --replace
Header text sits outside the text areaStep 1 reports the tab stop; rebuild the header with --header 'left\tright', which places it from the margins
A docx saved by WPS fails to parseRe-save it from Word, restart at step 1
A slot-filling template comes back redrawn in a similar styleIts package carries no copy of the source, so there was nothing to edit. Add the file and republish
Content-control text disappears or loses its font, colour or rulesRender with ../scripts/render-document.mjs; use its flattened PDF and proportional page images

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Docx Extract Template;

Extract a template skill from a Word document for filling slots, reusing structure and expression, or applying its visual style. Use when asked to extract a Word template, build a reference.docx, apply a company template to Markdown, or set up --reference-doc.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Docx Extract Template στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Docx Extract Template είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Docx Extract Template στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/okou-ai/okou-skills/tree/main/extract-template/docx. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Docx Extract Template;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Docx Extract Template;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Docx Extract Template με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Docx Extract Template;

Δημοσιεύεται στο GitHub από τον λογαριασμό okou-ai. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο openclaw

Openclaw Update

openclaw
ΟργανισμόςΔημοφιλής

Δρομολογήστε τις συνήθεις ενημερώσεις ενός υπάρχοντος τοπικού ή απομακρυσμένου OpenClaw Gateway στον υπεύθυνο εγκατάστασής του, με αυτόματη ανάκτηση συνεδρίας. Προτιμήστε δεξιότητες ειδικές για την εκάστοτε ανάπτυξη, όταν είναι διαθέσιμες.

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Tag Duplicate Prs Issues

openclaw
ΟργανισμόςΔημοφιλής

Χρησιμοποιήστε το gitcrawl για να αναζητήσετε διπλότυπα PR/ζητήματα του OpenClaw, να ομαδοποιήσετε συναφείς εργασίες στο prtags και να συγχρονίσετε την κατάσταση των διπλοτύπων με το GitHub.

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Update Team Server

openclaw
ΟργανισμόςΔημοφιλής

Ενημερώστε τον διακομιστή Team που έχει ρυθμίσει ο χειριστής μέσω του επίσημου κατόχου του· εμπιστευτείτε την εγγενή επικύρωση και αποδοχή, χωρίς διπλούς ελέγχους ή προγραμματιστές εργασιών.

82.2K
391K
Οδηγίες
Προβολή
Λογότυπο openclaw

Cloud Image Bake

openclaw
ΟργανισμόςΔημοφιλής

Δημιουργήστε, επιλέξτε, επαληθεύστε στην πράξη και αποσύρετε με ασφάλεια μια εικόνα Cloud Worker με μονογραμμικές εντολές crabbox και διαμόρφωσης.

82.2K
391K
Οδηγίες
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇