一键导入
document-business-rule
Generate business rule documentation from domain knowledge and requirements. Use when documenting complex business logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate business rule documentation from domain knowledge and requirements. Use when documenting complex business logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Transform verbose natural language requests into structured bilingual documentation (Korean for review + English for AI prompts). Use when you need to clarify and structure a complex request before implementation.
Review current git changes or latest commit using code-reviewer and architect-reviewer agents. Use after completing code changes to get comprehensive quality feedback.
Review comments and suggest cleanup (identify unnecessary comments, recommend improvements). Use to aggressively clean up comment debt in code.
Generate Conventional Commits-compliant messages (feat/fix/docs/chore) in Korean and English. Use when you need to create a well-structured commit message for staged changes.
Identify and safely remove dead code, deprecated code, and unused exports from codebase. Use when you need to clean up unused or obsolete code.
Implement UI E2E tests sequentially using Playwright MCP, stop on bug discovery. Use after e2e-ui-research to implement the planned test scenarios.
| name | document-business-rule |
| description | Generate business rule documentation from domain knowledge and requirements. Use when documenting complex business logic. |
| allowed-tools | Write, Read, Glob, Grep |
| disable-model-invocation | true |
Generate structured documentation for business logic and domain knowledge.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Analyze the user's natural language input to intelligently extract:
Interpretation Guidelines:
# [Domain Name]
## Overview
The business area covered by this domain (1-2 sentences)
## Core Concepts
### [Concept Name]
**Definition:** Clear definition
**Example:**
```typescript
// Actual usage example code
```
Code Location: src/domain/concept.ts
src/domain/rules.ts:45-67src/service/step1.tssrc/service/step2.tssrc/service/step3.ts
## Output Location
Determine appropriate location:
project-root/ ├── docs/ │ └── domain/ # Primary location for domain docs │ └── {domain-name}.md └── src/ └── {module}/ └── README.md # Alternative: module-specific docs
**Decision logic:**
- If `docs/domain/` exists → use `docs/domain/{domain-name}.md`
- If documenting specific module → use module's `README.md`
- Ask user if unclear
## Execution Steps
1. **Parse Input**: Extract domain info from `$ARGUMENTS`
2. **Research Codebase**:
- Search for related files: `Glob src/**/*{domain}*`
- Find existing documentation: `Glob docs/**/*.md`
- Check for related code patterns: `Grep {domain keywords}`
3. **Generate Document**: Create documentation following template
4. **Write File**: Save to determined location
5. **Report**: Show created file path and summary
## Usage Examples
```bash
# Simple domain name
/document-business-rule user-authentication
# Natural language description
/document-business-rule 주문 처리 로직 문서화해줘. 결제 검증이랑 재고 확인 규칙 포함해서
# Conversational style
/document-business-rule 우리 billing 모듈에 있는 구독 관련 비즈니스 규칙들 정리해줘
# Detailed context
/document-business-rule We need to document the refund policy rules. Customer can request refund within 7 days, partial refunds allowed for digital goods
```
## Important Notes
- This command generates documentation based on user input and codebase analysis
- Review generated content for accuracy before committing
- Update documentation when business rules change
- Keep documentation close to related code
- Use code references (`file:line`) for traceability