Логотип Content Testing

Content Testing

Спільнота
alpham8
content-testing

Використовуйте під час написання або перевірки тестів для вебсторінок, відповідей API, виводу CLI чи будь-яких даних, які бачать користувачі. Переконайтеся, що тести перевіряють фактичний вміст і структуру, а не лише коди стану чи типи відповідей. Активується для файлів тестів, тестових методів, assertResponseIsSuccessful, assertResponseStatusCodeSame, перевірок кодів стану, тестів HTTP-відповідей, тестів контролерів, кінцевих точок, інтеграційних і функціональних тестів.

Add to TypingMind

Огляд

Видавецьalpham8
Репозиторійagentic-webdev
Назва навичкиcontent-testing
Зірки
4
Форки
0
Файли в пакеті
Лише інструкції
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: alpham8. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Content Testing у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/alpham8/agentic-webdev/tree/master/skills/content-testing
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpham8/agentic-webdev.git /tmp/agentic-webdev
mkdir -p .claude/skills
cp -r /tmp/agentic-webdev/skills/content-testing .claude/skills/content-testing
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Content Testing в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Content Testing, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Content Testing не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Content Testing — Deep Assertions

Core Principle

A test that only checks a status code proves the server didn't crash. It does not prove the page is correct.

Every test for user-facing output must assert what the user actually sees or receives — not just that "something was returned successfully."

When This Skill Applies

  • Writing or reviewing tests for web pages (HTML responses)
  • Writing or reviewing tests for API endpoints (JSON/XML responses)
  • Writing or reviewing tests for CLI commands (stdout/stderr output)
  • Writing or reviewing tests for email templates, PDF generation, RSS feeds
  • Any test that checks a response status code without also checking the response body

The Rule

STATUS CODE + CONTENT ASSERTIONS = VALID TEST
STATUS CODE ONLY = INCOMPLETE TEST

A status-code-only test is a smoke test — useful as a baseline, but never sufficient on its own.

Assertion Depth Pyramid

Every test should climb as high on this pyramid as the feature requires:

Level 4: Semantic correctness
         (values are correct, relationships hold, business logic works)

Level 3: Content verification
         (text matches, data is present, translations render)

Level 2: Structural verification
         (elements exist, correct nesting, required sections present)

Level 1: Response verification
         (status code, content-type, headers)

Level 1 — Response Verification (Minimum)

Status code, content type, critical headers.

✅ Response is 200
✅ Content-Type is text/html (or application/json, application/xml)
✅ Cache headers are set correctly

This level alone is never sufficient for a content test.

Level 2 — Structural Verification

The response contains the expected structural elements.

HTML pages:

  • Required sections/containers exist (navigation, main content, footer)
  • Form fields are present and have correct types
  • Interactive elements exist (buttons, links, widgets)
  • SEO elements exist (meta tags, JSON-LD blocks, hreflang tags)

JSON APIs:

  • Required keys exist
  • Array fields have expected structure
  • Nested objects have correct shape

XML/RSS feeds:

  • Required elements exist (channel, item, entry)
  • Each item has required child elements

CLI output:

  • Expected sections/headers appear
  • Table structure is correct

Level 3 — Content Verification

The content is actually correct, not just structurally present.

HTML pages:

  • Headings contain expected text
  • Navigation links point to correct URLs
  • Form labels match the current locale
  • Translated strings render (not raw translation keys)
  • Company/legal info is present (name, address, tax ID)

JSON APIs:

  • Values match expected data
  • Counts are correct
  • Enum values are valid

XML/RSS feeds:

  • Item titles are non-empty
  • Links are valid URLs
  • Dates are parseable

Level 4 — Semantic Correctness

The feature works correctly as a whole.

  • Pagination shows different content per page
  • Search returns relevant results
  • Locale-specific content uses the correct language
  • Filtered lists exclude non-matching items
  • Related/recommended items are actually related
  • SEO structured data contains correct values (not just correct structure)

Checklist by Feature Type

Web Page Tests

[ ] Status code (200, 301, 404, etc.)
[ ] Page title contains expected text
[ ] H1 heading exists and contains expected text
[ ] Main content section exists
[ ] Navigation exists with correct links
[ ] Footer exists with required content
[ ] Meta tags present (description, og:*, article:*)
[ ] Structured data present (JSON-LD)
[ ] Hreflang tags correct (multilingual sites)
[ ] html lang attribute matches locale
[ ] Forms have all required fields
[ ] Interactive widgets present (CAPTCHA, date pickers, etc.)
[ ] Images have alt attributes

Multilingual Page Tests

