Index

From softspark/ai-toolkit · View interactive version

Index is an AI agent skill from the GitHub repository softspark/ai-toolkit. Reindexes KB for semantic search via vector store (Qdrant). Triggers: reindex KB, rebuild index, vector reindex, refresh embeddings.

How to use this skill

Skill file

Knowledge Base Indexing

$ARGUMENTS

Reindex the knowledge base for semantic search.

Prerequisite: This command requires a vector store (e.g., Qdrant) and an indexing pipeline configured for your project. If not configured, this command provides guidance on setup.

Usage

/index              # Incremental index (detect changes)
/index --full       # Full rebuild

Execution

Direct Execution

# Incremental index (auto-detects changes)
make index

# Full rebuild
make index-full

Docker Execution

docker exec {app-container} make index
docker exec {app-container} make index-full

Change Detection

The indexer uses content hashing to detect changes:

| Scenario | Action |

|----------|--------|

| New document | Index |

| Changed content | Reindex |

| No changes | Skip |

| Deleted document | Remove from index |

Frontmatter Validation

Before indexing, ensure all KB documents have valid frontmatter:

---
title: "Document Title"
service: {service-name}
category: reference|howto|procedures|troubleshooting|decisions|best-practices
tags: [tag1, tag2]
last_updated: "YYYY-MM-DD"
---

Troubleshooting

| Problem | Solution |

|---------|----------|

| Index not updating | Check file timestamps, run full rebuild |

| Missing documents | Verify frontmatter is valid |

| Slow indexing | Check embedding service performance |

| No vector store | Set up Qdrant or compatible vector DB |

Rules

Gotchas

When NOT to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.