with one click
prompt-creation
// Context prompts for AI assistants with schema validation. Trigger: When creating context prompts for AI assistants or documenting project config.
// Context prompts for AI assistants with schema validation. Trigger: When creating context prompts for AI assistants or documenting project config.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | prompt-creation |
| description | Context prompts for AI assistants with schema validation. Trigger: When creating context prompts for AI assistants or documenting project config. |
| license | Apache 2.0 |
| metadata | {"version":"1.0","type":"behavioral","skills":["english-writing"]} |
Create standardized context prompts for AI assistants in prompts/ directory. Two types: technology-stack (project config with versions/policies) or behavioral (assistant persona/rules). Uses markdown frontmatter format with minimal metadata and structured markdown body.
Don't use for:
Frontmatter for metadata ONLY (4-6 fields, <10 lines). All content goes in markdown body.
---
# ā
CORRECT: Minimal metadata
name: english-practice
type: behavioral
description: English language teacher and technical writing coach
version: "1.0"
priority: high
---
Allowed fields (pick 4-6):
| Field | Required | Notes |
|---|---|---|
name | Yes | Prompt identifier |
type | Yes | behavioral or technology-stack |
description | Yes | Single-line purpose |
version | No | Semantic version |
context | No | When to use this prompt |
priority | No | low, medium, high |
PROHIBITED in frontmatter (move to markdown body):
persona.role, instruction_types.practice)NEVER create a prompt without gathering context first. Technology Stack Prompts:
Behavioral Prompts:
cp skills/prompt-creation/assets/PROMPT-TEMPLATE.md prompts/{prompt-name}.md
Fill frontmatter (4-6 fields) then organize all content in markdown body sections: Overview, Persona (if behavioral), Rules, Instruction Types, Examples, Guidelines.
| Aspect | Technology Stack | Behavioral |
|---|---|---|
| Type | technology-stack | behavioral |
| Naming | {project-name}.md | {behavior-name}.md |
| Key content | stack, policies, versioning | persona, modes, rules |
| Example | project.md, template.md | english-practice.md |
# ā WRONG: 15 tokens in frontmatter
general_rules:
- rule: "Always validate input"
explanation: "Check format before processing"
# ā
CORRECT: 8 tokens in markdown body
## Rules
1. Always validate input (check format before processing)
Schema path: skills/prompt-creation/assets/frontmatter-schema.json
Validation rules:
# ā WRONG: Content in frontmatter
---
name: english-practice
persona:
role: Teacher
traits: [Patient, Encouraging]
general_rules:
- Use ASCII apostrophes
instruction_types:
practice:
behavior: Review text
---
# (Empty markdown body)
# ā
CORRECT: All content in markdown body
---
name: english-practice
type: behavioral
description: English teacher and writing coach
version: "1.0"
---
# Prompt Title
## Persona / ## Rules / ## Instruction Types ā all in markdown body
New prompt needed?
āā [1] Gather context ā Ask 10 questions (tech or behavioral)
āā [2] Choose type ā technology-stack or behavioral?
āā [3] Copy template ā assets/PROMPT-TEMPLATE.md ā prompts/{name}.md
āā [4] Fill frontmatter ā 4-6 metadata fields ONLY
āā [5] Write markdown body ā All rules, examples, persona in sections
āā [6] Validate ā Frontmatter <10 lines? No nested YAML? Schema passes?
āā [7] Review ā Token efficiency, critical-partner (optional)
ā ļø STOP if: Incomplete context ā Ask clarifying questions
ā ļø REJECT if: Frontmatter >10 lines or nested objects ā Move to markdown body
cp assets/PROMPT-TEMPLATE.md prompts/{name}.md{project}.md or {behavior}.mdFilename: prompts/project.md
---
name: project
type: technology-stack
description: Web application stack configuration
version: "1.0"
context: Apply when working on project codebase
---
# Alpha Project Stack Configuration
## Overview
Web application for supply business distribution using React + TypeScript + MUI.
## Technology Stack
- TypeScript 5.6.2, React 18.3.1, Webpack 5
- MUI 5.15.14, Redux Toolkit 2.5.1, AG Grid 32.0.0
- Formik + Yup (forms + validation)
## Policies
1. **Strict Typing**: No `any` - use `unknown` or proper types
2. **MUI Components**: Prefer MUI over custom HTML
3. **Accessibility**: WCAG 2.1 AA (ARIA, keyboard nav)
4. **Redux**: Use RTK Query, no legacy Redux patterns
Filename: prompts/english-practice.md
---
name: english-practice
type: behavioral
description: English language teacher for software developers
version: "1.0"
priority: high
---
# English Practice Prompt
## Persona
**Role**: English language teacher and technical writing coach
**Traits**: Patient, encouraging, detail-oriented, focused on natural English
## Rules
1. Use only ASCII apostrophes (') and hyphens (-)
2. Always explain why a correction is needed
3. Never translate literally - use natural English phrasing
## Instruction Types
### Practice Mode (`practice:`)
Review and correct English text with detailed feedback.
### Translate Mode (`translate:`)
Translate Spanish to natural English. Explain phrasal verbs and idioms.
## Examples
### Practice
Input: "practice: Ayer termine el feature de authentication"
Output: "Yesterday I finished the authentication feature"
Corrections: past tense, article usage, word order
Competing use cases in one prompt: When a prompt must handle mutually exclusive workflows (e.g., new project setup vs. adding to existing), use conditional sections (## When starting from scratch / ## When adding to existing project) rather than overloading the main instructions. A single flat rule list fails when context diverges.
Prompt conflicts with agent system instructions: If a prompt's behavior contradicts an agent's .claude/agents/*.md instructions (e.g., prompt says "always add comments", agent says "no comments unless requested"), the agent-level instruction wins. Design prompts to complement agent constraints, not override them. If conflict is unavoidable, document the priority explicitly in the prompt's frontmatter description.
Reusable vs. one-off prompts: Prompts shared across multiple agents or projects must use version-stable, context-neutral language. Avoid relative references ("the current sprint", "our team's convention") ā they become meaningless outside the original context. One-off project-specific prompts can use local context freely but should be stored in the project's prompts/ directory, not in a shared skill.
Incomplete context: Ask remaining questions before proceeding. Never create generic prompts.
Empty fields: Omit entirely ā never include rules: [] or examples: {}.
assets/PROMPT-TEMPLATE.md{behavior}.md or {project}.mdprompts/ directoryassets/frontmatter-schema.json