Maintain the /llms.txt route for AI-friendly documentation. Use when adding new features, public pages, or changing the technology stack.
Update /llms.txt when the product changes. This file helps AI systems understand StockFind.
File: apps/web/src/app/llms.txt/route.ts
Spec: llmstxt.org
llms.txt follows the llmstxt.org spec. The required structure is:
# Title
> Blockquote summary with key information for understanding the file
Optional general content (paragraphs, lists — no headings)
## Section Name
- [Link title](url): Optional description
## Optional
- [Link title](url): Secondary resources that can be skipped for shorter context
Rules:
## Optional section signals content that can be skipped for shorter contextllms.txt describes what StockFind does for users, not how it's built.
| Section | Purpose |
|---|---|
| H1 + Blockquote | Name and one-line value proposition |
| Body paragraph | Brief product description |
| Features | Feature links with descriptions |
| Pages | Primary public page links |
| Optional | Legal/policy pages (skippable for shorter context) |
| Change | Action |
|---|---|
| New feature added | Add link to ## Features |
| New public page | Add link to ## Pages |
| New legal/policy page | Add link to ## Optional |
| Positioning/tagline change | Update blockquote and body paragraph |
apps/web/src/app/llms.txt/route.ts- [Title](url): Description format## OptionalAdding a feature:
## Features
- [Watchlists](${baseUrl}/dashboard/watchlist): Organise stocks into watchlists and set alerts
+- [AI Insights](${baseUrl}/dashboard/insights): AI-powered analysis of financial metrics with educational context
Adding a public page:
## Pages
- [Glossary](${baseUrl}/glossary): Plain-language financial term definitions
+- [Blog](${baseUrl}/blog): Educational articles on fundamental analysis
When finalized, replace manual updates with dynamic generation:
llms-config.tsThis ensures llms.txt always matches the product.