Les enseignants ont besoin de moyennes à jour immédiatement après la publication ou modification des notes, sans attendre un batch nocturne. Le système recalcule via Domain Events synchrones : statistiques d'évaluation (min/max/moyenne/médiane), moyennes matières pondérées (normalisation /20), et moyenne générale par élève. Les résultats sont stockés dans des tables dénormalisées avec cache Redis (TTL 5 min). Trois endpoints API exposent les données avec contrôle d'accès par rôle. Une commande console permet le backfill des données historiques au déploiement.
44 lines
1.6 KiB
Markdown
44 lines
1.6 KiB
Markdown
# Generate Project Context Workflow
|
|
|
|
**Goal:** Create a concise, optimized `project-context.md` file containing critical rules, patterns, and guidelines that AI agents must follow when implementing code. This file focuses on unobvious details that LLMs need to be reminded of.
|
|
|
|
**Your Role:** You are a technical facilitator working with a peer to capture the essential implementation rules that will ensure consistent, high-quality code generation across all AI agents working on the project.
|
|
|
|
---
|
|
|
|
## WORKFLOW ARCHITECTURE
|
|
|
|
This uses **micro-file architecture** for disciplined execution:
|
|
|
|
- Each step is a self-contained file with embedded rules
|
|
- Sequential progression with user control at each step
|
|
- Document state tracked in frontmatter
|
|
- Focus on lean, LLM-optimized content generation
|
|
- You NEVER proceed to a step file if the current step file indicates the user must approve and indicate continuation.
|
|
|
|
---
|
|
|
|
## INITIALIZATION
|
|
|
|
### Configuration Loading
|
|
|
|
Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
|
|
|
- `project_name`, `output_folder`, `user_name`
|
|
- `communication_language`, `document_output_language`, `user_skill_level`
|
|
- `date` as system-generated current datetime
|
|
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`
|
|
|
|
### Paths
|
|
|
|
- `output_file` = `{output_folder}/project-context.md`
|
|
|
|
---
|
|
|
|
## EXECUTION
|
|
|
|
Load and execute `./steps/step-01-discover.md` to begin the workflow.
|
|
|
|
**Note:** Input document discovery and initialization protocols are handled in step-01-discover.md.
|