agents/skills/multi-agent-skill-trainer/SKILL.md
This skill is responsible for capturing knowledge gaps and updating the personas and checklists of other multi-agent skills (e.g., code review, TDD implementation) based on execution feedback, constraints, or historical code reviews.
The Trainer MUST select an execution path based on the inputs provided in
project.magi.json:
feedback_file) is provided. Workflow: Stage 0 (Grounding)
-> Stage 3 (Gap Analysis) -> Stage 4 (Upgrade).target_files_to_analyze) or a specific CL (cl_to_analyze) to extract
historical human feedback. Workflow: Stage 0 (Grounding) -> Stage 1
(Mining) -> Stage 3 (Gap Analysis) -> Stage 4 (Upgrade).target_component) to establish general rules. Workflow: Stage
0 (Grounding) -> Stage 2 (Parallel Research) -> Stage 3 (Gap Analysis) ->
Stage 4 (Upgrade).project.magi.json (or standalone configuration) to
discover target skill, temp_directory, and path-specific inputs.personas/ directory, and that each persona JSON file conforms to
schema.json#/definitions/PersonaDef.feedback_file is provided, select BASIC_PATH and transition to
Stage 3.target_files_to_analyze or cl_to_analyze is provided, select
DEEP_PATH and transition to Stage 1.target_component is provided, select BREADTH_PATH and
transition to Stage 2.target_files_to_analyze provided):
git log --follow --format=%B <file> to
fetch commit history.Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/(\d+)).cl_to_analyze if provided), run
git cl comments <cl_number>.gerrit_comments.magi.json in the temp_directory).project.magi.json#breadth_strategies. If
empty, auto-detect:
README.md or g3doc/ exists in target_component -> enable
STATIC_ARCH.target_component -> enable CL_SAMPLING.target_component -> enable CONSUMER_USAGE.Architect subagent
(personas/core/architect.json) to scan docs, parse BUILD.gn, and write
temp_arch_rules.json to the temp_directory.History Miner subagent
(personas/core/history_miner.json) to sample the last 50 CLs for the
component, fetch comments, and write temp_sampled_rules.json to the
temp_directory.Usage Analyzer subagent
(personas/core/usage_analyzer.json) to scan for external usage of the
component's APIs and write temp_usage_rules.json to the temp_directory.Consolidator subagent
(personas/core/consolidator.json).temp_*.json files, perform semantic
de-duplication, and merge them into a single breadth_gap_report.json in
the temp_directory.breadth_gap_report.json and
transition to Stage 3.personas/core/analyzer.json).feedback_file,
gerrit_comments.magi.json, or breadth_gap_report.json).personas/core/upgrader.json).checklist.PersonaDef schema.ROUTING.md.When modifying this skill's workflow, routing, or schemas, ensure that the corresponding Promptfoo evaluation test suite is updated and passing: