원클릭으로
ai-prompt-writing
Write effective prompts for AI coding tools — structure task context, specify constraints, provide examples, and iterate based on output quality. Targets developers using Claude Code, Copilot, Cursor, and similar tools.
메뉴
Write effective prompts for AI coding tools — structure task context, specify constraints, provide examples, and iterate based on output quality. Targets developers using Claude Code, Copilot, Cursor, and similar tools.
Write structured accessibility audit reports with findings mapped to WCAG criteria, severity levels, affected components, remediation steps, and a prioritized fix timeline.
Design RESTful and GraphQL APIs with consistent naming conventions, versioning strategy, pagination patterns, error response formats, authentication schemes, and rate limiting — producing a complete API specification.
Create REST and GraphQL integration guides covering authentication flows, pagination strategies, rate limiting, error handling, retry logic, and SDK wrapper patterns. Produces implementation-ready reference documents with code examples.
Write Architecture Decision Records (ADRs) that capture context, options considered, decision rationale, and consequences — creating a searchable decision log for future engineers.
Design and document automation workflows for n8n, Make, Zapier, and Power Automate. Covers trigger-action chain mapping, conditional branching, error handling, retry logic, and workflow diagrams with platform-specific node references.
Design BI reports and analytics views — with metric definitions, data source mapping, filter logic, drill-down paths, and refresh schedules that enable self-service decision-making.
| name | ai-prompt-writing |
| description | Write effective prompts for AI coding tools — structure task context, specify constraints, provide examples, and iterate based on output quality. Targets developers using Claude Code, Copilot, Cursor, and similar tools. |
| metadata | {"displayName":"AI Prompt Writing","categories":["communication","engineering"],"tags":["ai-prompts","prompt-templates","AI","coding-assistant","Claude-Code","Copilot","Cursor"],"worksWellWithAgents":["ai-engineer","developer-experience-engineer","prompt-engineer"],"worksWellWithSkills":["code-review-checklist","prompt-engineering-guide","technical-spec-writing"]} |
Gather the following from the user. If anything is missing, ask before proceeding:
Lead with what you want, then provide supporting information. AI tools process instructions sequentially — burying the task after paragraphs of context reduces accuracy.
Structure:
[What to do] — 1-2 sentences
[Constraints] — format, style, boundaries
[Context] — relevant code, files, architecture
[Examples] — input/output pairs if helpful
Bad: "Here is my React component that uses useState and useEffect to fetch data from /api/users and display it in a table. The table has sorting and pagination. I want you to..."
Good: "Refactor this React component to replace useState+useEffect data fetching with React Query. Keep the existing sorting and pagination behavior. Here is the component: ..."
Vague prompts get vague results. Constrain the output to match your project's conventions:
Each constraint eliminates a category of wrong answers.
When the task involves a pattern, show the pattern instead of describing it:
Convert this REST endpoint to the project's tRPC pattern.
Existing tRPC endpoint for reference:
// src/server/routers/posts.ts
export const postsRouter = router({
list: publicProcedure
.input(z.object({ limit: z.number().default(10) }))
.query(async ({ input, ctx }) => {
return ctx.db.post.findMany({ take: input.limit });
}),
});
REST endpoint to convert:
// src/pages/api/users.ts
[paste the code]
One concrete example communicates format, naming, error handling, and style better than a paragraph of instructions.
AI tools have limited context. Include only what matters for the task:
When using file-aware tools (Claude Code, Cursor), point to files by path instead of pasting content. The tool reads them with full context.
Tell the tool exactly how to deliver the result:
git apply"Unspecified format leads to incomplete snippets, unnecessary explanations, or code wrapped in markdown when you wanted a raw file.
First-attempt prompts rarely produce perfect results. Iterate systematically:
Bug fix:
Fix this bug: [describe the symptom and reproduction steps].
The relevant code is in [file path]. The expected behavior is [X], but the actual behavior is [Y].
Root cause hypothesis: [your guess, if any].
Do not change the function signature or public API.
Code review:
Review this diff for: correctness bugs, performance issues, security concerns, and style violations against [project conventions].
For each issue, state: file, line, severity (critical/warning/nit), and a specific fix.
Do not comment on things that are correct.
Refactoring:
Refactor [function/component] to [specific goal: extract hook, split component, reduce complexity].
Preserve all existing behavior — the existing tests must still pass without modification.
Follow the pattern established in [reference file].
Before sending a prompt to an AI coding tool, verify: