Obsidian graph view central hub. All components connect from this file.
v1.2.0 Refactoring: Skills consolidated, .claude/ removed from repo, single source of truth at root level
v1.2.1 Multi-Language Support: Extension-based file detection, 20+ language support, configurable patterns
v1.2.1 Language Tier System: 4-tier language classification reflecting AI-Native development and Vibe Coding trends
v1.2.3 SessionStart Enhancement: AskUserQuestion guidance with 4 options for session initialization
v1.3.0 Check-Act Iteration Loop: Automatic gap analysis and fix cycles with pdca-iterator agent
v1.3.1 Cross-Platform: All hooks converted from Bash (.sh) to Node.js (.js) for Windows/Mac/Linux compatibility
v1.4.0 Dual Platform Support: Claude Code + Gemini CLI simultaneous support, 80+ lib/common.js functions, 8-language Intent Detection
v1.4.1 Context Engineering: Optimal token curation perspective for LLM reasoning, Response Report Rule
bkit is a practical implementation of Context Engineering:
┌─────────────────────────────────────────────────────────────────┐
│ bkit Context Engineering Components │
├─────────────────────────────────────────────────────────────────┤
│ Domain Knowledge (21 Skills) → Structured domain knowledge │
│ Behavioral Rules (11 Agents) → Role-based behavioral rules │
│ State Management (lib/common) → State management 76+ functions │
│ 5-Layer Hook System → Context injection timing ctrl │
│ Dynamic Injection → Conditional context selection │
└─────────────────────────────────────────────────────────────────┘
Core design principles and methodology:
- [[philosophy/core-mission|core-mission]] - Core mission & 3 philosophies (Automation First, No Guessing, Docs=Code)
- [[philosophy/ai-native-principles|ai-native-principles]] - AI-Native development & 3 core competencies
- [[philosophy/pdca-methodology|pdca-methodology]] - PDCA cycle & 9-stage pipeline relationship
- [[../skills/bkit-rules/SKILL|bkit-rules]] - PDCA rules + auto-triggering + code quality standards
- [[../skills/bkit-templates/SKILL|bkit-templates]] - Document templates for consistent PDCA documentation
- [[../skills/starter/SKILL|starter]] - Starter level (static web, HTML/CSS/JS, Next.js basics)
- [[../skills/dynamic/SKILL|dynamic]] - Dynamic level (BaaS fullstack with bkend.ai)
- [[../skills/enterprise/SKILL|enterprise]] - Enterprise level (MSA/K8s/Terraform, AI Native)
- [[../skills/development-pipeline/SKILL|development-pipeline]] - 9-stage pipeline overview
- [[../skills/phase-1-schema/SKILL|phase-1-schema]] - Schema/terminology definition
- [[../skills/phase-2-convention/SKILL|phase-2-convention]] - Coding conventions
- [[../skills/phase-3-mockup/SKILL|phase-3-mockup]] - Mockup development
- [[../skills/phase-4-api/SKILL|phase-4-api]] - API design/implementation
- [[../skills/phase-5-design-system/SKILL|phase-5-design-system]] - Design system
- [[../skills/phase-6-ui-integration/SKILL|phase-6-ui-integration]] - UI implementation + API integration
- [[../skills/phase-7-seo-security/SKILL|phase-7-seo-security]] - SEO/Security
- [[../skills/phase-8-review/SKILL|phase-8-review]] - Code review + quality analysis
- [[../skills/phase-9-deployment/SKILL|phase-9-deployment]] - Deployment
- [[../skills/zero-script-qa/SKILL|zero-script-qa]] - Zero Script QA (log-based testing)
- [[../skills/mobile-app/SKILL|mobile-app]] - Mobile app development (React Native, Flutter)
- [[../skills/desktop-app/SKILL|desktop-app]] - Desktop app development (Electron, Tauri)
The following skills were consolidated:
task-classification→lib/common.jslevel-detection→lib/common.jspdca-methodology→bkit-rulesdocument-standards→bkit-templatesevaluator-optimizer→/pdca-iteratecommandanalysis-patterns→bkit-templatesai-native-development→enterprisemonorepo-architecture→enterprise
- [[../agents/starter-guide|starter-guide]] - Starter level guide (beginners)
- [[../agents/bkend-expert|bkend-expert]] - Dynamic level (BaaS expert)
- [[../agents/enterprise-expert|enterprise-expert]] - Enterprise level (CTO-level advisor)
- [[../agents/infra-architect|infra-architect]] - Infrastructure architect (AWS/K8s/Terraform)
- [[../agents/pipeline-guide|pipeline-guide]] - Pipeline guide (9-phase development)
- [[../agents/gap-detector|gap-detector]] - Gap analysis (design vs implementation)
- [[../agents/design-validator|design-validator]] - Design validation
- [[../agents/code-analyzer|code-analyzer]] - Code quality analysis
- [[../agents/qa-monitor|qa-monitor]] - QA monitoring (Zero Script QA)
- [[../agents/pdca-iterator|pdca-iterator]] - Iteration optimizer (Evaluator-Optimizer pattern)
- [[../agents/report-generator|report-generator]] - Report generation
Note: Commands deprecated in v1.4.4+. Use Skills instead.
/pdca plan- Create plan document/pdca design- Create design document/pdca do- Implementation guide/pdca analyze- Run gap analysis/pdca iterate- Auto-fix with Evaluator-Optimizer/pdca report- Generate completion report/pdca status- Show PDCA dashboard/pdca next- Guide next PDCA step
/starter- Starter level project guidance/dynamic- Dynamic level project guidance/enterprise- Enterprise level project guidance
/development-pipeline start- Start pipeline guide/development-pipeline next- Next pipeline phase/development-pipeline status- Pipeline progress
/zero-script-qa- Run Zero Script QA/claude-code-learning- Learning curriculum/code-review- Code review and quality analysis
- [[components/hooks/_hooks-overview|SessionStart]] - Plugin initialization with AskUserQuestion guidance
- [[components/hooks/_hooks-overview|PreToolUse]] - Before Write/Edit operations (defined in SKILL.md)
- [[components/hooks/_hooks-overview|PostToolUse]] - After Write operations (defined in SKILL.md)
Note: All scripts converted to Node.js (.js) in v1.3.1 for cross-platform compatibility
v1.4.0: Added 5 new phase completion handlers
scripts/pre-write.js- Unified PreToolUse hook (PDCA + classification + convention)scripts/pdca-post-write.js- PostToolUse guidance after Writescripts/select-template.js- Template selection by level
scripts/phase-transition.js- PDCA phase transition validation (v1.4.0)scripts/phase1-schema-stop.js- Schema phase completion (v1.4.0)scripts/phase2-convention-pre.js- Convention check before writescripts/phase2-convention-stop.js- Convention phase completion (v1.4.0)scripts/phase3-mockup-stop.js- Mockup phase completion (v1.4.0)scripts/phase4-api-stop.js- Zero Script QA after API implementationscripts/phase5-design-post.js- Design token verificationscripts/phase6-ui-post.js- Layer separation verificationscripts/phase7-seo-stop.js- SEO/Security phase completion (v1.4.0)scripts/phase8-review-stop.js- Review completion guidancescripts/phase9-deploy-pre.js- Deployment environment validation
scripts/qa-pre-bash.js- QA setup before Bashscripts/qa-monitor-post.js- QA completion guidancescripts/qa-stop.js- QA session cleanup
scripts/design-validator-pre.js- Design document validationscripts/gap-detector-post.js- Gap analysis guidancescripts/gap-detector-stop.js- Gap detector completionscripts/iterator-stop.js- Iterator completionscripts/analysis-stop.js- Analysis completion guidance
scripts/pdca-pre-write.js- PDCA pre-write checksscripts/archive-feature.js- Feature archivingscripts/sync-folders.js- Folder synchronizationscripts/validate-plugin.js- Plugin validation
lib/common.js- Shared utility functions (v1.4.0 Node.js, 80+ functions)
detectPlatform()- Detect current platform ('claude' | 'gemini' | 'unknown')isClaudeCode()- Check if running in Claude CodeisGeminiCli()- Check if running in Gemini CLIgetPluginPath()- Get plugin root path for current platformgetBkitConfig()- Load bkit.config.json with caching
_cache- In-memory TTL-based cache object- TTL-based invalidation for config, status, and feature data
debugLog()- Debug logging with platform-specific paths- Writes to
~/.claude/bkit-debug.logor~/.gemini/bkit-debug.log
createInitialStatusV2()- Create PDCA Status v2.0 schemamigrateStatusToV2()- Auto-migrate from v1.0 schemagetDefaultFeatureStatus()- Get default status object for a feature
setActiveFeature()- Set current working featureaddActiveFeature()- Add new feature to trackinggetActiveFeatures()- Get all tracked featuresswitchFeatureContext()- Switch between feature contextsgetFeatureContext()- Get context for specific feature
detectNewFeatureIntent()- Detect new feature request from user messagematchImplicitAgentTrigger()- Match message to agent trigger keywordsmatchImplicitSkillTrigger()- Match message to skill trigger keywords- 8-language support: EN, KO, JA, ZH, ES, FR, DE, IT
calculateAmbiguityScore()- Calculate ambiguity in user requestgenerateClarifyingQuestions()- Generate AskUserQuestion optionsdetectAmbiguousTerms()- Find unclear terms in message
extractRequirementsFromPlan()- Parse requirements from plan documentcalculateRequirementFulfillment()- Calculate completion percentagegetUnfulfilledRequirements()- List incomplete requirements
checkPhaseDeliverables()- Check required deliverables for phasevalidatePdcaTransition()- Validate phase transition is allowedgetPhaseRequirements()- Get requirements for specific phase
getConfig()- Read from bkit.config.jsongetConfigArray()- Get array value from config
isSourceFile()- Negative pattern + extension detection (30+ extensions)isCodeFile()- Tier-based code file detectionisUiFile()- UI component files (.tsx, .jsx, .vue, .svelte, .astro)isEnvFile()- Environment file detection
getLanguageTier()- Get tier (1-4, experimental, unknown) for filegetTierDescription()- Get tier description (AI-Native, Mainstream, etc.)getTierPdcaGuidance()- Get PDCA guidance based on tierisTier1(),isTier2(),isTier3(),isTier4()- Tier check helpers
extractFeature()- Multi-language feature extractionfindDesignDoc()- Find design document for featurefindPlanDoc()- Find plan document for feature
classifyTask(),classifyTaskByLines()- Task size classificationdetectLevel()- Project level detection (Starter/Dynamic/Enterprise)getPdcaGuidance()- Get PDCA guidance for task size
outputAllow(),outputBlock(),outputEmpty()- Hook response helpersreadStdinSync(),parseHookInput()- Hook input helpers
PDCA_PHASES- PDCA phase definitions constantgetPdcaTaskMetadata()- Generate task metadatageneratePdcaTaskSubject()- Generate task subjectgeneratePdcaTaskDescription()- Generate task descriptiongenerateTaskGuidance()- Generate task creation guidancegetPreviousPdcaPhase()- Get previous PDCA phasefindPdcaStatus()- Read docs/.pdca-status.jsongetCurrentPdcaPhase()- Get current PDCA phase for feature
bkit supports languages and frameworks organized by tier:
| Tier | Category | Languages/Frameworks |
|---|---|---|
| Tier 1 | AI-Native Essential | Python, TypeScript, JavaScript, React/Next.js, Svelte |
| Tier 2 | Mainstream Recommended | Go, Rust, Dart, Vue, Astro, Flutter, Tauri |
| Tier 3 | Domain Specific | Java, Kotlin, Swift, C/C++, Angular, Electron |
| Tier 4 | Legacy/Niche | PHP, Ruby, C#, Scala, Elixir |
| Experimental | Future Consideration | Mojo, Zig, V |
Tier Selection Criteria:
- AI tool ecosystem compatibility (Copilot, Claude, Cursor)
- Vibe Coding optimization
- Market share (IEEE Spectrum 2025)
- Training data availability
BKIT_EXCLUDE_PATTERNS- Exclude directories (node_modules, pycache, .git, etc.)BKIT_FEATURE_PATTERNS- Feature directory patterns (features, modules, packages, etc.)
bkit.config.json- Centralized configuration- Task classification thresholds
- Level detection rules
- PDCA document paths
- Naming conventions
bkit supports Gemini CLI as a secondary platform:
| Item | Claude Code | Gemini CLI |
|---|---|---|
| Manifest | .claude-plugin/plugin.json |
gemini-extension.json |
| Context File | CLAUDE.md |
GEMINI.md |
| Commands | commands/*.md (Markdown) |
commands/gemini/*.toml (TOML) |
| Hook Events | PreToolUse / PostToolUse |
BeforeTool / AfterTool |
| Plugin Root | $CLAUDE_PLUGIN_ROOT |
$extensionPath |
| Project Dir | $CLAUDE_PROJECT_DIR |
$GEMINI_PROJECT_DIR |
Hook Mapping:
Claude Code → Gemini CLI
─────────────────────────────────
SessionStart → SessionStart
PreToolUse → BeforeTool
PostToolUse → AfterTool
Stop → AgentStop
Shared Components (Cross-platform):
skills/- All 21 skills work on both platformsagents/- All 11 agents work on both platformsscripts/- All 26 scripts use Node.js (cross-platform)lib/common.js- Platform detection viadetectPlatform()templates/- All 20 templates work on both platforms
plan.template.md- Plan phasedesign.template.md- Design phasedesign-starter.template.md- Starter-level designdesign-enterprise.template.md- Enterprise-level designanalysis.template.md- Gap analysisreport.template.md- Completion reportiteration-report.template.md- Iteration report
pipeline/phase-1-schema.template.mdpipeline/phase-2-convention.template.mdpipeline/phase-3-mockup.template.mdpipeline/phase-4-api.template.mdpipeline/phase-5-design-system.template.mdpipeline/phase-6-ui.template.mdpipeline/phase-7-seo-security.template.mdpipeline/phase-8-review.template.mdpipeline/phase-9-deployment.template.mdpipeline/zero-script-qa.template.md
CLAUDE.template.md- Project conventions_INDEX.template.md- Document index
- [[triggers/trigger-matrix]] - Event-based trigger matrix
- [[triggers/priority-rules]] - Priority and conflict rules
- [[scenarios/scenario-write-code]] - Code write flow
- [[scenarios/scenario-new-feature]] - New feature request
- [[scenarios/scenario-qa]] - QA execution
- [[testing/test-checklist]] - Test checklist