원클릭으로
document-business-rule
Generate business rule documentation from domain knowledge and requirements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate business rule documentation from domain knowledge and requirements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | document-business-rule |
| description | Generate business rule documentation from domain knowledge and requirements |
| allowed-tools | Write, Read, Glob, Grep |
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
Transform verbose natural language requests into structured bilingual documentation (Korean for review + English for AI prompts)
Review current git changes or latest commit using code-reviewer and architect-reviewer agents
Review comments and suggest cleanup (identify unnecessary comments, recommend improvements)
Generate Conventional Commits-compliant messages (feat/fix/docs/chore) in Korean and English
Identify and safely remove dead code, deprecated code, and unused exports from codebase
Implement UI E2E tests sequentially using Playwright MCP, stop on bug discovery