From df47c1671a3c79ea8a2eb512d3ef8838b557e59a Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 11 Dec 2025 17:24:09 -0700 Subject: [PATCH] Account for Piebald release CTA --- tools/updatePrompts.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/updatePrompts.js b/tools/updatePrompts.js index 722bac3..6bc373d 100644 --- a/tools/updatePrompts.js +++ b/tools/updatePrompts.js @@ -416,8 +416,13 @@ function updateReadme(promptsByFilename, version, releaseDate, versionCount) { const npmUrl = `https://www.npmjs.com/package/@anthropic-ai/claude-code/v/${version}`; const dateStr = releaseDate ? ` (${releaseDate})` : ''; - lines[2] = `This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of **[Claude Code v${version}](${npmUrl})${dateStr}.** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across ${versionCount} versions since v2.0.14. From the team behind [ **Piebald.**](https://piebald.ai/)`; - + // Find the intro line dynamically (it starts with "This repository contains") + const introLineIndex = lines.findIndex(line => line.startsWith('This repository contains')); + if (introLineIndex !== -1) { + lines[introLineIndex] = `This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of **[Claude Code v${version}](${npmUrl})${dateStr}.** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across ${versionCount} versions since v2.0.14. From the team behind [ **Piebald.**](https://piebald.ai/)`; + } else { + console.warn('Warning: Could not find intro line starting with "This repository contains"'); + } // Organize prompts by category const categories = { 'Agent Prompts': {