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★ 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-14636orRHIDP-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:
- Use the
jira-readerskill to fetch the ticket summary and description - Match the ticket to a category, job, or topic in the TOC mapping reference
If the argument is a category/job/topic name:
- Search the TOC mapping reference file at
.claude/skills/jtbd-map/jtbd-toc-mapping.tsv - 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:
- Search
assemblies/<category>_*/for matching assembly files by title (usingGlobandGrep) - If no match, search
assemblies/shared/ - If still no match, search all
assemblies/*/subdirectories (catches content that moved categories, such as reference and troubleshooting content originating in other directories) - Read the found assembly's
include::directives -- these give the module file paths to use in the nav file - 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:
- Search
modules/<category>_*/ - If no match, search
modules/shared/ - If still no match, search all
modules/*/subdirectories
Step 4: Populate nav files
For each nav file in scope:
- Replace
// TODO:comments with actualinclude::directives - Use the format without navtitle (default):
Whereinclude::modules/<subdirectory>/<module>.adoc[leveloffset=+1]<subdirectory>is the actual directory the module lives in (e.g.,shared,configure_configuring-rhdh,extend_orchestrator-in-rhdh), accessed through themodulessymlink in the category directory. - Add
navtitleonly when the TSV's Navtitle column (column 9) has an explicit value, or when the module's internal= Titleheading does not match the desired navigation title:include::modules/<subdirectory>/<module>.adoc[leveloffset=+1,navtitle="<nav title>"] - Keep any existing includes that are already populated
- 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
navtitleoverride
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:
- Read the corresponding assembly file to extract all non-include content
- 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 tosnip-*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 - 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- `
- Module includes (
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(git *) - 02
Bash(node *) - 03
Read - 04
Grep - 05
Glob - 06
Edit - 07
Write
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…