Логотип Domain Discovery

Domain Discovery

Організація
TanStack
domain-discovery

Use when the maintainer explicitly requests full-library discovery or a skill taxonomy review. For an agreed skill batch or a concrete code/docs update, use generate-skill instead.

Огляд

ВидавецьTanStack
Репозиторійintent
Назва навичкиdomain-discovery
Зірки
355
Форки
26
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

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

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

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

  • Файлів у комплекті: 2

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

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

    Опубліковано на GitHub користувачем TanStack. Перегляньте вихідний вміст перед установленням.

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

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

1

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

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

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/TanStack/intent/tree/main/packages/intent/meta/domain-discovery
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Domain Discovery & Maintainer Interview

You are extracting domain knowledge for a library to produce a structured domain map. Your job is not to summarize documentation — it is to build a deep understanding of the library first, then use that understanding to surface the implicit knowledge that maintainers carry but docs miss.

The output is a set of task-focused skills — each one matching a specific developer moment ("implement a proxy", "set up auth", "audit before launch"). Domains are an intermediate conceptual grouping you use during analysis; the final skills emerge from the intersection of domains and developer tasks.

There are five phases. Always run them in order — unless the lightweight path applies (see below).

  1. Quick scan — orient yourself (autonomous)
  2. High-level interview — extract the maintainer's task map
  3. Deep read — fill in failure modes and detail (autonomous)
  4. Detail interview — gap-targeted questions, AI-agent failures
  5. Finalize artifacts

Lightweight path (small libraries)

After Phase 1, decide whether the library warrants the full five-phase flow or the compressed flow below. This is a judgment call — lean toward full discovery unless the library is obviously small (single-purpose utility, 2–3 distinct developer tasks max). Use a compressed flow when the skill surface is small enough that two interview rounds would be redundant:

  1. Phase 1 — Quick scan (same as full flow)
  2. Phase 2+4 combined — Single interview round. Combine the high-level task map questions (Phase 2) with gap-targeted and AI-agent-specific questions (Phase 4) into one interview session of 4–8 questions total. Skip the draft-review step since the skill set is small enough to confirm in one pass.
  3. Phase 3 — Deep read (same as full flow, but scope is smaller)
  4. Phase 5 — Finalize artifacts (same as full flow)

The lightweight path produces identical output artifacts (domain_map.yaml and skill_spec.md). It just avoids two separate interview rounds when the library is small enough that one round covers everything.

Hard rules — interview phases are mandatory and interactive

These rules override any other reasoning. No exceptions.

  1. Phases 2 and 4 are interactive interviews conducted with the maintainer. You must ask the questions specified in each sub-section and wait for the maintainer's response before continuing. Documentation, source code, and other automated analysis are NOT substitutes for the maintainer's answers.
  2. Every question in Phases 2 and 4 must be asked as an open-ended question and sent as a message to the maintainer. You must then STOP and WAIT for their reply. Do not answer your own questions. Do not infer answers from documentation. Do not skip questions because you believe you already know the answer.
  3. Never ask factual questions you can answer by searching the codebase. Before asking any question, determine whether the answer is a deterministic fact (how many X exist, what versions are supported, which files implement Y) or a judgment call (which ones matter, what should we prioritize, what do developers struggle with). Factual questions must be answered by searching the code — grep, glob, read files. Only ask the maintainer for priorities, opinions, trade-offs, and implicit knowledge that cannot be found in code or docs. Asking the maintainer a question whose answer is sitting in the codebase wastes their time and erodes trust in the process.
  4. Do not convert open-ended questions into multiple-choice, yes/no, or confirmation prompts. The question templates in each sub-section are open-ended by design. Present them as open-ended questions. The maintainer's unprompted answers surface knowledge that pre-structured options suppress.
  5. Minimum question counts are enforced. Each sub-section specifies a question count range (e.g. "2–4 questions"). You must ask at least the minimum number. Asking zero questions in any sub-section is a protocol violation.
  6. STOP gates are mandatory. At the boundaries marked ── STOP ── below, you must halt execution and wait for the maintainer's response or acknowledgment before proceeding. Do not continue past a STOP gate in the same message.
  7. If the maintainer asks to skip an interview phase, explain the value of the phase and what will be lost. Proceed with skipping only if they confirm a second time.
  8. Rich documentation makes interviews MORE valuable, not less. When docs are comprehensive, the interview surfaces what docs miss: implicit knowledge, AI-specific failure modes, undocumented tradeoffs, and the maintainer's prioritization of what matters most. Never rationalize skipping interviews because documentation is thorough.

Phase 1 — Quick scan (autonomous, ~10 minutes)

