confluence-search
Skill18 starsChanged 3 months agoMITView on GitHub
Search Confluence using CQL queries, validate syntax, export results, and manage search history.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- arfar-x/agent-skillstheir own version, first seen Sep 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- arfar-x/agent-skills★ 13same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Search Confluence content using CQL (Confluence Query Language).
- Distinctive: line 51
This skill finds content across Confluence: Use this skill for:
- Distinctive: line 87
All operations are read-only with no risk:
- Very specific: line 376
Solution: Use confluence-as search validate "query" to check syntax first
- Very specific: line 380
Solution: Use double quotes: space = "My Space" or single quotes: label = 'my-label'
- Distinctive: line 383
Problem: Search not finding expected results
- Very specific: line 388
Solution: Use YYYY-MM-DD format or functions like startOfWeek(), now("-7d")
- Very specific: line 392
Solution: Use stream-export for large datasets, add --batch-size option
- Distinctive: line 395
Problem: Search returns nothing when content exists
- Distinctive: line 396
Solution: Check space permissions, verify space key is correct, try broader query
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Confluence Search Skill
Search Confluence content using CQL (Confluence Query Language).
⚠️ PRIMARY USE CASE
This skill finds content across Confluence. Use this skill for:
- Searching pages by text, title, or labels
- Building CQL queries for complex searches
- Exporting search results to CSV/JSON
- Finding content by date, creator, or space
This is a read-only skill - it cannot create, modify, or delete content.
When to Use This Skill
| Trigger | Example |
| Text search | "Find pages about API documentation" |
| Label search | "Find all pages with label 'approved'" |
| Space search | "Search for content in DOCS space" |
| Date-based | "Find pages modified this week" |
| Export | "Export all pages in KB space to CSV" |
| CQL query | "Run CQL: space = DOCS AND type = page" |
When NOT to Use This Skill
| Operation | Use Instead |
| Create/edit pages | confluence-page |
| Add/remove labels | confluence-label |
| Manage permissions | confluence-permission |
| View page hierarchy | confluence-hierarchy |
Risk Levels
All operations are read-only with no risk:
| Operation | Risk | Notes |
| Search content | - | Read-only |
| Validate CQL | - | Read-only |
| Export results | - | Creates local file only |
| View history | - | Local history only |
Overview
This skill provides powerful search capabilities:
- Execute CQL queries
- Validate CQL syntax
- Get field and value suggestions
- Interactive query builder
- Export results to CSV/JSON
- Streaming export for large result sets
- Query history management
CQL Query Patterns
Basic Queries
# Find pages in a space
space = "DOCS" AND type = page
# Find by label
label = "documentation"
# Text search
text ~ "API documentation"
# By creator
creator = "john.doe@company.com"
creator = currentUser()
# By date
created >= "2024-01-01"
lastModified > startOfMonth()Advanced Queries
# Multiple spaces
space in ("DOCS", "KB", "DEV") AND type = page
# Exclude labels
label = "approved" AND label != "draft"
# Date ranges
lastModified >= "2024-01-01" AND lastModified < "2024-02-01"
# Ancestor (child pages)
ancestor = 12345
# Combined with ordering
space = "DOCS" AND label = "api" ORDER BY lastModified DESC
# Attachments in a space
type = attachment AND space = "DOCS"
# Blog posts by date
type = blogpost AND created >= startOfYear()CQL Fields Reference
| Field | Description | Example |
| space | Space key | space = "DOCS" |
| title | Page title | title ~ "API" |
| text | Full text search | text ~ "configuration" |
| type | Content type | type = page |
| label | Content label | label = "docs" |
| creator | Content creator | creator = currentUser() |
| contributor | Any contributor | contributor = "email" |
| created | Creation date | created >= "2024-01-01" |
| lastModified | Last modified date | lastModified > startOfWeek() |
| parent | Parent page ID | parent = 12345 |
| ancestor | Ancestor page ID | ancestor = 12345 |
| id | Content ID | id = 12345 |
CLI Commands
Output format tip: A global -o/--output flag placed before the subcommand (e.g. confluence-as -o json search cql "...") sets the default output format for all subcommands; an explicit subcommand-level --output wins. Note that for search export and search stream-export, the subcommand-level -o/--output is the output file path, not the format - use --format there.
confluence-as search cql
Execute CQL queries against Confluence.
Usage:
# Simple text search
confluence-as search cql "text ~ 'API documentation'"
# Search with space filter
confluence-as search cql "space = 'DOCS' AND type = page"
# With limit
confluence-as search cql "label = 'approved'" --limit 50
# Show excerpts
confluence-as search cql "text ~ 'config'" --show-excerptsArguments:
cql- CQL query string (required)--limit, -l- Maximum results (default: 25)--show-excerpts- Show content excerpts--show-labels- Show content labels--show-ancestors- Show ancestor pages--output, -o- Output format: text or json
confluence-as search validate
Validate CQL query syntax.
Usage:
confluence-as search validate "space = 'DOCS' AND type = page"
confluence-as search validate "invalid query (("Arguments:
cql- CQL query to validate (required)
confluence-as search suggest
Get CQL field and value suggestions.
Usage:
# Get field suggestions
confluence-as search suggest --fields
# Get values for a field
confluence-as search suggest --field space
confluence-as search suggest --field type
# Get operators and functions
confluence-as search suggest --operators
confluence-as search suggest --functionsArguments:
--fields- List all available CQL fields--field NAME- Get values for a specific field--operators- List all CQL operators--functions- List all CQL functions--output, -o- Output format: text or json
confluence-as search interactive
Interactive CQL query builder.
Usage:
confluence-as search interactive
confluence-as search interactive --space DOCS
confluence-as search interactive --type page --executeArguments:
--space- Pre-filter by space--type- Pre-filter by content type: page, blogpost, comment, or attachment--limit, -l- Maximum results (default: 25)--execute- Execute query after building
confluence-as search export
Export search results to file.
Usage:
# Export to CSV
confluence-as search export "space = 'DOCS'" --format csv --output results.csv
# Export to JSON
confluence-as search export "label = 'api'" --format json --output results.json
# Select columns
confluence-as search export "type = page" --columns id,title,space,created --output pages.csvArguments:
cql- CQL query (required)--format, -f- Output format: csv or json (default: csv)--output, -o- Output file path (required)--columns- Columns to include (comma-separated)--limit, -l- Maximum results
confluence-as search stream-export
Export large result sets with checkpoints.
Usage:
# Full export with progress
confluence-as search stream-export "space = 'DOCS'" --output docs.csv
# Resume from checkpoint
confluence-as search stream-export "space = 'DOCS'" --output docs.csv --resume
# Custom batch size
confluence-as search stream-export "type = page" --output pages.csv --batch-size 50Arguments:
cql- CQL query (required)--output, -o- Output file path (required)--format, -f- Output format: csv or json (inferred from extension if not specified)--columns- Columns to include (comma-separated)--batch-size- Records per batch (default: 100)--resume- Resume from last checkpoint
confluence-as search history
Manage local query history.
Usage:
# List recent queries
confluence-as search history list
confluence-as search history list --limit 10
# Search history
confluence-as search history search "space = DOCS"
# Show specific query by index
confluence-as search history show 5
# Clear history
confluence-as search history clear
# Export history to file
confluence-as search history export history.csv
confluence-as search history export history.json --format json
# Cleanup old entries
confluence-as search history cleanup --days 30Subcommands:
list- List recent queries (--limit default: 20, --output)search KEYWORD- Search history for queries containing keywordshow INDEX- Show specific query by indexclear- Clear all query historyexport FILE- Export history to file (--format: csv or json)cleanup- Remove old entries (--days default: 90)
confluence-as search content
Simple text search (no CQL knowledge required).
Usage:
confluence-as search content "meeting notes"
confluence-as search content "meeting notes" --space DOCS
confluence-as search content "API documentation" --type pageArguments:
query- Search text (required)--space- Limit to space--type- Content type: page or blogpost. Omit the flag to search all types. (The CLI also acceptsall, but that injects the literaltype = allinto the CQL, which the server rejects - do not use it.)--limit, -l- Maximum results--output, -o- Output format
Examples
Natural Language Triggers
- "Search for pages about API documentation"
- "Find all pages with label 'approved' in DOCS space"
- "Search for content created this month"
- "Export all pages in KB space to CSV"
- "Find pages modified by me today"
Common Pitfalls
1. CQL Syntax Errors
- Problem: Query fails with syntax error
- Solution: Use
confluence-as search validate "query"to check syntax first
2. Quoting Issues
- Problem: Values with spaces not matching
- Solution: Use double quotes:
space = "My Space"or single quotes:label = 'my-label'
3. Case Sensitivity
- Problem: Search not finding expected results
- Solution: Text search (
~) is case-insensitive, but=is exact match
4. Date Format
- Problem: Date queries failing
- Solution: Use
YYYY-MM-DDformat or functions likestartOfWeek(),now("-7d")
5. Large Result Sets
- Problem: Export timing out or running slow
- Solution: Use
stream-exportfor large datasets, add--batch-sizeoption
6. Empty Results
- Problem: Search returns nothing when content exists
- Solution: Check space permissions, verify space key is correct, try broader query
Error Handling
| Error | Cause | Resolution |
| 400 Bad Request | Invalid CQL syntax | Use confluence-as search validate to check query |
| 403 Forbidden | No permission to search space | Request space access |
| 408 Timeout | Query too complex or large result set | Simplify query, use pagination |
CQL Troubleshooting
Validate query before running:
confluence-as search validate "space = 'DOCS' AND type = page"Build query interactively:
confluence-as search interactive --space DOCSCheck available fields:
confluence-as search suggest --fields
confluence-as search suggest --field spaceCommon CQL fixes:
# Wrong: unquoted space with spaces
space = My Space
# Right: quoted space name
space = "My Space"
# Wrong: wrong date format
created > 01-15-2025
# Right: correct date format
created > "2025-01-15"
# Wrong: invalid operator for text
text = "exact match"
# Right: use contains operator
text ~ "search text"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