[ ] Each locale returns correct html lang
[ ] Page title is in the correct language
[ ] H1 is in the correct language
[ ] Navigation labels match locale
[ ] Hreflang tags link to all locales
[ ] x-default hreflang points to default locale
[ ] Language switcher exists and links to other locale
[ ] Translated content renders (not raw keys like 'nav.home')
[ ] Date/number formatting follows locale conventions

Form Tests

[ ] All input fields exist (name, type, id)
[ ] Labels are present and associated
[ ] Required fields are marked
[ ] Submit button exists
[ ] CAPTCHA/anti-spam widget present
[ ] Validation errors display for invalid input
[ ] Error messages are user-friendly and localized
[ ] Success page/response has correct content

API Endpoint Tests

[ ] Status code correct
[ ] Content-Type header correct
[ ] Response body has expected structure (keys, nesting)
[ ] Array responses have expected item count or range
[ ] Each item has required fields
[ ] Values are of correct type
[ ] Empty results return empty array, not null/error
[ ] Error responses have structured error body

RSS/XML Feed Tests

[ ] Content-Type is application/xml or application/rss+xml
[ ] Root element is correct (rss, feed, urlset)
[ ] Channel/feed metadata present (title, link, description)
[ ] Items have required elements (title, link, pubDate/updated)
[ ] Item content is non-empty
[ ] URLs are absolute
[ ] Dates are valid

SEO Tests

[ ] Title tag present and non-empty
[ ] Meta description present and non-empty
[ ] Open Graph tags present (og:title, og:description, og:type)
[ ] JSON-LD structured data present and valid type
[ ] Canonical URL correct
[ ] Hreflang tags for all supported locales
[ ] Sitemap contains all public URLs
[ ] noindex on pages that should not be indexed (success pages, admin)
[ ] Breadcrumb JSON-LD on subpages

Pagination Tests

[ ] Page 1 returns correct number of items
[ ] Page 2 has different items than page 1
[ ] Out-of-range page numbers are handled (clamped or 404)
[ ] Pagination controls exist (links, buttons)
[ ] Current page is indicated

Anti-Patterns

Status-Code-Only Test

❌ BAD — proves nothing about page content
test('homepage returns 200')
    GET /
    assert status == 200

✅ GOOD — proves the page renders correctly
test('homepage contains hero section and services')
    GET /
    assert status == 200
    assert selector 'section.hero' exists
    assert selector 'section.hero h1' exists
    assert selector '#services' exists
    assert selector '.service-card' count >= 3

Mock-Heavy Content Test

❌ BAD — tests the mock, not the page
test('blog shows posts')
    mock BlogService to return [fake post]
    GET /blog
    assert status == 200

✅ GOOD — tests with real data
test('blog listing shows actual posts with structure')
    GET /blog
    assert status == 200
    assert '.blog-card' count > 0
    for each .blog-card:
        assert has date element
        assert has title link
        assert has excerpt

Single-Locale Testing

❌ BAD — only tests one language
test('contact page works')
    GET /kontakt
    assert status == 200

✅ GOOD — tests both locales with content
test('contact page DE has German heading')
    GET /kontakt
    assert h1 contains 'Kontakt'

test('contact page EN has English heading')
    GET /en/contact
    assert h1 contains 'Contact'

How to Apply This Skill

When writing or reviewing tests:

  1. Identify the test's purpose — what user-facing feature does it verify?
  2. Check the assertion depth — is it Level 1 only? Climb higher.
  3. Walk the checklist — use the relevant checklist above for the feature type.
  4. Test both/all locales — if the app is multilingual, every content test needs locale variants.
  5. Verify real content — use assertions against actual rendered text, DOM structure, or response data. Don't just check that "something" exists.

Relationship to Other Skills

SkillRelationship
TDDTDD defines when to write tests (before code). This skill defines what depth to test.
Symfony / PHPFramework-specific assertion helpers (assertSelectorExists, assertSelectorTextContains).
Frontend DesignWhat to verify in UI tests (sections, components, accessibility).

Поширені запитання

Що робить навичка ШІ Content Testing?

Використовуйте під час написання або перевірки тестів для вебсторінок, відповідей API, виводу CLI чи будь-яких даних, які бачать користувачі. Переконайтеся, що тести перевіряють фактичний вміст і структуру, а не лише коди стану чи типи відповідей. Активується для файлів тестів, тестових методів, assertResponseIsSuccessful, assertResponseStatusCodeSame, перевірок кодів стану, тестів HTTP-відповідей, тестів контролерів, кінцевих точок, інтеграційних і функціональних тестів.

Навіщо використовувати Content Testing у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Content Testing — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Content Testing у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/alpham8/agentic-webdev/tree/master/skills/content-testing. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Content Testing?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Content Testing?

Зі скількома забажаєте. У TypingMind ви можете використовувати Content Testing із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Content Testing?

На GitHub цю навичку публікує alpham8. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