Orient yourself in the library. You are building a structural map, not reading exhaustively yet.

1a — Read orientation material

  1. README — vocabulary, mental model, what the library does
  2. Getting started / quickstart — the happy path
  3. Package structure — if monorepo, identify which packages are client-facing vs internal. Focus on the 2–3 packages most relevant to skill consumers (usually client SDKs and primary framework adapters)
  4. AGENTS.md or .cursorrules — if the library already has agent guidance, read it. This is high-signal for what the maintainer considers important
  5. All in-repo documentation — list every .md file in the docs/ directory (and any other documentation directories like guides/, reference/, wiki/). Read every file. This is NOT the exhaustive external doc reading from Phase 3 — this is reading what the maintainer committed to the repository, which is fast and high-signal. In-repo docs often contain migration guides, backward compatibility notes, architecture decisions, and other context that prevents you from asking factual questions the docs already answer. Do not sample a subset — read them all before the first interview.

1b — Read peer dependency constraints

Check package.json for peerDependencies and peerDependenciesMeta. For each major peer dependency (React, Vue, Svelte, Next.js, etc.):

  1. Note the version range required
  2. Read the peer's docs for integration constraints that affect this library: SSR/hydration rules, component lifecycle boundaries, browser-only APIs, singleton patterns, connection limits
  3. Log framework-specific failure modes — these are the highest-impact failure modes and cannot be discovered from the library's own source

Examples of peer-dependency-driven failure modes:

  • SSR: calling browser-only APIs during server render
  • React: breaking hook rules in library wrapper components
  • Connection limits: opening multiple WebSocket connections per tab
  • Singleton patterns: creating multiple client instances in dev mode

1c — Note initial impressions

Log (but do not group yet):

  • What the library does in one sentence
  • The core abstractions a developer interacts with
  • Which frameworks it supports
  • Any existing skill files, agent configs, or intents
  • Whether the library is a monorepo and which packages matter
  • Peer dependency constraints — read peerDependencies and peerDependenciesMeta from each client-facing package.json to understand version ranges and optional integrations early

Present your initial impressions to the maintainer as a brief summary (3–5 bullets). This orients them on what you found and primes them for the interview.

── STOP ── Do not proceed to Phase 2 until the maintainer has acknowledged your summary or responded.


Phase 2 — High-level interview (interactive — requires maintainer)

The maintainer's mental model of developer tasks IS the skill map. Your job in this phase is to extract it — not to propose your own structure.

You must ask the questions below to the maintainer and wait for their responses. Do not infer answers from documentation or source code.

Rules for Phase 2

  1. One topic per message for open-ended questions. You may batch 2–3 yes/no or short-confirmation questions together.
  2. Ask each question as written (you may adapt phrasing to context, but keep questions open-ended — never convert to multiple-choice).
  3. Wait for the maintainer's response after each question before asking the next.
  4. Take notes silently. Do not summarize back unless asked.
  5. If the maintainer gives a short answer, probe deeper before moving on.

2a — Developer tasks (2–4 questions)

Start with the maintainer's view of what developers do:

"Walk me through what a developer actually does with your library — not the elevator pitch, but the tasks they come to you for help with, from first install through production."

Follow up to enumerate distinct tasks:

"If you listed every distinct thing a developer asks an agent to help with using your library, what would that list look like? I'm thinking things like 'set up the client', 'implement auth', 'debug sync issues' — each one a separate moment where they'd want focused guidance."

For monorepo libraries, also ask about cross-package tasks:

"Are there tasks that touch multiple packages in your monorepo? For example, a getting-started flow that requires imports from both the client and server packages? I want to make sure skills that span package boundaries are captured correctly."

2b — Developer journeys (1–2 questions)

Surface lifecycle/journey skills that cross-cut task areas:

"Are there developer journeys that cut across multiple features? For example: a getting-started guide, a go-to-production checklist, a migrate-from-v4 walkthrough. Which of these exist in your docs or would be valuable as standalone skills?"

2c — Composition and ecosystem (1–3 questions)

"Which other libraries does yours compose with most often? Are there integration patterns important enough to warrant their own skill — for example, using your library with [framework/ORM/router]?"

"Are there tasks that developers might expect your library to handle, but that are actually handled by a companion library? Which tasks should we explicitly exclude from your library's skills?"

2d — Exclude experimental features (1 question)

"Are there any features that are experimental, unstable, or not yet ready to document for agents? We'll exclude these from the skill set."

2e — Confirm initial skill map

Synthesize what you heard into a proposed skill list and present it:

"Based on what you've told me, here's my proposed skill list: [enumerate skills with one-line descriptions]. Does this match how you think about your library? What would you add, remove, or rename?"

── STOP ── Do not proceed to Phase 3 until the maintainer has reviewed and confirmed (or corrected) the skill list.


Phase 3 — Deep read (autonomous)

Before the deep read, load the Phase 3 procedure. Follow its reading order and steps 3a–3i to extract sourced failure modes, domains, task-focused skills, tensions, references, gaps, and compositions. Use the artifact formats for the draft.

── STOP ── Present the draft and wait for the maintainer's review before starting Phase 4.

Phase 4 — Detail interview (interactive — requires maintainer)

You have the maintainer's task map and a deep read. The interview now fills gaps, validates your understanding, and surfaces implicit knowledge.

You must ask the questions below to the maintainer and wait for their responses. Do not infer answers from documentation or source code — even for gaps you think you can answer from your reading.

Rules for Phase 4

  1. One topic per message for open-ended questions. You may batch 2–3 yes/no or short-confirmation questions together.
  2. Ask each question as written (you may adapt phrasing to context, but keep questions open-ended — never convert to multiple-choice).
  3. Each question must reference something specific from your reading.
  4. Wait for the maintainer's response after each question before asking the next.
  5. If the maintainer gives a short answer, probe deeper before moving on.
  6. Take notes silently. Do not summarize back unless asked.

4a — Draft review (2–3 questions)

Start by confirming or correcting your skill list and failure modes:

"Here's the skill list I've built from our earlier conversation plus the deep read: [list skills with brief descriptions]. Does this still match your thinking? Anything to add, remove, or rename?"

Follow up on any corrections. Then:

"I identified [M] failure modes from the docs and migration guides. Are there important ones I missed — especially patterns that look correct but fail silently?"

4b — Gap-targeted questions (3–8 questions)

For each gap flagged in Phase 3g, ask a specific question. These are not generic — they reference what you found:

Instead of: "What do developers get wrong?" Ask: "I noticed the migration guide from v4 to v5 changed how [X] works, but the docs don't show the old pattern. Do agents still commonly generate the v4 pattern? What does it look like?"

Instead of: "Are there surprising interactions?" Ask: "The source throws an invariant error if [X] is called before [Y], but the docs don't mention ordering. How often do developers hit this?"

Instead of: "What's different in SSR vs client?" Ask: "I found a typeof window check in [file] that changes behavior for [feature]. What goes wrong when developers test only in the browser and deploy with SSR?"

Adapt from this bank of gap-targeted question templates:

  • "I found two patterns for [X] in the docs — [pattern A] and [pattern B]. Which is current, and does the old one still work?"
  • "The source defaults [config option] to [value], which seems surprising for [reason]. Is this intentional? Do developers need to override it?"
  • "GitHub issues show [N] reports of confusion about [X]. What's the underlying misunderstanding?"
  • "I couldn't find docs for how [feature A] interacts with [feature B]. What should an agent know about using them together?"
  • "The API reference shows [type signature], but the guide examples use a different shape. Which is accurate?"
  • "I found [N] GitHub issues/discussions where developers struggled with [X]. The common workaround seems to be [Y] — is that the recommended approach, or is there a better pattern that should be documented?"
  • "GitHub discussions show developers repeatedly asking how to combine [feature A] with [feature B]. Is there an intended integration pattern, or is this a gap in the current API?"

4c — AI-agent-specific failure modes (2–4 questions)

These target mistakes that AI coding agents make but human developers typically don't. Agent-specific failures are often the highest-value findings — in testing, maintainer answers to these questions produced the most critical failure modes.

  • "What mistakes would an AI coding agent make that a human developer wouldn't? Think about: hallucinating APIs that don't exist, defaulting to language primitives instead of library abstractions, choosing the wrong adapter or integration path."
  • "When an agent generates code using your library, what's the first thing you'd check? What pattern would make you immediately say 'an AI wrote this'?"
  • "Are there parts of your API where the naming or design is misleading enough that an agent with no prior context would pick the wrong approach? What would it pick, and what should it pick instead?"
  • "Are there features where the docs are comprehensive for human developers but would still mislead an agent? For example, features that require understanding unstated context, or where the 'obvious' approach from reading the API surface is wrong."

4d — Implicit knowledge extraction (3–5 questions)

These surface knowledge that doesn't appear in any docs:

  • "What does a senior developer using your library know that a mid-level developer doesn't — something that isn't written down anywhere?"
  • "Are there patterns that work fine for prototyping but are dangerous in production? What makes them dangerous?"
  • "What question do you answer most often in Discord or GitHub issues that the docs technically cover but people still miss?"
  • "Is there anything you'd change about the API design if you could break backwards compatibility? What's the current workaround?"

4e — Composition questions (if library interacts with others)

Use what you discovered in Phase 3h. For each integration target identified from peer dependencies and example code, ask targeted questions:

  • "I see [library] is a peer dependency and [N] examples import it alongside yours. What's the most common integration mistake?"
  • "When developers use [your library] with [other library], are there patterns that only matter when both are present?"
  • "I found [specific integration pattern] in the examples. Is this the recommended approach, or is there a better way that isn't documented?"

Phase 5 — Finalize artifacts

Merge interview findings into the draft. For each interview answer:

  1. If it confirms a skill or failure mode — no action needed
  2. If it corrects something — update the map
  3. If it adds a new failure mode — add it with source "maintainer interview"
  4. If it reveals a new skill — add it
  5. If it fills a gap — remove from gaps section

Validate the domain_map.yaml by parsing it with a YAML parser. Check for duplicate keys, invalid syntax, and structural correctness. Fix any issues before presenting the final artifact.

Update status: draft to status: reviewed.


Output artifacts

Before writing the draft in Phase 3 or finalizing it in Phase 5, read the artifact formats and placement rules. Produce both domain_map.yaml and skill_spec.md using those schemas; retain the documented custom-root and monorepo placement.

Constraints

CheckRule
Quick scan before interviewNever interview without at least reading README and package structure
High-level interview before deep readThe maintainer's task map informs what you read deeply
Interview phases are interactivePhases 2 and 4 require sending questions to the maintainer and waiting
Docs are not a substituteDocumentation cannot replace maintainer answers — even comprehensive docs
Open-ended questions stay openNever convert interview questions to multiple-choice or yes/no
Minimum question counts enforcedEach sub-section's minimum count must be met; zero questions = violation
STOP gates are mandatoryDo not proceed past a STOP gate without maintainer response
Batch only confirmationsYes/no questions may batch 2–3; open-ended questions get their own message
Questions reference findingsNo generic questions — cite what you found
Skills are task-focusedEach skill matches a developer moment, not a conceptual area
Failure modes follow evidencePreserve necessary failure handling; do not invent entries to meet a quota
Every failure mode sourcedDoc page, source file, issue link, or maintainer interview
Gaps are explicitUnknown areas flagged, not guessed
No marketing proseLibrary description is factual, not promotional
domain_map.yaml is valid YAMLParseable by any YAML parser
Draft before detail interviewPresent draft for review before Phase 4
Draft reviewed before Phase 4Maintainer must acknowledge or respond to draft before detail interview
Agent-specific failures probedAlways ask AI-agent-specific questions in Phase 4c
Compositions discovered from codeScan peer deps and examples before asking composition questions
Cross-skill failure modes taggedFailure modes spanning skills list all relevant slugs
Tensions identified2–4 cross-skill tensions; if none found, revisit skill boundaries
Subsystems flaggedSkills with 3+ adapters/backends list them as subsystems
Dense surfaces flaggedTopics with >10 patterns noted as reference_candidates
Lifecycle skills consideredSuggest journey skills when docs have the material
Cross-references mappedSkills that illuminate each other get "See also" pointers
Documentation coverageRead all local narrative files; document external sampling under the Phase 3 reading policy

Cross-model compatibility notes

This skill is designed to produce consistent results across Claude, GPT-4+, Gemini, and open-source models. To achieve this:

  • All instructions use imperative sentences, not suggestions
  • Interview phases use explicit STOP gates to prevent models from continuing autonomously past interactive checkpoints
  • Hard rules at the top override any model tendency to rationalize skipping interactive phases when documentation is available
  • Open-ended questions are explicitly protected from conversion to multiple-choice or confirmation prompts, which models default to when they have enough context to pre-populate answers
  • Output formats use YAML (universally parsed) and Markdown tables (universally rendered)
  • Examples use concrete values, not placeholders like "[your value here]"
  • Section boundaries use Markdown headers (##) for navigation and --- for phase separation
  • No model-specific features (no XML tags in output, no tool_use assumptions)

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

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

Що робить навичка ШІ Domain Discovery?

Use when the maintainer explicitly requests full-library discovery or a skill taxonomy review. For an agreed skill batch or a concrete code/docs update, use generate-skill instead.

Навіщо використовувати Domain Discovery у TypingMind?

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

Як встановити Domain Discovery у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/TanStack/intent/tree/main/packages/intent/meta/domain-discovery. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

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

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

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

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Domain Discovery — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

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

Так. Навичку опубліковано на GitHub: TanStack, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

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

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

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

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

Усі

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

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