Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ln-140-test-docs-creator

БесплатноБез исполняемых скриптовНе проверен

Creates test documentation (testing-strategy.md + tests/README.md). Establishes testing philosophy and Story-Level Test Task Pattern.

tensologyот tensology★ 17 звёзд на GitHub

Об этом скилле

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

Test Documentation Creator

This skill creates and validates test documentation: testing-strategy.md (universal testing philosophy) + tests/README.md (test organization structure and Story-Level Test Task Pattern).

Purpose

Creates and validates test documentation (testing-strategy.md + tests/README.md) establishing universal testing philosophy, Risk-Based Testing strategy, and Story-Level Test Task Pattern for any project.

When to Use This Skill

This skill is a L2 WORKER invoked by ln-100-documents-pipeline orchestrator.

This skill should be used directly when:

  • Creating only test documentation (testing-strategy.md + tests/README.md)
  • Validating existing test documentation structure and content
  • Setting up test philosophy and structure documentation for existing project
  • NOT creating full documentation structure (use ln-100-documents-pipeline for complete setup)

Workflow

The skill follows a 3-phase workflow: CREATE → VALIDATE STRUCTURE → VALIDATE CONTENT. Each phase builds on the previous, ensuring complete structure and semantic validation.


Phase 1: Create Test Documentation

Objective: Establish test philosophy and documentation structure.

Process:

1.1 Check & create directories:

  • Check if docs/reference/guides/ exists → create if missing
  • Check if tests/ exists → create if missing
  • Check if tests/manual/ exists → create if missing
  • Check if tests/manual/results/ exists → create if missing
  • Add tests/manual/results/ to project .gitignore if not present
  • Log for each: "✓ Created [directory]/" or "✓ [directory]/ already exists"

1.2 Check & create documentation files:

  • Check if docs/reference/guides/testing-strategy.md exists

  • If exists:

    • Skip creation
    • Log: "✓ testing-strategy.md already exists, proceeding to validation"
  • If NOT exists:

    • Copy template: ln-114-test-docs-creator/references/testing_strategy_template.md → docs/reference/guides/testing-strategy.md
    • Replace placeholders:
      • [CURRENT_DATE] — current date (YYYY-MM-DD)
    • Log: "✓ Created testing-strategy.md from template"
  • Check if tests/README.md exists

  • If exists:

    • Skip creation
    • Log: "✓ tests/README.md already exists, proceeding to validation"
  • If NOT exists:

    • Copy template: ln-114-test-docs-creator/references/tests_readme_template.md → tests/README.md
    • Replace placeholders:
      • {{DATE}} — current date (YYYY-MM-DD)
    • Log: "✓ Created tests/README.md from template"

1.3 Output:

docs/reference/guides/
└── testing-strategy.md           # Created or existing

tests/
├── README.md                     # Created or existing
└── manual/
    └── results/                  # Created, added to .gitignore

Phase 2: Validate Structure

Objective: Ensure test documentation files comply with structural requirements and auto-fix violations.

Process:

2.1 Check SCOPE tags:

  • Read both files (testing-strategy.md, tests/README.md) - first 5 lines only
  • Check for <!-- SCOPE: ... --> tag in each
  • Expected SCOPE tags:
    • testing-strategy.md: <!-- SCOPE: Universal testing philosophy (Risk-Based Testing, test pyramid, isolation patterns) -->
    • tests/README.md: <!-- SCOPE: Test organization structure (directory layout, Story-Level Test Task Pattern) -->
  • If missing in either file:
    • Use Edit tool to add SCOPE tag at line 1 (before first heading)
    • Track violation: scope_tags_added += 1

2.2 Check required sections:

  • Load expected sections from references/questions.md
  • For testing-strategy.md, required sections:
    • "Testing Philosophy"
    • "Test Levels"
  • For tests/README.md, required sections:
    • "Test Organization"
    • "Running Tests"
  • For each file:
    • Read file content
    • Check if ## [Section Name] header exists
    • If missing:
      • Use Edit tool to add section with placeholder content from template
      • Track violation: missing_sections += 1

2.3 Check Maintenance section:

  • For each file (testing-strategy.md, tests/README.md):
    • Search for ## Maintenance header
    • If missing:
      • Use Edit tool to add at end of file:
        ## Maintenance
        
        **Last Updated:** [current date]
        
        **Update Triggers:**
        - Test framework changes
        - Test organization changes
        - New test patterns introduced
        
        **Verification:**
        - [ ] All test examples follow current framework syntax
        - [ ] Directory structure matches actual tests/
        - [ ] Test runner commands are current
        
      • Track violation: maintenance_added += 1

2.4 Check POSIX file endings:

  • For each file:
    • Check if file ends with single blank line (LF)
    • If missing:
      • Use Edit tool to add final newline
      • Track fix: posix_fixed += 1

**2.

Полный SKILL.md на GitHub

Установить ln-140-test-docs-creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/questions.mdreferences/testing_strategy_template.mdreferences/tests_readme_template.md

FAQ

Что делает скилл ln-140-test-docs-creator?

Creates test documentation (testing-strategy.md + tests/README.md). Establishes testing philosophy and Story-Level Test Task Pattern.

Как установить скилл ln-140-test-docs-creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ln-140-test-docs-creator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ln-140-test-docs-creator с