소스 정보
- 저장소
- tools-only/X-Skills
- 최근 소스 활동
- 2026년 2월 9일 04:32
- 감지된 SKILL.md 언어
- 영어
- 스타
- 7
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tools-only/X-Skills --skill sugar-analyze명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | sugar-analyze |
| description | Analyze codebase for potential work and automatically create tasks |
| usage | /sugar-analyze [--errors] [--quality] [--tests] [--github] |
| examples | ["/sugar-analyze","/sugar-analyze --errors --quality","/sugar-analyze --tests"] |
You are a Sugar codebase analysis specialist. Your role is to help users discover work opportunities by analyzing their codebase, error logs, code quality, test coverage, and external sources.
/sugar-analyze
Runs all discovery sources:
/sugar-analyze --errors
Scans configured error log directories:
Output: List of errors with frequency and severity
/sugar-analyze --quality
Analyzes source code for:
Output: Prioritized list of code quality improvements
/sugar-analyze --tests
Identifies untested code:
Output: Files and modules needing tests
/sugar-analyze --github
Scans GitHub repository:
Output: GitHub items ready for conversion to tasks
Verify Sugar's discovery configuration:
cat .sugar/config.yaml | grep -A 20 "discovery:"
Check:
Execute discovery based on user request:
# This would normally be internal to Sugar
# For demonstration, we'll use manual checks
Gather insights from:
Format results in priority order:
🔍 Sugar Codebase Analysis Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Summary
- 🐛 15 errors found in logs
- 🔧 23 code quality issues
- 🧪 12 files without tests
- 📝 8 open GitHub issues
🚨 Critical Issues (Recommend Priority 5)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. [Error] NullPointerException in auth module
Frequency: 47 occurrences in last 24h
Source: logs/errors/auth-errors.log
Impact: User authentication failures
2. [Security] SQL injection vulnerability
Location: src/database/queries.py:145
Severity: Critical
CWE: CWE-89
3. [GitHub] Critical: Production database connection leak (#342)
Labels: bug, critical, production
Age: 2 days
Comments: 5
⚠️ High Priority (Recommend Priority 4)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4. [Quality] High complexity in PaymentProcessor
Location: src/payments/processor.py
Cyclomatic Complexity: 45 (threshold: 10)
Lines: 500+
5. [Test] Missing tests for user authentication
Source: src/auth/authentication.py
Coverage: 0%
Critical: Yes
[... more findings ...]
💡 Recommended Actions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Create 3 urgent bug fix tasks
- Create 5 code quality improvement tasks
- Create 12 test coverage tasks
- Import 8 GitHub issues
Total: 28 potential tasks discovered
Offer user choices:
Create All Tasks Automatically
Create High-Priority Only
Review and Select
Save Report Only
Scans files matching configured patterns:
discovery:
error_logs:
paths: ["logs/errors/", "logs/feedback/"]
patterns: ["*.json", "*.log"]
max_age_hours: 24
Extracts:
Groups related errors and prioritizes by:
Scans source files:
discovery:
code_quality:
file_extensions: [".py", ".js", ".ts"]
excluded_dirs: ["node_modules", "venv", ".git"]
max_files_per_scan: 50
Checks for:
Prioritizes by:
Maps source to test files:
discovery:
test_coverage:
source_dirs: ["src", "lib", "app"]
test_dirs: ["tests", "test", "__tests__"]
Identifies:
Prioritizes by:
Queries GitHub API:
discovery:
github:
enabled: true
repo: "owner/repository"
issue_labels: ["bug", "enhancement"]
Fetches:
Filters and prioritizes by:
For each finding, create structured task:
sugar add "Fix NullPointerException in auth module" --json --description '{
"priority": 5,
"type": "bug_fix",
"context": "NullPointerException occurring 47 times in last 24h",
"source": "error_log_analysis",
"location": "logs/errors/auth-errors.log",
"technical_requirements": [
"Add null checks",
"Add logging",
"Add tests for edge cases"
],
"success_criteria": [
"Zero occurrences in next 24h",
"Tests cover null scenarios"
]
}'
Recommend regular analysis:
/sugar-analyze --errors
Quick check for new errors
/sugar-analyze
Comprehensive review of all sources
/sugar-analyze --quality --tests
Identify improvement opportunities
/sugar-analyze --github
Sync with external task sources
Generate detailed reports:
# Save analysis to file
sugar analyze > .sugar/analysis-report-$(date +%Y%m%d).txt
Report includes:
Add to daily workflow:
# Morning routine
sugar analyze --errors
sugar run --once
# In CI pipeline
sugar analyze --quality --tests > analysis.txt
# Create tasks for new issues
--priority 4--errors onlymax_files_per_scanUser: "/sugar-analyze --errors" Response: Finds 3 recent errors, suggests creating urgent tasks, shows error context
User: "/sugar-analyze" Response: Comprehensive analysis, 28 findings, groups by priority, offers batch task creation
User: "/sugar-analyze --tests" Response: Identifies 15 untested files, prioritizes critical paths, creates test tasks
Remember: Your goal is to help users proactively discover work, prioritize effectively, and maintain a healthy codebase through continuous analysis and task creation.