nlweb-prompts-customization

Installation
SKILL.md

NLWeb Prompts Customization

Config layout changed upstream. NLWeb replaced the single site_types.xml with two files in config/: sites.xml (site name → itemType list + description) and tools.xml (per-site / per-type tool definitions, prompts and examples, scoped by <Site id="…"> / <Item> blocks). Older guidance — including any site_type / extends inheritance syntax — describes the retired file. Fetch config/sites.xml and config/tools.xml from the live repo before editing anything.

Before writing code

Fetch live docs:

  1. Fetch https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-prompts.md for the prompts framework reference.
  2. Fetch https://github.com/nlweb-ai/NLWeb/blob/main/config/prompts.xml for the canonical prompt templates currently shipped — these change between releases.
  3. Fetch https://github.com/nlweb-ai/NLWeb/blob/main/config/sites.xml for per-type prompt inheritance.
  4. Inspect AskAgent/python/core/prompts.py to see how prompts are loaded and parameterized.
  5. Cross-reference with handlers in methods/ to see which prompt each LLM call site uses.

Conceptual Architecture

Installs
7
GitHub Stars
39
First Seen
May 21, 2026