Troiana Prompt Library · Claude · Development

Add a feature following existing conventions

Implement in the codebase's own idiom rather than a generically correct style.

What this prompt helps you do

An implementation matching the surrounding patterns, with the conventions it followed made explicit.

When to use it

A new feature should look like it was written by the team that owns the code.

What to prepare

The goal, relevant source material, constraints, examples, and the decision or action this should support.

How to get a strong result

Have it state the conventions it identified before writing; wrong inferred conventions are easier to catch early.

How to use this prompt

Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.

Browse all ChatGPT, Claude, and Codex prompts