Bkit Rules logo

Bkit Rules

Organization
ww-w-ai
bkit-rules

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

Overview

Publisherww-w-ai
Repositorybkit-claude-code
Skill namebkit-rules
Stars
601
Forks
154
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ww-w-ai on GitHub. Read the source before you install it.

Installation

Install the Bkit Rules AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ww-w-ai/bkit-claude-code.git /tmp/bkit-claude-code
mkdir -p .claude/skills
cp -r /tmp/bkit-claude-code/skills/bkit-rules .claude/skills/bkit-rules
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Bkit Rules in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Bkit Rules on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Bkit Rules is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

bkit Core Rules

Automatically applied rules that don't require user commands.

1. PDCA Auto-Apply Rules

No Guessing: If unsure, check docs → If not in docs, ask user SoR Priority: Code > CLAUDE.md > docs/ design documents

Request TypeClaude Behavior
New featureCheck docs/02-design/ → Design first if missing
Bug fixCompare code + design → Fix
RefactoringCurrent analysis → Plan → Update design → Execute
Implementation completeSuggest Gap analysis

Template References

Document TypeTemplate 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

2. Level Auto-Detection

Detection Order

  1. Check CLAUDE.md for explicit Level declaration
  2. File structure based detection

Enterprise (2+ conditions met)

  • infra/terraform/ folder
  • infra/k8s/ or kubernetes/ folder
  • services/ folder (2+ services)
  • turbo.json or pnpm-workspace.yaml
  • docker-compose.yml
  • .github/workflows/ (CI/CD)

Dynamic (1+ conditions met)

  • bkend settings in .mcp.json
  • lib/bkend/ or src/lib/bkend/
  • supabase/ folder
  • firebase.json

Starter

None of the above conditions met.

Level-specific Behavior

AspectStarterDynamicEnterprise
ExplanationFriendly, avoid jargonTechnical but clearConcise, use terms
Code commentsDetailedCore logic onlyArchitecture only
Error handlingStep-by-step guideTechnical solutionsBrief cause + fix
PDCA docsSimpleFeature-specificDetailed architecture
Primary Agentstarter-guidebkend-expertenterprise-expert
Reference Skillstarterdynamicenterprise

Level Upgrade Signals

  • Starter → Dynamic: "Add login", "Save data", "Admin page"
  • Dynamic → Enterprise: "High traffic", "Microservices", "Own server"

Hierarchical CLAUDE.md Rules

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


3. Agent Auto-Trigger Rules

Level-Based Selection

When user requests feature development:

  1. Detect project level
  2. Invoke appropriate agent automatically

Task-Based Selection

User IntentAuto-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

Proactive Suggestions

After completing major tasks, suggest relevant agents.

Do NOT Auto-Invoke When

  • User explicitly declines
  • Task is trivial
  • User wants to understand process
  • Agent already invoked for same task

4. Code Quality Standards

Pre-coding Checks

  1. Does similar functionality exist? Search first
  2. Check utils/, hooks/, components/ui/
  3. Reuse if exists; create if not

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

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

5. Task Classification

Classify tasks to apply appropriate PDCA level:

ClassificationContent SizePDCA LevelAction
Quick Fix< 50 charsNoneExecute immediately
Minor Change50-200 charsLiteShow summary, proceed
Feature200-1000 charsStandardCheck/create design doc
Major Feature> 1000 charsStrictRequire design, user confirmation

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


6. Output Style Auto-Selection (v1.5.1)

When project level is detected, automatically suggest the matching output style:

LevelSuggested StyleTrigger Condition
Starterbkit-learningLevel detected as Starter
Dynamicbkit-pdca-guideLevel detected as Dynamic
Enterprisebkit-enterpriseLevel detected as Enterprise

Auto-Selection Rules

  • On session start: Suggest output style matching detected level
  • On /starter init, /dynamic init, /enterprise init: Auto-suggest style for that level
  • On PDCA phase transitions: Suggest bkit-pdca-guide if not already active
  • User can override with /output-style at any time

Available Output Styles

StyleBest ForKey Features
bkit-learningBeginners, learningLearning points, TODO(learner) markers, concept explanations
bkit-pdca-guidePDCA workflowsStatus badges, checklists, phase progress, gap analysis suggestions
bkit-enterpriseArchitecture decisionsTradeoff analysis, cost impact, deployment strategy, SOLID compliance

7. Agent Teams Auto-Suggestion (v1.5.1)

Suggest Agent Teams when conditions are met:

Suggestion Triggers

ConditionSuggestion
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"

Team Availability

LevelAvailableTeammatesRoles
StarterNo--
DynamicYes2developer, qa
EnterpriseYes4architect, developer, qa, reviewer

Requirements

  • Environment: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
  • If env var not set: Suggest setting it when team mode would be beneficial
  • Command: /pdca team {feature} to start team mode

8. Agent Memory Awareness (v1.5.1)

Agent Memory is automatically active for all bkit agents. No user action required.

How It Works

  • Agents remember project context across sessions via memory: project scope
  • Some agents (starter-guide, pipeline-guide) use memory: user for cross-project learning
  • Memory persists in .claude/agent-memory/ (project) or ~/.claude/agent-memory/ (user)

Memory Scopes

ScopeAgents UsingPersistence
project9 agents (code-analyzer, gap-detector, pdca-iterator, etc.)Per-project, across sessions
user2 agents (starter-guide, pipeline-guide)Global, across all projects

Proactive Mention

  • On session start: "Agent Memory is active — agents remember context across sessions"
  • When agent is invoked: Agent may reference previous session context
  • No configuration needed — fully automatic

9. Plugin Hot Reload (v1.6.0)

After modifying bkit plugin files, use /reload-plugins to apply changes without restarting Claude Code.

  • No need to exit and re-enter the session
  • Changes to skills, agents, hooks, and templates are reflected immediately
  • Note: Changes to CLAUDE.md require /clear to fully refresh

Wildcard Permissions (CC 2.1.0+)

CC 2.1.0+ supports Bash(pattern*) wildcard permissions.

bkit Recommended Patterns

  • Bash(npm *) - Allow all npm commands
  • Bash(git log*) - Allow git log variants
  • Bash(node *) - Allow node execution
  • Bash(npx *) - Allow npx execution

Deny Recommendations

  • Bash(rm -rf*) - Deny recursive delete (dangerous)
  • Bash(git push --force*) - Deny force push

Configuration

Add to .claude/settings.json:

json
{
  "permissions": {
    "allow": ["Bash(npm *)", "Bash(git log*)"],
    "deny": ["Bash(rm -rf*)"]
  }
}

Frequently asked questions

What does the Bkit Rules AI skill do?

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

Why use Bkit Rules on TypingMind?

Because you install it once and use it with any model. Bkit Rules is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Bkit Rules in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ww-w-ai/bkit-claude-code/tree/main/skills/bkit-rules. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Bkit Rules?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Bkit Rules?

As many as you like. As long as a model supports skills, you can use Bkit Rules with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Bkit Rules AI skill free?

Yes. It is published on GitHub by ww-w-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