ms-ai-architect/commands/export.md
Kjell Tore Guttormsen baa2d0220b feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command
Add /ultraresearch-local for structured research combining local codebase
analysis with external knowledge via parallel agent swarms. Produces research
briefs with triangulation, confidence ratings, and source quality assessment.

New command: /ultraresearch-local with modes --quick, --local, --external, --fg.
New agents: research-orchestrator (opus), docs-researcher, community-researcher,
security-researcher, contrarian-researcher, gemini-bridge (all sonnet).
New template: research-brief-template.md.

Integration: --research flag in /ultraplan-local accepts pre-built research
briefs (up to 3), enriches the interview and exploration phases. Planning
orchestrator cross-references brief findings during synthesis.

Design principle: Context Engineering — right information to right agent at
right time. Research briefs are structured artifacts in the pipeline:
ultraresearch → brief → ultraplan --research → plan → ultraexecute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 08:58:35 +02:00

57 lines
1.4 KiB
Markdown

---
name: architect:export
description: Eksporter et arkitekturdokument til PDF
argument-hint: "[filsti til markdown-dokument]"
allowed-tools: Read, Glob, Bash, Write
model: opus
---
# /architect:export — Eksporter til PDF
Eksporter et markdown-dokument til profesjonell PDF med A4-layout, tabellformatering og fargekodet scoring.
> **Bash scope:** Bash brukes utelukkende til å kjøre `scripts/export-pdf.py`. Ingen andre shell-operasjoner skal utføres.
## Språk og encoding
**VIKTIG:** Bruk norske tegn (æ, ø, å) korrekt i all output.
## Forutsetninger
Python 3.8+ med følgende pakker:
```bash
pip install markdown weasyprint
```
## Prosess
### 1. Identifiser dokumentet
Hvis brukeren har angitt en filsti, bruk den direkte.
Hvis ikke, sjekk for nylig genererte dokumenter:
- `docs/utredning/*.md` — Utredninger
- `docs/dpia/*.md` — DPIA-rapporter
- `docs/summary/*.md` — Sammendrag og beslutningsnotater
List tilgjengelige filer og la brukeren velge.
### 2. Eksporter til PDF
Kjør export-scriptet:
```bash
python scripts/export-pdf.py <input.md> [output.pdf]
```
Hvis output ikke er angitt, brukes samme filnavn med `.pdf`-endelse.
### 3. Bekreft
Vis filstørrelse og sti til generert PDF.
## Feilhåndtering
- Hvis `markdown` eller `weasyprint` ikke er installert, vis installasjonsinstruksjoner
- Hvis inputfil ikke finnes, vis tilgjengelige dokumenter
- Hvis PDF-generering feiler, vis feilmelding og foreslå feilsøking