Skip to content

docs(amdsmi): add pressure-testing-skills skill and mechanizable skill checks#8913

Open
marifamd wants to merge 3 commits into
developfrom
users/marifamd/amdsmi-skill-pressure-test-lessons
Open

docs(amdsmi): add pressure-testing-skills skill and mechanizable skill checks#8913
marifamd wants to merge 3 commits into
developfrom
users/marifamd/amdsmi-skill-pressure-test-lessons

Conversation

@marifamd

@marifamd marifamd commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Motivation

Consolidates three agent-documentation improvements produced while pressure-testing amd-smi's skills into a single reviewable change. Each commit is one idea.

Technical Details

  • Add the pressure-testing-skills skill. Validates a SKILL.md, prompt, or rule by running a fresh subagent that follows the doc literally on a known-answer fixture, captures friction, and iterates to determinism before minimizing. Cross-references writing-skills.
  • Scope the API-cascade trigger in project-layout.md. Defines what triggers the cascade (new or changed function), adds a table for non-function edits, notes that the Quick Check grep only covers the five name-bearing layers, and adds rust-interface and goamdsmi_shim as cascade consumers.
  • Add mechanizable checks to the commit/PR skill. A copy-paste title regex plus length test for the Conventional Commits structure and 72-char cap, plus a clarified imperative-mood rule that rejects noun-phrase subjects.

Docs-only: touches .claude/ skill and rule files, with no library, CLI, or test code changed.

Issue Tracking

JIRA ID : AILITOOLS-278

Test Plan

Not applicable to runtime. The pressure-testing-skills skill itself is the validation method: each edited skill or rule was exercised by a fresh subagent on a fixture during development.

Test Result

Skill and rule docs render correctly, and no code paths are affected.

Submission Checklist

  • Docs-only change to .claude/ agent files, with no code or ABI impact.

marifamd added 3 commits July 21, 2026 00:44
Add a skill for validating a SKILL.md, prompt, or rule by running a fresh
subagent that follows the doc literally on a known-answer fixture, capturing
friction, and iterating to determinism before minimizing. Includes lessons
learned from pressure-testing other skills: give a command instead of a
prose-only rule, keep shortcut greps in sync with what the doc reads, define
a rule's trigger so it is not over-applied, and never grade against a
truncated fixture. Cross-references the writing-skills skill.

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
- Define what triggers the cascade (new/changed function) and give a
  table for non-function edits (enum, struct, bug fix, comment) that
  do not all cascade the same way.
- Note the Quick Check greps only the five name-bearing layers; call
  out generator.py (a parser, verify by regenerating) and docs/ (prose)
  as not covered, so a clean grep is not mistaken for full coverage.
- Add rust-interface and goamdsmi_shim as cascade consumers and grep
  targets; both bind amdsmi_* directly and were previously omitted.

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
- Add a copy-paste title regex plus length test so the Conventional Commits
  structure and 72-char cap are self-checkable, not just prose.
- Clarify the imperative-mood rule to reject noun-phrase subjects
  ("More cleanup", "status-string tests"), with a Common Mistakes row.

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
@marifamd
marifamd requested a review from a team July 21, 2026 05:46
@therock-pr-bot

therock-pr-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Title/Description

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant