glean-cli
Skill by sammcj
Gives an AI assistant the knowledge to use the glean CLI to search and read company documents in Confluence, Slack and Google Drive through Glean. It is for users who ask the assistant to access their company's knowledge.
Install glean-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sammcj/agentic-coding /tmp/agentic-coding && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-coding/Skills_disabled/glean-cli ~/.claude/skills/glean-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sammcj/agentic-coding /tmp/agentic-coding && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-coding/Skills_disabled/glean-cli ~/.gemini/antigravity-cli/skills/glean-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an AI assistant how to use the local glean CLI. The CLI authenticates to a company's Glean instance and exposes its REST API. It can search the corporate index, ask Glean Assistant questions, look up people, and fetch and summarise documents. It can also manage Glean resources such as collections, pins, go-links, announcements, curated answers, agents and verification workflows.
The CLI prints JSON to stdout and errors to stderr. The skill tells the assistant to check that the binary is installed, run glean schema before using an unfamiliar command, and use --dry-run before any write action. It is for people whose company uses Glean and who want their assistant to search or read internal knowledge.
Written from the project's SKILL.md and checked against it.
What it can do
- SearchFinds documents across all enterprise sources in the company's Glean index.
- ChatAsks Glean Assistant a question and returns an AI answer that cites underlying documents.
- DocumentsFetches a document's metadata, content, permissions or AI summary.
- EntitiesLooks up people, teams or custom entities.
- MessagesReads a specific Slack or Teams message by ID.
- Agents and toolsLists, inspects and runs Glean AI agents and platform tools.
- AnswersLists, gets and creates curated question and answer pairs.
- Collections and pinsCreates and manages document collections and promotes documents in results for given queries.
- Shortcuts and announcementsManages go-links and time-bounded company announcements.
- Raw API accessMakes raw authenticated HTTP calls to any Glean REST endpoint through glean api.
What you need
- The glean CLI, installed with brew install gleanwork/tap/glean-cli
- Access to a company Glean instance
- Browser OAuth login with glean auth login, or GLEAN_API_TOKEN and GLEAN_HOST environment variables
Try asking
- Search Glean for our incident response runbook and list the links.
- Ask Glean how to expense international travel.
- Look up Jane Smith in Glean and show her title and department.
Good to know
- Write actions such as create, update, delete and verify send data into the company's Glean tenant, so a dry run comes first.
- The --json flag overrides other flags silently, so the two should not be mixed.
- Flag names and body shapes can change between Glean releases, so glean schema is the source of truth.
- Search results may include promoted answers, people or pinned items, not only document objects.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: Skills_disabled/glean-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to glean-cli
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
glean-cli: common questions
How does the glean CLI authenticate?
It runs browser OAuth with glean auth login for interactive use. For CI or scripts, it reads GLEAN_API_TOKEN and GLEAN_HOST, in the order of env vars, system keyring, then ~/.glean/config.json.
Does the skill make changes to company data?
It can. Write commands such as create, update, delete, verify, remind and add-items send data to the Glean tenant, so the skill says to print a dry run first and get confirmation when the user has not asked for the change explicitly.
Why does the skill say to check glean schema?
Glean ships updates, and the schema reflects the installed version. The skill treats glean schema as the source of truth over its reference file when they disagree.
How do I install glean-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is glean-cli free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is glean-cli safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to glean-cli?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
