원클릭으로
repo-guard
Automatically detect and prevent dangerous operations, secret exposure, and main branch modifications.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Automatically detect and prevent dangerous operations, secret exposure, and main branch modifications.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | repo-guard |
| description | Automatically detect and prevent dangerous operations, secret exposure, and main branch modifications. |
| allowed-tools | ["Read","Grep","Glob","Bash(git:*)","Bash(rg:*)","Bash(ls:*)"] |
| context | inline |
Proactively protect the repository from common mistakes and security issues.
This skill activates automatically when:
Detect and block commits containing:
Patterns to watch:
- .env files
- *_KEY, *_SECRET, *_TOKEN patterns
- BEGIN PRIVATE KEY
- password=, passwd=, pwd=
- Bearer tokens
- AWS credentials
Action: Block and suggest using environment variables or secret managers.
Block or require confirmation for:
rm -rf /
rm -rf *
rm -rf .
mkfs.*
dd if=
> /dev/sd*
chmod -R 777
Action: Block immediately with warning, suggest safer alternatives.
Prevent direct modifications to:
Action: Suggest creating feature branch first.
Warn about:
Action: Warn and suggest .gitignore or Git LFS.
**Repo Guard Alert**
**Issue Detected**: [Type of issue]
**Location**: [File or command]
**Severity**: [Critical/Warning/Info]
**Details**:
[Explanation of the issue]
**Recommended Action**:
[What to do instead]
**To proceed anyway** (not recommended):
[Explicit override instructions]
No output - allow operation to proceed silently.
Automatically invoked before:
Referenced in rules for file modification warnings.
Included in system prompt for command validation.