Skip to content
Back to skills

Baseline

ASecurity

Record what one area of an existing product already does, before new work changes it. Surveys the area's code with the surveyor helper, confirms its current behavior with the user, writes the requirement rows, and creates a baseline spec whose acceptance criteria are the existing tests. Use in a brownfield project when work is about to touch an area that has no rows in docs/requirements.md, or when the init skill (/jsdd:init) or the specify skill (/jsdd:specify) suggests it.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsgo

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add JoDi-SDD/JoDi-SDD --skill baseline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Baseline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Baseline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jodi-sdd-baseline/badge)](https://www.skillsdirectory.com/skills/jodi-sdd-baseline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: baseline
description: Record what one area of an existing product already does, before new work changes it. Surveys the area's code with the surveyor helper, confirms its current behavior with the user, writes the requirement rows, and creates a baseline spec whose acceptance criteria are the existing tests. Use in a brownfield project when work is about to touch an area that has no rows in docs/requirements.md, or when the init skill (/jsdd:init) or the specify skill (/jsdd:specify) suggests it.
argument-hint: <area | baseline spec ID> [what is about to change]
---

# Baseline

Input: the input the skill was started with

**Docs folder.** `docs/` in this skill means the project's docs folder: `docs_dir` in `specs/jsdd.yml`, or `docs` when it is not set. `jsdd paths` prints it and the path of every kit document (where your client runs the kit's session-start hook, its context names the folder too when it is not `docs/`). Read and write the kit's documents there, and give the folder to the helpers you start.

A baseline writes down how an area works today, so the work that changes it has rows to cite and the kit counts existing behavior as done. It documents; it never changes code or writes tests. Survey only the area the coming work touches, never the whole product.

**Runtime mode.** Run `jsdd mode` first. The decision points below are marked with their gate, like (gate `baseline.rows`). When you reach one, `jsdd gate <gate>` gives its policy. `ask`: a person decides, as the step says; in `manual` mode every gate asks. `auto`: pass it by the gate's rule in "Autonomous rules" below (in `autopilot` mode a person runs this skill before the run starts, so its gates ask, or park where `jsdd gate` says so), and record the decision as `auto: <gate>` with what passed it, never as a person's; when the rule cannot pass it, park. `park`: ask nobody and guess nothing. Run `jsdd park <ID> <gate> "<what a person must decide>"`, release your claims, run `jsdd status --write`, and stop (inside the auto skill, `/jsdd:auto`, go to its pull request step). In a mode other than `manual`, `autopilot`, and `autonomous`, stop and tell the user that this skill does not support it.

## Autonomous rules

In `autonomous` mode (see the auto skill, `/jsdd:auto`), a run takes a baseline spec only when the charter's `types` lists `baseline`, and only one that already exists with its Area filled in: a run never decides which areas to baseline. Nobody is asked anything.

