skills/hyperagent-evolve/SKILL.md
에이전트/스킬 프로필의 자가 개선 파이프라인. 세션 로그를 분석하고 성능을 채점한 뒤, 개선이 필요한 엔티티의 프로필을 직접 리라이팅하여 적용한다. "$hyperagent-evolve", "/hyperagent-evolve", "자가 개선", "에이전트 진화", "evolve 돌려줘", "하이퍼에이전트 실행" 등을 입력할 때 사용한다. 스케줄에서 자동 실행될 때도 이 스킬을 사용한다. 에이전트나 스킬의 품질 개선, 성능 분석, 프롬프트 최적화 관련 요청에도 사용한다.
npx skillsauth add gihwan-dev/claude-setup hyperagent-evolveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
에이전트와 스킬 프로필의 자가 개선 파이프라인을 실행한다. 데이터 처리는 Python 스크립트가, 프로필 리라이팅은 이 스킬을 실행하는 Claude가 직접 수행한다.
이 스킬이 속한 레포는 Claude Code와 Codex CLI 환경을 통합 관리하는 설정 레포다.
agent-registry/ — 에이전트 SSOT. 각 에이전트별 agent.toml(설정) + instructions.md(프로필).skills/ — 스킬 정의. 각 스킬별 SKILL.md.scripts/sync_agents.py — agent-registry → agents/(Claude Code용 .md) + dist/codex/agents/(Codex용 .toml) 동기화.scripts/install_assets.py --link — dist/ → ~/.codex/, skills/ → ~/.claude/skills/ 심링크 설치.agents/ — sync_agents.py가 생성하는 Claude Code 서브에이전트 프로필 (자동생성, 직접 편집 금지).dist/codex/ — sync_agents.py가 생성하는 Codex 에이전트 설정 (자동생성, 직접 편집 금지).프로필 수정 시 반드시 agent-registry/(에이전트) 또는 skills/(스킬)의 원본을 편집해야 한다.
apply.py가 SSOT 복사 → git commit → sync_agents.py → install_assets.py --link을 일괄 수행한다.
데이터 소스: Claude Code 세션(~/.claude/projects/)과 Codex 세션(~/.codex/sessions/, ~/.codex/archived_sessions/)을 모두 자동으로 분석한다. Codex 서브에이전트 세션도 포함하여 에이전트별 성능 데이터를 수집한다.
analyze_sessions.py → score.py → generate_variant.py → 프로필 리라이팅 → archive.py → apply.py
사용자가 날짜를 지정하지 않으면 당일(오늘) 기준으로 실행한다. 오후 10시 스케줄 실행 시에도 당일 세션을 분석 대상으로 한다. Claude와 Codex 세션을 모두 자동으로 탐색한다.
python3 scripts/hyperagent/analyze_sessions.py \
--json --date-range {TODAY} {TODAY} --min-turns 3 \
> /tmp/hyperagent-analysis.json
출력이 "sessions_analyzed": 0이면 "분석할 세션 없음"을 보고하고 종료.
python3 scripts/hyperagent/score.py \
--json --baseline ~/.claude/hyperagent/baseline.json \
--input /tmp/hyperagent-analysis.json \
> /tmp/hyperagent-scores.json
/tmp/hyperagent-scores.json을 Read 도구로 읽어 improvements 배열을 확인한다.
비어 있으면 "개선 대상 없음"을 보고하고 종료.
python3 scripts/hyperagent/generate_variant.py \
--json --max-variants 3 \
--input /tmp/hyperagent-scores.json \
> /tmp/hyperagent-plan.json
variant 디렉토리와 meta.json만 생성된다. 프로필 내용은 생성되지 않는다.
/tmp/hyperagent-plan.json을 읽어 variants 배열을 확인한다. 각 variant에는:
source_path: 원본 프로필 경로 (repo-relative)variant_file: 리라이팅 결과를 쓸 경로 (repo-relative)variant_dir: variant 디렉토리 경로suggestion: 개선 방향 설명reason: 개선이 필요한 차원 (accuracy, relevance 등)각 variant에 대해:
source_path 원본 프로필을 읽는다.{variant_dir}/meta.json을 읽어 change_reason, evidence_sessions, source_score를 확인한다.variant_file 경로에 결과를 쓴다.원본 프로필을 개선할 때 다음 원칙을 지킨다:
change_reason이 지적하는 약점만 보강한다. 무관한 섹션은 건드리지 않는다.각 variant에 대해 순서대로 실행:
python3 scripts/hyperagent/archive.py add \
--variant-dir {VARIANT_DIR} --status staged --no-tag --json
python3 scripts/hyperagent/apply.py \
--variant-dir {VARIANT_DIR} --approve --json
apply.py가 SSOT 파일 복사, git commit, sync_agents.py, install_assets.py --link을 수행한다.
한 variant의 apply가 실패하면 해당 variant만 skip하고 나머지를 계속 진행한다.
파이프라인 산출물(프로젝션 sync, archive/improvement-log, variant/proposal 데이터)을 커밋하고 푸시한다.
git add로 변경된 프로젝션(agents/, dist/codex/agents/), 로그(archive.jsonl, improvement-log.jsonl), variant/proposal 디렉토리를 스테이징한다.chore(hyperagent): 파이프라인 실행 데이터 및 variant 이력 추가git push로 리모트에 반영한다.적용된 variant 목록을 정리한다. 각 항목에:
git status로 먼저 확인한다.generate_variant.py의 --max-variants 기본값은 3이다. 사용자가 더 많은 variant를 원하면 조절한다.tools
GitLab 이슈 우선순위 추천. glab CLI로 할당/미할당 이슈를 수집하고 우선순위 라벨, 마감일, 가중치를 분석하여 작업할 이슈 Top 5를 추천한다. Use when the user says "이슈 추천해줘", "뭐 작업할까", "이슈 골라줘", "gitlab-issue-picker", "$pick", or wants help deciding which issue to work on. Do not use when glab is not installed or not authenticated.
tools
--- name: unknown-proposal description: Handles repeated HyperAgent instruction pattern: 반복 지시가 있었지만 스킬 없이 수행된 작업 --- # unknown-proposal Use when a session matches `반복 지시가 있었지만 스킬 없이 수행된 작업`. ## Workflow 1. Identify whether this repeated instruction pattern is present. 2. Apply the captured checklist before tool execution. 3. Report the exact evidence and stop if the pattern no longer applies. ## Evidence Sessions - faf6eee3-341c-4cb8-b4ce-fd62714b09fd - 019e0130-8884-7683-9885-cf05935e4195
tools
GitLab 이슈 우선순위 추천. glab CLI로 할당/미할당 이슈를 수집하고 우선순위 라벨, 마감일, 가중치를 분석하여 작업할 이슈 Top 5를 추천한다. Use when the user says "이슈 추천해줘", "뭐 작업할까", "이슈 골라줘", "gitlab-issue-picker", "$pick", or wants help deciding which issue to work on. Do not use when glab is not installed or not authenticated.
tools
--- name: unknown-proposal description: Handles repeated HyperAgent instruction pattern: 반복 지시가 재발한 작업 --- # unknown-proposal Use when a session matches `반복 지시가 재발한 작업`. ## Workflow 1. Identify whether this repeated instruction pattern is present. 2. Apply the captured checklist before tool execution. 3. Report the exact evidence and stop if the pattern no longer applies. ## Evidence Sessions - eebe7e0e-8348-4482-a68f-5c4b4486f11b