You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use devtrail analyze as primary doc trigger with >20 lines fallback (#31)
Replace the static ">20 lines of business logic" heuristic with a
two-tier approach: agents now run `devtrail analyze --output json` on
changed files and create AILOGs when `summary.above_threshold > 0`.
The >20 lines rule is preserved as an explicit fallback when the CLI
is unavailable.
Updated 18 files across governance (AGENT-RULES, DEVTRAIL.md,
AI-GOVERNANCE-POLICY, QUICK-REFERENCE), agent directives (Claude,
Gemini, Copilot, Cursor), skills/workflows, and CLI-REFERENCE docs
in both EN and ES.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: dist/.claude/skills/devtrail-new/SKILL.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
name: devtrail-new
3
3
description: Create DevTrail documentation. Analyzes context to suggest document type or accepts explicit type parameter. Always confirms before creating.
4
-
allowed-tools: Read, Write, Glob, Bash(git diff *, git log *, git status *, date *, wc *)
4
+
allowed-tools: Read, Write, Glob, Bash(git diff *, git log *, git status *, date *, wc *, devtrail analyze *)
Copy file name to clipboardExpand all lines: dist/.devtrail/00-governance/i18n/es/AGENT-RULES.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ confidence: high | medium | low
30
30
31
31
| Situación | Tipo | Notas |
32
32
|-----------|------|-------|
33
-
| >20 líneas de lógica de negocio | AILOG | Usar juicio cualitativo para casos límite |
33
+
| Complejidad de código sobre el umbral | AILOG | Ejecutar `devtrail analyze <archivos-modificados> --output json`. Si `summary.above_threshold > 0`, crear AILOG (umbral por defecto: 8). **Alternativa**: si el CLI no está disponible, usar heurística de >20 líneas de lógica de negocio |
0 commit comments