feat(ai): add component, build, runtime skills#295
Open
dmcilvaney wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands azldev’s emitted Agent Skills and instruction wrappers with guidance for common distro workflows (components, overlays, mock-based inspection, and images), and adds tests to prevent documentation drift versus the code-defined schema.
Changes:
- Add new agent-skill content templates covering component add/update/remove, overlays, build/debug, mock-chroot inspection, and images.
- Register the new skills and add new path-scoped instruction wrappers for
*.comp.tomland rendered specs. - Add tests validating binding substitution and drift-guards ensuring the overlays skill documents all schema enum values.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/app/azldev/agentskill/content/update-component.md.tmpl | New skill content documenting comp update workflows (including post-commit render/amend). |
| internal/app/azldev/agentskill/content/remove-component.md.tmpl | New skill content documenting manual component removal workflow and validation steps. |
| internal/app/azldev/agentskill/content/overlays.md.tmpl | New overlays skill content describing overlay types, pitfalls, and metadata expectations. |
| internal/app/azldev/agentskill/content/mock.md.tmpl | New skill content for using azldev adv mock shell for RPM inspection/testing. |
| internal/app/azldev/agentskill/content/image.md.tmpl | New skill content for image build/boot/test/customize and [images.<name>] config. |
| internal/app/azldev/agentskill/content/comp-toml.md.tmpl | New skill content describing component TOML structure and review checklist. |
| internal/app/azldev/agentskill/content/build-component.md.tmpl | New skill content for the render/build/test loop and build debugging flags. |
| internal/app/azldev/agentskill/content/azldev.md.tmpl | Update azldev overview to point readers to the new workflow skills. |
| internal/app/azldev/agentskill/content/add-component.md.tmpl | New skill content documenting component import/add workflow and validation steps. |
| internal/app/azldev/agentskill/agentskill.go | Register new skills and add new instruction wrappers for component TOML and rendered specs. |
| internal/app/azldev/agentskill/agentskill_test.go | Add tests for bindings usage, wrapper emission, and schema-enum drift guards for overlays docs. |
| # Remove a component | ||
|
|
||
| There is **no `azldev` command to remove a component** — it is a manual edit. A | ||
| deletion-only change needs no package build, but changes to dependants, package/image |
| Also confirm the lock and rendered spec directory are gone and that no image or | ||
| package configuration still references the component. | ||
|
|
||
| If the removal required changes to dependants or package/image configuration, build |
Comment on lines
+69
to
+71
| - **Dependants with manual release.** If removing this component forces a change | ||
| in a *dependant* (e.g. dropping a `BuildRequires`), and that dependant sets | ||
| `release.calculation = "manual"`, bump its release counter yourself in the same |
Comment on lines
+16
to
+20
| Confirm the component exists and see what it produces: | ||
|
|
||
| ```sh | ||
| azldev comp list -p <name> -q -O json | ||
| ``` |
dmcilvaney
force-pushed
the
damcilva/agent-build-skills
branch
from
July 22, 2026 22:04
b3b7f2c to
10cffbe
Compare
dmcilvaney
marked this pull request as ready for review
July 22, 2026 22:04
Comment on lines
+72
to
+76
| - **Dependents with manual release.** If removing this component forces a change | ||
| in a *dependent* (e.g. dropping a `BuildRequires`), and that dependent sets | ||
| `release.calculation = "manual"`, bump its release counter yourself in the same | ||
| change. Components with automatic release calculation (`auto`, `autorelease`, | ||
| `static`) are handled by the normal commit/render/amend cycle. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.