프로젝트 헌법 (필수 규칙) 관리
Manages project constitution rules with add, edit, remove, list, check, and history operations.
/plugin marketplace add m16khb/claude-integration/plugin install automation-tools@claude-integration<action> [rule-name]claude-opus-4-5-20251101사용자가 /constitution 명령을 실행했습니다.
입력 인자: $ARGUMENTS
$ARGUMENTS에서 다음을 추출하세요:
list | add | edit | remove | check | history (첫 번째 인자)edit/remove 시 필요)인자가 없거나 help이면 사용법을 표시하세요.
listagent-docs/constitution.md 읽기addagent-docs/constitution.md 업데이트CLAUDE.md 헌법 테이블 업데이트edit <name>remove <name>checkagent-docs/constitution.md 존재 확인historyconstitution, changelog 태그로 검색수행 결과를 TUI 스타일로 표시하세요.
agent-docs/constitution.md - 규칙 상세CLAUDE.md 헌법 테이블 - 요약| 액션 | 설명 |
|---|---|
list | 규칙 목록 표시 |
add | 새 규칙 추가 |
edit <name> | 규칙 수정 |
remove <name> | 규칙 삭제 |
check | 무결성 검사 |
history | 변경 이력 조회 |
| 레벨 | 설명 |
|---|---|
| 1 | 보안 규칙 |
| 2 | 버전/호환성 |
| 3 | 코드 품질 |
| 4 | 워크플로우 |
READ agent-docs/constitution.md
EXTRACT "## 규칙 목록" table
OUTPUT:
┌───────────────────────────────┐
│ 📜 프로젝트 헌법 │
├───────────────────────────────┤
│ 1. {rule} (우선순위: {p}) │
│ └─ {description} │
└───────────────────────────────┘
우선순위 레벨:
| 레벨 | 설명 |
|---|---|
| 1 | 보안 규칙 |
| 2 | 버전/호환성 |
| 3 | 코드 품질 |
| 4 | 워크플로우 |
RESOLVE rule_name from arguments
DISPLAY current content
GATHER modifications / confirmation
VALIDATE & APPLY
STORE to Memory
CHECKS:
├─ agent-docs/constitution.md 존재
├─ 규칙 목록-상세 동기화
├─ CLAUDE.md 요약 동기화
├─ 규칙 형식 일관성
└─ 앵커 링크 유효성
mcp__mm__search_by_tag: ["constitution", "changelog"]
OUTPUT:
=== 헌법 변경 이력 ===
{date}: {change_description}
constitution.md 규칙 형식:
## {번호}. {규칙명}
### 개요
규칙 설명 (1-2문장)
### 상세 규칙
| 항목 | 설명 |
### 체크리스트
- [ ] 체크 항목
### 예시
/automation-tools:constitution list
/automation-tools:constitution add
/automation-tools:constitution edit "플러그인 버전 관리"
/automation-tools:constitution check
/automation-tools:constitution history
| Error | Response |
|---|---|
| 파일 없음 | 자동 생성 제안 |
| 중복 규칙명 | 기존 규칙 수정 제안 |
| 동기화 불일치 | 자동 수정 제안 |
/constitutionCreate or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.