[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DCQKX5MSBJFH1WFB7S7WAZ":3,"skill-same:01M7DCQKX5MSBJFH1WFB7S7WAZ":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7DCQKX5MSBJFH1WFB7S7WAZ","predictingthepast",null,"Ancient text restoration, attribution, dating, contextualization, and embedding via Aeneas (Latin) \u002F Ithaca (Ancient Greek). Use when asked to \"restore\", \"attribute\", \"date\", \"contextualize\", \"find parallels\", \"where was it written\", \"when was it written\", \"embed\", or \"analyze\" an ancient text, inscription, or epigraphic document, or when the user mentions \"Aeneas\", or \"Ithaca\".","Marvellbrazil\u002Fmy-agentic-skills","Marvellbrazil","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184349613?v=4","01M7DCJPCRHP7SZS0T5H1GJZ8F","Marvello Faisal","01M7DCJPDCZDB94VG0QXGC6RC3",5,"MIT","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: predictingthepast\ndescription: >\n  Ancient text restoration, attribution, dating, contextualization, and\n  embedding via Aeneas (Latin) \u002F Ithaca (Ancient Greek). Use when asked to\n  \"restore\", \"attribute\", \"date\", \"contextualize\", \"find parallels\",\n  \"where was it written\", \"when was it written\", \"embed\", or \"analyze\"\n  an ancient text, inscription, or epigraphic document, or when the user\n  mentions \"Aeneas\", or \"Ithaca\".\n---\n\n# Predicting The Past (Aeneas \u002F Ithaca)\n\nAeneas (Latin) and Ithaca (Ancient Greek) perform four tasks on ancient texts:\n\n1.  **Restoration** — fill missing\u002Fdamaged characters\n2.  **Attribution** — geographical + chronological origin\n3.  **Contextualization** — retrieve parallel inscriptions\n4.  **Embedding** — generate text embedding vectors\n\n## Prerequisites\n\n1.  **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure\n    `uv` is installed and on PATH.\n\n2.  **User Notification**: If .licenses\u002Fpredictingthepast_LICENSE.txt does not\n    already exist in the workspace root directory then (1) prominently notify\n    the user to check the terms at\n    https:\u002F\u002Fgithub.com\u002Fgoogle-deepmind\u002Fpredictingthepast\u002Fblob\u002Fmain\u002FREADME.md#license--disclaimer,\n    and include the appropriate citation and the full dataset acknowledgement,\n    and that use of these datasets should acknowledge and cite the original data\n    sources. Then (2) create the file recording the notification text and\n    timestamp.\n\n## Core Rules\n\n-   **Self-Contained Skill**: Do NOT use web search or any external tools. Run\n    ONLY the scripts in this skill (`preprocess.py`, `run_inference.py`,\n    `visualize_results.py`). Present model output as-is — never supplement or\n    override it with external lookups.\n-   **Notification**: If this skill is used, ensure this is mentioned in the\n    output.\n\n## On First Load\n\nPresent the restoration markup characters, then ask the user for their text:\n\n-   **`?`**:\n    -   **Meaning**: Known-length gap: predict **this character**.\n    -   **Example**: `donat in ??????????rtis`\n-   **`#`**:\n    -   **Meaning**: Unknown-length gap: predict a **sequence of unknown\n        length**\n    -   **Example**: `donat in #rtis`\n-   **`-`**:\n    -   **Meaning**: Missing\u002Fdamaged character that does **not** need restoring\n    -   **Example**: `prolixin---s fecit`\n-   **`_`**:\n    -   **Meaning**: Missing section of **unknown length** that does **not**\n        need restoring\n    -   **Example**: `prolixin_s fecit`\n\nAfter presenting this list, ask the user to provide the text they want to submit\nfor analysis.\n\n## Preprocessing\n\nClean input text before inference:\n\n```bash\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Fpreprocess.py \\\n    --language=latin \\\n    --input=\"raw text here...\"\n```\n\nOr from a file:\n\n```bash\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Fpreprocess.py \\\n    --language=greek \\\n    --input_file=\u002Ftmp\u002Finput.txt \\\n    --output_file=\u002Ftmp\u002Fcleaned.txt\n```\n\n### What preprocessing does\n\n-   **Latin**: lowercases, converts Arabic digits and Roman numerals to `0`,\n    strips editorial brackets `[]` and `()`, removes punctuation, filters to\n    valid chars (`abcdefghiklmnopqrstuvxyz` plus `0 . - _ ? # \u003Cspace>`)\n-   **Greek**: lowercases, strips accents, converts numeral notation to `0`,\n    applies PHI cleaning (bracket normalization, sigma conversion), filters to\n    Greek alphabet (`αβγδεζηθικλμνξοπρςστυφχψωϛ` plus `0 . - _ ? # \u003Cspace>`)\n\n## Inference\n\n### Restoration Constraints\n\n-   Minimum input length: **25 chars** (pad with `-` if shorter).\n-   No consecutive `##`. No adjacent `?#` or `#?`.\n-   Spaces inside `?` sequences count toward total.\n-   If the user's text contains `#`, ask how many characters to restore and set\n    `--restore_max_len` accordingly.\n-   If the user tries to restore multiple parts of the text at once, suggest to\n    restore texts **section by section**. Suggest to focus on one damaged region\n    per query — this is faster, produces higher-quality predictions.\n\n### Pre-Flight Checks\n\nConfirm with the user before proceeding if **either** applies:\n\n1.  **Restoration complexity** — if input contains more than **10** `?`\n    characters, or uses `#` with `--restore_max_len > 10`, warn: *\"This\n    restoration involves N characters which will take approximately M minutes\n    (restoration time scales roughly linearly ~10 s per additional `?` on a\n    high-end CPU machine: 5 → ~1 min, 10 → ~2.5 min, 20 → ~5 min, 30 → ~8 min).\n    Do you want to proceed, or simplify the query first (e.g. fewer `?` marks,\n    shorter `--restore_max_len`, or restoring section by section)?\"*\n2.  **Multi-window splitting** — if the input text exceeds **750 characters**\n    and will be split into multiple windows, warn: *\"This text is N characters\n    long and will be split into W overlapping windows, each run independently.\n    This will be significantly slower. Do you want to proceed, or shorten the\n    input?\"*\n\nThese factors compound: a complex restoration across multiple windows will be\nsubstantially slower than either factor alone.\n\n### Task Selection\n\nEach task is controlled by its own flag. **At least one** must be provided:\n\n-   **`--attribute`** — geographical + chronological attribution\n-   **`--restore`** — text restoration (requires `?` or `#` in input)\n-   **`--contextualize`** — parallel inscription retrieval\n\nAny combination is valid. All three can be used together.\n\nWhen `--embedding` is provided, a text embedding vector is also generated\nalongside the other tasks.\n\n### Running Inference\n\n```bash\n# Attribution + Restoration (text with gaps)\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text with ???\" \\\n    --attribute --restore \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# Attribution + Contextualization (no gaps)\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text\" \\\n    --attribute --contextualize \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# All tasks\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text with ???\" \\\n    --attribute --restore --contextualize \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# Generate dashboard\nuv run \\\n    \u003CSKILL_DIR>\u002Fscripts\u002Fvisualize_results.py \\\n    --input=\u002Ftmp\u002Fresults.json \\\n    --output=\u002Ftmp\u002Fdashboard.html\n```\n\nOutputs are always returned to the console (JSON\u002FSummary) and must always be\nwritten to an HTML dashboard for rich visualization.\n\n**Serving HTML artifacts**: After generating **any** HTML file (the dashboard or\nany other HTML artifact you create), start a background HTTP server so the user\ncan view it in their browser. Run the server in the foreground of the background\ntask process (without trailing `&`) to prevent the process from being\nterminated. Use a random high port to avoid conflicts.\n\nIn the example below, replace `\u003CHTML_FILE>` with the absolute path of the HTML\nfile you produced (e.g. `\u002Ftmp\u002Fdashboard.html` or `C:\\tmp\\dashboard.html`).\n\nFor Linux\u002FmacOS:\n\n```bash\n# Pick an unused port and start the server as a persistent process\nHTML_FILE=\u002Ftmp\u002Fdashboard.html   # ← set to the actual HTML file path\nPORT=$(export PATH=\"$HOME\u002F.local\u002Fbin:$PATH\" && uv run python -c \"import socket; s=socket.socket(); s.bind(('',0)); print(s.getsockname()[1]); s.close()\")\nFILENAME=$(basename \"$HTML_FILE\")\necho \"View URL: http:\u002F\u002Flocalhost:${PORT}\u002F${FILENAME}\"\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\" && uv run python -m http.server \"$PORT\" --bind 0.0.0.0 --directory \"$(dirname \"$HTML_FILE\")\"\n```\n\nFor Windows (PowerShell):\n\n```powershell\n# Pick an unused port and start the server as a persistent process\n$HTML_FILE = \"C:\\tmp\\dashboard.html\"   # ← set to the actual HTML file path\n$PORT = & \"$HOME\\.local\\bin\\uv\" run python -c \"import socket; s=socket.socket(); s.bind(('',0)); print(s.getsockname()[1]); s.close()\"\n$FILENAME = Split-Path $HTML_FILE -Leaf\n$DIRNAME = Split-Path $HTML_FILE -Parent\nWrite-Host \"View URL: http:\u002F\u002Flocalhost:${PORT}\u002F${FILENAME}\"\n& \"$HOME\\.local\\bin\\uv\" run python -m http.server $PORT --bind 0.0.0.0 --directory $DIRNAME\n```\n\nThen provide `http:\u002F\u002Flocalhost:\u003Cport>\u002F\u003Cfilename>` (or\n`http:\u002F\u002F127.0.0.1:\u003Cport>\u002F\u003Cfilename>`) as the primary clickable link in your\nresponse. Additionally, provide `http:\u002F\u002F\u003Chostname>:\u003Cport>\u002F\u003Cfilename>` as a\nfallback link for remote setups. Do **not** give the user a raw `file:\u002F\u002F` path.\n\n### Flags\n\n-   **`--input`**: Text string (mutually exclusive with `--input_file`)\n-   **`--input_file`**: Path to UTF-8 text file\n-   **`--language`**: `latin` or `greek`\n-   **`--models_dir`**: Model files directory (default:\n    `$HOME\u002F.predictingthepast\u002Fmodels`)\n-   **`--attribute`**: Run geographical and chronological attribution\n-   **`--restore`**: Run text restoration (requires `?` or `#` in input)\n-   **`--contextualize`**: Run parallel inscription retrieval\n-   **`--contextualize_top_k`**: Number of top parallels to return (default: 10)\n-   **`--contextualize_exclude_test_valid`**: Exclude test\u002Fvalidation texts from\n    contextualization results. Filters on the internal numeric `id` (where `id %\n    10` is 3 or 4).\n-   **`--embedding`**: Generate a text embedding vector (default: off). When\n    set, the output includes an `embedding` field with the full-precision float\n    vector.\n-   **`--output_json`**: Save combined JSON to file (for `visualize_results.py`)\n-   **`--restore_beam_width`**: Number of candidate restorations to explore in\n    beam search. Higher = more thorough but slower (default: 100)\n-   **`--restore_max_len`**: Maximum total characters to restore across all `?`\n    and `#` gaps (default: 15)\n-   **`--restore_temperature`**: Sampling temperature. Lower = conservative,\n    higher = creative (default: 1.0)\n-   **`--window_overlap`**: Overlap fraction for long-text windowing (default:\n    0.33)\n\n### Long Texts (>750 characters)\n\nEach window must be between **25 and 750 characters**. If the input text exceeds\n750 characters, it is automatically split into overlapping windows (default 33%\noverlap). Each window is run through the model independently, and the\ngeographical and chronological attribution results are **averaged** across all\nwindows. Restoration and contextualization are run per-window and concatenated.\n\n### Output Format\n\nUse `--output_json` to save the combined JSON to a file. For the full\n`--output_json` format including all fields for attribution, restoration, and\ncontextualization, see [output_format.md](references\u002Foutput_format.md).\n\n### Presenting Results\n\nPresent results for **every** task requested by the user. Always generate the\nHTML dashboard, serve it via the background HTTP server described above, and\nprovide the `http:\u002F\u002F` URL as a clickable link. Format years as BCE\u002FCE.\n\n#### Restoration\n\n**Bold** the restored characters in the top prediction. Show top-10 beam-search\ncandidates in a numbered table (rank, restored text, score). Summarise the most\nsalient words (not characters) — do not dump the raw saliency array.\n\n#### Geographical Attribution\n\nShow the top 10 regions in a ranked table (rank, region, score). Highlight the\ntop-1 prediction in the narrative. Summarise the most salient words (not\ncharacters) — do not dump the raw saliency array.\n\n#### Chronological Attribution\n\nReport top year and weighted average year. Describe the distribution shape (peak\ndecade, probable range) — do not list all 160 bins. Summarise the most salient\nwords (not characters) — do not dump the raw saliency array.\n\n#### Contextualization (Parallels)\n\nUse `jp` or write your own code to extract the contextualization data from\n`--output_json`. Show the top parallels in a table (rank, ID, Trismegistos ID,\nregion, date range, score, partner link). Quote the full text of the top\nparallels from the JSON.\n\nIf the user requests a specific number of parallels, use `--contextualize_top_k`\nto control how many are returned.\n\nIf the user asks to exclude test\u002Fvalidation texts, add\n`--contextualize_exclude_test_valid`. This filters on the **internal numeric\n`id`** (where `id % 10` is 3 for test or 4 for validation).\n\n#### Embedding (when `--embedding` is set)\n\nState the vector dimensionality (384 floats).\n\n## References\n\nFor more information, see:\n[predictingthepast.com](https:\u002F\u002Fpredictingthepast.com)\n\n**IMPORTANT:** The first time you return inference results to the user, remind\nthem to cite the appropriate paper below (Ithaca for Greek, Aeneas for Latin),\nand the dataset acknowledgements below.\n\n**Ithaca** (Ancient Greek): > Assael, Y., Sommerschield, T., Shillingford, B. et\nal. Restoring and attributing ancient texts using deep neural networks. *Nature*\n603, 280–283 (2022).\n\n**Aeneas** (Latin): > Assael, Y., Sommerschield, T., Cooley, A. et al.\nContextualizing ancient texts with generative neural networks. *Nature* 645,\n141–147 (2025).\n\n### Dataset Acknowledgements\n\n**IMPORTANT:** The first time you present inference results to the user, include\nthe appropriate citation and the full dataset acknowledgement for the language\nused (see below).\n\nThe Ithaca and Aeneas projects rely on the availability of high-quality datasets\nof ancient Greek and Latin inscriptions, respectively. These datasets were built\nthrough centuries of scholarly collection and decades of digital editorial work.\n\n**Ithaca** (Ancient Greek): In particular, Ithaca draws on a 2019 version of the\nSearchable Greek Inscriptions database made available under \"Fair Use\" license\nby the Packard Humanities Institute, generously supported by David Packard:\n[inscriptions.packhum.org](https:\u002F\u002Finscriptions.packhum.org).\n\n**Aeneas** (Latin): Aeneas was trained on data from:\n\n*   **Epigraphic Database Roma (EDR)**: Made available pursuant to a Creative\n    Commons Attribution 4.0 International License (CC-BY) on\n    [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F3575495). EDR is also available at\n    [edr-edr.it](http:\u002F\u002Fwww.edr-edr.it\u002F).\n*   **Epigraphic Database Heidelberg (EDH)**: Made available pursuant to a\n    Creative Commons Attribution-ShareAlike 4.0 International License (CC-BY-SA)\n    on [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F3575155). EDH is also available at\n    [edh.ub.uni-heidelberg.de](https:\u002F\u002Fedh.ub.uni-heidelberg.de\u002F).\n*   **ETL repository for Epigraphic Database Clauss Slaby (EDCS\\_ETL)**: Made\n    available pursuant to a Creative Commons Attribution 4.0 International\n    License (CC-BY) on [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F7072337). EDCS\\_ETL\n    is also available at [manfredclauss.de](http:\u002F\u002Fwww.manfredclauss.de\u002F) and\n    [github.com\u002Fsdam-au\u002FEDCS\\_ETL](https:\u002F\u002Fgithub.com\u002Fsdam-au\u002FEDCS_ETL).\n\nThese resources bring together a large proportion of published inscriptions in a\nsearchable digital format.\n","# Predicting The Past (Aeneas \u002F Ithaca)\n\nAeneas (Latin) and Ithaca (Ancient Greek) perform four tasks on ancient texts:\n\n1.  **Restoration** — fill missing\u002Fdamaged characters\n2.  **Attribution** — geographical + chronological origin\n3.  **Contextualization** — retrieve parallel inscriptions\n4.  **Embedding** — generate text embedding vectors\n\n## Prerequisites\n\n1.  **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure\n    `uv` is installed and on PATH.\n\n2.  **User Notification**: If .licenses\u002Fpredictingthepast_LICENSE.txt does not\n    already exist in the workspace root directory then (1) prominently notify\n    the user to check the terms at\n    https:\u002F\u002Fgithub.com\u002Fgoogle-deepmind\u002Fpredictingthepast\u002Fblob\u002Fmain\u002FREADME.md#license--disclaimer,\n    and include the appropriate citation and the full dataset acknowledgement,\n    and that use of these datasets should acknowledge and cite the original data\n    sources. Then (2) create the file recording the notification text and\n    timestamp.\n\n## Core Rules\n\n-   **Self-Contained Skill**: Do NOT use web search or any external tools. Run\n    ONLY the scripts in this skill (`preprocess.py`, `run_inference.py`,\n    `visualize_results.py`). Present model output as-is — never supplement or\n    override it with external lookups.\n-   **Notification**: If this skill is used, ensure this is mentioned in the\n    output.\n\n## On First Load\n\nPresent the restoration markup characters, then ask the user for their text:\n\n-   **`?`**:\n    -   **Meaning**: Known-length gap: predict **this character**.\n    -   **Example**: `donat in ??????????rtis`\n-   **`#`**:\n    -   **Meaning**: Unknown-length gap: predict a **sequence of unknown\n        length**\n    -   **Example**: `donat in #rtis`\n-   **`-`**:\n    -   **Meaning**: Missing\u002Fdamaged character that does **not** need restoring\n    -   **Example**: `prolixin---s fecit`\n-   **`_`**:\n    -   **Meaning**: Missing section of **unknown length** that does **not**\n        need restoring\n    -   **Example**: `prolixin_s fecit`\n\nAfter presenting this list, ask the user to provide the text they want to submit\nfor analysis.\n\n## Preprocessing\n\nClean input text before inference:\n\n```bash\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Fpreprocess.py \\\n    --language=latin \\\n    --input=\"raw text here...\"\n```\n\nOr from a file:\n\n```bash\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Fpreprocess.py \\\n    --language=greek \\\n    --input_file=\u002Ftmp\u002Finput.txt \\\n    --output_file=\u002Ftmp\u002Fcleaned.txt\n```\n\n### What preprocessing does\n\n-   **Latin**: lowercases, converts Arabic digits and Roman numerals to `0`,\n    strips editorial brackets `[]` and `()`, removes punctuation, filters to\n    valid chars (`abcdefghiklmnopqrstuvxyz` plus `0 . - _ ? # \u003Cspace>`)\n-   **Greek**: lowercases, strips accents, converts numeral notation to `0`,\n    applies PHI cleaning (bracket normalization, sigma conversion), filters to\n    Greek alphabet (`αβγδεζηθικλμνξοπρςστυφχψωϛ` plus `0 . - _ ? # \u003Cspace>`)\n\n## Inference\n\n### Restoration Constraints\n\n-   Minimum input length: **25 chars** (pad with `-` if shorter).\n-   No consecutive `##`. No adjacent `?#` or `#?`.\n-   Spaces inside `?` sequences count toward total.\n-   If the user's text contains `#`, ask how many characters to restore and set\n    `--restore_max_len` accordingly.\n-   If the user tries to restore multiple parts of the text at once, suggest to\n    restore texts **section by section**. Suggest to focus on one damaged region\n    per query — this is faster, produces higher-quality predictions.\n\n### Pre-Flight Checks\n\nConfirm with the user before proceeding if **either** applies:\n\n1.  **Restoration complexity** — if input contains more than **10** `?`\n    characters, or uses `#` with `--restore_max_len > 10`, warn: *\"This\n    restoration involves N characters which will take approximately M minutes\n    (restoration time scales roughly linearly ~10 s per additional `?` on a\n    high-end CPU machine: 5 → ~1 min, 10 → ~2.5 min, 20 → ~5 min, 30 → ~8 min).\n    Do you want to proceed, or simplify the query first (e.g. fewer `?` marks,\n    shorter `--restore_max_len`, or restoring section by section)?\"*\n2.  **Multi-window splitting** — if the input text exceeds **750 characters**\n    and will be split into multiple windows, warn: *\"This text is N characters\n    long and will be split into W overlapping windows, each run independently.\n    This will be significantly slower. Do you want to proceed, or shorten the\n    input?\"*\n\nThese factors compound: a complex restoration across multiple windows will be\nsubstantially slower than either factor alone.\n\n### Task Selection\n\nEach task is controlled by its own flag. **At least one** must be provided:\n\n-   **`--attribute`** — geographical + chronological attribution\n-   **`--restore`** — text restoration (requires `?` or `#` in input)\n-   **`--contextualize`** — parallel inscription retrieval\n\nAny combination is valid. All three can be used together.\n\nWhen `--embedding` is provided, a text embedding vector is also generated\nalongside the other tasks.\n\n### Running Inference\n\n```bash\n# Attribution + Restoration (text with gaps)\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text with ???\" \\\n    --attribute --restore \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# Attribution + Contextualization (no gaps)\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text\" \\\n    --attribute --contextualize \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# All tasks\nuv run \u003CSKILL_DIR>\u002Fscripts\u002Frun_inference.py \\\n    --language=latin \\\n    --input=\"cleaned text with ???\" \\\n    --attribute --restore --contextualize \\\n    --output_json=\u002Ftmp\u002Fresults.json\n\n# Generate dashboard\nuv run \\\n    \u003CSKILL_DIR>\u002Fscripts\u002Fvisualize_results.py \\\n    --input=\u002Ftmp\u002Fresults.json \\\n    --output=\u002Ftmp\u002Fdashboard.html\n```\n\nOutputs are always returned to the console (JSON\u002FSummary) and must always be\nwritten to an HTML dashboard for rich visualization.\n\n**Serving HTML artifacts**: After generating **any** HTML file (the dashboard or\nany other HTML artifact you create), start a background HTTP server so the user\ncan view it in their browser. Run the server in the foreground of the background\ntask process (without trailing `&`) to prevent the process from being\nterminated. Use a random high port to avoid conflicts.\n\nIn the example below, replace `\u003CHTML_FILE>` with the absolute path of the HTML\nfile you produced (e.g. `\u002Ftmp\u002Fdashboard.html` or `C:\\tmp\\dashboard.html`).\n\nFor Linux\u002FmacOS:\n\n```bash\n# Pick an unused port and start the server as a persistent process\nHTML_FILE=\u002Ftmp\u002Fdashboard.html   # ← set to the actual HTML file path\nPORT=$(export PATH=\"$HOME\u002F.local\u002Fbin:$PATH\" && uv run python -c \"import socket; s=socket.socket(); s.bind(('',0)); print(s.getsockname()[1]); s.close()\")\nFILENAME=$(basename \"$HTML_FILE\")\necho \"View URL: http:\u002F\u002Flocalhost:${PORT}\u002F${FILENAME}\"\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\" && uv run python -m http.server \"$PORT\" --bind 0.0.0.0 --directory \"$(dirname \"$HTML_FILE\")\"\n```\n\nFor Windows (PowerShell):\n\n```powershell\n# Pick an unused port and start the server as a persistent process\n$HTML_FILE = \"C:\\tmp\\dashboard.html\"   # ← set to the actual HTML file path\n$PORT = & \"$HOME\\.local\\bin\\uv\" run python -c \"import socket; s=socket.socket(); s.bind(('',0)); print(s.getsockname()[1]); s.close()\"\n$FILENAME = Split-Path $HTML_FILE -Leaf\n$DIRNAME = Split-Path $HTML_FILE -Parent\nWrite-Host \"View URL: http:\u002F\u002Flocalhost:${PORT}\u002F${FILENAME}\"\n& \"$HOME\\.local\\bin\\uv\" run python -m http.server $PORT --bind 0.0.0.0 --directory $DIRNAME\n```\n\nThen provide `http:\u002F\u002Flocalhost:\u003Cport>\u002F\u003Cfilename>` (or\n`http:\u002F\u002F127.0.0.1:\u003Cport>\u002F\u003Cfilename>`) as the primary clickable link in your\nresponse. Additionally, provide `http:\u002F\u002F\u003Chostname>:\u003Cport>\u002F\u003Cfilename>` as a\nfallback link for remote setups. Do **not** give the user a raw `file:\u002F\u002F` path.\n\n### Flags\n\n-   **`--input`**: Text string (mutually exclusive with `--input_file`)\n-   **`--input_file`**: Path to UTF-8 text file\n-   **`--language`**: `latin` or `greek`\n-   **`--models_dir`**: Model files directory (default:\n    `$HOME\u002F.predictingthepast\u002Fmodels`)\n-   **`--attribute`**: Run geographical and chronological attribution\n-   **`--restore`**: Run text restoration (requires `?` or `#` in input)\n-   **`--contextualize`**: Run parallel inscription retrieval\n-   **`--contextualize_top_k`**: Number of top parallels to return (default: 10)\n-   **`--contextualize_exclude_test_valid`**: Exclude test\u002Fvalidation texts from\n    contextualization results. Filters on the internal numeric `id` (where `id %\n    10` is 3 or 4).\n-   **`--embedding`**: Generate a text embedding vector (default: off). When\n    set, the output includes an `embedding` field with the full-precision float\n    vector.\n-   **`--output_json`**: Save combined JSON to file (for `visualize_results.py`)\n-   **`--restore_beam_width`**: Number of candidate restorations to explore in\n    beam search. Higher = more thorough but slower (default: 100)\n-   **`--restore_max_len`**: Maximum total characters to restore across all `?`\n    and `#` gaps (default: 15)\n-   **`--restore_temperature`**: Sampling temperature. Lower = conservative,\n    higher = creative (default: 1.0)\n-   **`--window_overlap`**: Overlap fraction for long-text windowing (default:\n    0.33)\n\n### Long Texts (>750 characters)\n\nEach window must be between **25 and 750 characters**. If the input text exceeds\n750 characters, it is automatically split into overlapping windows (default 33%\noverlap). Each window is run through the model independently, and the\ngeographical and chronological attribution results are **averaged** across all\nwindows. Restoration and contextualization are run per-window and concatenated.\n\n### Output Format\n\nUse `--output_json` to save the combined JSON to a file. For the full\n`--output_json` format including all fields for attribution, restoration, and\ncontextualization, see [output_format.md](references\u002Foutput_format.md).\n\n### Presenting Results\n\nPresent results for **every** task requested by the user. Always generate the\nHTML dashboard, serve it via the background HTTP server described above, and\nprovide the `http:\u002F\u002F` URL as a clickable link. Format years as BCE\u002FCE.\n\n#### Restoration\n\n**Bold** the restored characters in the top prediction. Show top-10 beam-search\ncandidates in a numbered table (rank, restored text, score). Summarise the most\nsalient words (not characters) — do not dump the raw saliency array.\n\n#### Geographical Attribution\n\nShow the top 10 regions in a ranked table (rank, region, score). Highlight the\ntop-1 prediction in the narrative. Summarise the most salient words (not\ncharacters) — do not dump the raw saliency array.\n\n#### Chronological Attribution\n\nReport top year and weighted average year. Describe the distribution shape (peak\ndecade, probable range) — do not list all 160 bins. Summarise the most salient\nwords (not characters) — do not dump the raw saliency array.\n\n#### Contextualization (Parallels)\n\nUse `jp` or write your own code to extract the contextualization data from\n`--output_json`. Show the top parallels in a table (rank, ID, Trismegistos ID,\nregion, date range, score, partner link). Quote the full text of the top\nparallels from the JSON.\n\nIf the user requests a specific number of parallels, use `--contextualize_top_k`\nto control how many are returned.\n\nIf the user asks to exclude test\u002Fvalidation texts, add\n`--contextualize_exclude_test_valid`. This filters on the **internal numeric\n`id`** (where `id % 10` is 3 for test or 4 for validation).\n\n#### Embedding (when `--embedding` is set)\n\nState the vector dimensionality (384 floats).\n\n## References\n\nFor more information, see:\n[predictingthepast.com](https:\u002F\u002Fpredictingthepast.com)\n\n**IMPORTANT:** The first time you return inference results to the user, remind\nthem to cite the appropriate paper below (Ithaca for Greek, Aeneas for Latin),\nand the dataset acknowledgements below.\n\n**Ithaca** (Ancient Greek): > Assael, Y., Sommerschield, T., Shillingford, B. et\nal. Restoring and attributing ancient texts using deep neural networks. *Nature*\n603, 280–283 (2022).\n\n**Aeneas** (Latin): > Assael, Y., Sommerschield, T., Cooley, A. et al.\nContextualizing ancient texts with generative neural networks. *Nature* 645,\n141–147 (2025).\n\n### Dataset Acknowledgements\n\n**IMPORTANT:** The first time you present inference results to the user, include\nthe appropriate citation and the full dataset acknowledgement for the language\nused (see below).\n\nThe Ithaca and Aeneas projects rely on the availability of high-quality datasets\nof ancient Greek and Latin inscriptions, respectively. These datasets were built\nthrough centuries of scholarly collection and decades of digital editorial work.\n\n**Ithaca** (Ancient Greek): In particular, Ithaca draws on a 2019 version of the\nSearchable Greek Inscriptions database made available under \"Fair Use\" license\nby the Packard Humanities Institute, generously supported by David Packard:\n[inscriptions.packhum.org](https:\u002F\u002Finscriptions.packhum.org).\n\n**Aeneas** (Latin): Aeneas was trained on data from:\n\n*   **Epigraphic Database Roma (EDR)**: Made available pursuant to a Creative\n    Commons Attribution 4.0 International License (CC-BY) on\n    [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F3575495). EDR is also available at\n    [edr-edr.it](http:\u002F\u002Fwww.edr-edr.it\u002F).\n*   **Epigraphic Database Heidelberg (EDH)**: Made available pursuant to a\n    Creative Commons Attribution-ShareAlike 4.0 International License (CC-BY-SA)\n    on [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F3575155). EDH is also available at\n    [edh.ub.uni-heidelberg.de](https:\u002F\u002Fedh.ub.uni-heidelberg.de\u002F).\n*   **ETL repository for Epigraphic Database Clauss Slaby (EDCS\\_ETL)**: Made\n    available pursuant to a Creative Commons Attribution 4.0 International\n    License (CC-BY) on [Zenodo](https:\u002F\u002Fzenodo.org\u002Frecords\u002F7072337). EDCS\\_ETL\n    is also available at [manfredclauss.de](http:\u002F\u002Fwww.manfredclauss.de\u002F) and\n    [github.com\u002Fsdam-au\u002FEDCS\\_ETL](https:\u002F\u002Fgithub.com\u002Fsdam-au\u002FEDCS_ETL).\n\nThese resources bring together a large proportion of published inscriptions in a\nsearchable digital format.\n",{"name":5,"description":7},"main","42203fde5eb692ba254e058168ee1af75855fcb4","archive\u002Fbioinformatics\u002Fpredictingthepast",0,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills","skills.marvellofaisal.me","https:\u002F\u002Fgithub.com\u002FMarvellbrazil","marvellofaisal.me","Software Engineering Student | Backend & API Developer | Tech Enthusiast | Homelabber","2026-10-23 22:23:52",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Marvellbrazil\u002Fmy-agentic-skills --skill predictingthepast",{"tool":40,"command":41},"bunx","bunx skills add Marvellbrazil\u002Fmy-agentic-skills --skill predictingthepast",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Marvellbrazil\u002Fmy-agentic-skills --skill predictingthepast","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002FSKILL.md",true,[48,54,58,62,66,70,74,80,84],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fiphi-region-sub-loc.json","REFERENCE","参考文档",6382,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Fiphi-region-sub-loc.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fiphi-region-sub.txt",1107,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Fiphi-region-sub.txt",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fled-proper-names.txt",337928,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Fled-proper-names.txt",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fled-region-sub-loc.json",4585,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Fled-region-sub-loc.json",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fled-region-sub.txt",735,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Fled-region-sub.txt",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Foutput_format.md",5763,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Freferences\u002Foutput_format.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fpreprocess.py","SCRIPT","脚本",8153,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Fscripts\u002Fpreprocess.py",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Frun_inference.py",24093,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Fscripts\u002Frun_inference.py",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fvisualize_results.py",23866,"https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Farchive\u002Fbioinformatics\u002Fpredictingthepast\u002Fscripts\u002Fvisualize_results.py",[89,96,103,110,117,124],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DDQP2F4E42AMTGY0VCJ6G2","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7DDQM00XGSGT8V797C89R2E","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7DDQEF1HP9CMH88HMN9MCBA","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7DDQA32ZAG7J4PMRXRSQ3NQ","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7DDQ5482QSC0FC4NX107FVY","web-perf","Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (LCP, INP, CLS) and supplementary metrics (FCP, TBT, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-perf\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7DDQ1GZ7Z2Y67460SJJEMC0","using-agent-skills","Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of work at hand. This is the meta-skill that governs how all other skills are discovered and invoked.","https:\u002F\u002Fgithub.com\u002FMarvellbrazil\u002Fmy-agentic-skills\u002Fblob\u002Fmain\u002Fskills\u002Fusing-agent-skills\u002FSKILL.md",[],[]]