Skip to content

Instantly share code, notes, and snippets.

@intellectronica
Last active June 30, 2025 15:49
Show Gist options
  • Save intellectronica/b97f4cc482dd2c22d0646b48c4d3abbc to your computer and use it in GitHub Desktop.
Save intellectronica/b97f4cc482dd2c22d0646b48c4d3abbc to your computer and use it in GitHub Desktop.
Useful Custom Instructions for ~/.gemini/GEMINI.md

Default Instructions for Gemini CLI

Useful Command-Line Tools

GitHub

  • Use the gh command-line to interact with GitHub.

Markdown

  • Use the glow command-line to present markdown content.

JSON

  • Use the jq command to read and extract information from JSON files.

RipGrep

  • The rg (ripgrep) command is available for fast searches in text files.

Clipboard

  • Pipe content into pbcopy to copy it into the clipboard. Example: echo "hello" | pbcopy.
  • Pipe from pbpaste to get the contents of the clipboard. Example: pbpaste > fromclipboard.txt.

Python

  • Unless instructed otherwise, always use the uv Python environment and package manager for Python.
    • uv run ... for running a python script.
    • uvx ... for running program directly from a PyPI package.
    • uv ... ... for managing environments, installing packages, etc...

JavaScript / TypeScript

  • Unless instructed otherwise, always use deno to run .js or .ts scripts.
  • Use npx for running commands directly from npm packages.

Documentation Sources

  • If working with a new library or tool, consider looking for its documentation from its website, GitHub project, or the relevant llms.txt.
    • It is always better to have accurate, up-to-date documentation at your disposal, rather than relying on your pre-trained knowledge.
  • You can search the following directories for llms.txt collections for many projects:
  • If you find a relevant llms.txt file, follow the links until you have access to the complete documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment