Skip to content
Back to skills

Prd

ASecurity

Write or upgrade a Seekstone PRD from a Linear issue (e.g. SHA-290) or a feature idea, using docs/PRD_TEMPLATE.md and the repo's admission bar, write-safety and docs-sync gates. Use before implementing any new tool, prompt, resource, or user-facing behavior, and before giving any ticket the `factory` label.

  • 41 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgogitsecurity

Works with

  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add shaqmughal/seekstone --skill prd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prd?

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

Security grade badge for Prd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shaqmughal-prd/badge)](https://www.skillsdirectory.com/skills/shaqmughal-prd)

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: prd
description: Write or upgrade a Seekstone PRD from a Linear issue (e.g. SHA-290) or a feature idea, using docs/PRD_TEMPLATE.md and the repo's admission bar, write-safety and docs-sync gates. Use before implementing any new tool, prompt, resource, or user-facing behavior, and before giving any ticket the `factory` label.
argument-hint: "<SHA-XX | feature idea>"
---

# /prd

Turns a Linear issue or a feature idea into an execution-ready PRD in the shape of
[`docs/PRD_TEMPLATE.md`](../../../docs/PRD_TEMPLATE.md), then stores it as the
issue's description. The template is the format. This skill is the process for
filling it in so the result holds up against the repo's real gates.

## 1. Gather context

For a Linear issue (`$ARGUMENTS` looks like `SHA-123`):

- Read the issue (`get_issue`), its comments (`list_comments`) and relations
  (blocks, blocked-by, duplicates). Read the parent epic too. Its description
  sets the strategic lens.
- Keep everything already decided. Merged-duplicate notes, acceptance criteria
  and constraints in the old description carry over into the new PRD. Don't
  drop them.
- Find sibling PRDs this one depends on or feeds (for example `vault_stats`
  shows counts that `find_orphans` computes) and link them in §13.

For a feature idea, search Linear for an existing issue first (`list_issues`
with `query`). If one exists, use it. If not, ask before creating one.

## 2. Ground it in the code

Every claim about the codebase names a real file or symbol, and you check each
one before writing it:

- What already exists. Read `packages/server/src/tool-list.ts` and the
  relevant `packages/server/src/tools/*.ts`. The index likely already holds the
  data (link graph, tags, mtimes). Say which structure the tool reads from.
- Overlap. Find the closest existing tool. If a parameter on it would do the
  job, the PRD proposes that instead of a new tool (CONTRIBUTING.md: "If no
  task shows a win, the capability probably belongs as a parameter on an
  existing tool").
- For write tools, read `docs/WRITE-SAFETY.md` and one existing write tool of
  the same shape (one file: `patch_note.ts`; several files: `move_note.ts`).

## 3. Draft against the template

Fill every section of `docs/PRD_TEMPLATE.md`. If a section doesn't apply, write
`N/A: <reason>`. These sections must not be thin:

- **§5 Surface / contract.** The exact zod-style input schema and the output
  shape, with a realistic example response. Keep descriptions short: every
  word in a tool description is schema tax, paid in every session.
- **§7 Surfaces table.** Keep only the rows that apply.
- **§8 Acceptance criteria.** Binary and testable. Include at least one error
  or edge case and one payload-size criterion.
- **§10 Non-functional.** A payload budget in bytes. Retrieval-path work holds
  p95 ≤ 30 ms and about 2 KB per payload. Write tools list every write-safety
  item from the template.
- **§10b Speed budget.** Seekstone's thesis is that it's the fastest Obsidian
  MCP server, so weigh every design choice against speed first. Fill in the
  budget table: warm p95 for the new call, added cost to the boot index build
  and to each watcher event, and "no regression" on the existing bench rows,
  each with the command the PR uses to prove it. Name the fastest design you
  found. If you chose something slower, say why. A design that slows an
  existing benchmark row doesn't ship; take it to the user as an open
  decision.
- **§10a Admission bar.** Required for any new tool, prompt, or resource: why
  not a parameter, the `tasks.json` task, the expected token win, and the
  estimated schema-tax cost.
- **§12 Open decisions.** Every real choice the implementer would otherwise
  make alone (naming, prefix vs exact matching, one tool or two), each with
  options and a recommendation. Don't include questions the code already
  answers.

Header table: Status `Draft`, Owner the issue's assignee or Shaq, the issue ID,
its current Linear priority and milestone.

## 4. Review with the user

Show the full draft before writing it anywhere. List the open decisions
separately so they can be answered in one pass. Revise until it's approved.

## 5. Publish

- Run the prose through `humanizer:humanizer` first. Code, identifiers,
  numbers and commands stay exact.
- Replace the Linear issue description with the approved PRD (`save_issue`),
  set its Status row to `Approved`, and keep any "merged from SHA-XX" note at
  the end.
- Prefix the title with `PRD: ` if it doesn't have it yet.
- Leave the issue's workflow state alone unless the user asks to change it.

## 6. Before the ticket gets the `factory` label

Run this for every ticket that goes to the factory, PRD or not, before moving
it to Todo. The factory stops with `blocked.md` when a ticket contradicts
itself or the repo, and that costs a night. On 2026-11-21, SHA-553 and SHA-560
both stopped for reasons these checks catch.

- **Does it break documented behaviour?** For every behaviour the ticket adds,
  removes or forbids, search `docs/`, `SECURITY.md`, both READMEs, the tool
  descriptions in `tool-list.ts` and the result messages in `dispatch.ts`. If a
  documented flow stops working, the ticket must say what replaces it.
  (SHA-560 refused all writes under `.trash/`, which also removed the
  documented way to restore a deleted note.)
- **Can the speed target be met by the design the ticket requires?** Measure
  the parts the design can't avoid on current `main` before writing an
  absolute number. Prefer a target relative to `main` with the bench command
  that proves it. (SHA-553 required building the resolve maps once per call,
  which takes about 7.6 ms on the 10k fixture, and also asked for a p95 under
  2 ms.)
- **Will it fit in 400 lines?** List the files it touches, including every
  test fixture that builds a type the ticket changes. A new required field on
  `ServerContext` touches every test that constructs one. Over about 300
  lines, split the ticket now.
- **Does it need a locked path?** The factory can't edit `.github/`,
  `CLAUDE.md` files, `AGENTS.md`, `.claude/`, lint config or dependencies. Do
  those edits by hand first, or split them into a ticket without the label.
- **Does it depend on open work?** Add a Linear blocks relation and keep the
  dependent ticket out of Todo until the first one merges. Tickets that edit
  the same files need the relation too, or their PRs conflict.
- **Is every acceptance criterion checkable by a test or a command?**
- **Does it touch a file or guarantee the independent-review rule covers?** That is any write tool; `dispatch.ts`, including its read-only branches; `index/doc.ts` or `index/backlinks.ts`; `journal.ts`, `atomic-write.ts`, `audit.ts`, `policy.ts`, `vault-path.ts`, `symlinks.ts` or `watcher.ts`; or a guarantee in `SECURITY.md` or `docs/WRITE-SAFETY.md`. Then the PR needs an independent review before merge (`docs/QUALITY-GATES.md`, "Independent review of safety-critical PRs"). Say so in the ticket so the maintainer plans for it.

Fix the ticket for each check that fails. If a check needs a decision from
Shaq, ask before labelling.

## Don'ts

- No marketing figures from memory. Benchmark numbers come from
  `benchmarks.json` or the committed baseline reports.
- No implementation in this step. `/prd` ends at an approved PRD.

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.