Skip to content

docs: add CONTEXT.md, ADRs and update LLM instructions for ng-primitives-first workflow - #7

Merged
MRinaldi9 merged 3 commits into
mainfrom
agents/llm-rapid-build-structure-update
May 23, 2026
Merged

MRinaldi9 merged 3 commits into
mainfrom
agents/llm-rapid-build-structure-update

Conversation

@MRinaldi9

Copy link
Copy Markdown
Owner

Cosa cambia

Ristrutturazione della documentazione per migliorare la costruzione rapida di componenti con LLM, con focus sul pattern ng-primitives-first e sulla scelta corretta del selector.

Nuovi file

  • CONTEXT.md — glossario canonico del progetto: Dragone, Sirio, @dragone/ui, Component, Primitive, Secondary Entry Point, Attribute/Element Selector, Token. Include dialogo di esempio tra dev e domain expert.
  • docs/adr/0001-selector-strategy.md — documenta la regola attribute selector vs element selector, con le alternative scartate.
  • docs/adr/0002-ng-primitives-first.md — documenta perché ng-primitives è il layer primario di comportamento (vs CDK, vs custom logic).

File aggiornati

  • .github/copilot-instructions.md

    • Header con link a CONTEXT.md e docs/adr/
    • Nuovo workflow "4 step" per la creazione di componenti (MCP → selector → hostDirectives → logica propria)
    • Tabella della regola selector
    • Template Generico riscritto in Caso A (attribute selector) e Caso B (element selector) — rimosso drgn-<component> come default errato
    • Checklist aggiornata con "ng-primitives MCP consultato" come primo punto
  • .github/commit-message-instructions.md

    • Scope per componente singolo (button, select, ecc.)
    • Scope trasversali: docs, ui, config
    • Regola breaking change (!) con esempi concreti

…ves-first workflow

- Add CONTEXT.md with canonical glossary (Dragone, Primitive, Selector types, Token)
- Add ADR-0001: attribute vs element selector strategy
- Add ADR-0002: ng-primitives as primary behaviour layer
- Update copilot-instructions with ng-primitives-first workflow, selector decision
  table, dual component templates (Caso A/B), and updated implementation checklist
- Expand commit-message-instructions with scopes, breaking change rules and examples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MRinaldi9
MRinaldi9 force-pushed the agents/llm-rapid-build-structure-update branch from b277ce8 to 4a5919e Compare May 23, 2026 11:42
MRinaldi9 and others added 2 commits May 23, 2026 13:51
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MRinaldi9
MRinaldi9 merged commit f941058 into main May 23, 2026
3 of 4 checks passed
@MRinaldi9
MRinaldi9 deleted the agents/llm-rapid-build-structure-update branch May 23, 2026 11:54
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.

1 participant