Skip to content
Back to skills

Sdd Brief

ASecurity

Research a bug, code-scanning alert, Jira/GitHub issue, or ledger issue to a root cause and provision a worktree holding an actionable brief — no FEAT/TASK ids; replaces sdd-spec --type hotfix.

  • 34 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsgorailsgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add phenobarbital/ai-parrot --skill sdd-brief --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sdd Brief?

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

Security grade badge for Sdd Brief
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/phenobarbital-sdd-brief/badge)](https://www.skillsdirectory.com/skills/phenobarbital-sdd-brief)

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: sdd-brief
description: Research a bug, code-scanning alert, Jira/GitHub issue, or ledger issue to a root cause and provision a worktree holding an actionable brief — no FEAT/TASK ids; replaces sdd-spec --type hotfix.
---

# SDD Brief

## Full procedure and host adaptations

Before executing, read the [full sdd-brief procedure](../../../.claude/commands/sdd-brief.md)
and your host's adaptation contract: the [Codex adaptation contract](../../../docs/sdd/CODEX.md#codex-adaptation-contract)
on Codex, or the [Antigravity adaptation contract](../../../docs/sdd/AGY.md#antigravity-adaptation-contract) on Google Antigravity (`agy`).
The full procedure holds the detail omitted here; the adaptation contract
overrides Claude runtime syntax. Retain every gate below.

Codex invocation: `$sdd-brief <source> [--base-branch <branch>] [--no-interview] [--split] [--research full|light]`.

## Purpose

Turn one bug, alert, or ledger issue into a worktree holding an actionable
brief — research first, a short Q&A, no FEAT/TASK id reservation.

## Guardrails

- Write committed artifacts only inside the provisioned worktree. The git-ignored draft staging directory in step 8 is the sole exception under the main checkout's `sdd/`.
- Provision the worktree only through `parrot sdd worktree ensure`.
- Brief task IDs are local `HOTFIX-<KEY>-<N>` IDs; never allocate global IDs.
- Never push to or merge into the `hotfix_base` branch (`main` by default); never check out a base branch in the main checkout.

## Procedure

1. **Parse** `<source>` and flags. `--base-branch` accepts only a long-lived branch configured in `sdd/config.json` (`hotfix_base`, `base_branch`, and `staging_branch` when it is set; `main` and `dev` by default); `--research` accepts `full|light`. If questions cannot be asked, act as `--no-interview`.
2. **Detect and fetch** the source: `cs:<n>` code-scanning alert (`gh api repos/{owner}/{repo}/code-scanning/alerts/<n>`; refuse when `dismissed` or `fixed`), GitHub issue/PR (`gh issue view` / `gh pr view`), Jira key (`jiratoolkit`), ledger (`wikitoolkit ledger show <id>`, `wikitoolkit ledger plan-fix --json`), free text, or a local file.
3. **Resolve base and identity.** Ledger sources base on the configured `base_branch`; if `--base-branch <hotfix_base>` was supplied stop with: `⚠️  Ledger-sourced briefs always base on the configured base_branch; --base-branch <hotfix_base> is refused.` Other sources default to the `hotfix_base` in `sdd/config.json`. `KEY` is the Jira key, the ledger short id, or the slug.
4. **Claim a ledger source** with `wikitoolkit ledger claim <id> --actor agent:sdd-brief`; release any abort before step 8 with `wikitoolkit ledger unclaim <id> --reason "<why>" --actor agent:sdd-brief`, printing the recovery command if release fails.
5. **Research wiki-first**: `wikitoolkit symbols lookup`, `symbols blast`, `wikitoolkit query`, and `wikitoolkit ledger context <files>`. `--research light` may bound breadth, never the floor.
6. **Research floor.** Before any worktree exists, STOP unless the draft has the fetched source, a root-cause statement, and at least one verified `path:line` anchor (`test -e <path> && sed -n '<line>p' <path>`). Release any ledger claim and report what is missing.
7. **Bounded Q&A**: at most five questions in one batch, only for decisions research could not settle; under `--no-interview` record them in `## Assumptions`.
8. **Stage the draft** under `sdd/state/.brief/<slug>-<RUN_ID>/` (git-ignored).
9. **Provision**: `parrot sdd worktree ensure --json --slug <slug> --brief-key <KEY> --base-branch <base>`; capture `<wt>`.
10. **Write artifacts inside `<wt>`**: `sdd/briefs/<slug>.brief.md` from `sdd/templates/brief.md` (with `ledger_issue` for ledger sources), task files `sdd/briefs/<slug>/tasks/HOTFIX-<KEY>-<N>-<task-slug>.md`, the per-brief index via `parrot sdd brief write-index <brief.md> --tasks <tasks.json> --worktree-root <wt>`, then `parrot sdd task graph <wt>/sdd/briefs/<slug>.index.json`.
11. **Commit and push from `<wt>`**: stage only the brief, tasks and index; commit `sdd: add brief for <KEY> — <slug>`; `git -C <wt> push -u origin <branch>`.
12. **Hand off**: report worktree, brief path, task IDs; offer manual implementation, open `<wt>` in Codex and ask: "Use the sdd-worker agent to implement <KEY>.", or (sandboxed Claude) run `parrot sdd launch worker <KEY>`. Finish with `$sdd-done <KEY>`. Do not launch the Claude CLI from the source procedure.

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.