匠人学院 JR Academy
  • Position

    Where am I now, and where should I go?

    How your job is changing, where your experience can take you and what you still need for a target role, worked out from what you have actually done. Free, and the full result needs no sign-up.

    Analyse my career and skills

    Look up a career

    Will AI replace my job?AI impact and transition paths for common careersNew jobs in the AI eraWhat they do, what they need, how to move in

    Focused tools

    AI Engineer interview readiness30 timed questions on what you still need before interviewsCareer personality testDirections that suit how you workReturning to China checkJob prospects in China by school, major and graduation date

    AI coach

    Talk to your AI coachStill unsure after your result? Talk through what is holding you back
  • Core courses

    AI Engineer BootcampEngineering bootcamp from LLM apps to agentsAI Engineer Full-Stack Project Class16 weeks · RAG and full-stack AI projectsVibe Coding Masterclass8 weeks · direct agents to build and ship a productAI Essentials10 hours · use AI for email, reports, data and copyAI Office Automation Course8 weeks · help a whole company adopt AIOne-Person Company (OPC) Bootcamp15 weeks in person · build a one-person company with AIAll courses →

    AI engineering

    Machine Learning & Data Engineering Full-Stack ClassAI Agent & MCP Project BootcampAI Engineer Core TechniquesAI Engineer FoundationsAI Engineer Advanced: RAG to Agents and TuningClaude Code TasterAll AI engineering courses →

    AI at work

    AI Coding for everyoneClaude Code One-Day Masterclass (Non-Technical)Enterprise AI Automation BootcampAI Marketing BootcampAI Risk, Governance and Audit CourseOpenClaw 4-Week Personal AI Assistant BootcampAll AI-at-work courses →

    Career development

    AI Product Manager (BA) Bootcamp + InternshipAustralia IT Interview BootcampAustralia IT Technical Interview BootcampAustralia IT Resume BootcampAustralia Big Tech Job Search BootcampAustralia IT Career Planning BootcampAll career courses →

    Learn free first

    Vibe CodingAI for office workPrompt MasterAI EngineerAI data analysisResource centerInstructorsAll learning paths →
  • Evidence

    What will convince an employer?

    Certifications, projects, team work and competition entries, collected into one portfolio.

    See the portfolio

    Certifications

    Cert Master · all certificationsPrep and mock exams for AWS, Azure, GCP, Claude and moreAWS CLF-C02Entry-level AWS cloud certificationAWS SAA-C03Entry certification for cloud architectsClaude certificationsAnthropic Claude certification seriesAll certifications →

    Projects and team work

    P3 team projectsBuild a project with real teammates in a simulated team workflowP3 project experienceThe parts of a P3 project that go on your resumeDemo DayProject showcaseP3 certificatesProof once a project is completeAll of P3 →

    Competitions and work

    HackathonsBuild something against the clockSubmit your workAdd your project to the showcaseCareerOS portfolioDo tasks in the desktop app; your results become portfolio pieces
    Cert MasterBrowser extension, app and mini programScreenshot a question for analysis and practise anywhereAbout Cert Master
  • Connect

    How do I get myself in front of employers?

    Resume, interviews, referrals and mentors. See how far you are from the target role first, then decide what to fix.

    Start with Jobpin

    Resume and openings

    Graduate careersGraduate preparation across Australia, China, Malaysia, Singapore, the US and UKJobpinAI job search workspace: resume, roles, applicationsAI resumeRewrite your resume against a job descriptionReferralsRoles shared by students and mentorsOpportunitiesInternships, projects and collaborationsOffer boardOffers students have received

    Interviews

    AI Engineer interview guideSeven areas, with worked examplesFDE interview guideFive rounds, from scoping to the customer roundAI mock interviewPractise by text or voice and see the gapsInterview storiesReal interview experiencesSystem Design handbookPrepare for system design interviewsAll interview prep →

    Mentors

    1:1 mentorsBook AI, career and technical mentors by the hourGroup tutoringShare a tutor with a few others and pay less eachCareer coachingResume, interview and direction packages
    Jobpin desktopOne workspace for the whole job searchOrganise real experience and refine resume versions for target roles on macOS or Windows.About Jobpin
BusinessMembershipDownload CareerOS
0
匠人学院 JR Academy

Follow Us

linkedinfacebooktwitterinstagramyoutube

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-airwallex.png/image/layout/pay-alipay.png
Airbotix · AI learning & creation for kids Another Life · AI story game
Products46

CareerOS and tools

  • CareerOS
  • Cert Master
  • Jobpin
  • Jobpin web
  • Jobpin report
  • Jobpin desktop download
  • My job search reports
  • Buy report credits
  • Jobpin billing
  • AI Toolbox
  • AI Skill Marketplace

Membership

  • Membership
  • AI membership

Courses

  • Bootcamps
  • Training Camp
  • Kanban learning
  • AI Builder course
  • MCP course
  • NotebookLM workshop
  • Business Analyst course
  • Web Full-Stack Bootcamp
  • DevOps Bootcamp
  • Data Engineering Bootcamp
  • Data Analysis Bootcamp
  • Coding for Beginners
  • Algorithm Bootcamp

Career services

  • Graduate careers
  • Graduate careers in Australia
  • Graduate careers in China
  • Graduate careers in Malaysia
  • Graduate careers in Singapore
  • Graduate careers in the US
  • Graduate careers in the UK
  • 1:1 coaching
  • Career coaching
  • AI Engineer VIP
  • BA & PM Internship
  • Data Science Internship
  • Data Analysis Internship
  • Marketing Internship
  • Resume Review
  • Interview Coaching
  • Job Application Service
  • Job Monitoring
  • LinkedIn Management
  • LinkedIn Networking
Library57

Learning paths

  • All Learning Paths
  • AI Engineer
  • Context Engineering
  • Vibe Coding
  • Prompt Master
  • AI Builder
  • AI Product Manager
  • Python Basics
  • AI Productivity
  • AI Data Analysis
  • AI Finance
  • AI Content Creation
  • AI Image Creation
  • Frontend Development
  • Hermes Agent
  • OpenClaw Local Agent

Interactive labs

  • Prompt Lab
  • Frontend Lab
  • JavaScript Lab
  • Python Lab
  • AWS Lab
  • Azure Lab
  • LLM Lab
  • Git Lab

Reference and guides

  • Resources
  • Wiki
  • Cheat sheets
  • Roadmaps
  • AI roadmaps
  • Videos
  • Ebooks
  • Blog
  • Interview handbook
  • Mock exams
  • Free resources

Cities

  • Sydney
  • Melbourne
  • Brisbane
  • Adelaide
  • Singapore
  • Kuala Lumpur
  • London
  • New York
  • San Francisco
  • Los Angeles
  • Seattle
  • Toronto
  • Vancouver

Immigration

  • Australia Immigration
  • Skilled Visa 189/190/491
  • Employer Sponsored 482/186/494
  • Business Visa 188/888
  • UK Immigration
  • US Immigration
  • Canada Immigration
  • Singapore immigration
  • Malaysia immigration
Business20

For business

  • AI for Business
  • Business portal sign-in
  • Corporate Training
  • Internship Partnership
  • Recruitment Partnership
  • Enterprise (EN)

Metatree AI Lab

  • Metatree AI Lab (Chinese)
  • AI solutions (Chinese)
  • Digital employees (Chinese)
  • Case studies (Chinese)
  • Metatree AI Lab
  • AI services
  • Digital employees
  • Case studies

AI education for kids

  • Airbotix — AI Learning & Creation for Kids
  • AU Family Resource Hub
  • NAPLAN Report Guide
  • My School Data Guide
  • Sydney Private School Fees 2026
  • Kids Coding Programs
