Skip to content
cccskills
FreePublished on GitHub

prompt-engineering

LLM prompt engineering techniques for code generation, analysis, and automation. Use when the user asks about crafting better prompts, getting better AI responses, chain-of-thought prompting, few-shot examples, system prompts, or prompt templates.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5 stars(GitHub 5 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Prompt Engineering

Core Techniques

Be Specific and Structured

BAD: "Fix this code"
GOOD: "Review this Python function for:
1. Security vulnerabilities
2. Performance issues
3. Error handling gaps
Return findings as a numbered list with file:line references."

Provide Context

BAD: "Write a REST API"
GOOD: "Create a Express.js REST API for a todo app with:
- TypeScript
- PostgreSQL via Prisma
- JWT authentication
- CRUD endpoints for todos
- Input validation with Zod"

Chain-of-Thought

Think step by step:
1. Analyze the requirements
2. Identify edge cases
3. Design the solution
4. Implement the code
5. Verify correctness

Prompt Templates

Code Review

Review the following code for:
- Bugs and logic errors
- Security vulnerabilities
- Performance bottlenecks
- Code style and readability
- Missing error handling

Provide specific line references and concrete fix suggestions.

Code:

Refactoring

Refactor this code to:
- Improve readability
- Reduce duplication
- Follow SOLID principles
- Add type safety

Maintain the same public API and behavior.
Show the refactored code with a brief explanation of changes.

Code:

Test Generation

Generate comprehensive tests for this function:
- Cover happy path
- Cover edge cases (empty input, null, boundary values)
- Cover error cases
- Use the same testing framework as the project
- Include descriptive test names

Function:

Debugging

I'm getting this error: [ERROR MESSAGE]

Context:
- Language/framework: [LANGUAGE]
- What I expected: [EXPECTED]
- What actually happens: [ACTUAL]
- Relevant code: [CODE]

Help me identify the root cause and fix it.

Documentation

Generate documentation for this code:
- Brief summary of what it does
- Parameters/arguments with types
- Return value
- Usage example
- Any important notes or caveats

Code:

Few-Shot Examples

Convert these function calls to SQL:

Input: getUser(123)
Output: SELECT * FROM users WHERE id = 123;

Input: getPostsByAuthor(authorId=456, limit=10)
Output: SELECT * FROM posts WHERE author_id = 456 LIMIT 10;

Input: updateUserEmail(userId=789, email="new@example.com")
Output: UPDATE users SET email = 'new@example.com' WHERE id = 789;

Now convert:
Input: searchProducts(category="electronics", minPrice=100, maxPrice=500)
Output:

System Prompt Patterns

Role Assignment

You are a senior software engineer with expertise in Python and system design.
You write clean, well-documented code following PEP 8.
You consider edge cases and error handling in every solution.

Output Format Control

Always respond in this format:
## Analysis
[Brief analysis of the problem]

## Solution
[Code implementation]

## Explanation
[1-3 sentences explaining the approach]

## Alternatives
[Other valid approaches, if any]

Constraint Setting

Constraints:
- Use only standard library (no external dependencies)
- Target Python 3.10+
- Keep functions under 20 lines
- Include type hints
- No comments explaining obvious code

Advanced Patterns

Self-Consistency

Ask the same question multiple times, take the majority answer.

Tree of Thought

Consider three different approaches to solve this:
Approach 1: [describe]
Approach 2: [describe]
Approach 3: [describe]

For each, evaluate:
- Pros and cons
- Complexity
- Maintainability

Then recommend the best approach.

Reflection

Review your previous answer. Check for:
1. Correctness - are there any bugs?
2. Completeness - did you miss any requirements?
3. Efficiency - can it be optimized?
Provide a corrected version if needed.

Anti-Patterns

Don'tDo
"Make it good"Specify what "good" means
Dump code without contextExplain the goal and constraints
One giant promptBreak into steps
Assume the model knows your projectProvide relevant code/context
Ignore output formatSpecify exact format needed

Token Optimization

  • Put the most important instructions first
  • Use concise language without losing meaning
  • Reference code by file path, don't paste entire files
  • For large codebases, specify which files to focus on
  • Use structured formats (lists, tables) for clarity

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

See all skills by ProjectZeroDays

Report a problem with this skill