| \s*/i, '').replace(/\s*<\/td><\/tr><\/table>$/i, '');
+ return '\n\n#### Вопрос: ' + title + '\n\n' + answer.trim() + '\n\n';
+ },
+ );
+
+ assert(convertedCount > 0, 'No questions extracted from ' + slug);
+ // Some answers contain literal HTML examples with tags.
+ assert(sourceCount - convertedCount <= 1, 'Unconverted questions in ' + slug);
+ const markdown = converted.replace(
+ /(!\[[^\]]*\]\()(assets\/[^)]+)(\))/g,
+ (_, before, asset, after) =>
+ before +
+ 'https://raw.githubusercontent.com/Angular-RU/angular-ru-interview-questions/main/src/pages/' +
+ slug +
+ '/' +
+ asset +
+ after,
+ );
+
+ return {markdown, count: convertedCount};
+}
+
+function splitIntoChunks(markdown) {
+ const sections = markdown.split(/(?=^###\s)/m);
+ const chunks = [];
+ let current = {text: '', topics: new Set()};
+ let lastTopic = 'Основы';
+
+ const flush = () => {
+ if (!current.text.trim()) return;
+ chunks.push({text: current.text.trim(), topics: [...current.topics]});
+ current = {text: '', topics: new Set()};
+ };
+
+ for (const section of sections) {
+ const match = section.match(/^###\s+(.+)$/m);
+ if (match) lastTopic = match[1].trim();
+ const pieces = section.length > maxChunkSize ? section.split(/(?=^#### Вопрос: )/m) : [section];
+
+ for (const piece of pieces) {
+ if (!piece.trim()) continue;
+ if (current.text.length && current.text.length + piece.length > maxChunkSize) flush();
+ current.text += piece;
+ current.topics.add(lastTopic);
+ }
+ }
+ flush();
+ return chunks;
+}
+
+function generateSkill(skill) {
+ const page = readFileSync(join(root, 'src/pages', skill.slug, 'index.md'), 'utf8');
+ const {markdown, count} = convertQuestions(page, skill.slug);
+ const chunks = splitIntoChunks(markdown);
+ const items = new Map();
+ const index = [];
+ for (const [i, chunk] of chunks.entries()) {
+ const filename = 'part-' + String(i + 1).padStart(2, '0') + '.md';
+ const file = 'skills/' + skill.slug + '/references/' + filename;
+ const questions = (chunk.text.match(/^#### Вопрос: /gm) ?? []).length;
+ const topics = chunk.topics.join(', ');
+ items.set(
+ file,
+ [
+ '# ' + skill.title + ' — вопросы и ответы, часть ' + (i + 1),
+ '',
+ '> Автоматически сгенерировано из src/pages/' + skill.slug + '/index.md. Не редактируйте вручную.',
+ '',
+ chunk.text,
+ '',
+ ].join('\n'),
+ );
+ index.push('- [' + topics + '](references/' + filename + ') — ' + questions + ' вопросов');
+ }
+ assert.equal(
+ chunks.reduce((sum, chunk) => sum + (chunk.text.match(/^#### Вопрос: /gm) ?? []).length, 0),
+ count,
+ );
+
+ items.set(
+ 'skills/' + skill.slug + '/SKILL.md',
+ [
+ '---',
+ 'name: ' + skill.slug,
+ 'description: ' +
+ JSON.stringify(
+ 'Вопросы и ответы для технического собеседования по теме ' +
+ skill.title +
+ '. Используйте для подготовки, проверки знаний и проведения интервью.',
+ ),
+ '---',
+ '',
+ '# ' + skill.title + ' — подготовка к собеседованию',
+ '',
+ 'Скилл содержит **' +
+ count +
+ ' вопросов с ответами** из репозитория Angular-RU/angular-ru-interview-questions. Материалы включены в папку references/ и доступны без интернета.',
+ '',
+ '## Работа с вопросами',
+ '',
+ '1. Учитывайте запрос пользователя: обучение, объяснение конкретной темы, тренировка или пробное интервью.',
+ '2. При интервью задавайте **по одному вопросу** из файлов references/, не раскрывайте ответ до ответа кандидата.',
+ '3. Оценивайте ответ, сопоставляя его с Коротким ответом и Полным ответом исходного материала. Уточняйте пробелы и приводите примеры из базы вопросов.',
+ '4. Учитывайте желаемый уровень Junior, Middle или Senior. Не придумывайте содержимое источника и не выдавайте собственные дополнения за текст справочника.',
+ '5. Если пользователь попросил объяснение, отвечайте сразу, а не запускайте обязательное интервью. Сохраняйте язык общения пользователя.',
+ '6. Для API, которые могут измениться, отличайте формулировку источника от актуальных фактов. При необходимости проверяйте официальную документацию.',
+ '',
+ '## Вопросы и ответы по разделам',
+ '',
+ ...index,
+ '',
+ 'Исходный раздел: https://angular-ru.github.io/interview/' + skill.slug + '/',
+ '',
+ ].join('\n'),
+ );
+ return items;
+}
+
+for (const skill of catalog) {
+ const items = generateSkill(skill);
+ for (const [relative, content] of items) {
+ generated.add(relative);
+ const absolute = join(root, relative);
+ if (check) {
+ assert(existsSync(absolute), 'Missing generated file: ' + relative);
+ assert.equal(readFileSync(absolute, 'utf8'), content, 'Outdated generated file: ' + relative);
+ } else {
+ mkdirSync(join(absolute, '..'), {recursive: true});
+ writeFileSync(absolute, content);
+ }
+ }
+
+ const references = join(root, 'skills', skill.slug, 'references');
+ if (existsSync(references)) {
+ for (const filename of readdirSync(references)) {
+ const relative = 'skills/' + skill.slug + '/references/' + filename;
+ if (!generated.has(relative) && filename.startsWith('part-') && filename.endsWith('.md')) {
+ if (check) throw new Error('Stale generated file: ' + relative);
+ unlinkSync(join(references, filename));
+ }
+ }
+ }
+}
+console.log(
+ (check ? 'Verified' : 'Generated') + ' question banks and skill instructions for ' + catalog.length + ' topics.',
+);
diff --git a/scripts/package-skills.sh b/scripts/package-skills.sh
new file mode 100644
index 00000000..43e7015b
--- /dev/null
+++ b/scripts/package-skills.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+out="dist/skill-archives"
+mkdir -p "$out"
+rm -f "$out"/*.zip
+
+shopt -s nullglob
+skill_dirs=(skills/*/)
+if (( ${#skill_dirs[@]} == 0 )); then
+ echo "No generated skill directories found." >&2
+ exit 1
+fi
+
+for skill_dir in "${skill_dirs[@]}"; do
+ slug="${skill_dir#skills/}"
+ slug="${slug%/}"
+
+ if [[ ! -f "skills/$slug/SKILL.md" ]]; then
+ echo "Missing generated SKILL.md for $slug" >&2
+ exit 1
+ fi
+
+ (cd skills && zip -q -r -X "../$out/$slug.zip" "$slug")
+ unzip -tq "$out/$slug.zip" >/dev/null
+done
+
+(cd skills && zip -q -r -X "../$out/all.zip" */)
+unzip -tq "$out/all.zip" >/dev/null
+echo "Packaged ${#skill_dirs[@]} skills and the full bundle."
diff --git a/skills/catalog.json b/skills/catalog.json
new file mode 100644
index 00000000..7ae2a11f
--- /dev/null
+++ b/skills/catalog.json
@@ -0,0 +1,328 @@
+[
+ {
+ "slug": "ai",
+ "title": "AI",
+ "category": "Основы и инструменты",
+ "description": "AI-assisted development, агенты, промптинг, оценка качества AI-кода и безопасное применение моделей.",
+ "topics": [
+ "AI-assisted development",
+ "проверка AI-генерируемого кода",
+ "AI-агенты и MCP",
+ "prompt engineering",
+ "тестирование AI-результатов"
+ ]
+ },
+ {
+ "slug": "angular",
+ "title": "Angular",
+ "category": "Frontend",
+ "description": "Components, dependency injection, templates, signals, RxJS, routing, forms и SSR.",
+ "topics": [
+ "standalone components и templates",
+ "dependency injection и providers",
+ "signals и change detection",
+ "RxJS и асинхронные потоки",
+ "routing, forms и SSR"
+ ]
+ },
+ {
+ "slug": "architecture",
+ "title": "Распределенные системы",
+ "category": "Backend",
+ "description": "Микросервисы, надежность, согласованность данных и масштабирование.",
+ "topics": [
+ "монолит и микросервисы",
+ "CAP, consistency и availability",
+ "асинхронная коммуникация",
+ "fault tolerance и retries",
+ "масштабирование и наблюдаемость"
+ ]
+ },
+ {
+ "slug": "career-teamwork",
+ "title": "Карьера в команде",
+ "category": "Карьера",
+ "description": "Soft skills, командное взаимодействие, коммуникация и технические интервью.",
+ "topics": [
+ "собеседования и самопрезентация",
+ "коммуникация в команде",
+ "конфликты и обратная связь",
+ "лидерство и наставничество",
+ "карьерный рост"
+ ]
+ },
+ {
+ "slug": "computer-science",
+ "title": "Архитектура компьютера",
+ "category": "Основы и инструменты",
+ "description": "Процессоры, память, машинные инструкции и основы устройства компьютера.",
+ "topics": [
+ "CPU и инструкции",
+ "иерархия памяти и кэши",
+ "RAM и адресация",
+ "параллелизм и выполнение",
+ "системные ограничения"
+ ]
+ },
+ {
+ "slug": "css",
+ "title": "CSS",
+ "category": "Frontend",
+ "description": "Layout, Flexbox, Grid, каскад, адаптивность, rendering и performance.",
+ "topics": [
+ "cascade и specificity",
+ "Flexbox и Grid",
+ "responsive layout",
+ "CSS architecture",
+ "rendering и performance"
+ ]
+ },
+ {
+ "slug": "databases-sql",
+ "title": "Базы данных",
+ "category": "Backend",
+ "description": "SQL, проектирование схем, индексы, транзакции и производительность запросов.",
+ "topics": [
+ "проектирование реляционной схемы",
+ "JOIN, GROUP BY и подзапросы",
+ "индексы и планы запросов",
+ "транзакции и изоляция",
+ "оптимизация SQL"
+ ]
+ },
+ {
+ "slug": "development-process",
+ "title": "Процессы разработки",
+ "category": "Карьера",
+ "description": "Scrum, Kanban, планирование, декомпозиция и взаимодействие с аналитиками.",
+ "topics": [
+ "Agile, Scrum и Kanban",
+ "оценка и декомпозиция задач",
+ "планирование и приоритизация",
+ "определение готовности",
+ "сотрудничество аналитиков и разработчиков"
+ ]
+ },
+ {
+ "slug": "docker",
+ "title": "Docker",
+ "category": "Инфраструктура",
+ "description": "Образы, контейнеры, Dockerfile, Compose и практический запуск приложений.",
+ "topics": [
+ "images vs containers",
+ "Dockerfile и слои",
+ "volumes и networks",
+ "Docker Compose",
+ "безопасность и оптимизация образов"
+ ]
+ },
+ {
+ "slug": "frontend-architecture-patterns",
+ "title": "Организация кода",
+ "category": "Frontend",
+ "description": "Модульные границы, зависимости, архитектурные паттерны и организация frontend-кода.",
+ "topics": [
+ "границы модулей",
+ "layering и dependency direction",
+ "архитектурные паттерны",
+ "feature organization",
+ "trade-offs и рефакторинг"
+ ]
+ },
+ {
+ "slug": "git",
+ "title": "Git",
+ "category": "Основы и инструменты",
+ "description": "История изменений, ветвление, rebase, merge, pull requests и командная работа.",
+ "topics": [
+ "commits и branches",
+ "merge vs rebase",
+ "cherry-pick и revert",
+ "разрешение конфликтов",
+ "pull request workflow"
+ ]
+ },
+ {
+ "slug": "html",
+ "title": "HTML",
+ "category": "Frontend",
+ "description": "Семантика, формы, доступность, metadata, SEO и структура документов.",
+ "topics": ["semantic HTML", "forms и validation", "accessibility и ARIA", "SEO и metadata", "SVG и media"]
+ },
+ {
+ "slug": "infrastructure",
+ "title": "DevOps",
+ "category": "Инфраструктура",
+ "description": "CI/CD, deployment, delivery pipelines, feature flags и эксплуатация.",
+ "topics": [
+ "CI/CD pipelines",
+ "build и artifacts",
+ "deployment и rollback",
+ "feature flags",
+ "monitoring и reliability"
+ ]
+ },
+ {
+ "slug": "integrations",
+ "title": "Интеграции",
+ "category": "Backend",
+ "description": "REST, SOAP, очереди, брокеры сообщений и интеграционные паттерны.",
+ "topics": [
+ "REST API",
+ "SOAP и контрактные интеграции",
+ "message queues",
+ "синхронные и асинхронные взаимодействия",
+ "идемпотентность и retries"
+ ]
+ },
+ {
+ "slug": "javascript",
+ "title": "JavaScript",
+ "category": "Frontend",
+ "description": "Язык, асинхронность, Event Loop, DOM, fetch и runtime браузера.",
+ "topics": [
+ "types, references и memory",
+ "closures и prototypes",
+ "promises и async/await",
+ "Event Loop",
+ "DOM, fetch и browser APIs"
+ ]
+ },
+ {
+ "slug": "linux",
+ "title": "Linux / Unix",
+ "category": "Основы и инструменты",
+ "description": "Shell, файлы, права, процессы, сеть и рабочее окружение Unix.",
+ "topics": [
+ "shell commands",
+ "permissions и filesystem",
+ "processes и signals",
+ "network diagnostics",
+ "pipes и shell scripts"
+ ]
+ },
+ {
+ "slug": "nodejs",
+ "title": "Node.js",
+ "category": "Backend",
+ "description": "Node runtime, npm, HTTP, networking, tooling и observability.",
+ "topics": [
+ "Node.js runtime",
+ "event loop и async I/O",
+ "npm scripts",
+ "HTTP servers",
+ "diagnostics и observability"
+ ]
+ },
+ {
+ "slug": "operating-systems",
+ "title": "Операционные системы",
+ "category": "Основы и инструменты",
+ "description": "Процессы, потоки, память, файловые системы и сетевые основы.",
+ "topics": ["processes vs threads", "scheduling", "virtual memory", "filesystems", "I/O и networking"]
+ },
+ {
+ "slug": "qa",
+ "title": "QA",
+ "category": "Инфраструктура",
+ "description": "Стратегия тестирования, unit/integration/e2e, метрики качества и анализ дефектов.",
+ "topics": [
+ "testing pyramid",
+ "unit, integration и e2e",
+ "test design и edge cases",
+ "regression и flaky tests",
+ "quality metrics"
+ ]
+ },
+ {
+ "slug": "react",
+ "title": "React",
+ "category": "Frontend",
+ "description": "Components, hooks, state, rendering, routing, forms и экосистема React.",
+ "topics": [
+ "components и JSX",
+ "hooks и effects",
+ "state и rendering",
+ "forms и data fetching",
+ "React architecture"
+ ]
+ },
+ {
+ "slug": "state-management",
+ "title": "State Management",
+ "category": "Frontend",
+ "description": "Client/server/URL state, кэширование, нормализация и state managers.",
+ "topics": [
+ "local vs shared state",
+ "server state и caching",
+ "URL state и forms",
+ "normalization",
+ "reactivity и state managers"
+ ]
+ },
+ {
+ "slug": "system-analysis",
+ "title": "Системный анализ",
+ "category": "Архитектура",
+ "description": "Требования, user stories, процессы и аналитические артефакты.",
+ "topics": [
+ "functional vs non-functional requirements",
+ "user stories и acceptance criteria",
+ "BPMN и UML",
+ "API contracts",
+ "traceability и change management"
+ ]
+ },
+ {
+ "slug": "system-design",
+ "title": "Проектирование UI",
+ "category": "Frontend",
+ "description": "UI-архитектура, rendering strategies, масштабирование и технические компромиссы.",
+ "topics": [
+ "frontend system design",
+ "UI data flow",
+ "SSR, CSR и hydration",
+ "performance и accessibility",
+ "trade-offs и ограничения"
+ ]
+ },
+ {
+ "slug": "typescript",
+ "title": "TypeScript",
+ "category": "Frontend",
+ "description": "Типизация, generics, utility types, архитектура типов и runtime-контракты.",
+ "topics": [
+ "generics и constraints",
+ "union и narrowing",
+ "mapped и conditional types",
+ "type-safe API design",
+ "runtime validation"
+ ]
+ },
+ {
+ "slug": "ui-ux",
+ "title": "UI/UX",
+ "category": "Frontend",
+ "description": "Usability, accessibility, сценарии пользователей, интерфейсные состояния и продуктовые решения.",
+ "topics": [
+ "UX research",
+ "interaction design",
+ "accessibility",
+ "error и empty states",
+ "usability и product metrics"
+ ]
+ },
+ {
+ "slug": "web-protocols",
+ "title": "Веб-протоколы и безопасность",
+ "category": "Основы и инструменты",
+ "description": "HTTP, браузерная сеть, authentication, authorization и web security.",
+ "topics": [
+ "HTTP request lifecycle",
+ "HTTP caching и headers",
+ "cookies и sessions",
+ "authentication vs authorization",
+ "XSS, CSRF и CORS"
+ ]
+ }
+]
diff --git a/src/components/SkillHero.astro b/src/components/SkillHero.astro
new file mode 100644
index 00000000..795b642d
--- /dev/null
+++ b/src/components/SkillHero.astro
@@ -0,0 +1,61 @@
+---
+import type {Skill} from '../data/skills';
+import {installCommand} from '../data/skills';
+import SkillInstall from './SkillInstall.astro';
+
+interface Props {
+ readonly skill: Skill;
+}
+
+const {skill} = Astro.props;
+const base = import.meta.env.BASE_URL.replace(/\/$/, '');
+---
+
+
+
+
+
+/{skill.slug} · AI Skill +{skill.title}+{skill.description} + +
+ Все AI Skills
+
+
+ Скачать скилл
+
+
+
+
+
+
+
diff --git a/src/data/skills.ts b/src/data/skills.ts
new file mode 100644
index 00000000..4e709e1c
--- /dev/null
+++ b/src/data/skills.ts
@@ -0,0 +1,12 @@
+import catalog from '../../skills/catalog.json';
+
+export const skills = catalog;
+export type Skill = (typeof skills)[number];
+
+const releaseUrl =
+ 'https://github.com/Angular-RU/angular-ru-interview-questions/releases/download/skills-latest';
+
+export const installAllCommand = `npx skills@latest add ${releaseUrl}/all.zip`;
+
+export const installCommand = (slug: string): string =>
+ `npx skills@latest add ${releaseUrl}/${slug}.zip`;
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 3e265626..853b6df3 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -3,6 +3,8 @@ import {ClientRouter} from 'astro:transitions';
import SidebarNavigation from '../components/SidebarNavigation.astro';
import SiteSearch from '../components/SiteSearch.astro';
+import SkillHero from '../components/SkillHero.astro';
+import {skills} from '../data/skills';
import '../styles/global.css';
interface MarkdownHeading {
@@ -33,6 +35,8 @@ const basePath = import.meta.env.BASE_URL.replace(/\/$/, '');
const currentPath = Astro.url.pathname.replace(/\/$/, '');
const homeHref = `${basePath}/`;
const isHomePage = currentPath === basePath;
+const skillSlug = currentPath.slice(basePath.length).replace(/^\/+|\/+$/g, '');
+const currentSkill = skills.find(({slug}) => slug === skillSlug);
const showHomeLink = !isHomePage;
const canonicalUrl = new URL(Astro.url.pathname, Astro.site ?? Astro.url.origin);
@@ -123,6 +127,8 @@ const searchEnabled = import.meta.env.PROD;
title={title}
/>
+ {currentSkill && {command}
+
+
+
+/skills +AI Skills для технических интервью++ Превратите справочник вопросов в персонального AI-интервьюера. Скиллы задают вопросы, разбирают ответы и + помогают подготовиться к техническому собеседованию. + +
+ Установить все скиллы
+
+
+ {skills.length} скиллов
+ Выберите тему и установите только то, что нужно
+
+
+ {
+ groups.map((group) => (
+ {group}+
+ {skills
+ .filter(({category}) => category === group)
+ .map((skill) => (
+
+
+ {skill.title}
+ {skill.description}
+
+
+ ))}
+
+ |