bkit-rules
Skill70 starsChanged 9 months agoApache-2.0View on GitHub
Core rules for bkit PDCA methodology. Detailed reference for document-driven development, level detection, task classification, and code quality standards. Use when you need detailed bkit rules beyond what AGENTS.md provides. Triggers: bkit rules, PDCA rules, development rules, coding standards, 개발 규칙, 코딩 표준, ルール, 规则, reglas, règles, Regeln, regole Do NOT use for: specific PDCA actions (use $pdca instead).
- Reads credentials
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ww-w-ai/bkit-claude-codeedited, first seen Aug 14, 2026
- ww-w-ai/bkit-geminitheir own version, first seen Apr 9, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- ww-w-ai/bkit-claude-code★ 60017% same
Wrote their own version · 1
- ww-w-ai/bkit-gemini★ 66same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bkend-authSkill
- bkend-cookbookSkill
- bkend-dataSkill
- bkend-quickstartSkill
- bkend-storageSkill
- bkit-templatesSkill
- code-reviewSkill
- codex-learningSkill
- desktop-appSkill
- development-pipelineSkill
- dynamicSkill
- enterpriseSkill
- mobile-appSkill
- pdcaSkill
- phase-1-schemaSkill
- phase-2-conventionSkill
- phase-3-mockupSkill
- phase-4-apiSkill
- phase-5-design-systemSkill
- phase-6-ui-integrationSkill
- phase-7-seo-securitySkill
- phase-8-reviewSkill
- phase-9-deploymentSkill
- plan-plusSkill
- starterSkill
- zero-script-qaSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 16 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 40
Before writing code, follow this decision tree:
- Distinctive: line 46
If neither exists: suggest creating a plan first
- Distinctive: line 47
If plan exists but no design: suggest creating a design
- Distinctive: line 48
If both exist: reference design during implementation
- Distinctive: line 49
If task is Quick Fix (<10 lines): skip PDCA, proceed directly
- Distinctive: line 53
Before writing or editing any source code file:
- Very specific: line 55
Call bkit_pre_write_check(filePath) MCP tool
- Distinctive: line 56
If response says design document exists: reference it during implementation
- Distinctive: line 57
If response says no design document: suggest "Shall I create a design first?"
- Distinctive: line 62
After significant code changes:
- Distinctive: line 65
Follow the returned guidance
- Distinctive: line 175
No Hardcoding: Use meaningful constants
- Distinctive: line 176
Extensibility: Write in generalized patterns
- Very specific: line 181
Check utils/, hooks/, components/ui/
- Very specific: line 200
NEVER commit .env, credentials, or secret files
- Distinctive: line 201
ALWAYS validate user input at system boundaries
- Distinctive: line 202
Prefer explicit error handling over silent failures
- Distinctive: line 203
Follow OWASP Top 10 guidelines for security:
- Distinctive: line 239
When PDCA is active, include at the end of responses:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
bkit Core Rules (Detailed Reference)
Comprehensive rules for bkit's document-driven AI-native development methodology.
1. PDCA Auto-Apply Rules
Task Classification
Classify tasks to determine the appropriate PDCA level:
| Classification | Content Size | PDCA Level | Action |
| Quick Fix | < 10 lines | None | Execute immediately |
| Minor Change | < 50 lines | Recommended | Show summary, proceed |
| Feature | < 200 lines | Required | Check/create design doc |
| Major Feature | >= 200 lines | Required + Split | Require design, split into subtasks |
Classification Keywords
| Classification | Keywords |
| Quick Fix | fix, typo, correct, adjust, tweak |
| Minor Change | improve, refactor, enhance, optimize, update |
| Feature | add, create, implement, build, new feature |
| Major Feature | redesign, migrate, architecture, overhaul, rewrite |
Design Document Check Flow
Before writing code, follow this decision tree:
- Extract feature name from file path or user request
- Check:
docs/01-plan/features/{feature}.plan.md - Check:
docs/02-design/features/{feature}.design.md - Decision:
- If neither exists: suggest creating a plan first
- If plan exists but no design: suggest creating a design
- If both exist: reference design during implementation
- If task is Quick Fix (<10 lines): skip PDCA, proceed directly
Pre-Write Rules
Before writing or editing any source code file:
- Call
bkit_pre_write_check(filePath)MCP tool - If response says design document exists: reference it during implementation
- If response says no design document: suggest "Shall I create a design first?"
- For major changes (>200 lines): ALWAYS suggest creating design first
Post-Write Guidance Rules
After significant code changes:
- Call
bkit_post_write(filePath, linesChanged)MCP tool - Follow the returned guidance
- For features with design docs: suggest gap analysis
- Format suggestion: "Consider running gap analysis: $pdca analyze {feature}"
2. Level Detection Rules
Detect project level based on directory structure and config files.
Enterprise (2+ conditions met)
kubernetes/,terraform/,k8s/, orinfra/directories existservices/folder with 2+ servicesturbo.jsonorpnpm-workspace.yamldocker-compose.yml.github/workflows/(CI/CD)
Dynamic (1+ conditions met)
lib/bkend/orsrc/lib/bkend/directory.mcp.jsonwith bkend configurationsupabase/folderfirebase.jsonapi/orbackend/directorydocker-compose.yml(without K8s indicators)package.jsoncontaining:bkend,@supabase,firebase
Starter
None of the above conditions met. Default level for simple projects.
Level-Specific Behavior
| Aspect | Starter | Dynamic | Enterprise |
| Explanation | Friendly, avoid jargon | Technical but clear | Concise, use terms |
| Code comments | Detailed | Core logic only | Architecture only |
| Error handling | Step-by-step guide | Technical solutions | Brief cause + fix |
| PDCA docs | Simple | Feature-specific | Detailed architecture |
| Reference Skill | $starter | $dynamic | $enterprise |
Level Upgrade Signals
- Starter to Dynamic: "Add login", "Save data", "Admin page"
- Dynamic to Enterprise: "High traffic", "Microservices", "Own server"
3. 8-Language Trigger Keywords
bkit supports trigger detection in 8 languages:
| Language | Plan | Design | Analyze | Report |
| EN | plan, planning | design, architecture | analyze, verify, check | report, summary |
| KO | 계획, 기획 | 설계, 아키텍처 | 분석, 검증 | 보고서, 요약 |
| JA | 計画 | 設計 | 分析, 検証 | 報告 |
| ZH | 计划 | 设计 | 分析, 验证 | 报告 |
| ES | planificar | diseño | analizar | informe |
| FR | planifier | conception | analyser | rapport |
| DE | planen | Entwurf | analysieren | Bericht |
| IT | pianificare | progettazione | analizzare | rapporto |
Feature Keywords by Language
| Language | Feature Request | Bug Fix | Refactor |
| EN | add, create, implement | fix, bug, error | refactor, clean |
| KO | 추가, 생성, 구현 | 수정, 버그, 오류 | 리팩토링, 정리 |
| JA | 追加, 作成, 実装 | 修正, バグ, エラー | リファクタリング |
| ZH | 添加, 创建, 实现 | 修复, 错误 | 重构 |
| ES | agregar, crear | arreglar, error | refactorizar |
| FR | ajouter, créer | corriger, erreur | refactoriser |
| DE | hinzufügen, erstellen | beheben, Fehler | refaktorisieren |
| IT | aggiungere, creare | correggere, errore | rifattorizzare |
4. Naming Conventions
Code Naming Rules
| Target | Rule | Example |
| Components | PascalCase | UserProfile, LoginForm |
| Functions | camelCase | getUserById(), handleSubmit() |
| Constants | UPPER_SNAKE_CASE | MAX_RETRY_COUNT, API_BASE_URL |
| Types/Interfaces | PascalCase | UserProfile, ApiResponse |
| Files (component) | PascalCase.tsx | UserProfile.tsx |
| Files (utility) | camelCase.ts | formatDate.ts |
| Folders | kebab-case | user-profile/, auth-provider/ |
Document Naming Rules
| Format | Example | When to Use |
{feature}.plan.md | user-auth.plan.md | Plan documents |
{feature}.design.md | user-auth.design.md | Design documents |
{feature}.analysis.md | user-auth.analysis.md | Analysis reports |
{feature}.report.md | user-auth.report.md | Completion reports |
5. Code Quality Standards
Core Principles
- DRY: Extract to common function on 2nd use
- SRP: One function, one responsibility
- No Hardcoding: Use meaningful constants
- Extensibility: Write in generalized patterns
Pre-coding Checks
- Does similar functionality exist? Search first
- Check
utils/,hooks/,components/ui/ - Reuse if exists; create if not
Self-Check After Coding
- Same logic exists elsewhere?
- Can function be reused?
- Hardcoded values present?
- Function does only one thing?
When to Refactor
- Same code appears 2nd time
- Function exceeds 20 lines
- if-else nests 3+ levels
- Same parameters passed to multiple functions
Safety Rules
- NEVER commit
.env, credentials, or secret files - ALWAYS validate user input at system boundaries
- Prefer explicit error handling over silent failures
- Follow OWASP Top 10 guidelines for security:
- Input validation (XSS, SQL Injection prevention)
- Authentication/authorization handling
- Sensitive data encryption
- HTTPS enforcement
- Rate limiting
6. MCP Tools Quick Reference
| Tool | When to Call | Priority |
bkit_init | Session start | P0 |
bkit_analyze_prompt | First user message | P1 |
bkit_get_status | Before any PDCA operation | P0 |
bkit_pre_write_check | Before writing/editing source code | P0 |
bkit_post_write | After significant code changes | P1 |
bkit_complete_phase | When a PDCA phase is done | P0 |
bkit_detect_level | When project level is unclear | P1 |
bkit_classify_task | When estimating task size | P1 |
bkit_pdca_plan | Creating plan document | P0 |
bkit_pdca_design | Creating design document | P0 |
bkit_pdca_analyze | Running gap analysis | P1 |
bkit_pdca_next | Suggesting next phase | P1 |
bkit_select_template | Selecting PDCA template | P2 |
bkit_check_deliverables | Verifying phase deliverables | P2 |
bkit_memory_read | Reading session memory | P2 |
bkit_memory_write | Writing session memory | P2 |
7. Response Style Guidelines
Include bkit Feature Usage Report
When PDCA is active, include at the end of responses:
---
bkit Status: {feature} | Phase: {phase} | Match Rate: {rate}%
Next: {suggested next action}Level-Appropriate Formatting
- Starter: Include learning points, explain concepts simply
- Dynamic: Include PDCA status badges, checklists, next-step guidance
- Enterprise: Include tradeoff analysis, cost impact, deployment considerations
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

