Skip to main content

bkit 분석

Notes

  • bkit는 로컬 프로젝트에 설치되며 이는 전역 컨텍스트의 오염이 되지 않는다.

Install (devin)

mcp 서버 설정(local stdio mode)

.cognition/config.json 파일 생성 후 아래 내용 넣기

{
"mcpServers": {
"bkit": {
"command": "node",
"args": ["./.bkit-codex/packages/mcp-server/index.js"]
}
}
}

Skills (27)

SkillCategoryTrigger Examples
pdcaCore$pdca plan, $pdca design, $pdca analyze
plan-plusCore"brainstorming plan", "deep planning", "intent discovery"
bkit-rulesCoreCore rules (auto-applied via AGENTS.md)
bkit-templatesCore"plan template", "design template"
starterLevel"static site", "portfolio", "beginner"
dynamicLevel"login", "fullstack", "authentication"
enterpriseLevel"microservices", "k8s", "terraform"
development-pipelinePipeline"where to start", "development order"
phase-1-schemaPipeline"schema", "data model", "terminology"
phase-2-conventionPipeline"coding rules", "conventions"
phase-3-mockupPipeline"mockup", "wireframe", "prototype"
phase-4-apiPipeline"API design", "REST endpoints"
phase-5-design-systemPipeline"design system", "component library"
phase-6-ui-integrationPipeline"frontend integration", "API client"
phase-7-seo-securityPipeline"SEO", "security hardening"
phase-8-reviewPipeline"architecture review", "gap analysis"
phase-9-deploymentPipeline"CI/CD", "production deployment"
code-reviewQuality"review code", "check quality"
zero-script-qaQuality"test logs", "QA without scripts"
mobile-appPlatform"React Native", "Flutter", "iOS app"
desktop-appPlatform"Electron", "Tauri", "desktop app"
codex-learningLearning"learn Codex", "Codex CLI setup"
bkend-quickstartbkend.ai"bkend setup", "first project"
bkend-databkend.ai"table", "CRUD", "schema", "filter"
bkend-authbkend.ai"signup", "login", "JWT", "session"
bkend-storagebkend.ai"file upload", "presigned URL", "CDN"
bkend-cookbookbkend.ai"tutorial", "example project", "todo app"

MCP Tools (16)

WHY : State Management Layer

  • MCP Tools + Lib Modules
  • PDCA status tracking, intent detection, template management, memory persistence, context recovery

The MCP server provides 16 tools via JSON-RPC 2.0 over STDIO with zero external dependencies:

ToolCategoryPurpose
bkit_initSessionInitialize session, detect level, load PDCA status, compact summary
bkit_analyze_promptIntentDetect language, match triggers, score ambiguity (8 languages)
bkit_get_statusPDCARetrieve current PDCA status with recommendations (supports recovery mode)
bkit_pre_write_checkPDCAPre-write compliance check (design document existence)
bkit_post_writePDCAPost-write guidance (gap analysis suggestions)
bkit_complete_phasePDCAMark phase complete, validate transition, advance task chain
bkit_pdca_planTemplateGenerate plan document template with level-specific sections and task chain
bkit_pdca_designTemplateGenerate design template (Starter/Dynamic/Enterprise variants)
bkit_pdca_analyzeTemplateGenerate gap analysis template
bkit_pdca_nextPDCARecommend next PDCA action based on current state
bkit_classify_taskUtilityClassify task size (quick_fix / minor_change / feature / major_feature)
bkit_detect_levelUtilityDetect project level from directory structure
bkit_select_templateUtilitySelect template by phase and level
bkit_check_deliverablesUtilityVerify phase deliverables exist
bkit_memory_readMemoryRead session memory
bkit_memory_writeMemoryWrite session memory

Quick Start

$pdca plan local-auth       # 1. 계획서 작성
$pdca design local-auth # 2. 설계서 작성
$pdca do local-auth # 3. 구현 (코드 작성)
$pdca analyze local-auth # 4. 갭 분석
$pdca iterate local-auth # 5. 갭 수정 (필요시 반복)
$pdca report local-auth # 6. 완료 보고서
$pdca archive local-auth # 7. 문서 보관

Examples

  • eg, local-auth-demo

PDCA as-is cycle

Default Phase Flow

Plan -> Design -> Do -> Check(analyze) -> Act(iterate) -> Report -> Archive
| |
| v
| (if < 90%)
| iterate -> re-analyze
| |
v v
[Complete] (if >= 90%)
Report -> Archive

Steps Each Phase

[Plan]

  1. Verify plan exists (required prerequisite)
  2. Call bkit_pdca_design(feature, level) MCP tool
  3. Write template to docs/02-design/features/{feature}.design.md
  4. Fill in: Architecture, Data Model, API Spec, Test Plan
  5. Call bkit_complete_phase(feature, "design") when done

[Design]

  1. Verify plan exists (required prerequisite)
  2. Call bkit_pdca_design(feature, level) MCP tool
  3. Write template to docs/02-design/features/{feature}.design.md
  4. Fill in: Architecture, Data Model, API Spec, Test Plan
  5. Call bkit_complete_phase(feature, "design") when done

[Do]

  1. Verify design exists (required prerequisite)
  2. Reference design document during implementation
  3. Follow implementation order from design
  4. Call bkit_pre_write_check(filePath) before each file write
  5. Call bkit_post_write(filePath, linesChanged) after significant changes
  6. Call bkit_complete_phase(feature, "do") when done

[Analyze]

  1. Call bkit_pdca_analyze(feature) MCP tool
  2. Read design document: docs/02-design/features/{feature}.design.md
  3. Scan implementation code in relevant directories
  4. Compare design items vs implemented items
  5. Calculate Match Rate: (implemented / total_design_items) * 100
  6. Write analysis to docs/03-analysis/{feature}.analysis.md

[Iterate]

  1. Read gap list from analysis document
  2. Fix identified gaps in code (prioritize "Missing in Code" items)
  3. Re-run analysis: $pdca analyze {feature}
  4. Repeat until matchRate >= 90% or max 5 iterations
  5. Call bkit_complete_phase(feature, "act") when done

[Report]

  1. Verify matchRate >= 90% (warn if below)
  2. Gather data from plan, design, analysis documents
  3. Generate completion report
  4. Write to docs/04-report/{feature}.report.md
  5. Include: completed items, quality metrics, learnings

[Archive]

  1. Verify report completion (phase = "completed" or matchRate >= 90%)
  2. Create docs/archive/YYYY-MM/{feature}/ folder
  3. Move documents from original locations
  4. Update .pdca-status.json: phase = "archived"