authoring
/authoring
Pomaga pisać dokumenty w Stencila Markdown (.smd) z kodem wykonywalnym, wyrażeniami, rysunkami, tabelami i metadanymi.
- Autor
- stencila ↗
- Repozytorium
- stencila ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 14
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Pomaga pisać dokumenty w Stencila Markdown (.smd) z kodem wykonywalnym, wyrażeniami, rysunkami, tabelami i metadanymi.
Oryginalny opis (EN)
How to write Stencila Markdown (.smd) and work with executable documents in related flavours (.myst, .qmd). Use when creating or editing .smd files, adding executable code chunks, inline expressions, parameters, figures, tables, math, or document metadata, or when unsure how Stencila Markdown differs from plain Markdown.
Jak działa
- What differs from CommonMark
- Reference files
- Verifying your work
Podgląd SKILL.md
---
name: authoring
description: How to write Stencila Markdown (.smd) and work with executable documents in related flavours (.myst, .qmd). Use when creating or editing .smd files, adding executable code chunks, inline expressions, parameters, figures, tables, math, or document metadata, or when unsure how Stencila Markdown differs from plain Markdown.
user-invocable: false
---
# Authoring Stencila documents
Stencila Markdown (`.smd`) is CommonMark plus a small set of extensions for
executable, reproducible documents. Stencila also parses MyST (`.myst`) and
Quarto (`.qmd`) Markdown; prefer `.smd` for new documents unless the user
already works in one of those ecosystems, in which case keep their format.
The Markdown parser auto-detects the flavour, so `--from` is rarely needed.
Minimum CLI version: 2.14. Verify a document parses with:
```sh
NO_COLOR=1 stencila convert doc.smd --to json --yes > /dev/null
```
## What differs from CommonMark
The constructs below are the ones worth double-checking; everything else
(headings, emphasis, links, lists, block quotes) is standard Markdown.
### Executable code: `exec`
A fenced code block with the `exec` keyword executes when the document is
rendered, and its outputs become part of the document:
````smd
```python exec
import pandas as pd
data = pd.read_csv("data.csv")
data.describe()
```
````
Without `exec` a code block is static, display-only code. Do not confuse
`exec` with `demo`: `demo` parses-and-renders the block content as document
source without executing anything — it is for documentation that shows
source alongside rendered output.
Execution modes go after `exec` (e.g. `always` to re-run on every execution,
`lock` to preserve existing outputs):
````smd
```r exec always
plot(data)
```
````
### Inline expressions
Backtick code with a language tag and `exec` in braces embeds a computed
value in prose:
```smd
The answer is `6 * 7`{python exec}.
```
Without `exec` (e.g. `` `2 * pi`{python} ``) it is just static inline code
with a language.
### Parameters
Named inputs that can be supplied at render time with
`stencila render doc.smd out.html -- --name=value`:
```smd
Analysis for &[year]{int def=2024} using threshold &[cutoff]{num def=0.05}.
```
### Frontmatter
YAML frontmatter carries metadata (title, authors, description):
```smd
---
title: Analysis of penguin morphology
description: Bill dimensions across three species.
---
# Introduction
```
### Figures, tables, and other colon-fenced blocks
Captioned, labelled figures and tables wrap content in `::: figure` /
`::: table` blocks; code chunks inside them produce the figure or table
content:
````smd
::: figure 1
```r exec
plot(y ~ x)
```
Y against X.
:::
````
## Reference files
Read the relevant reference before writing a construct you are not sure
about — they are generated from Stencila's own documentation and are
authoritative:
| Topic | Reference |
|---|---|
| Document structure, headings, paragraphs | `references/basics.md` |
| Static code blocks and inline code | `references/code.md` |
| Executable chunks, expressions, modes, parameters | `references/execution.md` |
| Including other documents, calling with arguments | `references/include-call.md` |
| Math (TeX and AsciiMath, block and inline) | `references/math.md` |
| Figures, captions, labels | `references/figures.md` |
| Tables, captioned tables | `references/tables.md` |
| Lists, checklists | `references/lists.md` |
| Admonitions / callouts | `references/admonitions.md` |
| Sections and semantic structure | `references/sections.md` |
| Frontmatter metadata | `references/metadata.md` |
| Images, audio, video | `references/media.md` |
| Footnotes | `references/notes.md` |
## Verifying your work
After writing or editing a Stencila document:
1. Lint it: `NO_COLOR=1 stencila lint doc.smd --as json --yes`
2. If it has executable code, render it and check for execution errors
(see the `execution` skill for how execution and staleness work).
Never report an executable document as finished without executing it.
Pliki w paczce (14)
- SKILL.md 4 KB
- references/admonitions.md 1 KB
- references/basics.md 3 KB
- references/code.md 2 KB
- references/execution.md 3 KB
- references/figures.md 22 KB
- references/include-call.md 2 KB
- references/lists.md 2 KB
- references/math.md 1 KB
- references/media.md 2 KB
- references/metadata.md 5 KB
- references/notes.md 2 KB
- references/sections.md 3 KB
- references/tables.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · stencila/stencila | 95 | Apache-2.0 |
| CrowdStrike/fusion-skills | 100 | MIT |
| nyelonong/galdr | 100 | MIT |
| OdradekAI/bundles-forge | 100 | Apache-2.0 |
Migawka bazy z 28.10.2026 · wersja paczki 927e111c4e06 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100mira-annotation
Adnotuje dokumenty Markdown (md, smd, qmd, myst) obiektami badawczymi MIRA i relacjami w źródle: twierdzeniami, dowodami, pytaniami, protokołami i prośbami, z zachowaniem oryginalnego brzmienia autora. - 100workspaces
Konfiguruje projekt Stencila: sekcje stencila.toml, śledzenie dokumentów i to, co trafia do repozytorium. - 100doc-parser
Parsuje złożone dokumenty biblioteką Docling od IBM, zamieniając PDF-y i pliki Office na ustrukturyzowany Markdown lub JSON, z tabelami, rysunkami i układami wielokolumnowymi. - 100md-document
Zamienia markdown w dopracowany samodzielny dokument HTML ze spisem treści, numerowanymi rysunkami i tabelami, odsyłaczami, przypisami i CSS gotowym do druku. - 100academic-pdf-to-mkd
Wyodrębnia artykuły naukowe z PDF do ustrukturyzowanego Markdown z tekstem, rysunkami, tabelami i miniaturami stron, automatycznie dobierając silnik ekstrakcji i OCR.