Skip to content

Isometric line figures that answer the pointer. For React and for anything with a DOM.

Skill page: llms.txt gives the follow-up under each prompt that had one, so it no longer says one line made the storm and sidings pages

Lucas Marques48b30b1845a9
diff --git a/apps/site/lib/llms.ts b/apps/site/lib/llms.ts
index a29b9ca..741f8fc 100644
--- a/apps/site/lib/llms.ts
+++ b/apps/site/lib/llms.ts
@@ -59,8 +59,8 @@ export function llms(base: string): string {
"", "## Make your own", "",
SUMMARY,
"", fence("sh", INSTALL),
- "", `Then type \`${COMMAND} <idea>\` in the agent. Four ideas, each with the page the skill wrote for it:`,
- "", EXAMPLES.map((e) => `- \`${COMMAND} ${e.idea}\`: ${base}/skill/${e.file}`).join("\n"),
+ "", `Then type \`${COMMAND} <idea>\` in the agent. Four ideas, each with the page the skill wrote for it, and the change asked for next where there was one:`,
+ "", EXAMPLES.map((e) => `- \`${COMMAND} ${e.idea}\`${e.followUp ? `, then "${e.followUp}"` : ""}: ${base}/skill/${e.file}`).join("\n"),
"", `More: ${base}/skill`,
"", "## Links", "",
`- Site: ${base}`, `- Source: ${LINKS.github}`, `- npm: ${LINKS.npm}`, `- The essay the figures come from: ${LINKS.essay}`, `- shadcn registry item: ${base}/r/hairline.json`, "",
diff --git a/apps/site/test/docs.test.ts b/apps/site/test/docs.test.ts
index 4945eda..72fa457 100644
--- a/apps/site/test/docs.test.ts
+++ b/apps/site/test/docs.test.ts
@@ -151,10 +151,13 @@ describe("the intensity table", () => {
describe("/llms.txt", () => {
const text = llms("https://example.test");
- it("says how to install the skill and links each example to the page it produced", () => {
+ it("says how to install the skill and links each example, with its follow-up, to the page it produced", () => {
expect(text).toContain("## Make your own");
expect(text).toContain(INSTALL);
- for (const e of EXAMPLES) expect(text).toContain(`- \`${COMMAND} ${e.idea}\`: https://example.test/skill/${e.file}`);
+ for (const e of EXAMPLES) expect(text).toContain(`- \`${COMMAND} ${e.idea}\`${e.followUp ? `, then "${e.followUp}"` : ""}: https://example.test/skill/${e.file}`);
+ // the two pages a follow-up made say so
+ expect(text).toContain(`- \`${COMMAND} git branches\`, then "The rails almost disappear`);
+ expect(text).toContain(`- \`${COMMAND} weather over a city\`, then "The cloud looks like a stack of cylinders`);
expect(text).toContain("https://example.test/skill\n");
expect(text.indexOf("## Make your own")).toBeLessThan(text.indexOf("## Links"));
});