Skip to main content
skill CX Codex

outline — Claude Code skill for Outline wiki

Search, read, create, and edit Outline wiki documents with an agent. Use it to inspect collections or export a page as Markdown.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sanjay3290/ai-skills --skill outline -a claude-code
Open on GitHub

What outline does

The skill operates on Outline documents through scripts/outline.py. It can search and read pages, show collections and their documents, create or update entries, and export a document as Markdown. Add --json to a command for machine-readable output, or run auth-info to test the API connection.

You need Python 3.8+, the packages in requirements.txt, and an Outline API token set as OUTLINE_API_KEY. For a self-hosted wiki, set OUTLINE_API_URL to its API endpoint. API operations require a valid token with the necessary permissions, so check those before asking the agent to change wiki content.

What it helps with

  • find wiki pages using a text query
  • read a document by its ID
  • inspect collections and their documents
  • create or update an Outline page
  • export a wiki document as Markdown

Example prompts for the agent

  • Search my Outline wiki for deployment documentation and return the matches as JSON.
  • Read the Outline document with ID <document-id> and show its contents.
  • Create a draft titled “Guide” in collection <id>.

How to install outline

1Skills CLI (Vercel)

npx skills add sanjay3290/ai-skills --skill outline -a claude-code

2Manually: put the files in place

~/.claude/skills/outline/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/outline/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about outline

How do I install outline in Claude Code?

Run npx skills add sanjay3290/ai-skills --skill outline -a claude-code. The skill file is at ~/.claude/skills/outline/SKILL.md.

What does outline do?

It lets an agent search, read, create, and edit Outline wiki documents, inspect collections, and export pages as Markdown. Its operations use scripts/outline.py.

What does outline need to connect to an Outline wiki?

The skill requires Python 3.8+, packages from requirements.txt, and an API token in OUTLINE_API_KEY. Set OUTLINE_API_URL for a self-hosted instance.

Source text

SKILL.md · Apache-2.0
---
name: outline
description: "Search, read, and manage Outline wiki documents. Use when: (1) searching wiki for documentation, (2) reading wiki pages or articles, (3) listing wiki collections or documents, (4) creating or updating wiki content, (5) exporting documents as markdown. Works with any Outline wiki instance (self-hosted or cloud)."
license: Apache-2.0
metadata:
  author: sanjay3290
  version: "1.0"
---

# Outline Wiki Skill

Search, read, create, and manage documents in any Outline wiki instance. Works with all AI clients supporting the Agent Skills Standard.

## Requirements

- Python 3.8+
- Dependencies: `pip install -r requirements.txt`

## Setup

1. Get your API key from your Outline wiki:
   - Go to **Settings > API Tokens**
   - Create a new token with appropriate permissions

2. Configure the environment:
   ```bash
   cp .env.example .env
   # Edit .env with your API key
   ```

3. Set the environment variables:
   ```bash
   export OUTLINE_API_KEY=your-api-key-here
   # Optional: for self-hosted instances
   export OUTLINE_API_URL=https://your-wiki.example.com/api
   ```

## Usage

### Search documents
```bash
python3 scripts/outline.py search "deployment guide"
python3 scripts/outline.py search "API documentation" --limit 10
python3 scripts/outline.py search "onboarding" --collection-id <id>
```

### Read a document
```bash
python3 scripts/outline.py read <document-id>
python3 scripts/outline.py read <document-id> --json
```

### List collections
```bash
python3 scripts/outline.py list-collections
python3 scripts/outline.py list-collections --limit 50
```

### List documents in a collection
```bash
python3 scripts/outline.py list-documents --collection-id <id>
```

### Get collection details
```bash
python3 scripts/outline.py get-collection <collection-id>
```

### Create a document
```bash
python3 scripts/outline.py create --title "New Guide" --collection-id <id>
python3 scripts/outline.py create --title "Guide" --collection-id <id> --text "# Content here"
python3 scripts/outline.py create --title "Draft" --collection-id <id> --draft
```

### Update a document
```bash
python3 scripts/outline.py update <document-id> --title "Updated Title"
python3 scripts/outline.py update <document-id> --text "New content"
python3 scripts/outline.py update <document-id> --publish
```

### Export document as markdown
```bash
python3 scripts/outline.py export <document-id>
python3 scripts/outline.py export <document-id> --output doc.md
```

### Test authentication
```bash
python3 scripts/outline.py auth-info
```

## JSON Output

Add `--json` flag to any command for machine-readable output:
```bash
python3 scripts/outline.py search "query" --json
python3 scripts/outline.py read <id> --json
```

## Operations Reference

| Command | Description | Required Args |
|---------|-------------|---------------|
| search | Full-text search | query |
| read | Get document content | document_id |
| list-collections | List all collections | - |
| list-documents | List docs (optionally in collection) | - |
| get-collection | Get collection details | collection_id |
| create | Create new document | --title, --collection-id |
| update | Update existing document | document_id |
| export | Export as markdown | document_id |
| auth-info | Test API connection | - |

## Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| OUTLINE_API_KEY | Yes | - | Your Outline API token |
| OUTLINE_API_URL | No | https://app.getoutline.com/api | API URL |
| OUTLINE_TIMEOUT | No | 30 | Request timeout (seconds) |
| OUTLINE_VERIFY_SSL | No | true | Set to `false` to skip SSL verification (for self-hosted instances with self-signed certs) |

## Troubleshooting

| Error | Solution |
|-------|----------|
| API key not configured | Set OUTLINE_API_KEY environment variable |
| Authentication failed | Verify API key is valid and not expired |
| Connection timeout | Check OUTLINE_API_URL and network connectivity |
| SSL certificate error | Set `OUTLINE_VERIFY_SSL=false` for self-signed certs |
| Document not found | Verify document ID is correct |
| Permission denied | Check API token has required permissions |

## Exit Codes

- **0**: Success
- **1**: Error (auth failed, not found, invalid request)

## Workflow

1. Run `auth-info` to verify connection
2. Run `list-collections` to see available collections
3. Run `search` or `list-documents` to find content
4. Run `read` to get full document content
5. Use `create`/`update` to modify wiki content

© sanjay3290 · Apache-2.0 · sanjay3290/ai-skills

Similar skills

All skills for Writing and docs →

From the same set20

google-sheets This skill gives your agent read and write access to Google Sheets: pull ranges, append rows, search for files by name. Handy when the data lives in a spreadsheet, not in code. CX Codex +1 465installs mysql This skill runs SELECT queries against several MySQL databases and blocks every write. Handy when you want to inspect a schema or pull data without touching production. CX Codex +1 420installs google-slides A skill for searching, reading, creating, and editing Google Slides presentations directly from agent commands. Uses Python scripts with standalone OAuth. CX Codex +1 407installs jules Delegates coding tasks to Google Jules for background execution. Handy when you want an agent to write tests, refactor code, or review pull requests. CX Codex +1 398installs manus This skill forwards slow research jobs to the Manus agent, which browses the web and returns a report with attached files. CX Codex +1 390installs notebooklm Connects Claude Code to Google NotebookLM via Playwright browser automation to ask notebook questions, sync local documents, and export notes to JSON or Markdown. CX Codex +1 375installs azure-devops This skill wires your agent into Azure DevOps over the REST API: work items, repos, pull requests, pipelines, wikis and test plans. Handy when a sprint, a PR and a deploy all live in the same chat. CX Codex +1 359installs elevenlabs Turns documents and text into audio with ElevenLabs: single-voice narration or a two-host podcast. CX Codex +1 351installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor