Skip to content
Draft
57 changes: 36 additions & 21 deletions .agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,20 @@ Instead of one general agent doing everything, work is split into two roles:
└──────────────┬────────────┘
│
▼
┌──────────────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ component-readme-agent │ │ migration-agent │ │ changelog-agent │
└──────────────────────────┘ └──────────────────┘ └──────────────────┘
┌──────────────────────────┐ ┌──────────────────────────┐
│ component-readme-agent │ │ specification-agent │
└──────────────────────────┘ └──────────────────────────┘
┌──────────────────────────┐ ┌──────────────────────────┐
│ migration-agent │ │ changelog-agent │
└──────────────────────────┘ └──────────────────────────┘
```

- one core workflow is selected: **feature** or **bug**
- **TDD tests come first**
- implementation follows
- theming/style work follows implementation **when needed**
- demo/sample work happens **only when explicitly requested**
- README, migration, and changelog work are **optional follow-through**
- README, specification, migration, and changelog work are **optional follow-through**; a specification update is required whenever public API or behavior changes

---

Expand All @@ -115,6 +118,7 @@ Instead of one general agent doing everything, work is split into two roles:
| [`theming-styles-agent`](./agents/theming-styles-agent.md) | Specialist | Component theming, structural SCSS, theme wiring, and style validation |
| [`demo-sample-agent`](./agents/demo-sample-agent.md) | Specialist | Demo/sample updates in `src/app/` for explicitly requested user-visible changes |
| [`component-readme-agent`](./agents/component-readme-agent.md) | Specialist | Component README updates |
| [`specification-agent`](./agents/specification-agent.md) | Specialist | Component and feature specification updates (`specification.md`, `<feature>.specification.md`) |
| [`migration-agent`](./agents/migration-agent.md) | Specialist | `ng update` migration for breaking changes |
| [`changelog-agent`](./agents/changelog-agent.md) | Specialist | `CHANGELOG.md` updates |

Expand Down Expand Up @@ -148,6 +152,7 @@ Examples:
- the theming agent handles SCSS, theme wiring, and style validation
- the demo agent updates demo/sample pages in `src/app/` when a demo is explicitly requested
- the README agent updates component docs
- the specification agent updates the behavioral contract of components and features
- the migration agent handles `ng update` migrations for breaking changes
- the changelog agent updates release notes in the correct section

Expand All @@ -165,6 +170,7 @@ Examples:
| Style or theme a component | `theming-styles-agent` |
| Update demo for an explicitly requested user-visible change | `demo-sample-agent` |
| Update docs after public change | `component-readme-agent` |
| Update the specification after an API or behavior change | `specification-agent` |
| Add migration for breaking change | `migration-agent` |
| Add release-note coverage | `changelog-agent` |

Expand Down Expand Up @@ -224,13 +230,14 @@ Use the feature flow when the task is about **new behavior**, **new public API**
│ Optional follow-through│
└───────────┬────────────┘
│
┌────────────┼────────────┐
│ │ │
▼ ▼ ▼
┌──────────────┐ ┌───────────┐ ┌──────────────┐
│ component- │ │ migration-│ │ changelog- │
│ readme-agent │ │ agent │ │ agent │
└──────────────┘ └───────────┘ └──────────────┘
┌──────────┴────┬──────────────┬──────────────┐
│ │ │ │
▼ ▼ ▼ ▼
┌────────────┐ ┌──────────────┐ ┌───────────┐ ┌────────────┐
│ component- │ │ specification│ │ migration-│ │ changelog- │
│ readme- │ │ -agent │ │ agent │ │ agent │
│ agent │ │ │ │ │ │ │
└────────────┘ └──────────────┘ └───────────┘ └────────────┘
│
▼
┌──────────────────────────────┐
Expand All @@ -245,7 +252,8 @@ Use the feature flow when the task is about **new behavior**, **new public API**
- accessibility and i18n impact
- whether theming/style follow-through is needed
- whether a demo/sample update was explicitly requested
- whether README, migration, or changelog work is needed
- the specification of each affected component or feature
- whether README, specification, migration, or changelog work is needed
- smallest relevant test suite

### Why this order exists
Expand All @@ -257,8 +265,9 @@ The order keeps the workflow grounded:
3. **Theming/style follow-through** — handle SCSS and theme-system work when needed.
4. **Demo follow-through** — update samples only when explicitly requested.
5. **Documentation follow-through** — reflect actual public changes.
6. **Migration follow-through** — automate breaking changes.
7. **Changelog follow-through** — record notable release information.
6. **Specification follow-through** — keep the behavioral contract in step with the code.
7. **Migration follow-through** — automate breaking changes.
8. **Changelog follow-through** — record notable release information.

---

Expand Down Expand Up @@ -318,13 +327,14 @@ Use the bug-fix flow when the task is about **broken existing behavior**, **regr
│ Optional follow-through│
└───────────┬────────────┘
│
┌────────────┼────────────┐
│ │ │
▼ ▼ ▼
┌──────────────┐ ┌───────────┐ ┌──────────────┐
│ component- │ │ migration-│ │ changelog- │
│ readme-agent │ │ agent │ │ agent │
└──────────────┘ └───────────┘ └──────────────┘
┌──────────┴────┬──────────────┬──────────────┐
│ │ │ │
▼ ▼ ▼ ▼
┌────────────┐ ┌──────────────┐ ┌───────────┐ ┌────────────┐
│ component- │ │ specification│ │ migration-│ │ changelog- │
│ readme- │ │ -agent │ │ agent │ │ agent │
│ agent │ │ │ │ │ │ │
└────────────┘ └──────────────┘ └───────────┘ └────────────┘
│
▼
┌──────────────────────────────┐
Expand Down Expand Up @@ -358,6 +368,7 @@ Use this quick decision guide:
| Styling or theming a component | `theming-styles-agent` |
| Demo update explicitly requested for a user-visible change | `demo-sample-agent` |
| Public behavior changed and docs must be updated | `component-readme-agent` |
| Public API or behavior changed and the specification must be updated, or a new component or feature needs one | `specification-agent` |
| Breaking change needs `ng update` support | `migration-agent` |
| User-visible change needs release-note coverage | `changelog-agent` |

Expand All @@ -381,6 +392,7 @@ If the task is narrow and clearly scoped, start directly with the **specialist**
| `theming-styles-agent` | SCSS, theme wiring, or style validation is needed | no styling impact exists |
| `demo-sample-agent` | a demo is explicitly requested for a user-visible change | the change has no UI impact or no demo/sample was requested |
| `component-readme-agent` | public API or documented behavior changed | no docs impact exists |
| `specification-agent` | public API or behavior changed, or a new component, directive, or grid feature was added | the change has no API or behavior impact |
| `migration-agent` | a breaking change needs migration support | the change is additive only |
| `changelog-agent` | the change deserves release-note coverage | the change is too minor for changelog |

Expand All @@ -394,6 +406,9 @@ These paths appear repeatedly in the workflow and are worth knowing:
projects/igniteui-angular/<component>/src/ source + tests
projects/igniteui-angular/<component>/index.ts public barrel
projects/igniteui-angular/<component>/README.md component documentation
projects/igniteui-angular/**/specification.md behavioral contract (also <feature>.specification.md)
.github/SPECIFICATION_TEMPLATE.md template for new specifications
scripts/check-specifications.mjs specification check (warnings in CI)
projects/igniteui-angular/test-utils/ shared test helpers
projects/igniteui-angular/migrations/ migration schematics
projects/igniteui-angular/core/src/core/styles/ theming and shared style infrastructure
Expand Down
26 changes: 15 additions & 11 deletions .agents/agents/bug-fixing-implementer-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,24 @@ Skip investigation. The orchestrator has already done it.

1. **Read the Bug Knowledge block** — understand the root cause, affected files, and scope.
2. **Read the affected source files** — confirm the root cause and understand the code you will change.
3. **Read the failing test** — understand what behavior it reproduces.
4. **Implement the fix** — write the minimum code to make the failing test pass without breaking existing behavior.
5. **Run all tests** — the reproduction test and all existing tests must pass.
6. **Run lint** — `npm run lint:lib` must pass.
3. **Read the specification** — `specification.md` or `<feature>.specification.md` in the nearest folder that has one — to confirm the expected behavior.
4. **Read the failing test** — understand what behavior it reproduces.
5. **Implement the fix** — write the minimum code to make the failing test pass without breaking existing behavior.
6. **Run all tests** — the reproduction test and all existing tests must pass.
7. **Run lint** — `npm run lint:lib` must pass.

### Mode 2 — Standalone (no Bug Knowledge provided)

Do your own investigation.

1. **Read the original bug report** — understand expected vs. actual behavior.
2. **Read the existing component source** — understand the current implementation, patterns, and conventions.
3. **Read the failing test** (if one exists) — understand what behavior it is trying to reproduce.
4. **Identify the root cause** — trace the code path that triggers the bug.
5. **Implement the fix** — write the minimum code to make the failing test pass without breaking existing behavior.
6. **Run all tests** — the reproduction test and all existing tests must pass.
7. **Run lint** — `npm run lint:lib` must pass.
3. **Read the specification** — `specification.md` or `<feature>.specification.md` in the nearest folder that has one — to confirm the expected behavior. If the bug report and the specification disagree, say so before you fix anything.
4. **Read the failing test** (if one exists) — understand what behavior it is trying to reproduce.
5. **Identify the root cause** — trace the code path that triggers the bug.
6. **Implement the fix** — write the minimum code to make the failing test pass without breaking existing behavior.
7. **Run all tests** — the reproduction test and all existing tests must pass.
8. **Run lint** — `npm run lint:lib` must pass.

---

Expand Down Expand Up @@ -134,6 +136,7 @@ If the bug requires SCSS, theme wiring, or style-test changes, do not implement
- Do not write tests — the `tdd-test-writer-agent` handles that.
- Do not modify component SCSS or theme infrastructure — the `theming-styles-agent` handles that.
- Do not update `README.md` — the `component-readme-agent` handles that.
- Do not update specification files — the `specification-agent` handles that.
- Do not create migration schematics — the `migration-agent` handles that.
- Do not update `CHANGELOG.md` — the `changelog-agent` handles that.
- Do not modify dependency manifests or lock files (`package.json`, `package-lock.json`, etc.). Ask for approval first if a dependency change is truly required.
Expand All @@ -160,8 +163,9 @@ Before finishing:
4. Confirm the fix is minimal and does not expand scope unnecessarily.
5. If the change is user-visible, state clearly whether a demo/sample update is recommended.
6. If the public API or documented behavior changed, state clearly that a component README update is required.
7. If the change is breaking, state clearly that a migration is required.
8. If the change affects i18n strings, state clearly that localization follow-through is needed.
7. If the public API or the behavior described in the specification changed, or the specification was wrong, state clearly which specifications `specification-agent` must update.
8. If the change is breaking, state clearly that a migration is required.
9. If the change affects i18n strings, state clearly that localization follow-through is needed.

---

Expand Down
Loading
Loading