smart-init

Interactive ClaudeShack ecosystem initialization. Analyzes codebase, mines history, discusses findings with you, seeds Oracle with verified knowledge, sets up Context7 for current docs. Creates a foundation that improves over use.

View on GitHub
Author Overlord-Z
Namespace @Overlord-Z/claudeshack
Category general
Version 1.0.0
Stars 0
Downloads 3
self.md verified
Table of content

Interactive ClaudeShack ecosystem initialization. Analyzes codebase, mines history, discusses findings with you, seeds Oracle with verified knowledge, sets up Context7 for current docs. Creates a foundation that improves over use.

Installation

npx claude-plugins install @Overlord-Z/claudeshack/smart-init

Contents

Folders: scripts

Files: README.md, SKILL.md

Documentation

Interactive, Intelligent ClaudeShack Initialization

Smart Init doesn’t just create empty directories - it understands your project and seeds Oracle with verified, high-quality knowledge.

Why Smart Init?

Traditional InitSmart Init
Creates empty .oracle/Discovers languages, frameworks, patterns
Generic configProject-specific Guardian thresholds
No knowledgeSeeds Oracle with discovered + confirmed knowledge
Hope it worksVerifies understanding through conversation

How It Works

Phase 1: Discovery

Automatically analyzes:

Phase 2: Discussion

Presents findings and asks targeted questions:

Phase 3: Seeding

Creates Oracle entries from confirmed understanding:

Phase 4: Learning

After setup, the system improves over use:

Usage

Via Skill Invocation

Use the smart-init skill to initialize ClaudeShack for this project

Via Discovery Script

# See what Smart Init would discover
python .claude/skills/smart-init/scripts/discover.py

# JSON output for automation
python .claude/skills/smart-init/scripts/discover.py --json

What Gets Created

After Smart Init completes:

.oracle/
├── knowledge/
│   ├── patterns.json      # Discovered + confirmed patterns
│   ├── gotchas.json       # Critical issues to watch for
│   ├── preferences.json   # Team/user preferences
│   ├── corrections.json   # (empty, learns over time)
│   └── solutions.json     # (empty, learns over time)
├── sessions/
├── timeline/
└── index.json

.guardian/
└── config.json            # Project-appropriate thresholds

claude.md                  # Updated with project context

Knowledge Quality

Every seeded entry has:

Source Types

Example Session

User: Initialize ClaudeShack for this project

Smart Init: [Runs discovery for ~30 seconds]

"I've analyzed your project. Here's what I found:

**Project**: my-app
**Stack**: TypeScript + React + Express + PostgreSQL

I detected:
- Conventional commits style
- ESLint with Airbnb config
- Jest for testing
- Prisma for database

Questions:
1. Is PostgreSQL your primary database?
2. Any critical gotchas about the database I should know?
3. What coding patterns should I enforce?"

User: "Yes PostgreSQL. Watch out - connection pool doesn't auto-close.
       We prefer async/await everywhere."

Smart Init: "Got it! Setting up Oracle with:
- [CRITICAL] Database pool must be explicitly closed
- [HIGH] Prefer async/await over callbacks
- [MEDIUM] Use Prisma for all database operations

Creating directories and seeding knowledge..."

Fine-Tuning Over Use

After initialization, the system self-improves:

  1. You correct Claude → Recorded in Oracle corrections
  2. Guardian reviews code → Learns what you accept/reject
  3. You record sessions → Patterns get refined
  4. Weekly analysis → Finds automation opportunities

The knowledge base grows smarter over time without manual maintenance.

Scripts

ScriptPurpose
discover.pyAnalyze project and output findings

Integration

Smart Init sets up the full ecosystem:


“Understanding first. Setup second. Learning forever.”

Source

View on GitHub

Tags: general