---
name: "principle-formatting"
description: "Use when writing Markdown in an Obsidian vault: creating or editing any note."
license: MIT
title: principle-formatting
canonical_url: https://skilld.dev/gh/goberomsu/secondbrain-skills/principle-formatting
last_updated: 2026-11-17T02:16:06.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/callouts.md](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/callouts.md), [references/embeds.md](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/embeds.md), [references/links.md](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/links.md), [references/properties.md](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/properties.md), [references/syntax.md](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/syntax.md).
>
> If the user asked to install this Skill, run `npx skilld install goberomsu/secondbrain-skills/principle-formatting`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/principle-formatting`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/goberomsu/secondbrain-skills/principle-formatting) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/principle-formatting`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/principle-formatting --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/principle-formatting --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Formatting

Formatting is every part of a note that can be checked from its raw characters without understanding what it says: syntax, link form, indentation, and whether the rest of the note survived the edit. An editor, a parser and a later agent all depend on it reading the same everywhere.

Apply these lines to text you write or were asked to restyle. Standard Markdown is assumed knowledge; the syntax Obsidian adds is in the references at the end. The destination vault's live policy overrides any line here. These lines shape a write the task already asked for; they are not a reason to make one, and not a reason to withhold one.

## Resolve the target before writing

A request that names the note and the change settles all four of these, so carry it out without asking again. Hold the write only while one of them is unknown:

| What | Resolved when you can state it exactly |
| --- | --- |
| Vault root | The directory the user named for this task, as an exact path |
| Target note | Its vault-relative path, including extension, not just a title |
| Effect | Create, insert, replace or delete, named at the level of a section, property or link |
| Authority | The user's request, or a standing instruction for this vault, covers that note and that effect |

- Reuse authority the task already granted instead of asking again for a note and effect it covers.
- When one is missing or ambiguous, name that one item and keep going with the reading and drafting that do not depend on it.
- Write through the vault-aware surface the user selected, and otherwise through the host's file write and edit tools; shell redirection and stream editors silently reformat a note, drop its trailing newline and mangle YAML and callout prefixes.

## Preserve what the task did not ask for

- Read the current note, frontmatter included, before editing it.
- Change only what was requested: one property, one section, one link.
- Keep everything else byte-identical: unrelated properties and their order, headings, block identifiers, existing links and embeds, aliases, tags, `%%comments%%`, footnote definitions, code fences, indentation, line endings and the trailing newline.
- Reflow, reorder frontmatter keys, switch link style or re-case headings only when that normalization is the request.
- Fix the link text instead of renaming or moving a file to make a link resolve; a rename rewrites links across the vault and needs its own approval.
- Get explicit scope before deleting a section, clearing or replacing whole frontmatter, changing or removing links across several notes, or running a find-and-replace across notes.

## Links

- Link a note in the vault as `[[Note]]` and external material as `[name of the article or site](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/URL)`.
- Convert a bare or backticked URL in text you write or restyle to that form, and keep a real path or URL where a command, code, quotation or captured source text has it.
- Link the same note once per note, at its first mention in the body, and write it as plain text after that; this holds for terms and people alike.
- Call a person by another name with `[[Full Name|Short Name]]` (`[[Ada Lovelace|Ada]]`).
- Embed an external image or video by its URL in image syntax (`![Diagram](https://example.com/diagram.png)`, `![Demo](https://example.com/demo.mp4)`), not in an HTML tag, instead of downloading it into the vault; download only when the user asks.
- Keep the extension on every target that is not a Markdown note (`[[Team Board.canvas]]`), and add enough folder path to make a shared basename unambiguous.

## Indentation and blocks

- Indent each nested list level with the note's existing indent character, and with one tab per level where the note has none; mixed tabs and spaces make list depth ambiguous.
- Indent YAML frontmatter with two spaces per level; YAML rejects a tab as indentation.
- Leave indentation inside code blocks and quotations as the source has it.
- Name a language on every code fence, and `text` when there is none.
- Put a space after a closing `**` that follows punctuation and is followed directly by a letter (`**traceability(audit)** suffix`), because that marker does not close the emphasis; leave `**term**suffix` as it is.

## Read back

A write that returned no error is not a verified change. Report each leg you could not run as unverified.

1. Re-read the note from the vault after every write: the intended change is present, the frontmatter still parses, nothing else moved, nested lists use one indent character and no YAML line is indented with a tab.
2. Resolve every changed link or embed from the note that contains it and compare the returned path with the intended one, as [links](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/links.md) describes; a file of the same name existing on disk is not resolution.
3. Look at every changed embed in reading view; resolution does not prove rendering.

## References

- [links](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/links.md): wikilink forms, block identifiers, targets that are not Markdown notes, destination resolution.
- [embeds](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/embeds.md): every embed form, sizing, external media, embed readback.
- [callouts](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/callouts.md): callout types, aliases, folding, nesting, custom CSS.
- [properties](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/properties.md): property types, YAML rules, tags, safe frontmatter edits.
- [syntax](https://skilld.dev/api/skills-raw/goberomsu/secondbrain-skills/principle-formatting/references/syntax.md): tags, comments, highlights, math, Mermaid fences, footnotes, a complete note.
