Skip to content

docs(harness): drop the aklr- prefix from harness skill names - #147

Merged
kyle-256 merged 2 commits into
mainfrom
refactor/drop-aklr-skill-prefix
Nov 17, 2026
Merged

kyle-256 merged 2 commits into
mainfrom
refactor/drop-aklr-skill-prefix

Conversation

@zhenhuang12

Copy link
Copy Markdown
Collaborator

Why

The skills already load under the aklr plugin namespace, so the aklr- prefix doubled it (/aklr:aklr-kb). This renames the nine prefixed skills in harness/skills/ (bad-cases, build-runtime-image, kb, monitor-upstreams, open-pr, port-generated-kernels, qualify-downstream, read-validation, review-kernel-pr), now /aklr:kb etc., and updates every reference: skill names and cross-links, agents/openai.yaml, docs/, READMEs, and forge_task's knowledge-base path (harness/skills/kb) with its tests (harness/tests/forge_task: 60 passed, 2 skipped; kb_lint: 0 errors; no new broken Markdown links).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The directory rename breaks legacy compatibility, causing historical campaign reads to aggregate incorrectly and saved Forge scripts to reference removed skill paths.

1 open issue
What changed in this PR

Removes redundant aklr- prefixes from harness skills already scoped by the aklr plugin, simplifying commands such as /aklr:kb.

Changes:

  • Rename nine skills and relocate their guidance, references, and helpers.
  • Update agent prompts, cross-links, READMEs, and tutorials.
  • Point forge_task at the renamed knowledge base and update CLI test expectations.
