domain-discovery
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).
- Quick scan — orient yourself (autonomous)
- High-level interview — extract the maintainer's task map
- Deep read — fill in failure modes and detail (autonomous)
- Detail interview — gap-targeted questions, AI-agent failures
- 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: