blazor-architect
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBlazor architect skill
Blazor架构师技能
Step 1 — Announce the run
步骤1 — 启动运行
Generate a run ID (, local time) and print it as the first output line:
run-YYYYMMDD-HHMM[blazor-architect] run-20260802-1716 startedDone when: the run ID line is printed at the top of your response.
生成一个运行ID(格式为,使用本地时间),并将其作为第一行输出:
run-YYYYMMDD-HHMM[blazor-architect] run-20260802-1716 started完成标志: 运行ID行显示在响应内容的最顶部。
Step 2 — Parse the work request and flags from the invocation text
步骤2 — 从调用文本中解析工作请求和标志
The user's task description is embedded in the invocation text — the same line they typed to fire
the skill (e.g. ).
Extract two things:
/blazor-architect implement a counter component in Components/Pages/Counter.razor --self-improveThe work request — the task description, stripped of the skill name and flags. In the example
above, the work request is: "implement a counter component in Components/Pages/Counter.razor".
Flags — scanned from the invocation text:
| Flag | Recognised | Default |
|---|---|---|
| Skip code review | | off (review runs) |
| Self-improvement | | off |
If no work request is found (the user typed just with no task), ask what they
want to do and stop — do not proceed to routing.
/blazor-architectDone when: you have identified the work request text and set and booleans.
skip_code_reviewself_improve用户的任务描述嵌入在调用文本中——即用户触发此技能时输入的内容(例如)。需要提取两项内容:
/blazor-architect implement a counter component in Components/Pages/Counter.razor --self-improve工作请求 —— 去除技能名称和标志后的任务描述。在上述示例中,工作请求为:"implement a counter component in Components/Pages/Counter.razor"。
标志 —— 从调用文本中扫描得到:
| 标志 | 识别形式 | 默认值 |
|---|---|---|
| 跳过代码评审 | | 关闭(执行评审) |
| 自我优化 | | 关闭 |
如果未找到工作请求(用户仅输入而未指定任务),询问用户需求并终止流程——不要继续进行路由操作。
/blazor-architect完成标志: 已识别工作请求文本,并设置和布尔值。
skip_code_reviewself_improveStep 3 — Route the work
步骤3 — 路由工作请求
Apply the route classifier in to the work request. The classifier
picks a primary lane and decides inline vs delegate. Print a one-line routing summary so the user
sees the decision:
references/routing-classifier.mdRoute: inline (component-author, 1 file)or
Route: delegate (component-author → data-fetching-specialist, serial)Done when: a lane is selected and the inline/delegate decision is made and announced.
将中的路由分类器应用于工作请求。分类器会选择主通道,并决定是内联执行还是委托执行。打印一行路由摘要,让用户看到决策结果:
references/routing-classifier.mdRoute: inline (component-author, 1 file)或
Route: delegate (component-author → data-fetching-specialist, serial)完成标志: 已选择通道,确定内联/委托决策并进行公告。
Step 4 — Execute the work
步骤4 — 执行工作
Inline execution
内联执行
For narrow tasks (single lane, ≤ 2 files, no broad repo discovery), do the work directly in this
context. Use the dotnet-blazor plugin skills as guidance — read the relevant skill's SKILL.md for
patterns and constraints before writing code.
对于范围较窄的任务(单通道、≤2个文件、无需广泛仓库检索),直接在此上下文内完成工作。以dotnet-blazor插件技能为指导——在编写代码前,阅读相关技能的SKILL.md文档,了解模式和约束。
Delegated execution
委托执行
For broader tasks, dispatch via the tool. Each specialist lane receives a bounded task for
one lane. Specialist lanes:
task| Lane | Scope | Guidance skill | Delegate? |
|---|---|---|---|
| component-author | Create a new component, parameters, lifecycle, CSS isolation | | Inline if ≤ 2 files |
| component-extractor | Extract sections from a page into reusable components | — | Always delegate |
| form-specialist | Forms, binding, validation, EditForm, @bind | | Inline if 1–2 files |
| data-fetching-specialist | HttpClient, service abstractions, loading/error/empty states | | Always delegate |
Each specialist must return a structured report matching .
On first validation failure, request one schema-repair retry; on second failure, mark the lane
and preserve raw output.
references/feedback-report-template.jsonfailed_report_schema对于范围较广的任务,通过工具进行分派。每个专业通道会接收一个限定范围的单通道任务。专业通道如下:
task| 通道 | 范围 | 指导技能 | 是否可内联? |
|---|---|---|---|
| component-author | 创建新组件、参数、生命周期、CSS隔离 | | 若≤2个文件则可内联 |
| component-extractor | 将页面中的部分内容提取为可复用组件 | — | 始终委托 |
| form-specialist | 表单、绑定、验证、EditForm、@bind | | 若1–2个文件则可内联 |
| data-fetching-specialist | HttpClient、服务抽象、加载/错误/空状态 | | 始终委托 |
每个专业人员必须返回符合格式的结构化报告。首次验证失败时,请求一次模式修复重试;第二次失败时,标记该通道为并保留原始输出。
references/feedback-report-template.jsonfailed_report_schemaFluent UI
Fluent UI
Fluent UI is a cross-lane constraint, not a lane. When Fluent components are in scope, invoke the
skill as an overlay alongside the active specialist.
fluentui-blazorDone when: all specialist work is complete and reports are validated. Every specialist report
conforms to the feedback-report schema.
Fluent UI是跨通道约束,而非独立通道。当涉及Fluent组件时,在调用当前专业技能的同时叠加调用技能。
fluentui-blazor完成标志: 所有专业工作已完成,且报告通过验证。每份专业报告均符合反馈报告模式。
Step 5 — Review gate
步骤5 — 评审关卡
Check the flag that was parsed in step 2. This is a gate — make the decision
before dispatching any review sub-agent.
skip_code_reviewWhen is true: do not spawn a review sub-agent. Set to
. Proceed to step 6.
skip_code_reviewreview_outcome"skipped"When is false: run the review loop — a dedicated review sub-agent via the
tool with . The review loop:
skip_code_reviewtaskagent_type: "code-review"- Maximum 3 passes (initial + 2 fix-and-review cycles).
- Stop early when a pass returns zero actionable findings.
- Actionable = concrete defect, file-specific, not stylistic. See .
references/review-loop-contract.md
The decision is made here, not during execution — the review sub-agent is only dispatched when the
flag was not set, and only after all specialist work is complete.
Done when: review is complete or skipped. Either zero actionable findings remain, or
unresolved findings are recorded for the run summary.
检查步骤2中解析得到的标志。这是一个关卡——在分派任何评审子代理前做出决策。
skip_code_review当为true时: 不生成评审子代理。将设置为。继续执行步骤6。
skip_code_reviewreview_outcome"skipped"当为false时: 运行评审循环——通过工具调用专用评审子代理,设置。评审循环规则:
skip_code_reviewtaskagent_type: "code-review"- 最多3轮(初始评审 + 2次修复-评审循环)。
- 若某一轮评审未发现可操作问题,则提前终止。
- 可操作问题指具体缺陷、针对特定文件的问题,而非风格问题。详见。
references/review-loop-contract.md
决策在此阶段做出,而非执行阶段——仅当未设置跳过标志,且所有专业工作完成后,才会分派评审子代理。
完成标志: 评审已完成或已跳过。要么无剩余可操作问题,要么已记录未解决问题用于运行总结。
Step 6 — Write run artifacts
步骤6 — 生成运行工件
Write to containing:
analysis.json~/.self-improve-reports/blazor-architect/runs/<run_id>/- ,
run_id(precedence: failed > blocked > partial > success)final_status - ,
status_countslane_outcomes[] - (passed / fixed / review_unresolved / skipped)
review_outcome - when status is partial or blocked
follow_up_items[]
Create the run directory if it does not exist.
Done when: is written to the run directory.
analysis.json将写入目录,文件应包含:
analysis.json~/.self-improve-reports/blazor-architect/runs/<run_id>/- 、
run_id(优先级:failed > blocked > partial > success)final_status - 、
status_countslane_outcomes[] - (passed / fixed / review_unresolved / skipped)
review_outcome - 当状态为partial或blocked时,包含
follow_up_items[]
若运行目录不存在则创建。
完成标志: 已写入运行目录。
analysis.jsonStep 7 — Self-improvement (only when --self-improve
is set)
--self-improve步骤7 — 自我优化(仅当设置--self-improve
时执行)
--self-improveWhen is active, load the skill and execute its steps. The
self-improve skill generates the improvement report and launches the report-server. Follow
self-improve's steps exactly — do not inline its algorithm here.
--self-improveself-improveWhen is not set, skip this step entirely.
--self-improveDone when: self-improve steps are complete (report generated, server launched) OR the flag
was not set.
当激活时,加载技能并执行其步骤。自我优化技能会生成改进报告并启动报告服务器。严格遵循自我优化技能的步骤——不要在此处内联其算法。
--self-improveself-improve当未设置时,完全跳过此步骤。
--self-improve完成标志: 自我优化步骤已完成(报告生成、服务器启动),或未设置该标志。
Step 8 — Print the run summary
步骤8 — 打印运行总结
Close every run with a summary block. This is the user's primary feedback — make it informative:
[blazor-architect] run-20260802-1716 complete
lanes: component-author
status: success
review: passed
files: src/Konqvist.Web/Components/Pages/Counter.razor (created)
artifacts: ~/.self-improve-reports/blazor-architect/runs/run-20260802-1716/analysis.json
follow-up: noneWhen was active, also include:
--self-improve report: ~/.self-improve-reports/blazor-architect/runs/run-20260802-1716/improvement-report-data.json
server: http://127.0.0.1:5173/api/report (running)When is or , surface blocked/failed lane names and recommended
next actions.
final_statuspartialblockedDone when: the summary block is printed with all fields populated.
每个运行结束时输出总结块。这是用户的主要反馈信息——需确保内容详实:
[blazor-architect] run-20260802-1716 complete
lanes: component-author
status: success
review: passed
files: src/Konqvist.Web/Components/Pages/Counter.razor (created)
artifacts: ~/.self-improve-reports/blazor-architect/runs/run-20260802-1716/analysis.json
follow-up: none当激活时,还需添加:
--self-improve report: ~/.self-improve-reports/blazor-architect/runs/run-20260802-1716/improvement-report-data.json
server: http://127.0.0.1:5173/api/report (running)当为或时,需显示受阻/失败的通道名称以及建议的后续操作。
final_statuspartialblocked完成标志: 已打印填充所有字段的总结块。",