prompt-engineering-sh-ffniwo
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "prompt-engineering-sh-ffniwo" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e7ad0a5258709a88c78a4d535e0e5fbb129142da1947b5dfff90a76dd6f87254. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/prompt-engineering-sh-ffniwo before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A prompt-engineering skill dedicated to helping AI agents efficiently complete related tasks.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- For each issue found, respond with: Severity: critical | warning | suggestion File and line reference What is wrong How to fix it (with code snippet)
- Testing
- Not tested
Browse files
Frontmatter
name: 提示词工程
slug: prompt-engineering
version: 1.0.0
displayName: 提示词工程
description: >
提示词工程专用技能,帮助AI Agent高效完成相关任务。
summary: "提示词工程专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 人工智能
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"Prompt Engineering
Structured System Prompt
You are a senior code reviewer. Your role is to analyze pull requests for:
1. Correctness - logic errors, edge cases, off-by-one errors
2. Security - injection, authentication, data exposure
3. Performance - N+1 queries, unnecessary allocations, missing indexes
4. Maintainability - naming, complexity, test coverage
For each issue found, respond with:
- Severity: critical | warning | suggestion
- File and line reference
- What is wrong
- How to fix it (with code snippet)
If the code is well-written, say so briefly. Do not invent problems.
Structure system prompts with role, scope, output format, and constraints. Be explicit about what the model should NOT do.
Chain-of-Thought
Analyze this database query for performance issues.
Think step by step:
1. Identify the tables and joins involved
2. Check if appropriate indexes exist for the WHERE and JOIN conditions
3. Look for full table scans or cartesian products
4. Estimate the row count at each step
5. Suggest specific index creation or query restructuring
Query:
SELECT o.*, u.name, p.title
FROM orders o
JOIN users u ON o.user_id = u.id
JOIN products p ON o.product_id = p.id
WHERE o.created_at > '2024-01-01'
AND u.country = 'US'
ORDER BY o.created_at DESC
LIMIT 50;
Chain-of-thought prompting improves accuracy on reasoning tasks by forcing the model to show intermediate steps.
Few-Shot Examples
Convert natural language to SQL. Follow these examples:
Input: "How many orders were placed last month?"
Output: SELECT COUNT(*) FROM orders WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') AND created_at < DATE_TRUNC('month', CURRENT_DATE);
Input: "Top 5 customers by total spending"
Output: SELECT customer_id, SUM(total_amount) AS total_spent FROM orders GROUP BY customer_id ORDER BY total_spent DESC LIMIT 5;
Input: "Products that have never been ordered"
Output: SELECT p.* FROM products p LEFT JOIN order_items oi ON p.id = oi.product_id WHERE oi.id IS NULL;
Now convert:
Input: "Average order value per country for the last quarter"
Provide 3-5 diverse examples that demonstrate the expected format and edge cases.
Tool Use / Function Calling
{
"tools": [
{
"name": "search_codebase",
"description": "Search for code patterns across the repository. Use when you need to find implementations, usages, or definitions.",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Regex pattern or keyword to search for"
},
"file_type": {
"type": "string",
"description": "File extension filter (e.g., 'ts', 'py')"
}
},
"required": ["query"]
}
}
]
}
Write tool descriptions that explain WHEN to use the tool, not just what it does.
Prompt Template Pattern
def build_review_prompt(diff: str, context: str, rules: list[str]) -> str:
rules_text = "\n".join(f"- {rule}" for rule in rules)
return f"""Review this code diff against the following rules:
{rules_text}
Context about the codebase:
{context}
Diff to review:
{diff}
Respond with a JSON array of findings. If no issues, return an empty array.
Each finding: {{"severity": "critical|warning|info", "line": number, "message": "string", "suggestion": "string"}}"""
Anti-Patterns
- Vague instructions like "be helpful" or "do your best"
- Asking the model to "be creative" when you need deterministic output
- Not specifying output format (JSON, markdown, plain text)
- Stuffing too many unrelated tasks into a single prompt
- Using negations ("don't do X") without saying what to do instead
- Not testing prompts with adversarial or edge-case inputs
Checklist
- [ ] System prompt defines role, scope, format, and constraints
- [ ] Chain-of-thought used for multi-step reasoning tasks
- [ ] Few-shot examples cover typical and edge cases
- [ ] Output format explicitly specified (JSON schema, markdown, etc.)
- [ ] Tool descriptions explain when and why to use each tool
- [ ] Prompts tested with adversarial inputs
- [ ] Temperature and top_p set appropriately for the task
- [ ] Prompt templates are parameterized, not hardcoded strings
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供全面的提示词工程方法论,涵盖系统提示、思维链、少样本示例等核心技巧
- 内容实用性强,对 AI Agent 开发者具有明确指导价值
Highlights
- 触发描述清晰明确,精准覆盖提示词工程相关场景
- description 位置正确,内容完整无截断
Highlights
- 文档结构清晰,章节划分合理,每个部分都有具体示例
- frontmatter 完整,包含必要的元数据信息
Areas to improve
-
framework 字段包含 OpenClaw 可能引起混淆 Reported severity: Minor
framework 字段列出了 OpenClaw 作为支持框架之一,虽然不违反强制规则,但可能让用户误以为该 Skill 与平台本体有特殊关联
Recommendation: 建议明确说明 OpenClaw 只是作为支持框架之一列出,或考虑移除以避免混淆
Highlights
- 提供完整的提示词工程最佳实践和检查清单
- 内容可靠,方法论经过验证
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.