All courses

Gemini course

Gemini Apps and Gemini CLI

A reusable docs-handoff workflow, built as a Gem or a Gemini CLI skill, plus a locally tested extension if you take the CLI path.

Lesson 1 of 7

Pick the Gemini surface for your workflow

Start in the Gemini web app if your workflow mainly needs a saved set of instructions and optional reference files. Build it as a Gem. Choose Gemini CLI if your goal is to use a skill file inside a development workspace, inspect project files, or build an extension that groups multiple capabilities.

The two paths share a design principle: write down a repeatable task and an output you can review. A Gem is configured in the Gemini app. A CLI skill is a directory Gemini CLI discovers and activates for a suitable task. You can reuse the procedure across both surfaces by adapting the packaging.

For each exercise, use a mock documentation handoff. Your deliverable is a review checklist with a source pointer and status for every change.

Try it

  1. Choose web, CLI, or both based on where you work.
  2. Collect two fake documentation change notes and label them D-01 and D-02.

Quick check

Official references
Next lesson

Lesson 2 of 7

Create and test a Gem in the web app

Open Gemini on the web and find Gems, using Settings if needed. Choose New Gem. Give it a descriptive name such as Documentation handoff and paste the starter instructions. Add approved material under Knowledge only when the Gem needs it to answer consistently.

Try a preview prompt before saving. Give it one change with a source and one unresolved detail. Look for a checklist with a clear distinction between verified changes and items to confirm. Use the explicit Save action after the preview.

Open the saved Gem for a second test with different sample notes. If the same correction keeps coming up, add it to the Gem instructions. Keep one-off facts such as a target date in your prompt.

Try it

  1. Save the Gem after testing the preview.
  2. Run it in a fresh conversation and inspect the status on a change with no source.
Prepare a documentation review checklist.
Use one row per change with a source pointer and status.
Mark missing or disputed details for review.
Example: D-01 | Update the title | changelog line 8 | ready for review

Quick check

Official references
Next lesson

Lesson 3 of 7

Create a workspace skill in Gemini CLI

Open a trusted practice workspace in Gemini CLI. Create .gemini/skills/docs-handoff/SKILL.md in that workspace and paste the starter. Gemini CLI supports .agents/skills as an alternative workspace location. Use one location here so you can tell which copy wins discovery.

In an active Gemini CLI session, run /skills reload and then /skills list. Check that docs-handoff appears. Give the CLI a natural request corresponding to its description and verify that it activates the intended skill or explicitly ask it to use docs-handoff.

You can also add a reviewed skill package with the CLI installer. Choose workspace scope when the workflow belongs to this project. Review what would be installed before accepting prompts.

Try it

  1. Create or install the skill inside a practice workspace.
  2. Use the interactive list to verify its presence, then run the fake change notes.
---
name: docs-handoff
description: Turn approved documentation change notes into a draft review checklist. Use for documentation handoffs.
---

# Documentation handoff

1. Match each change to its source file or note.
2. Draft a checklist with a clear status for each change.
3. Flag details missing from the inputs for the documentation reviewer.
4. Return the draft without modifying the source documents.

Interactive Gemini CLI:
/skills reload
/skills list

Quick check

Official references
Next lesson

Lesson 4 of 7

Keep Gem and CLI context focused

For the Gem, put stable rules in the instruction box and use Knowledge for a reference you expect the Gem to need repeatedly. Keep the facts of the current handoff in the prompt. When a file contains several revisions, highlight the revision the reviewer actually needs.

For the CLI skill, keep the main recipe in SKILL.md and point to longer references for special cases. Name the relevant files in your request and avoid asking for a full workspace scan when you know which notes contain the changes.

Compare results using the same two sample notes. A focused run should identify the correct source and produce the same status outcome. If a trimmed prompt weakens the evidence trail, restore the missing input.

Try it

  1. Split your inputs into stable instructions, optional references, and current notes.
  2. Give the tool a short prompt that identifies two source lines, then verify the result.

Quick check

Official references
Next lesson

Lesson 5 of 7

Install and inspect a Gemini CLI extension

Gemini CLI extensions can package skills alongside capabilities such as custom commands or MCP servers. Before you install an extension, read its published manifest and repository. Identify any dependencies it introduces and decide whether they are relevant to your workflow.

From the terminal, use the install command with a reviewed repository URL. Inspect the installation details and then restart or launch a Gemini CLI session as needed. List installed extensions in the terminal or from the interactive session.

Test a bundled skill using a throwaway workspace and sample data. If an extension is present but a capability is unavailable, confirm that it is enabled in your current scope and look for missing setup in the official reference.

Try it

  1. Inspect one extension’s manifest and record the components you expect.
  2. List your extensions and check whether the intended version appears.
gemini extensions install https://github.com/OWNER/REPOSITORY
gemini extensions list

Interactive Gemini CLI:
/extensions list

Quick check

Official references
Next lesson

Lesson 6 of 7

Build a local Gemini CLI extension

Create a practice folder called docs-toolkit. Put gemini-extension.json at the root and add your tested skill under skills/docs-handoff/. Keep this first version limited to the workflow so you can verify discovery without a network dependency.

From the parent directory, link the local package with the CLI command below. Open a Gemini CLI session, inspect the extension list and then check skills. If you still have a standalone copy of docs-handoff in your workspace, temporarily use a different workspace to isolate the extension copy.

Change a small instruction and repeat the sample. Confirm that the new behavior came from the intended installation before preparing a shared repository or gallery listing.

Try it

  1. Create the folder and manifest and link it in a practice environment.
  2. Use a workspace without the standalone copy and confirm the extension-supplied skill appears.
docs-toolkit/
  gemini-extension.json
  skills/docs-handoff/SKILL.md

{
  "name": "docs-toolkit",
  "version": "0.1.0",
  "description": "Review documentation handoffs"
}

gemini extensions link ./docs-toolkit

Quick check

Official references
Next lesson

Lesson 7 of 7

Finish a documentation handoff capstone

Run your saved Gem or workspace skill against three cases. For the normal case, provide a complete source. For the missing case, omit the reason for the change. For the conflict case, supply two notes that disagree about the target document.

Compare each row against its original note. A useful result records uncertainty where it exists and still drafts the supported part of the checklist. If the assistant invents a source link, tighten the rule and run the same fixture in a new session.

Keep a transcript or record of the expected outputs, your current instructions, and the setup steps. That gives you a reproducible way to check the next revision and explain the workflow to someone new.

Try it

  1. Run the three fixtures and score evidence and task completion separately.
  2. Save the instructions and one corrected example with their review date.

Quick check

Official references
All courses