Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

bkit-rulesBkit 规则

Agent Skill

bkit-rules 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,035

周安装

44

GitHub Stars

520

下载量

363
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bkit-rules(Bkit 规则)
来源仓库:https://github.com/popup-studio-ai/bkit-claude-code
仓库路径:skills/bkit-rules
安装命令:
npx skills add https://github.com/popup-studio-ai/bkit-claude-code --skill bkit-rules
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/popup-studio-ai/bkit-claude-code --skill bkit-rules

简介

bkit-rules 是一组自动应用的 Agent 行为准则,适合在 Codex、Claude、Cursor、Gemini CLI 中规范新特性开发、缺陷修复和重构流程。

  • 适用场景包括需求澄清、设计文档缺失时的应对策略、代码比对分析及模板化报告生成等标准化作业。
  • 核心能力是强制要求先查阅 docs/02-design/ 若无则询问用户,确保有据可依后再行动。
  • 使用方式是隐式生效无需手动调用,仅在特定 Request Type 下触发对应行为模式。
  • 开发者应熟悉 PDCA 循环模板路径,以便在计划、设计、分析、报告阶段正确引用文档结构。

SKILL.md

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:

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.67%
按下载量换算119

Claude

31.71%
按下载量换算115

Cursor

20.74%
按下载量换算75

Gemini CLI

9.1%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills