Skip to content

feat(ai): add component, build, runtime skills#295

Open
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/agent-build-skills
Open

feat(ai): add component, build, runtime skills#295
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/agent-build-skills

Conversation

@dmcilvaney

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 22, 2026 19:38

Copilot AI left a comment

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.

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.toml and 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
```
Copilot AI review requested due to automatic review settings July 22, 2026 22:04
@dmcilvaney
dmcilvaney force-pushed the damcilva/agent-build-skills branch from b3b7f2c to 10cffbe Compare July 22, 2026 22:04
@dmcilvaney
dmcilvaney marked this pull request as ready for review July 22, 2026 22:04

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

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.
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.

2 participants