ワンクリックで
bookstrap-init
Initialize a new book project by creating a Book Requirements Document (BRD) through guided questions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Initialize a new book project by creating a Book Requirements Document (BRD) through guided questions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Outline creation patterns for fiction and nonfiction book structures, including chapter breakdowns, scene planning, and narrative arc mapping.
Grounded prose composition workflow including pre-write queries, consistency checks, and post-write entity extraction for database-backed writing.
Run editing passes over completed sections for voice consistency, timeline verification, contradiction flagging, and citation coverage
Load research corpus into the database by processing files, directories, or URLs through semantic chunking, embedding generation, entity extraction, and relationship building
Analyze BRD and existing corpus to identify knowledge gaps, then generate prioritized research tasks for filling those gaps
Generate writing tasks from BRD structure and corpus, creating chapter/section tasks with dependencies, pre-write queries, and consistency checks
| name | bookstrap-init |
| description | Initialize a new book project by creating a Book Requirements Document (BRD) through guided questions |
| argument-hint | <book concept> |
| allowed-tools | ["Bash(*)","Read","Write","AskUserQuestion","TaskCreate"] |
Set up a new book project by creating a comprehensive Book Requirements Document (BRD).
The user wants to write: $ARGUMENTS
This command delegates to the brd-creator agent to guide the user through BRD creation via structured questions.
First, verify that SurrealDB is running and accessible:
# Check if SurrealDB container is running
if docker ps | grep -q bookstrap-db; then
echo "SurrealDB is running"
else
echo "SurrealDB_NOT_RUNNING"
fi
If SurrealDB is not running, start it:
# Start SurrealDB via docker-compose
docker-compose up -d
Wait a few seconds for the database to be ready:
sleep 3
Run the schema initialization script:
./scripts/init-schema.sh
This creates all necessary tables, fields, and indexes in SurrealDB.
The brd-creator agent will guide the user through creating the BRD by asking structured questions about:
The agent will:
BRD.md filebrd tableAfter the BRD is created, set up the initial project structure:
# Create directories
mkdir -p manuscript
mkdir -p research
mkdir -p logs
mkdir -p data
# Create .gitignore if it doesn't exist
if [ ! -f .gitignore ]; then
cat > .gitignore << 'EOF'
# Environment
.env
# Database
data/
# Logs
logs/
# OS
.DS_Store
Thumbs.db
# Editor
.vscode/
.idea/
EOF
fi
If bookstrap.config.json doesn't exist, copy from template:
if [ ! -f bookstrap.config.json ]; then
cp templates/bookstrap.config.json bookstrap.config.json
fi
Check that required environment variables are set:
# Check for embedding provider API key
if [ -f .env ]; then
source .env
if [ -z "$GEMINI_API_KEY" ] && [ -z "$OPENAI_API_KEY" ]; then
echo "WARNING: No embedding API key found. Set GEMINI_API_KEY or OPENAI_API_KEY in .env"
fi
else
echo "NOTE: Create a .env file and add your API keys (see .env.example)"
fi
Return a summary including:
/bookstrap-ingest to load research materials