notion-publish
Skill1 starsChanged 3 months agoMITView on GitHub
Publish finance runbooks, close documentation, metric definitions, and change records into Notion under a stable single-writer zone contract, so automated updates never destroy human edits. Use when documenting a process, publishing a runbook, mirroring a close summary, or maintaining a definitions page that both people and automations touch. Trigger on "Notion", "publish the runbook", "document this process", "update the wiki", "close documentation", "metric definitions page".
In this repository19 other files it gives its agents.
- close-orchestratorSkill
- context-durabilitySkill
- data-quality-gateSkill
- finance-guardrailsSkill
- finance-quorumSkill
- fin-artifactSkill
- flux-analysisSkill
- model-auditSkill
- netsuiteSkill
- pipeline-change-controlSkill
- reconciliationSkill
- saas-metricsSkill
- sheets-bridgeSkill
- startup-board-packSkill
- three-statementSkill
- tie-outSkill
- token-economicsSkill
- usage-auditSkill
- warehouse-sqlSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If the markers are missing, stop.
- Distinctive: line 114
Read before writing: Always. Someone may have edited inside your zone despite the marker.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notion publish
Notion is where finance documentation actually gets read, which makes it worth writing to properly. It is also a shared surface where humans edit continuously, so the same invariant that governs spreadsheets governs it: one writer per zone.
Load finance-guardrails — Rail 2 is the governing rule.
The zone contract
An automation writes to a named section within a page, never to a whole page and never to a database a human curates.
Mark the boundary in the document itself, so a human editing the page can see where they are:
## Metric definitions
<!-- closeloop:zone:metric-definitions START - auto-generated, do not edit by hand -->
| Metric | Definition | Owner | Source |
|---|---|---|---|
| ARR | ... | FP&A | billing |
<!-- closeloop:zone:metric-definitions END -->
## Notes and open questions
<!-- human zone - automation never writes below this line -->Rules:
- Replace between the markers. Never touch anything outside them.
- If the markers are missing, stop. Do not guess where the zone was; a wrong guess overwrites human writing. Ask, or create a fresh zone at the end of the page.
- One automation owns a zone. Two automations writing the same zone is the forbidden case.
- Human zones are read-only to automation. Always.
- Record the zone map in
ZONES.mdalongside the sheet zones — one map for all shared surfaces.
What belongs in Notion
| Publish | Do not publish |
| Runbooks and process documentation | Raw financial data extracts |
| Metric definitions (the canonical list) | Anything from the finance-guardrails Rail 5 deny list |
| Close calendars and task ownership | Credentials, connection strings, tokens |
| Change records and decision logs | Large data dumps — link to the source instead |
| Close summaries and post-mortems | Duplicate copies of anything that lives elsewhere |
| Zone maps and system inventories | Individually-identifying compensation or customer detail |
Notion is a search index and a knowledge surface, not a system of record. If a figure matters, it lives in the warehouse or the GL and Notion links to it. A number pasted into a wiki page is stale the moment it lands and will be quoted back to you six months later.
Runbook template
The document that determines whether an automation survives its author leaving:
# Runbook: AR subledger-to-GL reconciliation
**Owner:** <name> **Backup:** <name> **Review by:** 2027-02-01
**Runs:** monthly, close day 3, 06:00 ET
**Zones written:** Sheets `Actuals!A1:M500`; Notion `closeloop:zone:ar-recon-status`
## What it does
One paragraph. What question it answers and what it produces.
## Inputs
| Source | Object | Access | Owner |
|---|---|---|---|
| NetSuite | AR aging saved search #1284 | SuiteQL, read-only | Accounting |
| BigQuery | finance.gl_summary | service account | Data |
## How to run it
Exact commands. Not a description of the commands.
## How to tell it worked
The tie-out block shows PASS and the control total matches the NetSuite AR aging
report exactly. Anything else is a failure, including a clean-looking run.
## When it fails
| Symptom | Likely cause | Fix |
|---|---|---|
| Row count BLOCK | period still open in NetSuite | wait for AP/AR lock, re-run |
| Control total variance | direct GL postings bypassing the subledger | query GL for non-subledger source entries |
## The manual fallback
What a human does if the automation is down on close day. This section is the
reason the runbook exists - write it as if the author is unreachable.
## Change history
| Date | Change | Record |
|---|---|---|
| 2026-08-19 | tolerance $0.01 -> $1.00 | CHG-2026-08-003 |The manual fallback and how to tell it worked sections are the two that get skipped and the two that matter. An automation with no documented fallback is a single point of failure with a runbook attached.
Writing discipline
- Read before writing. Always. Someone may have edited inside your zone despite the marker; if so, preserve their text elsewhere on the page and flag it rather than deleting it.
- Never delete a page. Archive it. Deletion in a shared workspace destroys other people's context, and Notion's trash is not an audit trail.
- Stamp the zone with as-of and run id, same as any other automated write.
- Verify by reading back, per
tie-out. "The API returned 200" is not "the page says the right thing" — Notion block updates partially fail more often than you would expect. - Keep it short. A runbook nobody finishes is a runbook nobody follows.
Degraded mode
No Notion access: emit publish-ready Markdown with the zone markers included, plus the target page and section. A human pastes it into the zone. The contract still holds because it is written into the document.
Read-only access: the same, plus a diff of what would change, so the human pasting it can see the delta rather than re-reading the whole page.
The zone contract, the runbook template, and the read-before-write discipline are the skill. The API is convenience.
Related skills
finance-guardrails— Rail 2, the zone invariantsheets-bridge— the same contract applied to spreadsheets; share oneZONES.mdpipeline-change-control— change records that get published hereclose-orchestrator— close summaries and calendarssaas-metrics— the canonical definitions this publishes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

