Install
$ agentstack add skill-jie-meng-mythril-agent-skills-glean ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
When to Use This Skill
Trigger conditions
Trigger this skill when the user mentions "glean" combined with an action intent:
- "glean search vacation policy" / "用 glean 搜一下请假规定"
- "glean chat summarize Q1 goals" / "问一下 glean 季度目标"
- "search company docs" / "搜公司知识库" / "搜内部文档"
- "glean agents list" / "glean documents get"
- "glean shortcuts create" / "create a go-link"
- "glean api" / "look up people in glean" / "glean 查人"
NOT a trigger (do NOT invoke this skill):
- Generic web search not targeting company knowledge
- User asks to search GitHub issues/PRs — use
gh-operations - User asks to search Confluence — use
confluenceskill
Security — MANDATORY rules for AI agents
- NEVER echo, print, or log the values of any environment variable containing credentials (
GLEAN_API_TOKEN, etc.). Do NOT run commands likeecho $GLEAN_API_TOKENorprintenv GLEAN_API_TOKEN— even for debugging. - NEVER pass token/credential values as inline CLI arguments or env-var overrides.
gleanreads credentials from its own config or environment — just rungleancommands directly. - NEVER read environment variable values using shell commands or programmatic access. The AI agent should not inspect, verify, or access token values in any way.
- When debugging auth errors, rely solely on
glean auth statusoutput andgleanerror messages. Do NOT attempt to verify tokens by reading or printing them. - NEVER extract credentials from OS credential stores or config files. Strictly forbidden commands include:
- macOS Keychain:
security find-internet-password,security find-generic-password - Reading
~/.glean/config.jsonor anygleanauth config file - Any command that outputs a password, token, or secret value from any credential store
- NEVER use extracted credential values in commands. The
gleanCLI handles all authentication internally — useglean apifor API calls instead ofcurlwith raw tokens.
Runtime requirements
- Glean CLI (
glean) installed and authenticated - Run
skills-check gleanto verify dependencies
Workflow
1) Pre-flight checks
MANDATORY execution rule:
- If the user provides a clear glean action (e.g., "glean search X"), go straight to the relevant operation. Do NOT run
glean --versionorglean auth statusfirst — let the command succeed or fail. - If running glean for the first time or encountering auth errors, check:
- Verify
gleanexists:
``bash glean --version ``
- Verify authentication:
``bash glean auth status ``
- If not authenticated:
``bash glean auth login # OAuth via browser (recommended) ``
- For CI/CD environments, credentials are set via environment variables:
GLEAN_API_TOKEN— API tokenGLEAN_HOST— Glean backend hostname (e.g.your-company-be.glean.com)
2) Search (glean search)
Search across company knowledge:
glean search "vacation policy"
glean search "Q1 planning" --datasource confluence --page-size 5
glean search "docs" --output ndjson | jq .title
glean search "onboarding" --fields "results.document.title,results.document.url"
glean search --json '{"query":"onboarding","pageSize":3}'
glean search --dry-run "test"
| Flag | Description | |---|---| | --output / --format | json (default), ndjson (one result per line), text | | --fields | Dot-path field projection — prefix paths with results. | | --datasource / -d | Filter by datasource (repeatable) | | --type / -t | Filter by document type (repeatable) | | --page-size | Results per page (default 10) | | --json | Raw SDK request body (overrides all flags) | | --dry-run | Print request body without sending |
3) Chat (glean chat)
Chat with Glean Assistant (non-interactive):
glean chat "What are our company holidays?"
glean chat --timeout 120000 "Summarize all Q1 OKRs across teams"
glean chat --json '{"messages":[{"author":"USER","messageType":"CONTENT","fragments":[{"text":"What is Glean?"}]}]}'
echo "What is Glean?" | glean chat
glean chat # interactive multiline input, Ctrl+D to send
| Flag | Description | |---|---| | --timeout | Request timeout in milliseconds (default 60000) | | --json | Raw SDK request body (overrides all flags) | | --dry-run | Print request body without sending | | --save | Persist chat for continuation (default true) |
4) Schema introspection (glean schema)
Discover commands and flags programmatically:
glean schema | jq '.commands'
glean schema search | jq '.flags | keys'
glean schema search | jq '.flags["--output"]'
5) AI Agents (glean agents)
glean agents list | jq '.agents[] | {id: .agent_id, name: .name}'
glean agents get --json '{"agentId":""}'
glean agents schemas --json '{"agentId":""}'
glean agents run --json '{"agentId":"","messages":[{"author":"USER","fragments":[{"text":"summarize Q1 results"}]}]}'
6) Documents (glean documents)
glean documents get --json '{"documentSpecs":[{"url":"https://..."}]}'
glean documents summarize --json '{"documentSpecs":[{"url":"https://..."}]}'
7) Collections (glean collections)
glean collections list
glean collections get --json '{"id":""}'
glean collections create --json '{"name":"My Collection","description":"..."}'
glean collections add-items --json '{"id":"","addedDocumentSpecs":[{"url":"https://..."}]}'
8) Shortcuts / go-links (glean shortcuts)
glean shortcuts list
glean shortcuts create --json '{"data":{"inputAlias":"onboarding","destinationUrl":"https://..."}}'
glean shortcuts create --json '{"data":{"inputAlias":"jira","urlTemplate":"https://jira.example.com/browse/{arg}"}}'
9) Other namespace commands
All namespace commands accept --json, --output, and --dry-run.
| Namespace | Subcommands | Description | |---|---|---| | glean answers | list, get, create, update, delete | Curated Q&A pairs | | glean announcements | create, update, delete | Company announcements | | glean pins | list, get, create, update, remove | Promoted search results | | glean entities | list, read-people | People, teams, custom entities | | glean verification | list, verify, remind | Document verification | | glean insights | get | Search and usage analytics | | glean messages | get | Indexed messages (Slack, Teams) | | glean activity | report, feedback | User activity reporting | | glean tools | list, run | Platform tools |
10) Raw API access (glean api)
glean api search --method POST --raw-field '{"query":"rust","pageSize":3}'
glean api --preview search --method POST --raw-field '{"query":"test"}'
11) Interactive TUI
Running glean with no arguments opens a full-screen chat:
glean # open TUI
glean --continue # resume the most recent session
Output Expectations
For every task, provide:
- Commands executed (or planned) in code blocks
- Short result summary
- If write operation succeeded, include the result explicitly
- If operation fails, include exact error and next action
All glean commands return structured JSON on stdout and errors on stderr. Use jq for parsing. Use --dry-run to preview requests before sending.
Error Handling
gleannot installed: Tell user to install viabrew install gleanwork/tap/glean-clior the install script. Runskills-check gleanto verify.- Not authenticated: Run
glean auth login(OAuth via browser). For CI/CD, setGLEAN_API_TOKENandGLEAN_HOSTenvironment variables. - Auth failure — ONLY allowed recovery steps:
- Report the
gleanerror message to the user - Suggest
glean auth loginorglean auth status - For token-based auth, suggest checking
GLEAN_API_TOKENandGLEAN_HOSTare set - Stop and wait for the user to fix auth
- API errors: Report status code and error body. Use
--dry-runto debug request shape. - Unknown command: Use
glean schemato discover available commands and flags.
Notes
- Every command returns JSON — pipe to
jqfor field extraction. - Use
--dry-runto preview requests before sending. - Use
glean schemafor machine-readable flag documentation. - Use
--output ndjsonfor streaming large result sets. - The interactive TUI (
gleanwith no args) is for human-interactive sessions; preferglean chat "..."orglean search "..."for agent workflows.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jie-meng
- Source: jie-meng/mythril-agent-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.