File Description
harness/​tests/​forge_task/​test_cli.py Updates expected knowledge-base paths.
harness/​skills/​review-kernel-pr/​SKILL.md Renames the skill and bad-cases link.
harness/​skills/​review-kernel-pr/​scripts/​.gitkeep Retains the helper-directory placeholder.
harness/​skills/​review-kernel-pr/​references/​workflow.md Relocates the review workflow.
harness/​skills/​review-kernel-pr/​references/​report-template.md Relocates the review report template.
harness/​skills/​review-kernel-pr/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​read-validation/​SKILL.md Removes the skill-name prefix.
harness/​skills/​read-validation/​references/​ruler.md Relocates timing and verdict guidance.
harness/​skills/​read-validation/​references/​ci.md Relocates CI report guidance.
harness/​skills/​read-validation/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​qualify-downstream/​SKILL.md Removes the skill-name prefix.
harness/​skills/​qualify-downstream/​scripts/​.gitkeep Retains the helper-directory placeholder.
harness/​skills/​qualify-downstream/​references/​workflow.md Relocates the qualification workflow.
harness/​skills/​qualify-downstream/​references/​report-template.md Relocates the qualification report template.
harness/​skills/​qualify-downstream/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​port-generated-kernels/​SKILL.md Removes the skill-name prefix.
harness/​skills/​port-generated-kernels/​scripts/​.gitkeep Retains the helper-directory placeholder.
harness/​skills/​port-generated-kernels/​references/​workflow.md Updates validation and PR skill references.
harness/​skills/​port-generated-kernels/​references/​report-template.md Relocates the porting report template.
harness/​skills/​port-generated-kernels/​references/​porting-notes.md Updates the validation skill reference.
harness/​skills/​port-generated-kernels/​references/​new-op.md Updates the validation skill reference.
harness/​skills/​port-generated-kernels/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​open-pr/​SKILL.md Renames the skill and bad-cases link.
harness/​skills/​open-pr/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​monitor-upstreams/​SKILL.md Renames the skill and porting reference.
harness/​skills/​monitor-upstreams/​scripts/​.gitkeep Retains the helper-directory placeholder.
harness/​skills/​monitor-upstreams/​references/​workflow.md Updates the porting skill reference.
harness/​skills/​monitor-upstreams/​references/​report-template.md Relocates the monitoring report template.
harness/​skills/​monitor-upstreams/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​kb/​triton/​tuning.md Updates validation and hardware paths.
harness/​skills/​kb/​triton/​SKILL.md Renames the language entry and ruler path.
harness/​skills/​kb/​triton/​moe.md Updates the porting-notes path.
harness/​skills/​kb/​triton/​kernels/​kernel_library.md Updates porting and validation paths.
harness/​skills/​kb/​triton/​gemm/​small_m_gemm.md Changes a historical evidence path.
harness/​skills/​kb/​triton/​gdn.md Updates a hardware citation path.
harness/​skills/​kb/​triton/​debugging.md Updates validation and hardware references.
harness/​skills/​kb/​triton/​authoring.md Updates the validation ruler path.
harness/​skills/​kb/​SKILL.md Renames the knowledge-base skill.
harness/​skills/​kb/​profile.md Relocates profiling guidance.
harness/​skills/​kb/​pitfalls/​state_kept_across_calls.md Relocates cross-call state guidance.
harness/​skills/​kb/​pitfalls/​nograph_trace_inflates_collectives.md Relocates collective-timing guidance.
harness/​skills/​kb/​pitfalls/​INDEX.md Relocates the pitfalls index.
harness/​skills/​kb/​pitfalls/​fault_in_the_wrong_kernel.md Relocates memory-fault guidance.
harness/​skills/​kb/​pitfalls/​aklr_dispatch_floor.md Relocates timing-floor guidance.
harness/​skills/​kb/​patterns/​shape_divergence.md Relocates shape-dependent tuning guidance.
harness/​skills/​kb/​patterns/​INDEX.md Relocates the patterns index.
harness/​skills/​kb/​moe/​grouped_sorted_tokens.md Updates the validation ruler citation.
harness/​skills/​kb/​maintenance/​kb_reconcile.py Relocates kernel-coverage reconciliation.
harness/​skills/​kb/​maintenance/​kb_reanchor.py Relocates citation reanchoring.
harness/​skills/​kb/​maintenance/​kb_quote_check.py Relocates evidence quote checking.
harness/​skills/​kb/​maintenance/​kb_numbers_guard.py Relocates numeric-change checking.
harness/​skills/​kb/​maintenance/​kb_lint.py Updates names in docstrings and comments.
harness/​skills/​kb/​maintenance/​kb_index.py Relocates index generation.
harness/​skills/​kb/​maintenance/​kb_gaps.py Relocates campaign knowledge-gap reporting.
harness/​skills/​kb/​hip/​SKILL.md Renames the language entry and ruler path.
harness/​skills/​kb/​hip/​memory_bound.md Relocates HIP tuning guidance.
harness/​skills/​kb/​hardware/​gfx950/​INDEX.md Relocates the CDNA4 reference map.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​images/​x17.png Relocates a CDNA4 reference image.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​ch12_16_instruction_limitations.md Relocates instruction limitations.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​ch12_04_sopc_instructions.md Relocates scalar comparison instructions.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​ch12_00_instructions.md Relocates the instruction introduction.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​ch02_program_organization.md Relocates program organization reference.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​ch01_introduction.md Relocates the architecture introduction.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​02_preface.md Relocates the reference preface.
harness/​skills/​kb/​hardware/​gfx950/​cdna4/​00_front_matter.md Relocates source and agreement notices.
harness/​skills/​kb/​hardware/​gfx942/​INDEX.md Relocates the CDNA3 reference map.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​images/​x17.png Relocates a CDNA3 reference image.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch12_16_instruction_limitations.md Relocates instruction limitations.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch12_04_sopc_instructions.md Relocates scalar comparison instructions.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch12_00_instructions.md Relocates the instruction introduction.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch11_data_share_operations.md Relocates data-sharing reference.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch02_program_organization.md Relocates program organization reference.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​ch01_introduction.md Relocates the architecture introduction.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​02_preface.md Relocates the reference preface.
harness/​skills/​kb/​hardware/​gfx942/​cdna3/​00_front_matter.md Relocates source and agreement notices.
harness/​skills/​kb/​gemm/​INDEX.md Relocates the dense-GEMM package map.
harness/​skills/​kb/​gemm/​gfx942.md Relocates gfx942 GEMM guidance.
harness/​skills/​kb/​flydsl/​SKILL.md Renames the language entry and KB reference.
harness/​skills/​kb/​communication/​INDEX.md Relocates the communication package map.
harness/​skills/​kb/​cases/​INDEX.md Relocates the kernel case-study index.
harness/​skills/​kb/​analysis/​pmc_l2_analyzer.py Relocates the cache-counter analyzer.
harness/​skills/​geak-campaign/​SKILL.md Updates the contribution-guide path.
harness/​skills/​forge-loop-campaign/​SKILL.md Updates KB paths and references.
harness/​skills/​build-runtime-image/​SKILL.md Removes the skill-name prefix.
harness/​skills/​build-runtime-image/​scripts/​.gitkeep Retains the helper-directory placeholder.
harness/​skills/​build-runtime-image/​references/​workflow.md Relocates the image-building workflow.
harness/​skills/​build-runtime-image/​references/​report-template.md Relocates the runtime-image report template.
harness/​skills/​build-runtime-image/​agents/​openai.yaml Updates the default skill invocation.
harness/​skills/​bad-cases/​SKILL.md Renames the skill and KB reference.
harness/​skills/​bad-cases/​cases/​slow_fallback_inside_kernel.md Relocates fallback review guidance.
harness/​skills/​bad-cases/​cases/​contract_changed_to_fit_kernel.md Relocates contract review guidance.
harness/​scripts/​forge_task/​workspace.py Loads skills from the renamed KB directory.
harness/​scripts/​forge_task/​README.md Updates campaign commands and KB references.
harness/​README.md Updates lifecycle names and plugin examples.
docs/​ops_tutorial.zh.md Updates the Chinese tutorial’s porting path.
docs/​ops_tutorial.md Updates the English tutorial’s porting path.
docs/​kernel_rosetta_stone.md Updates KB links and skill names.
docs/​forge_task.md Updates campaign commands and KB paths.
.github/​README.md Updates the knowledge-base entry link.

Review effort: Max

# What the agents read, per kernel language: aklr-kb, and its folder for the language (each has a SKILL.md).
WIKI = Path("harness/skills/aklr-kb")
# What the agents read, per kernel language: kb, and its folder for the language (each has a SKILL.md).
WIKI = Path("harness/skills/kb")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the legacy aklr-kb skill-path compatibility symlink in e3bb925.

@zhenhuang12

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merged main and resolved the conflict in f47e2cf.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The directory rename breaks normalization of legacy aklr-kb paths, causing kb_gaps to report duplicate lesson rows and split totals across pre- and post-rename campaigns.

1 open issue

Review effort: Max

@zhenhuang12
zhenhuang12 force-pushed the refactor/drop-aklr-skill-prefix branch from f47e2cf to 5951670 Compare November 17, 2026 08:53
zhenhuang12 and others added 2 commits November 17, 2026 09:03
Skills already load under the aklr plugin namespace (/aklr:<skill>), so the prefix
doubled it as /aklr:aklr-kb. Rename the nine skill directories and their names, and
update every reference (docs, READMEs, forge_task's knowledge-base path and its tests).
@zhenhuang12
zhenhuang12 force-pushed the refactor/drop-aklr-skill-prefix branch from 80dc6f9 to 0434a8a Compare November 17, 2026 09:03
@kyle-256
kyle-256 merged commit 82b2487 into main Nov 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants