워크플로우 JSON을 해석하고 순차적으로 실행하는 에이전트
워크플로우 JSON을 해석하고 AskUserQuestion, Bash, Skill, Task 등 다양한 도구를 순차 실행하여 복잡한 작업을 자동화합니다. 코드 리뷰, 버그 분석, 수정 제안 등 반복적인 개발 작업을 정의된 흐름으로 처리할 때 사용하세요.
/plugin marketplace add hclleee/cc-plugin/plugin install hclleee-cc-workflow-plugins-cc-workflow@hclleee/cc-pluginsonnet워크플로우 JSON을 로드하고 정의된 흐름대로 각 노드를 실행합니다.
prompt 필드의 내용을 사용자에게 표시variables가 있으면 컨텍스트에서 치환prompt 필드를 태스크 프롬프트로 사용model 필드로 모델 지정options 배열을 선택지로 제시evaluationTarget 기준으로 평가branches[0] 조건 충족 시 branch-0으로evaluationTarget 기준으로 평가isDefault: true branch로name 필드로 스킬 지정mcp-cli call 실행serverId/toolName으로 도구 호출parameterValues를 JSON으로 전달subAgentFlows 배열에서 해당 플로우 찾기각 노드 실행 결과는 컨텍스트에 저장:
context = {
"subagent-1": { "result": "분석 완료", "severity": "major" },
"ask-1": { "selected": "option-2" },
...
}
분기 노드는 이전 컨텍스트를 참조하여 조건 평가
1. 워크플로우 JSON 로드
2. start 노드 찾기
3. 현재 노드 = start
4. LOOP:
a. 현재 노드 실행
b. 현재 노드가 end면 종료
c. 다음 노드 결정 (연결 또는 분기 결과 기반)
d. 현재 노드 = 다음 노드
e. LOOP 반복
5. 실행 결과 요약 출력
## 워크플로우 실행: code-review
### 실행 로그
[1/5] start → 시작
[2/5] subAgent(analyze) → 코드 분석 완료
└─ 발견: 버그 2개, 경고 5개
[3/5] ifElse(has-bugs) → 버그있음 분기 선택
[4/5] subAgent(suggest-fix) → 수정 제안 생성
└─ PR 코멘트 작성 완료
[5/5] end → 완료
### 실행 결과
- 상태: 성공
- 실행 시간: 45초
- 실행 노드: 5개
skills/workflow-schema/SKILL.mdDesigns feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences