nlweb-prompts-customization
Installation
SKILL.md
NLWeb Prompts Customization
Before writing code
Fetch live docs:
- Fetch https://github.com/nlweb-ai/NLWeb/blob/main/docs/nlweb-prompts.md for the prompts framework reference.
- Fetch https://github.com/nlweb-ai/NLWeb/blob/main/config/prompts.xml for the canonical prompt templates currently shipped — these change between releases.
- Fetch https://github.com/nlweb-ai/NLWeb/blob/main/config/site_types.xml for per-type prompt inheritance.
- Inspect
AskAgent/python/core/prompts.pyto see how prompts are loaded and parameterized. - Cross-reference with handlers in
methods/to see which prompt each LLM call site uses.
Conceptual Architecture
Two XML Files Drive Prompt Behavior
| File | Purpose |
|---|---|
prompts.xml |
Defines <promptString> templates and their <returnStruc> JSON output contracts |
site_types.xml |
Maps Schema.org @type → tool list + per-type prompt overrides, with inheritance |