一键导入
content-add-internal-links-to-article
// Analyze an article and add relevant internal links from both SLG and ITA projects. Use when the user asks to add internal or cross-project links to an article.
// Analyze an article and add relevant internal links from both SLG and ITA projects. Use when the user asks to add internal or cross-project links to an article.
Verify all claims, numbers, deadlines, and legal references in an article against official sources. Use when the user asks to fact-check or verify article content before publication.
Prepare an article for publication by running internal link addition and fact-checking in parallel. Use when the user asks to finalize, prepare, or get an article ready for publishing.
Translate approved Russian content to Ukrainian, English, and Spanish. Use when the user asks to translate an article or content to other languages.
Write or edit article content in the author's authentic voice. Use when the user asks to write, create, or edit an article, blog post, or content for the Spain Life Guide site.
Run all local validation checks that don't require network access to the live site.
Verify internal links database integrity and update with new pages and anchors.
| name | content-add-internal-links-to-article |
| description | Analyze an article and add relevant internal links from both SLG and ITA projects. Use when the user asks to add internal or cross-project links to an article. |
| argument-hint | ["path to article file"] |
Analyze an article, find relevant internal links from BOTH projects (SLG and ITA), and automatically insert them into the file.
Internal links include:
/ru/mortgage/)#надежные-хесторы or /ru/mortgage/#документы)$ARGUMENTS
The input should be a path to an article file (e.g., _includes/ru/some-article.md).
Read the article from the specified path
Determine article language from the path:
_includes/ru/ → Russian_includes/ua/ → Ukrainian_includes/en/ → English_includes/es/ → SpanishUnderstand link types:
#надежные-хесторы or /ru/mortgage/#документы-для-ипотеки)/ru/mortgage/)[text](#anchor), [text](/path/), or [text](/path/#anchor)[text](https://site.com/path/){:target="_blank"} or [text](https://site.com/path/#anchor){:target="_blank"}Load SLG links database:
_resources/internal_links_{lang}.json - contains all pages with anchorsUnderstand the internal_links_{lang}.json structure:
{
"pages": [
{
"path": "/",
"url": "https://spainlifeguide.com/",
"title": "Main page title",
"description": "What this page is about",
"anchors": ["anchor1", "anchor2"]
},
{
"path": "/ru/mortgage/",
"url": "https://spainlifeguide.com/ru/mortgage/",
"title": "Ипотека в Испании",
"description": "Complete mortgage guide",
"anchors": ["документы-для-ипотеки", "пошаговая-инструкция-по-оформлению-ипотеки", ...]
}
]
}
/ru/mortgage/#документы-для-ипотекиpath: "/"), just use #anchorAnalyze the article content for SLG-relevant topics:
Match terms to SLG pages and anchors:
/ru/mortgage/), anchor on main page (#надежные-хесторы), or anchor on subpage (/ru/mortgage/#документы-для-ипотеки)Apply conservative linking rules for internal links:
Edit the file to add internal links
Load ITA links database from sibling project:
../it-autonomos-spain/_resources/internal_links_{lang}.json - contains all pages with anchorsUnderstand the internal_links_{lang}.json structure:
{
"pages": [
{
"path": "/",
"url": "https://itautonomos.com/",
"title": "Main page title",
"description": "What this page is about",
"anchors": ["anchor1", "anchor2"]
}
]
}
url + #anchor to create external linksITA base URLs by language:
https://itautonomos.com/ru/https://itautonomos.com/ua/https://itautonomos.com/ (default language)https://itautonomos.com/es/Analyze the article for ITA-relevant topics:
Apply conservative linking rules for external links:
Edit the file to add external links with {:target="_blank"}
Output summary:
| Text linked | Link | Reason |
|---|---|---|
| phrase | #anchor or /path/ or /path/#anchor | why this link helps |
| Text linked | Full URL | Reason |
|---|---|---|
| phrase | https://itautonomos.com/... | why this link helps |
For a Russian article about document requirements, after editing:
Added Internal Links (SLG):
| Text linked | Link | Reason |
|---|---|---|
| юристу | #надежные-миграционные-юристы | Links to immigration lawyers |
| ипотеку | /ru/mortgage/ | Links to mortgage guide |
| документы для ипотеки | /ru/mortgage/#документы-для-ипотеки | Links to mortgage documents section |
Added External Links (ITA):
| Text linked | Full URL | Reason |
|---|---|---|
| renta | https://itautonomos.com/ru/#годовая-декларация-renta | Годовая декларация (Renta) |
Skipped: