跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation星标 5(GitHub 5 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ace-music

免费

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

查看 ProjectZeroDays 的全部技能

报告此技能的问题