Command Palette

Search for a command to run...

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

ln-120-reference-docs-creator

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

Creates reference documentation structure + smart documents (ADRs/Guides/Manuals) based on TECH_STACK. Only creates justified documents (nontrivial technology…

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.

Reference Documentation Creator

This skill creates the reference documentation structure (docs/reference/) and smart documents (ADRs, Guides, Manuals) based on project's TECH_STACK. Documents are created only when justified (nontrivial technology choices with alternatives).

Purpose

Create the reference documentation directory structure (docs/reference/) with README hub, then generate ADRs, Guides, and Manuals only for justified (nontrivial) technology choices based on TECH_STACK from Context Store.

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 reference documentation structure (docs/reference/)
  • Setting up directories for ADRs, guides, and manuals
  • NOT creating full documentation structure (use ln-100-documents-pipeline for complete setup)

Inputs

From ln-100 (via ln-110 Context Store):

{
  "context_store": {
    "PROJECT_NAME": "my-project",
    "TECH_STACK": {
      "frontend": "React 18",
      "backend": "Express 4.18",
      "database": "PostgreSQL 15",
      "orm": "Prisma 5.0",
      "auth": "JWT",
      "cache": "Redis 7"
    },
    "DEPENDENCIES": [...],
    "flags": { "hasBackend": true, "hasDatabase": true, "hasFrontend": true }
  }
}

TECH_STACK is used for smart document creation in Phase 2.

Workflow

The skill follows a 4-phase workflow: CREATE STRUCTURE → SMART DOCUMENT CREATION → VALIDATE STRUCTURE → VALIDATE CONTENT. Phase 2 creates documents only for justified technology choices.


Phase 1: Create Structure

Objective: Establish reference documentation directories and README hub.

Process:

1.1 Check & create directories:

  • Check if docs/reference/adrs/ exists → create if missing
  • Check if docs/reference/guides/ exists → create if missing
  • Check if docs/reference/manuals/ exists → create if missing
  • Check if docs/reference/research/ exists → create if missing
  • Log for each: "✓ Created docs/reference/[name]/" or "✓ docs/reference/[name]/ already exists"

1.2 Check & create README:

  • Check if docs/reference/README.md exists
  • If exists:
    • Skip creation
    • Log: "✓ docs/reference/README.md already exists, proceeding to validation"
  • If NOT exists:
    • Copy template: ln-112-reference-docs-creator/references/reference_readme_template.md → docs/reference/README.md
    • Replace placeholders:
      • {{VERSION}} — "1.0.0"
      • {{DATE}} — current date (YYYY-MM-DD)
      • {{ADR_LIST}} — kept as placeholder (filled in Phase 4)
      • {{GUIDE_LIST}} — kept as placeholder (filled in Phase 4)
      • {{MANUAL_LIST}} — kept as placeholder (filled in Phase 4)
    • Log: "✓ Created docs/reference/README.md from template"

1.3 Output:

docs/reference/
├── README.md         # Created or existing
├── adrs/            # Empty, ready for ADRs
├── guides/          # Empty, ready for guides
├── manuals/         # Empty, ready for manuals
└── research/        # Empty, ready for research documents

Phase 2: Smart Document Creation

Objective: Create ADRs, Guides, and Manuals for justified technology choices. Skip trivial/obvious selections.

2.1 Check Context Store:

  • If no context_store provided → skip Phase 2, proceed to Phase 3
  • If no TECH_STACK in context_store → skip Phase 2, proceed to Phase 3
  • Log: "Context Store received with TECH_STACK: [categories count]"

2.2 Load Justification Rules:

  • Read references/tech_justification_rules.md
  • Parse category → justified/skip conditions

2.3 Analyze TECH_STACK for ADRs:

For each category in TECH_STACK (frontend, backend, database, orm, auth, cache):

  1. Check if justified (from justification rules):

    • frontend: Justified if React/Vue/Angular/Svelte (multiple options exist)
    • backend: Justified if Express/Fastify/NestJS/Koa (multiple options exist)
    • database: Justified if PostgreSQL/MySQL/MongoDB (multiple options exist)
    • auth: Justified if JWT/OAuth/Session (decision required)
    • orm: Justified if Prisma/TypeORM/Sequelize (multiple options exist)
    • cache: Justified if Redis/Memcached (decision required)
  2. Skip if trivial:

    • jQuery-only frontend (no framework choice)
    • Simple http server (no framework)
    • SQLite for dev only
    • No auth required
    • Raw SQL only
    • In-memory cache only
  3. Create ADR if justified:

    • Determine next ADR number: adr-NNN-{category}.md
    • Use template: shared/templates/adr_template.md
    • MCP Research: mcp__context7__resolve-library-id(technology)
    • Fill template:
      • Title: "ADR-NNN: {Category} Selection"
      • Context: Why decision was needed
      • Decision: Technology chosen with version
      • Rationale: 3 key
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/questions.mdreferences/reference_readme_template.mdreferences/tech_justification_rules.md

FAQ

Что делает скилл ln-120-reference-docs-creator?

Creates reference documentation structure + smart documents (ADRs/Guides/Manuals) based on TECH_STACK. Only creates justified documents (nontrivial technology choices).

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

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

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

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

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

Сравнить ln-120-reference-docs-creator с