소스 정보
- 저장소
- RunnerQuan/SAFE-Agent
- 최근 소스 활동
- 2026년 3월 30일 04:33
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/RunnerQuan/SAFE-Agent --skill standardize명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Find doctors with Healthgrades - search providers, read reviews, and check credentials
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.
基于RFM模型和回归算法的客户生命周期价值(LTV)预测分析工具,支持电商和零售业务的客户价值预测。使用时需要客户交易数据、订单历史或消费记录,自动进行RFM特征工程、回归建模和价值预测。
| name | standardize |
| description | Apply a convention or pattern consistently across a codebase scope |
| argument-hint | <CONVENTION> in <SCOPE> |
Apply a documented convention or pattern consistently across a specified scope in the codebase.
Example invocations:
/standardize error handling in src/graph//standardize repository pattern in taxonomy domain/standardize gRPC-style exceptions across all services/standardize type hints in src/core/ai_suggestions/Use /standardize when you need to:
Not for: One-off fixes (use /bug-fix) or new features (use /implement).
Before starting standardization, determine where to work.
git status
git branch --show-current
Use AskUserQuestion:
Where should I apply this standardization?
**Option A: New worktree** (Recommended for large scopes)
- Creates isolated workspace
- Safe for sweeping changes across many files
- Allows multiple agents to work simultaneously
**Option B: Current worktree**
- Simpler, no setup overhead
- Good for small, contained scopes
If new worktree:
# Create branch and worktree
git worktree add ../cernel-backend-standardize-<convention> -b refactor/standardize-<convention>
# Copy environment files (required - these are gitignored)
cp .env* ../cernel-backend-standardize-<convention>/
# Copy local Claude settings if they exist
cp -r .claude/settings.local.json ../cernel-backend-standardize-<convention>/.claude/ 2>/dev/null || true
# Navigate to worktree
cd ../cernel-backend-standardize-<convention>
# Install dependencies (venv is gitignored, so must be recreated)
uv sync --all-packages
If current worktree:
git checkout -b refactor/standardize-<convention>
Extract from $ARGUMENTS:
If unclear, use AskUserQuestion to clarify:
Look for the convention in:
CLAUDE.md - Main project conventionsCLAUDE.md files (e.g., src/graph/CLAUDE.md)Use Task tool with Explore agent:
Find the canonical definition and examples of [CONVENTION]:
1. Search CLAUDE.md files for documentation
2. Find 2-3 existing implementations that follow the pattern correctly
3. Identify the key characteristics that define "correct" usage
If there are multiple valid approaches to the convention, identify and present them:
## Pattern Variants for [Convention]
### Option A: [Name]
- **Approach**: [Description]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
### Option B: [Name]
- **Approach**: [Description]
- **Pros**: [Benefits]
- **Cons**: [Drawbacks]
Which approach should we use?
Use AskUserQuestion to get a decision before proceeding.
Example from error handling:
Before applying broadly, validate the pattern belongs at this layer:
If uncertain, discuss with the user:
## Architectural Consideration
The proposed pattern would [describe what it does].
This means [layer X] would now depend on [layer Y].
Is this the right architectural choice, or should we keep these concerns separate?
Summarize what "correct" looks like:
## Convention: [Name]
### Correct Pattern
[Description of how it should be done]
### Example (from codebase)
`path/to/exemplary/file.py:123`
```python
# Correct implementation
[code snippet]
# Incorrect/legacy implementation
[code snippet]
### Phase 3: Find Violations
#### 3.1 Search for Anti-patterns
Use targeted searches to find code that doesn't follow the convention:
Use Task tool with Explore agent:
Find all violations of [CONVENTION] in [SCOPE]:
#### 3.2 Categorize Findings
Group violations by:
- **Simple**: Direct replacement, low risk
- **Complex**: Requires refactoring, affects multiple files
- **Uncertain**: Needs human judgment
```markdown
## Violations Found
### Simple (direct replacement)
| File | Line | Current | Should Be |
|------|------|---------|-----------|
| `path/file.py` | 45 | `raise OldException()` | `raise NewException()` |
### Complex (requires refactoring)
- `path/complex.py`: [Description of what needs changing]
### Uncertain (needs review)
- `path/edge_case.py`: [Why this is unclear]
CRITICAL: Before applying changes, evaluate impact on external consumers.
Check if the standardization will change:
| Risk Level | Criteria | Action |
|---|---|---|
| LOW | Internal-only code, no API exposure | Proceed normally |
| MEDIUM | API changes but same status codes | Note in plan, proceed with caution |
| HIGH | Status codes change, error format changes | Explicit user approval required |
If HIGH RISK changes are identified:
## ⚠️ Breaking Change Warning
The following changes may break existing API integrations:
| Scenario | Before | After | Risk |
|----------|--------|-------|------|
| Metric not found | HTTP 500 | HTTP 404 | Customers checking `status == 500` will break |
| Duplicate metric | HTTP 500 | HTTP 409 | Customers checking `status == 500` will break |
### Options
1. **Proceed anyway**: Accept the breaking change (may require customer communication)
2. **Maintain backwards compatibility**: Keep old behavior, add new pattern alongside
3. **Scope reduction**: Exclude high-risk endpoints from this standardization
Which approach should we take?
Use AskUserQuestion to get explicit approval for breaking changes.
CRITICAL: Get explicit approval before making changes.
Present:
## Standardization Plan: [Convention] in [Scope]
### Summary
- **Files affected**: [N]
- **Simple changes**: [N]
- **Complex changes**: [N]
- **Uncertain cases**: [N]
### Changes Preview
[Show representative examples of each category]
### Uncertain Cases
[List any that need human decision]
---
Should I proceed with these changes?
- Yes, apply all changes
- Yes, but skip uncertain cases
- Let me review the uncertain cases first
- No, let's adjust the scope
Use AskUserQuestion to get approval and handle uncertain cases.
For each simple change:
For each complex change:
For uncertain cases (if user approved):
task lint
Fix any issues introduced by the changes.
task test
If tests fail:
Quick check that no violations remain in scope:
Search for anti-pattern indicators in [SCOPE]
Confirm all have been addressed
Provide a complete summary:
## Standardization Complete: [Convention] in [Scope]
### Changes Made
- **Files modified**: [N]
- **Simple replacements**: [N]
- **Complex refactors**: [N]
- **Skipped (uncertain)**: [N]
### Files Changed
- `path/to/file1.py`: [Brief description]
- `path/to/file2.py`: [Brief description]
- ...
### Verification
- Linting: ✅ Passing
- Tests: ✅ Passing
- No remaining violations in scope
### Notes
- [Any edge cases or follow-up items]
- [Files that might need manual review]
After verification passes, offer to create a PR.
Use AskUserQuestion:
Standardization complete and verified. Would you like me to open a Pull Request?
- Yes, create PR targeting main/master
- Yes, but target a different branch
- No, I'll handle the PR myself
If approved, create the PR:
git add -A
git commit -m "refactor: standardize <convention> in <scope>
Applied <convention> consistently across <N> files.
No functional changes - pattern consistency only."
git push -u origin <branch-name>
gh pr create --title "refactor: standardize <convention> in <scope>" --body "## Summary
<1-2 sentences explaining what convention was applied and where>
## Problem
<Why this standardization was needed - inconsistency, tech debt, etc.>
## Solution
<The pattern/convention that was applied - 2-4 bullet points>
- Before: <old pattern>
- After: <new pattern>
## Changes
- **Files modified**: <N>
- **Simple replacements**: <N>
- **Complex refactors**: <N>
### Files Changed
- \`path/to/file1.py\`: <what changed>
- \`path/to/file2.py\`: <what changed>
## Testing
- All existing tests pass
- No functional changes - pattern consistency only
## Notes for Reviewers
<optional - any edge cases, files skipped, follow-up work needed>"
Claude PR review will automatically add deeper analysis after the PR is created.
If working in a separate worktree, inform the user:
PR created: <link>
Note: You're in worktree `../cernel-backend-standardize-<convention>`.
To return to main workspace: cd ../cernel_backend
To remove worktree later: git worktree remove ../cernel-backend-standardize-<convention>
If there are items outside the original scope:
### Remaining Work (if any)
- [Items outside scope that also need updating]
- [Related conventions that might benefit from standardization]
Target: Use NotFoundError, InvalidArgumentError, etc. from cernel.core.errors
Anti-pattern: Custom exceptions, HTTPException in services, bare Exception
Scope: Usually by domain or layer