skills/bkit-rules/SKILL.md
Core rules for bkit — PDCA methodology, level detection, agent triggering, quality standards, Sprint management (8-phase container with 4 auto-pause triggers, v2.1.13), and Trust Level scope (L0-L4 gates PDCA + Sprint auto-run). Triggers: bkit rules, core rules, methodology, 핵심 규칙, PDCA 규칙.
npx skillsauth add popup-studio-ai/bkit-claude-code bkit-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatically applied rules that don't require user commands.
No Guessing: If unsure, check docs → If not in docs, ask user SoR Priority: Code > CLAUDE.md > docs/ design documents
| Request Type | Claude Behavior |
|--------------|-----------------|
| New feature | Check docs/02-design/ → Design first if missing |
| Bug fix | Compare code + design → Fix |
| Refactoring | Current analysis → Plan → Update design → Execute |
| Implementation complete | Suggest Gap analysis |
| Document Type | Template Path |
|---------------|---------------|
| Plan | ${CLAUDE_PLUGIN_ROOT}/templates/plan.template.md |
| Design | ${CLAUDE_PLUGIN_ROOT}/templates/design.template.md |
| Analysis | ${CLAUDE_PLUGIN_ROOT}/templates/analysis.template.md |
| Report | ${CLAUDE_PLUGIN_ROOT}/templates/report.template.md |
None of the above conditions met.
| 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 |
| Primary Agent | starter-guide | bkend-expert | enterprise-expert |
| Reference Skill | starter | dynamic | enterprise |
project/
├── CLAUDE.md # Project-wide (always reference)
├── services/CLAUDE.md # Backend work context
├── frontend/CLAUDE.md # Frontend work context
└── infra/CLAUDE.md # Infrastructure context
Rule: Area-specific rules > Project-wide rules
When user requests feature development:
| User Intent | Auto-Invoke Agent |
|-------------|-------------------|
| "code review", "security scan" | bkit:code-analyzer |
| "design review", "spec check" | bkit:design-validator |
| "gap analysis" | bkit:gap-detector |
| "report", "summary" | bkit:report-generator |
| "QA", "log analysis" | bkit:qa-monitor |
| "pipeline", "which phase" | bkit:pipeline-guide |
After completing major tasks, suggest relevant agents.
DRY: Extract to common function on 2nd use SRP: One function, one responsibility No Hardcoding: Use meaningful constants Extensibility: Write in generalized patterns
Classify tasks to apply appropriate PDCA level:
| Classification | Content Size | PDCA Level | Action | |----------------|--------------|------------|--------| | Quick Fix | < 50 chars | None | Execute immediately | | Minor Change | 50-200 chars | Lite | Show summary, proceed | | Feature | 200-1000 chars | Standard | Check/create design doc | | Major Feature | > 1000 chars | Strict | Require design, user confirmation |
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
When project level is detected, automatically suggest the matching output style:
| Level | Suggested Style | Trigger Condition |
|-------|-----------------|-------------------|
| Starter | bkit-learning | Level detected as Starter |
| Dynamic | bkit-pdca-guide | Level detected as Dynamic |
| Enterprise | bkit-enterprise | Level detected as Enterprise |
/starter init, /dynamic init, /enterprise init: Auto-suggest style for that levelbkit-pdca-guide if not already active/output-style at any time| Style | Best For | Key Features |
|-------|----------|-------------|
| bkit-learning | Beginners, learning | Learning points, TODO(learner) markers, concept explanations |
| bkit-pdca-guide | PDCA workflows | Status badges, checklists, phase progress, gap analysis suggestions |
| bkit-enterprise | Architecture decisions | Tradeoff analysis, cost impact, deployment strategy, SOLID compliance |
Suggest Agent Teams when conditions are met:
| Condition | Suggestion |
|-----------|-----------|
| Major Feature (>= 1000 chars) AND Dynamic/Enterprise level | "Agent Teams can parallelize PDCA phases. Try /pdca team {feature}" |
| Match Rate < 70% AND Dynamic/Enterprise level | "Consider Agent Teams for faster parallel Check-Act iteration" |
| Enterprise project init | "Your project supports 4-teammate Agent Teams mode" |
| Dynamic project init | "Your project supports 2-teammate Agent Teams mode" |
| Level | Available | Teammates | Roles | |-------|:---------:|:---------:|-------| | Starter | No | - | - | | Dynamic | Yes | 2 | developer, qa | | Enterprise | Yes | 4 | architect, developer, qa, reviewer |
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1/pdca team {feature} to start team modeAgent Memory is automatically active for all bkit agents. No user action required.
memory: project scopestarter-guide, pipeline-guide) use memory: user for cross-project learning.claude/agent-memory/ (project) or ~/.claude/agent-memory/ (user)| Scope | Agents Using | Persistence |
|-------|-------------|-------------|
| project | 9 agents (code-analyzer, gap-detector, pdca-iterator, etc.) | Per-project, across sessions |
| user | 2 agents (starter-guide, pipeline-guide) | Global, across all projects |
After modifying bkit plugin files, use /reload-plugins to apply changes without restarting Claude Code.
/clear to fully refreshCC 2.1.0+ supports Bash(pattern*) wildcard permissions.
Bash(npm *) - Allow all npm commandsBash(git log*) - Allow git log variantsBash(node *) - Allow node executionBash(npx *) - Allow npx executionBash(rm -rf*) - Deny recursive delete (dangerous)Bash(git push --force*) - Deny force pushAdd to .claude/settings.json:
{
"permissions": {
"allow": ["Bash(npm *)", "Bash(git log*)"],
"deny": ["Bash(rm -rf*)"]
}
}
testing
Sprint Management — generic sprint capability for ANY bkit user. 16 sub-actions: init, start, status, watch, phase, iterate, qa, report, archive, list, feature, pause, resume, fork, help, master-plan. Triggers: sprint, sprint start, sprint init, sprint status, sprint list, 스프린트, 스프린트 시작, 스프린트 상태, スプリント, スプリント開始, スプリント状態, 冲刺, 冲刺开始, 冲刺状态, sprint, iniciar sprint, estado sprint, sprint, demarrer sprint, statut sprint, Sprint, Sprint starten, Sprint Status, sprint, avviare sprint, stato sprint, master plan, multi-sprint plan, sprint master plan, 마스터 플랜, 멀티 스프린트 계획, 스프린트 마스터 플랜, マスタープラン, マルチスプリント計画, スプリントマスタープラン, 主计划, 多冲刺计划, 冲刺主计划, plan maestro, plan multi-sprint, plan maestro sprint, plan maître, plan multi-sprint, plan maître sprint, Masterplan, Multi-Sprint-Plan, Sprint-Masterplan, piano principale, piano multi-sprint, piano principale sprint.
tools
CC CLI version upgrade impact analysis — research changes, analyze bkit impact, generate report. Triggers: cc-version-analysis, CC upgrade, version analysis, CC 버전 분석, 버전 영향.
testing
Manage PDCA checkpoints and rollback — create, list, restore for safe recovery. Rollback events are recorded via lib/audit/audit-logger ACTION_TYPES.rollback_executed. For sprint-level recovery, individual feature rollbacks may be triggered from within sprint phases (sprint itself is forward-only — terminal state is `archived`, not rolled back; v2.1.13). Triggers: rollback, checkpoint, restore, undo, 롤백, 체크포인트, 복원.
testing
QA Phase execution — L1-L5 test planning, generation, execution, and reporting for a single feature. For sprint-level QA (7-Layer dataFlowIntegrity / S1 gate across multiple features) use /sprint qa <sprintId> which delegates to sprint-qa-flow agent (v2.1.13). Triggers: qa phase, QA test, qa run, QA 실행, QAフェーズ, QA阶段, fase QA, phase QA, QA-Phase, fase QA.