Spec

From brsbl/ottonomous · View interactive version

Spec is an AI agent skill from the GitHub repository brsbl/ottonomous. Writes high-quality product specifications through codebase research, web research, a collaborative requirements interview, and independent review, then gives the user a link to the written spec. Use when planning a feature, defining requirements, revising an existing draft, or creating a spec/PRD.

How to use this skill

Skill file

Input: $ARGUMENTS

Create or revise one product specification. The caller may provide the idea or

draft inline, as a file reference, or through the surrounding conversation.

Resolve the invocation

Identify these inputs from the caller's request:

Ask only for information that blocks useful progress. An existing spec file can

serve as its own destination. Otherwise, if the caller omits an output

destination, ask for one before drafting. Never invent a spec registry, fixed

directory, hidden state file, duplicate copy, or symlink. Use exactly the

caller-selected destination and keep any supporting assets beside it or in a

caller-selected asset location.

When revising an existing file, read it completely before editing. Preserve

user-authored content, required metadata, comments, links, and layout unless a

requested change requires otherwise.

1. Gather product and codebase context

For a new idea, ask whether reference products or examples matter. For an

existing draft, treat its decided requirements as constraints rather than

reopening them without evidence.

Inspect the supplied working location:

previously decided behavior.

If no working location is supplied, continue with product discovery and mark

codebase-dependent claims as assumptions.

2. Research the problem

Use web research when current external evidence would improve the decision:

Prefer primary sources. Record links and the decision each source informed.

Do not save research artifacts unless the caller supplied a destination.

3. Interview for consequential decisions

Interview the caller about requirements that materially change scope, behavior,

architecture, rollout, or risk. Group related decisions to reduce interruption.

For each decision:

Cover the relevant parts of:

4. Draft one canonical spec

Write for fast product and implementation review: lead with the decision,

prefer short sections and tables where they improve comparison, keep one

concept in one canonical place, and make every requirement observable.

Adapt the structure to the feature, but cover these concerns when relevant:

# {Name}

> {One sentence: what building this spec means, plus any open decision.}

**Proposal:** {One plain sentence describing the change.}

## Today
{Current behavior, evidence, and the problem.}

## Goals and non-goals
{Explicit scope boundaries.}

## User workflow and rules
{Primary flow, states, edge cases, and error behavior.}

## Design
{Architecture, data flow, interfaces, ownership, and compatibility.}

## What ships when
{Stages with observable enablement or rollout conditions, not arbitrary dates.}

## Done looks like
{Testable acceptance criteria.}

## Risks and open questions
{Unresolved decisions, mitigations, and reversal plan.}

## Research
{Source links and what each informed.}

Use portable Markdown by default. If the destination is a Moss note or the

caller requests Moss syntax, read and follow the current Moss authoring rules

and use Moss-native nodes where they add value. For any other destination,

follow that format's conventions. Add metadata only when the caller or target

format requires it.

Mark missing information as [TBD: reason]. Do not hide unresolved decisions

behind vague language.

5. Run an independent spec review

Delegate the draft to the technical-product-manager subagent using the

persona in agents/technical-product-manager.md.

Provide:

The reviewer checks completeness, consistency, feasibility, ambiguity,

technical correctness, simplicity, and acceptance criteria. Wait for its P0-P2

findings.

Validate each finding against the draft and source context. Discard false

positives. Apply unambiguous corrections directly. Ask the caller only when a

valid finding exposes a genuine product alternative that cannot be resolved

from the interview or source context. Do not silently choose a breaking contract

or architecture decision.

6. Write and link the spec

Write the complete reviewed spec to the exact caller-selected destination. Then

read it back to verify that the write succeeded and that the destination

contains the complete canonical spec.

Do not present the full spec inline, ask for confirmation, or propose a next

workflow. The user can open the written artifact and decide what to do from

there.

End with only a clickable link to the written spec:

[Open the spec]({destination link})

Do not start implementation or create additional workflow artifacts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.