baseline: Skill for Claude Code

.claude/skills/spec-sync/SKILL.md

spec-sync is a skill for Claude Code from friedbotstudio/baseline. It costs 94 tokens per session (802 once invoked), scanned A, original, Apache-2.0.

A guided setup tool for creating a central system specification from an existing code repository. It scans declared project folders, suggests a map of concepts, and waits for a person to approve it before creating the specification.

In plain words
What is it for?
Use it when adopting a central architecture specification on an existing project, reviewing repository coverage, or finding areas that are not represented in the specification.
Why use it?
It gives projects without an existing specification a structured starting point, while keeping a human in control of what the system model contains.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

This is friedbotstudio/baseline's own configuration. It tells Claude Code how to work on baseline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything baseline configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/skills/workspace/cli.mjs flags # gates on memory.architecture_map.enabled — read the `architecture_map:` line.

Reuse

Borrowing it

Nothing to install: this file belongs to friedbotstudio/baseline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/friedbotstudio/baseline/main/.claude/skills/spec-sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

Made for: Claude Code.

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 spec-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/friedbotstudio/baseline/spec-sync/github.svg)](https://agentmods.dev/skills/friedbotstudio/baseline/spec-sync)
Your own site
<a href="https://agentmods.dev/skills/friedbotstudio/baseline/spec-sync"><img src="https://agentmods.dev/badge/skills/friedbotstudio/baseline/spec-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/friedbotstudio/baseline/spec-sync"><img src="https://agentmods.dev/badge/skills/friedbotstudio/baseline/spec-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 56
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00094 $0.00802
Opus 5.5 $0.00038 $0.00321
Sonnet 5.5 $0.00019 $0.00160
Haiku 4.5 $0.00009 $0.00080

Measured 1mo ago against content hash 0ff4d4762b58, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-sync 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 1mo 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/spec-sync/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

spec-sync — derive the central system spec, then have a human curate it

A project adopting the baseline has no spec archive to migrate from. Measured on this repository, 68% of governed files appear in no spec at all — and a project that never ran the spec phase has none. So the corpus is rebuilt from code, not imported.

What the machine does and what the human does is the whole design:

Step Owner
Scan the governed surface, cluster by directory, propose a concept map machine
Confirm or edit that map human, always
Materialize elements, derive edges, stamp digests, report coverage gaps machine

Prereq

project.json → memory.architecture_map.enabled is true and memory.architecture_map.governed_surface declares this project's roots. An absent surface is a named error, never a default — a fallback would model the consumer's .claude/ and report total coverage over a surface that is not theirs.

Steps

  1. Check the flag.

    node .claude/skills/workspace/cli.mjs flags   # gates on memory.architecture_map.enabled — read the `architecture_map:` line
    

    false → stop and tell the user to enable it (and declare a governed surface) first.

  2. Propose the map.

    node .claude/skills/workspace/cli.mjs sync --json   # wraps workspace/sync.mjs -> proposeMap (propose half only; runSync is not exposed)
    

    The proposal is a starting point, not an inference to trust. Directory clustering is deliberately plain because a human edits it next.

  3. Have the human confirm it — always. Present the proposed concepts via AskUserQuestion: which clusters are real concepts, which should merge, which should split, what each is called. Concept membership is authored; this step has no skip and no --yes. An unattended run that inferred membership would undo the rule every prior decision in this lineage protects.

  4. Materialize what was confirmed. runSync writes the confirmed concepts, derives one element per anchor, stamps digests, and returns coverage gaps. It refuses outright when no confirmation callback is supplied, and writes nothing before confirmation returns — a refused sync leaves the corpus byte-identical.

Read the full file on GitHub · 73 lines

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. 1mo ago First seen · 73 lines · 94 tokens per session scan A 0ff4d4762b58

Subscribe to this mod's changes

spec-sync is a skill published in the GitHub repository friedbotstudio/baseline (14 stars, last pushed 13d ago), licensed Apache-2.0. It adds 94 tokens to every session and 802 once invoked, about $0.0004 per session on Opus 5.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.