InnerSourcePatterns icon indicating copy to clipboard operation
InnerSourcePatterns copied to clipboard

Share AI prompts to make the creation of draft patterns easier

Open spier opened this issue 6 months ago • 6 comments

Some of our contributors struggle with the first steps of creating a draft pattern. By providing AI prompts for this step we can make it easier for these contributors to create an initial draft version very quickly, which they can take and adapt.

This idea stems from this conversation:

... do we want to create some prompts for Cursor & VSCode that will help people build patterns?

If you haven’t used them yet, here’s some background & fodder.

https://docs.cursor.com/context/rules

https://code.visualstudio.com/docs/copilot/copilot-customization#_prompt-files-experimental

https://github.com/PatrickJS/awesome-cursorrules

I’d be happy to start a PR with some and we can use them to build an initial version of this pattern.

Originally posted by @jeffabailey in #285

spier avatar Jul 06 '25 07:07 spier

We have some examples of PRs already that contain pattern drafts generated by AI. These PRs also contain the ChatGPT prompts that were used.

AI-generated pattern drafts

spier avatar Jul 06 '25 07:07 spier

@jeffabailey I pulled this idea out into a separate issue.

Assigned you to it, as it sounds like you have experience and interest in this space. Please let me know if that was too much wishful thinking on my part 😄 and you would rather be removed from this issue again.

spier avatar Jul 06 '25 07:07 spier

@amburi curious to hear your input on this idea. We are talking about "providing examples of AI prompts" here but it seems similar enough to what you are describing in the AI Code Generation Context pattern.

spier avatar Sep 01 '25 19:09 spier

Also linking to https://agents.md, to not forget about it.

spier avatar Sep 01 '25 19:09 spier

Thanks @spier — I agree this is closely related to the AI Code Generation Context pattern. One next step could be to create an innersource-ai folder that contains a prompt template (for generating initial drafts from AI-generated pattern drafts) and other supporting context, like the pattern template itself.

At the same time, the AI prompts template could also evolve into a separate pattern proposal — capturing the context engineering aspect in the existing AI Code Generation Context pattern, and the prompt engineering aspect in this suggested one.

@jeffabailey I'd be happy to collaborate with you on this one.

amburi avatar Sep 02 '25 18:09 amburi

For the beginning, I would be happy just to have prompt templates for commonly used AI tools. I only really use and know ChatGPT but I guess Cursor and GitHub Copilot are also popular?

Does not have to be "complete" by any means, we could even just start with one prompt, for one tool. (maybe rather than talking about it, I just do it - see https://github.com/InnerSourceCommons/InnerSourcePatterns/pull/837)

We can collect these prompts (and other AI tipps related to patterns) anywhere really. Maybe in a new file below the /meta folder`?

I might not call use the term innersource-ai in our repo though, as this is an opensource and not an InnerSource project ;)

spier avatar Sep 02 '25 22:09 spier