doc-db-guide — community 0313temp, community, ide skills

v1.0.0

이 스킬 정보

SQLite 인덱싱 및 쿼리링을 통해 효율적인 프로젝트 문서 관리가 필요한 개발자 에이전트에게 적합합니다. Guide for the Doc Database VSCode extension. Use when the user asks to modify, extend, debug, or understand the doc-db extension, add new commands or features, change the webview UI, update the database schema, or fix extension bugs. Also use when asked about doc-db, doc database, or doc plugin development.

Albatross679 Albatross679
[0]
[0]
Updated: 3/16/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
45
Canonical Locale
en
Detected Body Locale
en

SQLite 인덱싱 및 쿼리링을 통해 효율적인 프로젝트 문서 관리가 필요한 개발자 에이전트에게 적합합니다. Guide for the Doc Database VSCode extension. Use when the user asks to modify, extend, debug, or understand the doc-db extension, add new commands or features, change the webview UI, update the database schema, or fix extension bugs. Also use when asked about doc-db, doc database, or doc plugin development.

이 스킬을 사용하는 이유

SQL DDL 생성 및 CRUD 연산을 사용하여 프론트매터를 SQLite에 인덱싱함으로써 여러 문서 파일이 있는 대규모 프로젝트를 관리하고 효율적인 쿼리, 편집 및 검증을 수행할 수 있는 에이전트를 강화합니다.

최적의 용도

SQLite 인덱싱 및 쿼리링을 통해 효율적인 프로젝트 문서 관리가 필요한 개발자 에이전트에게 적합합니다.

실행 가능한 사용 사례 for doc-db-guide

효율적인 쿼리를 위한 프론트매터 인덱싱
검증을 사용한 문서 파일 편집
파일 간 프로젝트 문서 동기화

! 보안 및 제한 사항

  • VSCode 확장 설치 필요
  • SQLite 데이터베이스 종속성
  • 프론트매터 인덱싱만 제한

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is doc-db-guide?

SQLite 인덱싱 및 쿼리링을 통해 효율적인 프로젝트 문서 관리가 필요한 개발자 에이전트에게 적합합니다. Guide for the Doc Database VSCode extension. Use when the user asks to modify, extend, debug, or understand the doc-db extension, add new commands or features, change the webview UI, update the database schema, or fix extension bugs. Also use when asked about doc-db, doc database, or doc plugin development.

How do I install doc-db-guide?

Run the command: npx killer-skills add Albatross679/0313temp/doc-db-guide. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for doc-db-guide?

Key use cases include: 효율적인 쿼리를 위한 프론트매터 인덱싱, 검증을 사용한 문서 파일 편집, 파일 간 프로젝트 문서 동기화.

Which IDEs are compatible with doc-db-guide?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for doc-db-guide?

VSCode 확장 설치 필요. SQLite 데이터베이스 종속성. 프론트매터 인덱싱만 제한.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Albatross679/0313temp/doc-db-guide. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use doc-db-guide immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

doc-db-guide

Install doc-db-guide, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Doc Database - Agent Guide

VSCode extension that indexes project documentation frontmatter into SQLite for querying, editing, and validation.

Source Layout

doc-db/src/
├── extension.ts   - Command registration, message handlers, file watcher
├── schema.ts      - Hardcoded table definitions, SQL DDL generation, frontmatter templates
├── database.ts    - DocDatabase class (sql.js wrapper, CRUD, junction table ops)
├── sync.ts        - SyncEngine (full sync, single file sync, file watching)
├── webview.ts     - HTML renderers (renderTable, renderEditableTable, renderDashboard)
├── parser.ts      - Frontmatter parsing and value extraction
├── types.ts       - TypeScript interfaces (TableDef, FieldDef, etc.)
└── sql.js.d.ts    - Type declarations for sql.js

Key Design

Doc-db uses hardcoded table definitions in schema.ts (getTableDefs()) instead of reading fileClass files. Table type is resolved by:

  1. Frontmatter type field
  2. Frontmatter fileClass field (legacy)
  3. Directory path inference via dirToTableType() (logs/log, etc.)

Commands

CommandIDDescription
Rebuild Databasedoc-db.rebuildDatabaseDrop + recreate all tables, full sync
Run Querydoc-db.runQuerySQL input box, results in editable webview
Validation Errorsdoc-db.showValidationErrorsShow type mismatches from indexing
New Entrydoc-db.newEntryPick table type, create file with frontmatter template
Dashboarddoc-db.showDashboardOverview of all tables with counts and recent files

Architecture

Schema (schema.ts)

Tables are defined in getTableDefs(). Each table has:

  • Main table: {tableName} with _file_path TEXT PRIMARY KEY + scalar columns
  • Junction tables: {tableName}_{fieldName} for Multi fields with (file_path, value) composite PK

