scaffold

scaffold is a command for Claude Code from AutomateLab-tech/agency-os. It costs 0 tokens per session (763 once invoked), scanned A, original, MIT.

A command that creates a complete Notion workspace structure, including a hub page, task database, guidance pages, resources, and linked views.

In plain words
What is it for?
Use it to create the workspace from scratch, optionally under a chosen parent page, with selected knowledge categories. It can safely be run again because it creates only missing parts.
Why use it?
It removes the repetitive setup needed before a team can manage work in Notion. It also checks for an existing setup so it does not rebuild one that is already complete.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agency-os plugin — 1 skill, 19 commands shipped together

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 commands/automatelab-tech/agency-os/scaffold
Clone the repo
git clone --depth 1 https://github.com/AutomateLab-tech/agency-os

Made for: Claude Code.

Or install agency-os, the plugin that ships this one along with the rest of its 1 skill, 19 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scaffold

README.md
[![agentmods](https://agentmods.dev/badge/commands/automatelab-tech/agency-os/scaffold.svg)](https://agentmods.dev/commands/automatelab-tech/agency-os/scaffold)
Your own site
<a href="https://agentmods.dev/commands/automatelab-tech/agency-os/scaffold"><img src="https://agentmods.dev/badge/commands/automatelab-tech/agency-os/scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 763 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.1 $0.00000 $0.00763
Opus 5 $0.00000 $0.00381
Sonnet 5 $0.00000 $0.00153
Haiku 4.5 $0.00000 $0.00076

Measured 6d ago against content hash 905096f23f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

scaffold 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 6d 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.

skills/agency-os/references/commands/scaffold.md · 20 lines

What it actually says

Command: scaffold [--parent=<id-or-url>] [--corpora="<n1>,<n2>,..."]

The single-shot setup command. Builds the entire Notion workspace from scratch — Hub page, Tasks database with the full schema below, General Guidance page, Resources page, default corpus pages (General, Recurring), and every linked DB view. There is no public Notion template to duplicate; this command IS the setup. The integration only needs to be shared with the parent (workspace root or --parent page) before running.

Idempotent: if notion-pointers.json exists and every ID resolves via notion-fetch, prints scaffold: already in place and exits. Otherwise creates only what's missing.

  1. Locate or create the Hub. If --parent=<page-id-or-url> is passed, create the Hub as a child of that page (use this when the integration is shared with a specific page rather than the workspace root). Otherwise: search by title at workspace root; create there if absent. If the create fails because the integration lacks workspace-root access, abort with scaffold: integration must be shared with the workspace root, or pass --parent=<page-id>.
  2. Create the Tasks database as a child of the Hub, with the schema in SKILL.md. Capture both database_id and data_source_id. The Dependencies property is a self-relation on Tasks (separate from Parent Task — that's the hierarchy relation; Dependencies is the gating relation used only by run).
  3. Create the General Guidance page under the Hub; seed body from references/general-guidance.md.
  4. Create each Corpus page under the Hub. Default set: General, Recurring (user can customise via --corpora flag or add later with add-corpus). Seed each from references/corpus-template.md.
  5. Create the Resources page under the Hub; seed from references/resources.md if present.
  6. Add linked DB views to the Hub for Suggestions Inbox, In Discussion, To-Do, Recurring, In Progress, Recently Done. Add a per-corpus filtered view to each Corpus page. Every view's SHOW clause must include Task ID as the leftmost column so subtask IDs are reachable at a glance.
  7. Wire interlinks (Hub <-> Guidance <-> Corpora <-> Resources).
  8. Write notion-pointers.json.
  9. Full-width pages — manual one-time toggle. The Notion MCP doesn't expose page_full_width, so Hub / Guidance / Resources / each Corpus page / new task pages need the ... menu -> "Full width" toggle flipped on by the operator after creation. Surface this in scaffold's final output so the operator knows to do it.
  10. Sub-items — manual one-time toggle. The Notion MCP doesn't expose the Sub-items setting either. On the Tasks DB, the operator must enable Sub-items and wire it to the existing Parent Task (parent) / Subtasks (children) relation. Path varies by Notion version: typically ... menu -> "Sub-items" -> pick Parent Task. Once wired, every view in the Hub gets a chevron on rows with children.
  11. Print the Hub URL.

add-corpus "<name>" extends the General Plan post-scaffold: appends a Corpus select option, creates the page, adds the filtered view, updates pointers. Print: + Corpus: [<name>](<url>).

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. 6d ago First seen · 20 lines · 0 tokens per session scan A 905096f23f71

Subscribe to this mod's changes

scaffold is a command published in the GitHub repository AutomateLab-tech/agency-os (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 763 tokens. 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-31.