new

A command that creates a new, tracked Stencila article file with basic title and description information. Stencila is a document format and tool for creating structured, sometimes executable documents.

In plain words
What is it for?
Use it when starting an article, usually as an .smd file, and when you need a document registered with the project’s tracking system.
Why use it?
It provides the starting file and metadata needed for a new document, avoiding repetitive setup.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stencila/stencila/new
Any agent
npx skills add stencila/stencila --skill new
Clone the repo
git clone --depth 1 https://github.com/stencila/stencila

Made for: Claude Code, Codex.

Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00261
Opus 5 $0.00009 $0.00130
Sonnet 5 $0.00003 $0.00052
Haiku 4.5 $0.00002 $0.00026

Measured 3d ago against content hash 700b1ffe9f5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

new scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/skills/new/SKILL.md · 37 lines

What it actually says

/stencila:new

Create a new document at the path in $ARGUMENTS.

Use the stencila CLI path reported in session context; otherwise ${CLAUDE_PLUGIN_OPTION_STENCILA_PATH} if set, else stencila. If no CLI is available, point the user at /stencila:doctor and stop.

NO_COLOR=1 <stencila> new <path> --yes

This creates a tracked article (--type article is the default; do not use --type chat unless explicitly asked). Prefer an .smd extension unless the user works in MyST or Quarto.

Then scaffold frontmatter appropriate to what the user is writing — at minimum a title and description:

---
title: <title>
description: <one-sentence description>
---

Ask what the document is about if it is not clear from context. See the authoring skill before adding executable content.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 37 lines · 17 tokens per session scan A 700b1ffe9f5a

Subscribe to this mod's changes

new is a skill published in the GitHub repository stencila/stencila (900 stars, last pushed 3d ago), licensed Apache-2.0. It adds 17 tokens to every session and 261 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.