Skip to content

Commit bc16892

Browse files
docs: document template aliases frontmatter (v0.10.1)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3f5108c commit bc16892

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,27 @@ determinism — identical hashes on two consecutive calls; (3) HEAD vs
281281
HEAD^ — classifies symbol changes as signature drift / body-only /
282282
add / remove.
283283

284+
## Template aliases
285+
286+
Templates can declare `aliases:` in their frontmatter to cover
287+
retrieval gaps — synonyms and alternate phrasings that keyword search
288+
would otherwise miss:
289+
290+
```yaml
291+
---
292+
type: concept
293+
feature: tool-planning
294+
aliases:
295+
- how to plan tools
296+
- tool design principles
297+
- when to use tools
298+
---
299+
```
300+
301+
`aliases` is a YAML list of strings. The retrieval engine scores alias
302+
hits the same as title hits, so a query that uses a synonym routes to
303+
the right template even when the canonical slug has no token overlap.
304+
284305
## License
285306

286307
Apache 2.0

0 commit comments

Comments
 (0)