Verify that the database exists and is properly initialized. Returns status indicating whether the database is ready for use. Use this before any operation that assumes the database exists.
Check that the database directory and index file exist and are properly structured.
Use TaskCreate to create a task for each step below, then execute them in order. Mark each task in_progress when starting and completed when done using TaskUpdate.
Use the Bash tool to check if the database/ directory exists:
[ -d "database" ] && echo "EXISTS" || echo "MISSING"
If the output is "MISSING":
db-init skill to create it."Use the Read tool to read database/index.md.
If the file does not exist or returns an error:
db-init skill to reinitialize."Verify the index file contains the expected structure:
# Database Index heading## Documents sectionIf the structure is malformed:
db-init."If all checks pass, report to the caller: "Database verified and ready."