feat: Calculer automatiquement les moyennes après chaque saisie de notes
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.
This commit is contained in:
62
.agents/skills/bmad-workflow-builder/SKILL.md
Normal file
62
.agents/skills/bmad-workflow-builder/SKILL.md
Normal file
@@ -0,0 +1,62 @@
|
||||
---
|
||||
name: bmad-workflow-builder
|
||||
description: Builds workflows and skills through conversational discovery and analyzes existing ones. Use when the user requests to "build a workflow", "modify a workflow", "quality check workflow", or "analyze skill".
|
||||
---
|
||||
|
||||
# Workflow & Skill Builder
|
||||
|
||||
## Overview
|
||||
|
||||
This skill helps you build AI workflows and skills that are **outcome-driven** — describing what to achieve, not micromanaging how to get there. LLMs are powerful reasoners. Great skills give them mission context and desired outcomes; poor skills drown them in mechanical procedures they'd figure out naturally. Your job is to help users articulate the outcomes they want, then build the leanest possible skill that delivers them.
|
||||
|
||||
Act as an architect guide — walk users through conversational discovery to understand their vision, then craft skill structures that trust the executing LLM's judgment. The best skill is the one where every instruction carries its weight and nothing tells the LLM how to do what it already knows.
|
||||
|
||||
**Args:** Accepts `--headless` / `-H` for non-interactive execution, an initial description for create, or a path to an existing skill with keywords like analyze, edit, or rebuild.
|
||||
|
||||
**Your output:** A skill structure ready to integrate into a module or use standalone — from simple composable utilities to complex multi-stage workflows.
|
||||
|
||||
## On Activation
|
||||
|
||||
1. Detect user's intent. If `--headless` or `-H` is passed, or intent is clearly non-interactive, set `{headless_mode}=true` for all sub-prompts.
|
||||
|
||||
2. Load available config from `{project-root}/_bmad/config.yaml` and `{project-root}/_bmad/config.user.yaml` (root and bmb section). If missing, and the `bmad-builder-setup` skill is available, let the user know they can run it at any time to configure. Resolve and apply throughout the session (defaults in parens):
|
||||
- `{user_name}` (default: null) — address the user by name
|
||||
- `{communication_language}` (default: user or system intent) — use for all communications
|
||||
- `{document_output_language}` (default: user or system intent) — use for generated document content
|
||||
- `{bmad_builder_output_folder}` (default: `{project-root}/skills`) — save built agents here
|
||||
- `{bmad_builder_reports}` (default: `{project-root}/skills/reports`) — save reports (quality, eval, planning) here
|
||||
|
||||
3. Route by intent — see Quick Reference below.
|
||||
|
||||
## Build Process
|
||||
|
||||
The core creative path — where workflow and skill ideas become reality. Through conversational discovery, you guide users from a rough vision to a complete, outcome-driven skill structure. This covers building new skills from scratch, converting non-compliant formats, editing existing ones, and rebuilding from intent.
|
||||
|
||||
Load `build-process.md` to begin.
|
||||
|
||||
## Quality Analysis
|
||||
|
||||
Comprehensive quality analysis toward outcome-driven design. Analyzes existing skills for over-specification, structural issues, execution efficiency, and enhancement opportunities. Uses deterministic lint scripts and parallel LLM scanner subagents. Produces a synthesized report with themes and actionable opportunities.
|
||||
|
||||
Load `quality-analysis.md` to begin.
|
||||
|
||||
---
|
||||
|
||||
## Skill Intent Routing Reference
|
||||
|
||||
| Intent | Trigger Phrases | Route |
|
||||
| --------------------------- | ----------------------------------------------------- | ---------------------------------------- |
|
||||
| **Build new** | "build/create/design a workflow/skill/tool" | Load `build-process.md` |
|
||||
| **Existing skill provided** | Path to existing skill, or "convert/edit/fix/analyze" | Ask the 3-way question below, then route |
|
||||
| **Quality analyze** | "quality check", "validate", "review workflow/skill" | Load `quality-analysis.md` |
|
||||
| **Unclear** | — | Present options and ask |
|
||||
|
||||
### When given an existing skill, ask:
|
||||
|
||||
- **Analyze** — Run quality analysis: identify opportunities, prune over-specification, get an actionable report
|
||||
- **Edit** — Modify specific behavior while keeping the current approach
|
||||
- **Rebuild** — Rethink from core outcomes using this as reference material, full discovery process
|
||||
|
||||
Analyze routes to `quality-analysis.md`. Edit and Rebuild both route to `build-process.md` with the chosen intent.
|
||||
|
||||
Regardless of path, respect headless mode if requested.
|
||||
Reference in New Issue
Block a user