Common fields on all tables: id, name, description, created, updated Common junction tables: {table}_tags, {table}_aliases

Field type mapping:

  • Input → TEXT
  • Select → TEXT with CHECK constraint
  • Number → REAL
  • Boolean → INTEGER CHECK(0,1)
  • Date → TEXT CHECK GLOB YYYY-MM-DD
  • Multi → junction table

Key functions: getTableDefs(), generateSchema(), generateDropStatements(), generateFrontmatterTemplate(td), getScalarFields(td), getJunctionFields(td), dirToTableType(relDir)

Database (database.ts)

DocDatabase wraps sql.js (in-memory SQLite compiled to WASM).

  • open() loads from disk, save() writes back, close() saves + closes
  • upsertFile() deletes then re-inserts (cascades to junction tables)
  • updateField() validates against allowed columns before UPDATE
  • addJunctionValue() / removeJunctionValue() for multi-field edits
  • query(sql) accepts SELECT/PRAGMA/EXPLAIN (read-only) or write ops
  • getTableType(filePath) returns which table a file belongs to

Sync Engine (sync.ts)

  • fullSync() walks each table folder, indexes .md files into matching tables
  • syncSingleFile() indexes one file (parse frontmatter, resolve table type, upsert, log errors)
  • resolveTableType(data, relPath) determines table by frontmatter type/fileClass or directory
  • File watchers auto-sync on create/change/delete within each table folder (logs/**/*.md, experiments/**/*.md, etc.)
  • Periodic save every 30 seconds if dirty

Webview (webview.ts)

Three renderers:

  1. renderTable() - Read-only HTML table (validation errors)
  2. renderEditableTable() - Full editing: contenteditable cells, chip UI for multi fields, file path links, CSV export
  3. renderDashboard() - Card grid showing table counts and recent files

All edits flow: webview postMessage → extension handler → updateField()/addJunctionValue()/removeJunctionValue()db.save() → update markdown file on disk

Frontmatter Editing (in extension.ts)

  • Scalar fields: regex ^(fieldName:\s*).*$ replacement
  • YAML quoting: auto-quotes values containing ,:[]{} etc.
  • Array add: addYamlArrayItem() finds field, inserts - value after last item
  • Array remove: removeYamlArrayItem() finds and splices matching - value line

Configuration

SettingDefaultDescription
doc-db.databasePath.doc-db/doc-db.sqliteDatabase file location
doc-db.autoWatchtrueAuto-watch for file changes

Build & Install

bash
1cd <project-root>/doc-db 2npx tsc -p ./ # TypeScript → out/ 3npx @vscode/vsce package --allow-missing-repository # → doc-db-0.1.0.vsix 4code --install-extension doc-db-0.1.0.vsix --force # Install

After install, reload VSCode window to activate.

IMPORTANT: After modifying source code, you MUST run all three steps (compile, package, install) for changes to take effect.

Adding a New Table

  1. Add a new entry to the array in getTableDefs() in schema.ts with name, folder, and fields
  2. Add the folder→type mapping in dirToTableType() in schema.ts
  3. Recompile, repackage, reinstall
  4. Run Doc DB: Rebuild Database
  5. Update references/schema.md in the doc-db-query skill

Adding a New Command

  1. Add to contributes.commands in package.json
  2. Register handler in extension.ts activate() with vscode.commands.registerCommand()
  3. Use ensureInitialized() to get db and syncEngine
  4. For webview output: use renderTable() (read-only) or renderEditableTable() (editable)
  5. For editable webviews: add message handlers in panel.webview.onDidReceiveMessage()

Common Patterns

Query with junction tables (use correlated subqueries)

sql
1SELECT l._file_path, l.name, l.created, 2 (SELECT GROUP_CONCAT(value, ' | ') FROM log_tags WHERE file_path = l._file_path) AS tags 3FROM log l 4ORDER BY l.created DESC

Opening files from webview

typescript
1vscode.postMessage({ type: 'openFile', filePath: link.dataset.file }); 2// In extension: opens via vscode.workspace.openTextDocument()

관련 스킬

Looking for an alternative to doc-db-guide or another community skill for your workflow? Explore these related open-source skills.

모두 보기

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
인공지능

widget-generator

Logo of f
f

prompts.chat 피드 시스템을 위한 사용자 지정 가능한 위젯 플러그인을 생성합니다

149.6k
0
인공지능

flags

Logo of vercel
vercel

리액트 프레임워크

138.4k
0
브라우저

pr-review

Logo of pytorch
pytorch

파이썬에서 텐서와 동적 신경망 구현 및 강력한 GPU 가속 지원

98.6k
0
개발자