用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cappyeo/antigravity-kit --skill prompt-engineer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | prompt-engineer |
| description | prompt-engineer skill for AI-powered development. |
| license | MIT |
| compatibility | Claude Code, Cursor, Gemini CLI, GitHub Copilot |
| metadata | {"author":"jhm1909","version":"2.0.0","domain":"ai","estimated_tokens":25000} |
Designing effective prompts and agent skills for AI-driven development.
| Capability | Location | Use For |
|---|---|---|
| Skill Creator | skill-creator/ | Authoring new skills for the framework |
| Prompt Optimization | references/prompt-optimization.md | Systematic prompt improvement with abstraction ladder |
| Prompt Templates | references/prompt-templates.md | Reusable prompt patterns |
When asked to create a new skill:
skill-creator/README.md from this skill directoryExample workflow:
User: "Create a skill for Stripe payment integration"
→ Load prompt-engineer/skill-creator/README.md
→ Apply SKILL.md v2 template
→ Define Knowledge Graph relationships
→ Generate skill files
You are a Prompt Engineer specializing in:
Total Context Window
├── System Instructions (skill loading)
├── Conversation History
├── Current Request
└── Output Buffer (leave 20%)
---
name: skill-name
type: skill | capability | moc
domain: web | mobile | ai | infra
status: stable | draft | deprecated
version: "2.0.0"
estimated_tokens: 15000
---
# Skill Title
Clear description of what this skill enables.
## Knowledge Graph
- **extends**: [[parent-skill]] — Why this inheritance
- **requires**: [[hard-dep]] — Cannot function without
- **suggests**: [[optional-1]], [[optional-2]] — Nice to have
- **conflicts**: [[incompatible]] — Mutual exclusion
- **enhances**: [[base-skill]] — Add-on capability
- **moc**: [[domain-moc]] — Domain membership
## Triggers (Optional)
Auto-detection patterns:
- pattern: "regex" → confidence: high/medium/low
- file: "filename.ext" → confidence: high
## Core Content
### Rules / Guidelines / Patterns
1. **Bold key terms** — Make them scannable
2. Use tables for comparisons
3. Code examples for patterns
## Related Skills
- [[related-skill]] — Why related
| Relationship | When to Use | Example |
|---|---|---|
extends | Specialization inherits all patterns | react-nextjs extends frontend-developer |
requires | Hard dependency | ai-engineer requires backend-developer |
suggests | Optional enhancement | react-nextjs suggests threejs |
conflicts | Mutual exclusion | vue-developer conflicts react-nextjs |
enhances | Capability add-on | tailwind-setup enhances any frontend |
❌ Vague descriptions
## Core Rules
1. Write clean code
✅ Specific, actionable rules
## Core Rules
1. **Use Server Components by default** — Only add 'use client' when interactivity required
2. **File naming**: kebab-case for all files, PascalCase for components
❌ Missing context estimates
# No estimated_tokens
---
name: my-skill
type: skill
---
✅ Always include token budget
---
name: my-skill
type: skill
estimated_tokens: 12000 # Helps users plan context
---
❌ Human learning timelines in MOCs
## Learning Path
Week 1-2: Learn basics
Week 3-4: Advanced topics
✅ Agent load orders with context
## Load Order
[[foundation]] (~2k tokens)
↓ extends
[[specialization]] (~1k tokens)
↓ suggests
[[capability]] (~0.5k tokens)
───────────────────────────────
Total: ~3.5k tokens
## Request Format
**Task**: {clear description}
**Context**:
- Current state: {what exists}
- Constraints: {limitations}
- Goals: {desired outcome}
**Output Format**:
```yaml
result:
summary: "brief description"
files:
- path: "relative/path"
content: "..."
next_steps:
- "action item"
### Pattern 2: Chain-of-Thought
```markdown
## Reasoning Process
Before responding, analyze:
1. What is the core problem?
2. What constraints apply?
3. What patterns are relevant?
4. What could go wrong?
5. What is the minimal viable solution?
Then proceed with implementation.
## Examples
### Example 1: Simple Case
Input: {simple input}
Output: {expected output}
### Example 2: Edge Case
Input: {complex input}
Output: {expected output}
### Example 3: Error Handling
Input: {invalid input}
Output: {error message + correction}
| Skill Size | Tokens | Use Case |
|---|---|---|
| Minimal | 1-3k | Simple utilities |
| Standard | 5-10k | Core skills |
| Comprehensive | 15-25k | Complex domains |
| Reference | 30k+ | Documentation, API specs |
Max Recommended Chain Length: 3-4 skills
Good:
[[frontend]] → [[react]] → [[nextjs]]
Too Deep:
[[frontend]] → [[react]] → [[nextjs]] → [[app-router]] → [[rsc-patterns]] → [[streaming]]
When designing conflicts:
## Knowledge Graph
- **conflicts**: [[vue-developer]] — Different component patterns, choose one framework
- Alternative: Use [[frontend-developer]] base if undecided
Before publishing a skill:
❌ Don't use: User input: {{user_input}} without validation
✅ Do: Define allowed values, validate patterns
❌ Don't: Load unrelated skills "just in case"
✅ Do: Use suggests for optional capabilities
❌ Don't: Create skill for every micro-task
✅ Do: Group related capabilities, use extends for variations
❌ Don't: Assume user knows jargon ✅ Do: Define terms, link to explanations
Part of [[ai-development-moc]] | Skill creator guide in skill-creator/ sub-directory