Skip to content

Kasi Scaffold

Oak Dev-inter edited this page Apr 23, 2026 · 1 revision

/kasi-scaffold

Build the .kasidit/ knowledge structure for the current project β€” stack-detected, checklist-seeded.

Usage

/kasi-scaffold             # detect stack, generate .kasidit/

What it does

  • Detects stack via composer.json / package.json / requirements.txt / go.mod / Cargo.toml.
  • Detects framework (Laravel, Django, React, Express, Vue, etc.).
  • Scans project structure β€” maps controllers, models, services.
  • Creates .kasidit/INDEX.md, RELATIONS.md, MEMORY.md, PATTERNS.md, CHECKLISTS/, knowledge/.
  • Copies matching CHECKLISTS from the skill library.
  • Seeds PATTERNS.md with detected conventions (naming, error handling, DB access).

Directory created

.kasidit/
β”œβ”€β”€ INDEX.md              # file paths + one-line purpose
β”œβ”€β”€ RELATIONS.md          # module relationship diagram
β”œβ”€β”€ MEMORY.md             # user-confirmed project facts
β”œβ”€β”€ PATTERNS.md           # project-specific code patterns
β”œβ”€β”€ CHECKLISTS/           # scan checklists per domain
└── knowledge/            # version-specific cached docs

Flow

  1. Detect stack from dependency manifests.
  2. Detect framework.
  3. Scan project structure (controllers / models / services).
  4. Ask user to confirm or correct detected stack.
  5. Generate INDEX.md from the actual file tree.
  6. Copy matching CHECKLISTS from the skill library.
  7. Seed PATTERNS.md with detected conventions.
  8. Create empty MEMORY.md β€” grows via the remember shorthand.

After scaffold

  • Summary of what was created.
  • Suggest next mission (Kasi-Review or Kasi-Security).
  • Reminder that .kasidit/ is the source of truth β€” user can edit freely.

When to use

  • Standalone scaffold of an existing project (when /kasi-init full chain is overkill).
  • Re-seeding after an accidental delete of .kasidit/.
  • Manually bootstrapping on a branch where auto-invoke hook is not wanted.

When NOT to use

  • When .kasidit/ already exists β€” do not overwrite without asking.
  • Unclear stack β€” ask before generating.
  • Full bootstrap is needed β€” use Kasi-Init which chains scaffold + docs + review + hook.

Anti-patterns

  • Overwriting existing .kasidit/ without confirmation.
  • Writing full content into INDEX.md β€” it stays pointers only.
  • Guessing the stack instead of asking the user.

Since

Introduced in v0.1.0.

See also

Kasidit

Core

Version History

Concepts

Commands

Agents

Deprecated v0.10 (stubs β†’ audit-specialist --focus=..., removed in v0.11)

Clone this wiki locally