Generate a ready-to-deploy /llms.txt and a SoftwareApplication plus Organization JSON-LD snippet for a B2B SaaS site. Crawls the site with the bundled zero-API-key crawler and builds both files only from observed titles, descriptions, URLs, and profile links, with placeholders where a fact was not observed. Use when the user asks for an llms.txt file, wants to improve an existing one, or needs SaaS schema markup.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Llms Txt Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mertcanfirat-llms-txt-generator)
---
name: llms-txt-generator
description: Generate a ready-to-deploy /llms.txt and a SoftwareApplication plus Organization JSON-LD snippet for a B2B SaaS site. Crawls the site with the bundled zero-API-key crawler and builds both files only from observed titles, descriptions, URLs, and profile links, with placeholders where a fact was not observed. Use when the user asks for an llms.txt file, wants to improve an existing one, or needs SaaS schema markup.
allowed-tools: Bash(python:*), Bash(python3:*), Read, Write, Glob, Grep
argument-hint: <url>
---
# llms.txt and SaaS JSON-LD Generator
Crawl a SaaS site and write two deployable files from what was observed.
Target: `$ARGUMENTS`
## Ground rules
1. **Observed values only.** Link titles, descriptions, URLs, and profile links come from the crawler report. Nothing is paraphrased into a claim the page does not make.
2. **Placeholders for the unknown.** Where a required value was not observed, write `REPLACE_WITH_<WHAT>`. Never fill it with a guess.
3. **No ratings.** Do not write `aggregateRating` or `review` unless the user supplies the figures and confirms they are shown on the page.
4. **Do not overwrite.** If `llms.txt` or the snippet file already exists in the working directory, ask before replacing it.
## What to tell the user about llms.txt
State this once, briefly, in the output:
- `llms.txt` is a community proposal (llmstxt.org). Google states that no AI text file is needed to appear in its AI features, and no major answer engine documents using it for ranking or citation.
- It is cheap, and agents and developer tools that fetch it directly get a clean map of the site. Treat it as hygiene.
## Workflow
### Step 1. Crawl
Take the URL from the arguments. Prepend `https://` if it has no scheme. Ask for a URL and stop if there is none.
```bash
python "${CLAUDE_PLUGIN_ROOT}/scripts/saas_crawler.py" --url <TARGET> --max-pages 15 --out b2b-saas-seo-<host>.json
```
If `httpx` or `bs4` is missing, show the user `pip install -r "${CLAUDE_PLUGIN_ROOT}/scripts/requirements.txt"` and ask before running it. Use `python3` if `python` is not found.
Stop if `summary.pages_analyzed` is 0 and report each `http_status` and `access.reason`.
### Step 2. Report what already exists
Read `site.llms_txt` and `site.llms_full_txt` and report for each: `http_status`, `exists`, `line_count`, `h1`, `h2_sections`, `markdown_link_count`, and `looks_like_html`.
- `exists` is `true`: show the `content_preview`, then produce the new file as a proposed revision and list what it adds or changes.
- `looks_like_html` is `true`: tell the user the URL currently returns the site's HTML with HTTP 200, so a real file must be served at that path.
### Step 3. Select the pages
Include a crawled page only when all of these hold:
- `http_status` is 200 and `content_analyzed` is `true`
- `indexable` is `true`
- `canonical.status` is `self_referencing` or `missing`
- `page_type` is not `low_value`
Use `canonical.url` as the link target when it is set, otherwise `final_url`. List every excluded page with the reason.
### Step 4. Derive the header
- **H1 (site name).** Use `json_ld.entities.organizations[0].name` from the homepage. If absent, use the brand portion of the homepage `title.text`: the part before or after a separator such as ` – `, ` | `, or ` - ` that also appears in the hostname. If neither is clear, write `REPLACE_WITH_BRAND_NAME`.
- **Blockquote summary.** Use the homepage `meta_description.text` verbatim. If it is empty, use the homepage `headings.h1[0]`. If both are empty, write `REPLACE_WITH_ONE_SENTENCE_SUMMARY`.
- **Context paragraph (optional).** One or two sentences built only from observed facts, for example the page types found and the pricing terms in `pricing_signals.terms_found`. Omit it if there is nothing solid to say.
### Step 5. Build the sections
Group the selected pages under H2 headings in this order. Omit an empty section.
| H2 section | `page_type` values |
|---|---|
| Product | `homepage`, `product`, `features` |
| Pricing | `pricing` |
| Comparisons | `comparison`, `alternatives` |
| Integrations | `integrations` |
| Security and trust | `security` |
| Customers | `case_study` |
| Documentation | `docs` |
| Resources | `blog`, `other` |
Each entry is one line:
```markdown
- [<link title>](<url>): <description>
```
- **Link title**: the page's `headings.h1[0]`, or `title.text` with the brand suffix removed when there is no H1.
- **Description**: the page's `meta_description.text`, trimmed to one sentence. Omit the colon and the description when the page has none. Do not write one.
- Use absolute URLs.
Confirm from the H1 that each page under Comparisons really is a comparison. Move it to the right section if its URL was classified by slug alone.
### Step 6. Write `llms.txt`
```markdown
# <Site name>
> <Summary>
<Optional context paragraph>
## Product
- [<title>](<url>): <description>
## Pricing
- [<title>](<url>): <description>
```
Write the file to `llms.txt` in the working directory.
The crawl covers at most 15 pages. Tell the user the file is a starting map of the highest-value pages and name the page types the sitemap lists that were not crawled (`site.sitemap.urls_by_page_type`), so they can add entries.
The format follows the llmstxt.org proposal as checked on 2026-11-29: a required H1, a blockquote summary, then H2 sections with link lists. Point the user to llmstxt.org for the current version.
### Step 7. Write the JSON-LD snippet
Build one `@graph` with two nodes.
**Organization**
| Property | Source |
|---|---|
| `name` | The site name from Step 4 |
| `url` | `site.root_url` |
| `logo` | `REPLACE_WITH_LOGO_URL`. The crawler records whether a logo is declared, not its URL |
| `sameAs` | Every URL in `entity_consensus.sameAs_clean_urls`, plus the first URL of each `linked` platform in `entity_consensus.detected_offpage_platforms` whose `likely_own_profile` is `true`, deduplicated. Leave out every URL listed in `entity_consensus.sameAs_issues`. Omit the property if none was observed. For the full entity audit, run `geo-consensus-audit` |
**SoftwareApplication**
| Property | Source |
|---|---|
| `name` | The site name, or an existing `json_ld.entities.software[].name` |
| `applicationCategory` | An existing observed value, otherwise `BusinessApplication` |
| `operatingSystem` | An existing observed value, otherwise `REPLACE_WITH_OPERATING_SYSTEM` (for example `Web`) |
| `url` | `site.root_url` |
| `description` | The homepage `meta_description.text`, verbatim |
| `offers.price` | Only when the pricing page shows one unambiguous lowest price in `pricing_signals.price_strings`, or `0` when `terms_found` contains `free_plan`. Otherwise `REPLACE_WITH_STARTING_PRICE` |
| `offers.priceCurrency` | From the observed currency symbol (`$` is `USD` only when the page says so or the user confirms). Otherwise `REPLACE_WITH_CURRENCY` |
| `publisher` | `{"@id": "<root_url>#organization"}` |
Give the Organization node the `@id` the site already declares, the first value in `entity_consensus.organization.ids`. If there is none, use `"@id": "<root_url>#organization"`. Point `publisher` at the same value.
If the site already has `Organization` or `SoftwareApplication` JSON-LD, show the observed entity fields first and present the snippet as a revision.
Write the snippet to `saas-schema.jsonld` as plain JSON, then validate it:
```bash
python -m json.tool saas-schema.jsonld
```
Fix and re-run until it parses. In the output, show it wrapped in `<script type="application/ld+json">` for pasting into the page head.
### Step 8. Output
```markdown
# llms.txt and JSON-LD for <host>
Crawled <generated_at> · <n> pages analyzed · Report: `<path>`
## Current state
| File | HTTP status | Exists | Lines | Notes |
|------|-------------|--------|-------|-------|
## Generated: llms.txt
<the file in a fenced markdown block>
Included <n> pages. Excluded:
| URL | Reason |
|-----|--------|
## Generated: JSON-LD
<the snippet in a fenced html block>
Existing schema observed: <types, or "none">
## Replace before deploying
<every REPLACE_WITH_ placeholder and where it appears>
## Deploy and verify
1. Serve `llms.txt` at `<root_url>llms.txt` with HTTP 200 and `Content-Type: text/plain; charset=utf-8` or `text/markdown`. A single-page app must not answer this path with its HTML shell.
2. Add the JSON-LD to the homepage `<head>`. Put `SoftwareApplication` on the product or pricing page if the site prefers.
3. Re-run the crawler and confirm `site.llms_txt.exists` is `true` and the homepage `json_ld.types` lists both types with `invalid_block_count` of 0.
## Notes
- Google's software app rich result also requires `aggregateRating` or `review`. This snippet omits both because no rating was verified. Add one only if real reviews are shown on the page.
- <the llms.txt status note from the top of this skill>
```
Tell the user the paths of `llms.txt`, `saas-schema.jsonld`, and the crawler report.