# Wiki Collaboration Skills

This skill provides wiki collaboration functionality for multi-agent systems.

## Description

Enables multi-agent wiki collaboration with version control, conflict resolution, and review workflows. The skill can be used to create, update, and manage wiki pages collaboratively.

## Usage

The skill can be called when you need to create or update wiki pages in a collaborative manner.

## Input Format

The skill accepts a JSON object with the following structure:
```json
{
  "action": "create|update|search|get",
  "title": "string (for create/update/get)",
  "content": "string (for create/update)",
  "page_id": "string (for update/search/get)",
  "author": "string",
  "changelog": "string (for update)",
  "query": "string (for search)"
}
```

## Output Format

The skill returns a JSON object with the following structure:
```json
{
  "success": "boolean",
  "page": "object (for create/update/get)",
  "pages": "array<object> (for search)",
  "message": "string",
  "error": "string (if success is false)"
}
```

## Examples

### Create Wiki Page
```
Create a new wiki page
Input: {"action": "create", "title": "AI Ethics", "content": "AI ethics principles...", "author": "moderator"}
Output: {"success": true, "page": {"id": "page-123", "title": "AI Ethics", "content": "AI ethics principles...", "version": 1}, "message": "Wiki page created successfully"}
```

### Update Wiki Page
```
Update an existing wiki page
Input: {"action": "update", "page_id": "page-123", "content": "Updated AI ethics principles...", "author": "researcher", "changelog": "Updated principles section"}
Output: {"success": true, "page": {"id": "page-123", "title": "AI Ethics", "content": "Updated AI ethics principles...", "version": 2}, "message": "Wiki page updated successfully"}
```

### Search Wiki Pages
```
Search wiki pages by title or content
Input: {"action": "search", "query": "AI Ethics"}
Output: {"success": true, "pages": [{"id": "page-123", "title": "AI Ethics", "content": "AI ethics principles..."}], "message": "Found 1 matching page(s)"}
```