Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add kime541200/google-prompt-guide-skill
Or install specific skill: npx add-skill https://github.com/kime541200/google-prompt-guide-skill
# Description
Expert guidance for crafting and optimizing prompts based on the official Gemini for Google Workspace Prompting Guide 101. Use this skill when the user asks to "improve a prompt", "write a better prompt", "optimize a prompt", or specifically mentions Google's prompting best practices. This skill analyzes prompts against the four key pillars (Persona, Task, Context, Format) and provides iterative refinements.
# SKILL.md
name: google-prompt-guide-skill
description: Expert guidance for crafting and optimizing prompts based on the official Gemini for Google Workspace Prompting Guide 101. Use this skill when the user asks to "improve a prompt", "write a better prompt", "optimize a prompt", or specifically mentions Google's prompting best practices. This skill analyzes prompts against the four key pillars (Persona, Task, Context, Format) and provides iterative refinements.
Google Prompt Guide Skill
Overview
This skill acts as an expert prompt engineer trained on the "Gemini for Google Workspace Prompting Guide 101". Its goal is to help users write effective, high-quality prompts by applying the four pillars of prompting: Persona, Task, Context, and Format.
Workflow
When the user provides a prompt or a goal, follow this process:
-
Analyze the Input:
- Identify which of the Four Pillars are present (Persona, Task, Context, Format).
- Check for adherence to Quick Tips (Natural language, Conciseness, Specificity).
- Reference: Read
references/principles.mdfor detailed definitions.
-
Critique & Strategy:
- If components are missing, identify them. (e.g., "This prompt lacks a specific Format.")
- If the prompt is vague, suggest adding Context.
- If the prompt is complex, suggest Breaking it up.
-
Generate Improvements:
- Draft an optimized version of the prompt.
- Use placeholders (like
[industry],[document]) where user-specific info is needed but missing. - Meta-Prompting: If appropriate, offer to "Make this a power prompt" as a strategy.
-
Explain:
- Briefly explain why the changes were made, referencing the principles (e.g., "Added a Persona to give the AI a clear perspective...").
Examples
Example 1: Improving a Vague Prompt
User Input: "Write an email about the project."
Analysis: Missing Persona, specific Task details, Context, and Format.
Response:
"To get a better result, let's apply the four pillars.
* Persona: Who is sending this? (e.g., Project Manager)
* Context: What project? What is the status?
* Format: Is this an update? A request?
Optimized Draft:
'You are a Project Manager. Draft a status update email to the stakeholders summarizing the Q3 marketing launch. Include a bulleted list of key achievements and one blocker regarding the budget.'"
Example 2: Starting from Scratch
User Input: "I need to plan an offsite."
Response:
"Let's build a prompt for that.
1. Persona: Executive Assistant? Team Lead?
2. Task: Create an agenda? Brainstorm activities?
3. Context: Where is it? How long? Who is attending?
4. Format: Table? List?
Draft:
'I am a Team Lead. Plan a 3-day offsite agenda for a team of 10 engineers in Seattle. Focus on team bonding and strategic planning. Format the output as a table.'"
Reference Material
references/principles.md: Core definitions of the 4 Pillars and Quick Tips.
# README.md
Google Prompt Guide Skill
Language: English | 繁體中文
Acknowledgments
This Skill is based on the official Gemini for Google Workspace Prompting Guide 101 (October 2024).
- Source: Gemini for Google Workspace Prompting Guide 101
This is an Agent-dedicated Skill designed to act as an expert prompt engineer. It helps users craft, analyze, and optimize their prompts by applying the "Four Pillars" framework (Persona, Task, Context, Format) to ensure high-quality, actionable outputs from Large Language Models.
Features
- Prompt Analysis: Automatically evaluates user inputs against the four key pillars of effective prompting.
- Iterative Refinement: Identifies vague or missing components (like missing Context or Persona) and suggests concrete improvements.
- Power Prompting: specific strategies to transform simple requests into sophisticated "power prompts" using meta-prompting techniques.
- Educational Feedback: Explains the why behind every suggested change, helping users improve their own prompting skills over time.
Installation
You can install this Skill in the following ways:
Manual Installation
Clone this repository to your Skill directory:
cd ~/.gemini/skills # or your skill storage path
git clone https://github.com/your-username/google-prompt-guide-skill.git
Usage
In Agent conversations, you can trigger this skill with requests such as:
- "Help me write a better prompt for..."
- "Improve this prompt: [your draft]"
- "Optimize this request using the 4 pillars"
- "How can I make this prompt more effective?"
Structure
SKILL.md: The core instruction set for the Agent.references/principles.md: Detailed definitions of the Persona, Task, Context, and Format pillars.assets/: Contains the original PDF guide for reference.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.