Command Palette

Search for a command to run...

Назад к скиллам
скилл № 84442

jtbd-map

Populate JTBD navigation map files with actual include directives from Jira tickets or category/job/topic names. Use when mapping content for a JTBD job…

БесплатноБез исполняемых скриптов
redhat-developerот redhat-developer★ 24 звезды на GitHub

Установить jtbd-map в Claude Code и Claude Desktop

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

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

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

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

JTBD Map: Populate navigation map files

Purpose

This skill populates the JTBD (Jobs To Be Done) navigation map files under titles/product_product/category-maps/ with actual include:: directives pointing to existing modules. It bridges the migration from modular docs (assemblies) to JTBD docs (MAP files).

Arguments

The skill accepts one or more of:

  • Jira ticket IDs (e.g., RHIDP-14636 or RHIDP-14545 RHIDP-14546 RHIDP-14547) -- fetches ticket content to identify the category, job, or topic
  • A category name (e.g., Secure, Install) -- maps the entire category
  • A job or topic name (e.g., Configure authentication providers) -- maps a specific job

Workflow

Step 1: Identify scope and check file state

If the argument is a Jira ticket:

  1. Use the jira-reader skill to fetch the ticket summary and description
  2. Match the ticket to a category, job, or topic in the TOC mapping reference

If the argument is a category/job/topic name:

  1. Search the TOC mapping reference file at .claude/skills/jtbd-map/jtbd-toc-mapping.tsv
  2. Find the matching entry in the hierarchy

Then, for each entry in scope: 3. Check whether the corresponding nav-*.adoc and con-*.adoc files exist in titles/product_product/category-maps/<category>/ 4. If any nav or con file is missing, create it using the standard templates (see "MAP file structure" and "Concept file structure" below) 5. For existing nav files, check whether they contain // TODO: comments (need population) or actual include:: directives (already populated). Skip entries that are already fully populated.

Step 2: Confirm scope with user

Before proceeding, show the user:

  • The identified category, job, and topic hierarchy from the TSV
  • The nav files that will be populated, indicating which have TODOs vs. which are already done

Ask the user to confirm before making changes.

Step 3: Find existing assemblies and modules

For each topic in the scope, find the corresponding assembly file first, then derive modules from it:

  1. Search assemblies/<category>_*/ for matching assembly files by title (using Glob and Grep)
  2. If no match, search assemblies/shared/
  3. If still no match, search all assemblies/*/ subdirectories (catches content that moved categories, such as reference and troubleshooting content originating in other directories)
  4. Read the found assembly's include:: directives -- these give the module file paths to use in the nav file
  5. Read the assembly's body content (abstract, paragraphs, admonitions, snippet includes, additional resources) -- this content goes into the concept file

If no assembly is found for a topic, fall back to searching modules directly:

  1. Search modules/<category>_*/
  2. If no match, search modules/shared/
  3. If still no match, search all modules/*/ subdirectories

Step 4: Populate nav files

For each nav file in scope:

  1. Replace // TODO: comments with actual include:: directives
  2. Use the format without navtitle (default):
    include::modules/<subdirectory>/<module>.adoc[leveloffset=+1]
    
    Where <subdirectory> is the actual directory the module lives in (e.g., shared, configure_configuring-rhdh, extend_orchestrator-in-rhdh), accessed through the modules symlink in the category directory.
  3. Add navtitle only when the TSV's Navtitle column (column 9) has an explicit value, or when the module's internal = Title heading does not match the desired navigation title:
    include::modules/<subdirectory>/<module>.adoc[leveloffset=+1,navtitle="<nav title>"]
    
  4. Keep any existing includes that are already populated
  5. If a nav file would contain only one module include (besides the mandatory concept file), collapse it: delete the nav+con pair and include the module directly in the parent nav file with a navtitle override

Step 5: Populate concept files

The concept file (con-*.adoc) in the MAP structure contains the assembly's non-include content. For each con-*.adoc concept file paired with a nav file:

  1. Read the corresponding assembly file to extract all non-include content
  2. Replace the TODO placeholder with the following content, in this order: a. The [role="_abstract"] paragraph -- always exactly one paragraph (the short description) b. Body content after the abstract -- additional paragraphs, admonitions, notes, lists, maintaining the original order from the assembly c. Snippet includes -- include:: directives to snip-* files (such as Technology Preview admonitions), placed where they appeared in the assembly body d. [role="_additional-resources"] section -- always last, if present in the assembly
  3. Do NOT include in the concept file:
    • Module includes (proc-*, ref-*, con-*, assembly-*) -- these go in the nav file
    • Context save/restore (ifdef::context[:parent-context:], ifdef::parent-context[:context:])
    • [id="..."] attributes -- the nav file owns the ID
    • `
Полный SKILL.md на GitHub

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

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

  1. 01Bash(git *)
  2. 02Bash(node *)
  3. 03Read
  4. 04Grep
  5. 05Glob
  6. 06Edit
  7. 07Write

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

  • RHIDP-14642-validation-report.md
  • jtbd-toc-mapping.tsv

FAQ

Что делает скилл jtbd-map?

Populate JTBD navigation map files with actual include directives from Jira tickets or category/job/topic names. Use when mapping content for a JTBD job, populating nav files, or connecting existing modules to the JTBD structure.

Как установить скилл jtbd-map?

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

Скилл jtbd-map запускает скрипты?

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

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

Сравнить jtbd-map с