About15

Company

  • About Us
  • Our Mentors
  • Become a Mentor
  • Metaverse Classroom
  • JR Careers
  • Another Life — AI Story Game
  • Contact Us

Help and policies

  • FAQs
  • Terms & Conditions
  • Privacy Policy
  • Cancellation & Refund Policy
  • Site map

Friend links

  • CS Browser

Contact

  • hello@jiangren.com.au
  • 0421-672-555

Offices

Level 10b, 144 Edward Street, Brisbane CBD (Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
45A13, Block B, Oriental Hope Tianxiang Plaza, 500 Tianfu Avenue Middle Section, Wuhou District, Chengdu, Sichuan, China
Business Hub, 155 Waymouth St, Adelaide SA 5000
Disclaimer
footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

All content on the JR Academy website, including course materials, logos, and information provided, is protected under Australian intellectual property laws. Unauthorized use, sale, distribution, reproduction, or modification is strictly prohibited. Violations may result in legal action. By accessing our website, you agree to respect our intellectual property. JR Academy Pty Ltd reserves all rights, including patents, trademarks, and copyrights. Any infringement will be subject to legal prosecution. View Terms of Service

© 2017-2026 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572

HomeLearnCoursesCerts
  1. Home
  2. Learn
  3. Blog
  4. Kiro AI IDE 实战指南 — Kiro Workflows:多 Agent 任务编排与自动化流水线
JR Academy · BlogCareer insights

Kiro AI IDE 实战指南 — Kiro Workflows:多 Agent 任务编排与自动化流水线

Kiro Workflows 完整解析:Recipe 配置格式、step/repeat/parallel/watch 节点类型、/workflow-run 命令、Memory 跨会话上下文、真实 PR 自动修复案例

Published2026-12-01
Reading time2 min
Author

Contents

  • Workflows 是什么:让多个 Agent 协同工作
  • Recipe 文件格式
  • 五种节点类型速查
  • Memory:跨会话的"项目记忆"
  • 上线前必做:validate_workflow
  • 最佳实践小结

Workflows 是什么:让多个 Agent 协同工作

Agent Hooks 解决"文件保存 → 单次 AI 操作"的问题,而 Workflows 解决的是多步骤、多 Agent 协作完成复杂任务的问题。

官方定义:Workflows 是一个 Agent 团队在后台执行的计划。每个步骤运行在独立的 Agent 会话里,拥有全新的上下文——这意味着 Reviewer Agent 不会继承 Coder Agent 的推理偏见,能给出更客观的审查。

Kiro Workflows 多步骤编排

Workflows vs. Hooks 核心区别

维度 Agent Hooks Workflows
触发方式 文件事件(保存/创建/删除) 手动 /workflow-run,或自动触发
步骤数量 单次 AI 操作 最多 50 个步骤
Agent 隔离 同一会话 每步独立会话
结果传递 无 artifacts / captured output
典型场景 保存时自动更新测试 Code review + 自动修复 + 验证

Recipe 文件格式

Workflow 配置称为 Recipe,存放在 .kiro/workflows/ 目录(个人跨项目的 Recipe 放 ~/.kiro/workflows/),文件后缀支持 .workflow.json、.workflow.yaml、.workflow.yml。

一个典型的 PR 自动审查 + 修复 Recipe(YAML 格式):

# .kiro/workflows/pr-review-and-fix.workflow.yaml
name: pr-review-and-fix
description: 审查 PR 改动,发现问题后自动修复,再跑测试验证
inputs:
  branch: string          # 目标分支名
  scope: string           # 审查重点,如 "security and performance"
modelId: auto             # 继承父会话模型;可指定具体模型如 claude-sonnet-5-5

steps:
  - type: step
    id: review
    agent: wf-reviewer
    prompt: >-
      审查分支 {{branch}} 上的改动,重点关注 {{scope}}。
      列出发现的问题,输出到 .kiro/workflow-output/review.md,
      每条问题格式:文件路径、行号、问题描述、严重级别(critical/major/minor)。
    artifacts:
      findings: .kiro/workflow-output/review.md

  - type: repeat
    id: fix-loop
    maxIterations: 3
    onMaxIterations: pause          # 超过 3 轮未收敛就暂停等待人工介入
    stopCondition:
      fileCheck:
        path: .kiro/workflow-output/status.json
        jsonPath: $.allFixed
        value: true
    steps:
      - type: step
        id: fix
        agent: wf-coder
        prompt: >-
          读取 {{artifacts.findings}} 中 critical 和 major 级别的问题,
          逐一修复,每修完一条在 .kiro/workflow-output/status.json 中记录进度。
          所有问题修完后设置 {"allFixed": true}。

      - type: step
        id: verify
        agent: wf-tester
        prompt: >-
          运行受影响模块的单元测试:npm test -- --testPathPattern={{branch}}。
          如果有失败,更新 {{artifacts.findings}} 并将 status.json 里 allFixed 设回 false。

启动这个 Workflow:

# Chat 输入框
/workflow-run
# 选择 pr-review-and-fix
# 填写 branch: feature/auth-refactor
# 填写 scope: security and performance

Workflow 运行时,进度显示在 Chat 面板上方的 Workflows 面板,可以随时暂停、查看每步的输出、或手动 Resume。


五种节点类型速查

step      → 单个 Agent 执行一次任务
sequence  → 子节点顺序执行(默认行为,用于明确分组)
repeat    → 循环直到 stopCondition 满足或达到 maxIterations
parallel  → 多个分支并发执行,joinPolicy 控制聚合策略
watch     → 轮询外部系统(GitHub PR / 自定义命令),无变化时零模型消耗

parallel 实战:三维度同时审查

- type: parallel
  id: multi-review
  joinPolicy: allSettled          # 等所有分支完成再汇总
  branches:
    - type: step
      id: security-review
      agent: wf-security
      prompt: "检查 {{branch}} 的改动是否有安全漏洞(SQL 注入 / XSS / 未授权访问)"
    - type: step
      id: perf-review
      agent: wf-perf
      prompt: "检查 {{branch}} 的改动是否有性能回退(N+1 查询 / 大对象序列化 / 无缓存热路径)"
    - type: step
      id: test-review
      agent: wf-test
      prompt: "检查 {{branch}} 的改动是否有对应测试覆盖,缺少的测试列出清单"

三个 Agent 并发运行,互不影响,比串行节省约 60% 时间。

watch 实战:等 CI 跑完再继续

- type: watch
  id: wait-ci
  handler: github-pr
  config:
    prRef: "{{branch}}"
    pollIntervalSec: 60
  idleTimeoutSec: 1800            # 30 分钟没动静就超时

Watch 节点在 CI 跑完前不消耗任何模型 token,只有检测到 PR 状态变化时才唤醒后续步骤。


Memory:跨会话的"项目记忆"

Kiro 1.4.0 引入的 Memory 功能解决了一个痛点:每次打开新 Chat,AI 又忘了你上次跟它说好的规范。

Memory 会记住:

  • 你们讨论确定的技术选型("这个项目用 Zustand 不用 Redux")
  • AI 提了但你否决的方向("已经试过用 tRPC,不适合")
  • 项目特有的命名约定和架构决策

开启方式:Activity Bar → Memories 图标,或 Settings 搜索 Kiro Agent: Memory。默认关闭(1.4.10 起),建议主项目打开,临时项目关闭。

// .vscode/settings.json(项目级)
{
  "kiroAgent.memory": "on",
  "kiroAgent.workflows.enabled": true
}

Memory 和 Steering 的区别:Steering 是你主动写好的规范文件,Memory 是 AI 在对话中自动积累的上下文。两者互补——Steering 管团队层面的约定,Memory 管你个人与 AI 的持续对话状态。


上线前必做:validate_workflow

Recipe 写完先别急着跑,在 Chat 里让 Kiro 验证:

在 Chat 里输入:
请运行 validate_workflow 检查 .kiro/workflows/pr-review-and-fix.workflow.yaml

Kiro 会检查:Schema 合法性、节点 ID 唯一性、节点数量(上限 50)、stopCondition 语法、fileCheck 路径格式。检查通过后再 /workflow-run,避免跑到一半才发现配置错误。


最佳实践小结

  • 节点 ID 要有意义:fix-loop、security-review 比 step1、step2 更容易在面板里定位问题
  • artifacts 显式声明:步骤间传递文件用 artifacts 而不是硬编码路径,路径改了只需改 Recipe
  • repeat 设 maxIterations + pause:生产代码不要设 continue,出乎意料的循环可能悄悄改坏代码
  • parallel 审查要独立:并行的步骤不能互相依赖,各自读原始文件输出各自的结论
  • Memory 默认 Off:不确定 AI 记住的是否正确时,用 "Use only" 模式(只读不写)
Author
Share or copy the link

Related certifications

Start with a few sample questions or a free chapter. The exam guide covers what the exam tests; the question bank lets you practise by exam domain.

Foundational

AWS Cloud Practitioner

CLF-C02

Sample questionsExam guideQuestion bank
Associate

AWS SAA Certification

SAA-C03

Sample questionsExam guide
← Previous articleKiro AI IDE 实战指南 — 常见问题、定价与选型建议Next article →Kiro AI IDE 实战指南 — Kiro Web 与 Crew:云端自主编码与多人协作

Related articles

USYD 医疗初创盘点、网络平台注意义务法案、全身 MRI 广告研究

2026-12-02

UQ 皮肤癌在线硕士开办 20 周年、中澳绿色钢铁对话、HIV 预防提醒

2026-12-02

UNSW iFire 2.3 火场模拟系统、AI 卵巢癌预后研究、艺术家与 AI 版权调查

2026-12-02

ANS-C01 退役倒计时 29 天 · AIB-C01 Beta $50 新认证上线 · MLA-C02 Beta 报名开放

2026-12-02

Amazon开放首个自研大模型Ergo,代理作弊率实测差距悬殊,Anthropic格密码结果暂无现实威胁

2026-12-02

GitHub Copilot 实战指南 — Copilot AI Code Review:30 秒让 AI 帮你审 PR,三档深度随需切换

2026-12-01
View all articles →

Done reading? Next steps

Not sure what to learn next? Tell us where you are

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation
  • SkillAI Coding for EveryoneShip real products with Cursor + AI, no coding background needed. The 6-week Foundation track builds 4 deliverables; the 8-week Advanced track adds an Admin CMS, a chatbot and a data dashboard.See the program →
  • PositioningLearning roadmaps by roleFrontend, backend, data, AI and more, laid out stage by stage in the order to learn them.All roadmaps →
  • ExpressionTry an AI mock interviewPick a role and run a mock interview to practise explaining your experience and projects.Practise now →

Not sure what to do next?

Take this page's topic with you and see where your gaps are.

Compare with my situation
JR Academy
AI learning for the global Chinese community
BootcampsFree resourcesLearn AICareer coaching
精选推荐
AI Career Impact Map
Assess career exposure and explore transition paths and learning options
Popular tool
AI & Data Bootcamps
Build your skills through structured courses and hands-on projects
Popular courses
1:1 Career Coaching
Work with an experienced mentor on your resume and interview preparation
Career coaching
Custom Corporate Training
AI training tailored to your team
Business services
Popular tags
Vibe CodingAI codingCursorClaudeJob searchPromptFrontend developmentBackend development
Subscribe to updates

Receive AI learning resources, technical tutorials and career advice by email.

We respect your privacy and do not send spam.