Przejdź do treści
Biblioteka skilli
Dokumenty i biuro · Nauka i wyjaśnianie

authoring

/authoring

Pomaga pisać dokumenty w Stencila Markdown (.smd) z kodem wykonywalnym, wyrażeniami, rysunkami, tabelami i metadanymi.

Repozytorium
stencila ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
14
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

  1. What differs from CommonMark
  2. Reference files
  3. Verifying your work
Sekcje z nagłówków SKILL.md, w oryginale · 131 linii, 537 słów
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

RepozytoriumWynikLicencja
Ta strona · stencila/stencila95Apache-2.0
CrowdStrike/fusion-skills100MIT
nyelonong/galdr100MIT
OdradekAI/bundles-forge100Apache-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.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.