Skip to content

Contributing ​

Got a prompt that pulls its weight? Add it so the rest of the team can use it. There are two ways in — pick whichever suits you.

The automated way — the /write-to-prompt-library skill ​

Luna has a Claude Code skill that does the whole flow for you. It's the recommended route.

Invoke it in Claude Code as /write-to-prompt-library, in one of two modes:

  • You already have a prompt — paste it straight in: /write-to-prompt-library <your prompt text>. The skill turns it into a correct library entry.
  • You have an idea, not a prompt yet — describe it: /write-to-prompt-library a prompt to create a Jira ticket. The skill interviews you for the details it needs and drafts one.

It reads the existing library first, so it won't duplicate an id or invent a near-duplicate category. It then composes a schema-correct entry — including escaping the tricky backticks and ${ sequences inside the prompt template literal for you — and shows it to you to confirm before writing anything. Once confirmed, it appends the entry to prompts.ts (and adds a colour to categories.ts if a genuinely new category is introduced).

The skill edits the files only — it does not commit, push, or open the merge request. Review the change it makes, then open the MR yourself.

The manual way ​

  1. Open clients/apollo/src/prompt-library/prompts.ts.

  2. Append a new entry to the prompts array:

    ts
    {
      id: 'unique-kebab-id',
      title: 'Short, action-oriented title',
      description: 'One line on what it does and when to use it.',
      category: 'Code', // reuse an existing category where it fits
      tags: ['optional', 'keywords'],
      prompt: `The exact text to copy and paste.`,
    }
  3. Open a merge request. Keep the prompt text as the literal thing people should paste — no placeholders unless the prompt genuinely needs them.

The entry schema ​

Each prompt is an object in the prompts array, with fields id (unique, kebab-case), title, description, category (reuse an existing one where it fits — accents and colours are mapped in categories.ts), an optional tags list, and prompt — a backtick template literal holding the exact text to copy. Any literal backticks or ${ sequences inside prompt need escaping so the site builds, which is exactly the fiddly part the skill handles for you.

Made with ❤️ by the Luna team