- **Rows** (gate `baseline.rows`): after the survey, write the candidate rows into the spec as step 4 does, then start the reviewer helper in `baseline` mode, in a fresh context where available, else follow its prompt in this session (prompt: `references/sdd-reviewer.md` in the verify skill; in Claude Code, the `sdd-reviewer` agent). A row it confirms (the code does what the R says, and the AC's test exercises it) goes into `docs/requirements.md` with the source `code (auto): <path>` and the survey's suggested priority, never Must: a Must is the owner's call, so a row the survey calls Must goes in as Should with "(Must? owner to confirm)" in the spec's Findings. A row it does not confirm stays out, listed under Findings. Record the rows as `auto: baseline.rows, sdd-reviewer baseline mode`.
- **Bugs.** A behavior that looks like a bug is never a row: it goes to Findings and a `BACKLOG.md` "Next" item. Whether it is a bug or intended is a product question: ask the product helper (start it in a fresh context where available, else follow its prompt in this session; prompt: `references/sdd-product.md` in the auto skill; in Claude Code, the `sdd-product` agent), and act only on a `cited` answer (the docs say the behavior is intended), recorded as `auto: product, sdd-product, cited (<basis>)` with its `AS-nn` row. Any other answer leaves it a finding.
- **Owner questions** from the survey go under Findings and to `BACKLOG.md`; a row that depends on one stays out. Create no feature specs and no DEC rows that need the owner's reason.
- **Constitution.** Never add an Architecture checklist rule: that file belongs to people. Propose it under Findings.
- **Finish** commits as `[<ID>] Baseline (auto)`, sets `status: in-progress`, and returns to the auto skill (`/jsdd:auto`), which goes to the verify skill (`/jsdd:verify <ID>`).

## 1. Open the baseline

- If the input starts with the ID of a baseline spec, open `specs/<ID>-*/spec.md`, claim it (`jsdd claim <ID>`), and continue at the first step that is not finished. If another session holds it, stop and report who.
- Otherwise run `jsdd status` and `jsdd coverage` for the area's group. If a baseline for the area exists, open it instead. If the area already has rows covered by done specs, say so and ask whether a baseline is still needed.
- Create it: `jsdd new baseline "<Area>: current behavior"`, then claim it with `jsdd claim <ID>`. Fill in the frontmatter (`phase: 0`, `refs` with the PLAN.md item that prompted it, if any) and the Area section.

## 2. Survey

- Start the surveyor helper in a fresh context where available, else follow its prompt in this session (prompt: `references/sdd-surveyor.md`; in Claude Code, the `sdd-surveyor` agent), in `area` mode with the area, its paths if known, the work about to change it (from the input the skill was started with or the PLAN.md item), the group prefix, and the area's existing rows of `docs/requirements.md`.
- While it runs, read `specs/constitution.md` for the test command and the related PLAN.md and BACKLOG.md items.

## 3. Confirm with the user

The survey says what the code does; the user says which of it is intended.

- Show the candidate rows as a table: behavior, code, tests, passing, suggested priority. Ask the user to confirm, reword, re-rank, or drop each (gate `baseline.rows`). A behavior the user calls a bug is not a row: it goes to Findings.
- Ask the survey's questions for the owner, 3 or 4 at a time, each as a multiple-choice question (your client's question tool where it has one) where there are real options (suggested option first, labelled Recommended).
- Never invent behavior. A row the user cannot confirm stays out, or stays in with a `[NEEDS CLARIFICATION: …]` marker in the spec.

## 4. Write

- **Requirements.** Add the confirmed rows to `docs/requirements.md` under the area's heading (create it if missing), with IDs `FR-<AREA>-nn` after the group's last, the source `code: <path>` (plus the user, where they changed it), and the priority. Never renumber existing rows.
- **Spec.** Fill in the baseline spec: `refs` gets every row ID it documents (quoted, for example `"FR-AUTH-01"`); Current behavior gets one EARS requirement per behavior, tagged with its row and its code path; Acceptance criteria get one checkbox per observable behavior, each with its check: an existing test as a command in backticks, or `check: manual: <what a person checks>` when no test covers it. Delete the guidance comments of the sections you fill. A baseline has no Capability changes table: when the verify skill (`/jsdd:verify`) closes it, every row in `refs` is added to `docs/capabilities/<group>.md`. A row that already has an entry there does not belong in a new baseline; if one turns up, the entry and the code disagree, so settle it with the user and record it under Findings.
- **Findings.** Record each finding in the spec with where it went: a `BACKLOG.md` "Next" item (missing tests, small bugs), a new feature spec if the user wants it fixed now, or dropped. Ask the user before creating specs.
- **Decisions and rules.** A choice the code already made that the work relies on becomes a DEC row in `docs/decisions.md` (why: "chosen before the kit" unless the user knows the reason). A convention the user wants enforced goes under "Architecture checklist" in `specs/constitution.md`.
- **Plan.** Tag the area's "Baseline" item in `PLAN.md` Phase 0 with the IDs it documents (`· FR-AUTH-01, FR-AUTH-02`), adding the item if there is none, so the verify skill (`/jsdd:verify`) can tick it.
- Run `jsdd coverage <group>` and show its rows: the new rows show the baseline as their spec.

## 5. Hand over

- If no `[NEEDS CLARIFICATION` markers remain, set `status: in-progress` (the behavior is confirmed and waits for verification) and add a changelog line. Otherwise keep `draft` and list the open markers.
- Release the spec (`jsdd release <ID>`) and run `jsdd status --write`.
- Report: the spec path, the rows added (by priority), the findings and where they went, and the next step: the verify skill (`/jsdd:verify <ID>`), which runs every check and closes the baseline. Then the work that prompted it: the specify skill (`/jsdd:specify`), citing the rows it changes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.