db-init

Create a database directory and empty index.md file idempotently.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/adamrdrew/claude-code-patterns --skill db-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-init
Source: https://github.com/adamrdrew/claude-code-patterns/tree/main/procedural-skills/.claude/skills/db-init
Command: npx skills add https://github.com/adamrdrew/claude-code-patterns --skill db-init

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize the database scaffolding by creating the database/ directory and an empty index.md file. Safe to call if database already exists - will not overwrite existing data.

Core Features & Use Cases

  • Idempotent: safely initializes storage scaffolding by creating missing directories and templates without overwriting existing data.
  • Index scaffolding: creates a standard database/index.md to track documents.
  • Safe operation: checks existence and reports status to guide subsequent steps.

Quick Start

Run the db-init skill to scaffold the database directory and index file if missing.

Frequently Asked Questions about db-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely initialize database scaffolding without overwriting existing data?

Database scaffolding can be safely initialized using an idempotent process that checks for an existing directory and index file, skipping any overwrites to ensure your current data remains intact.

What does idempotent directory creation do when setting up a persistent storage index?

Idempotent directory creation checks for an existing database folder before acting. It safely generates missing directories and template files without modifying or destroying any pre-existing storage index structures.

How do I create a database directory and an empty index.md file for project storage?

To create a database directory and an empty index.md file, run a scaffolding initialization process. This sets up the required persistent storage index structure by generating the missing paths and templates.

Will running database initialization again damage my current index.md tracking file?

Running database initialization again will not damage your current index.md file. The operation checks for existing templates and directories, ensuring safe, idempotent execution that preserves your document tracking data.

When do I need to scaffold a database directory for a persistent storage index?

You need to scaffold a database directory when your project requires a persistent storage index. This process establishes the standard database/index.md file to safely track documents before subsequent data operations.