AGENT SKILL

bubbles-spec-template-bdd

Enforce spec.md adherence to .specify/templates/spec-template.md with Gherkin-style BDD scenarios and tech-agnostic requirements.

License 许可
MIT
最近更新
2026-11-07
Stars
★ 1
Forks
0

01 前言 Front Matter

name
bubbles-spec-template-bdd
description
Enforce spec.md adherence to .specify/templates/spec-template.md with Gherkin-style BDD scenarios and tech-agnostic requirements.

03 SKILL.md 正文

Bubbles Spec Template BDD Compliance

Purpose

Ensure spec.md follows the repository spec template and captures behavior using Gherkin-style BDD scenarios without implementation details.

When to Use

  • Creating spec.md from scratch
  • Filling or validating spec.md content against the template
  • Converting free-form requirements into template-compliant BDD scenarios

Required Format

  • Use .specify/templates/spec-template.md as the single source of structure and headings.
  • Preserve section order and headings exactly.
  • Replace all placeholders with concrete content.
  • Remove unused template sections only when explicitly allowed by the template.
  • The Outcome Contract section (Intent, Success Signal, Hard Constraints, Failure Condition) is MANDATORY and must be filled with concrete, testable content — not placeholders.

BDD Rules (Gherkin Style)

  • Write acceptance scenarios using explicit Given, When, Then phrasing.
  • Each scenario describes system behavior, not implementation.
  • Keep scenarios independent and testable.
  • Avoid long chained steps.
  • When the spec will enter Bubbles workflow execution, ensure each accepted scenario can later receive a stable SCN-* contract entry in scenario-manifest.json.

Tech-Agnostic Rules

  • Do not mention languages, frameworks, databases, services, or tools.
  • Describe observable behavior, user outcomes, and data effects only.
  • Avoid operational or deployment details in requirements.

Quality Checklist

  • All user scenarios include Given, When, Then steps.
  • Edge cases are concrete and behavior-focused.
  • Functional requirements are testable and implementation-free.
  • Success criteria are measurable and technology-agnostic.
  • Outcome Contract has concrete Intent, Success Signal, Hard Constraints, and Failure Condition.
  • Scenario names are stable enough to support later scenario-manifest.json mapping and protected regression coverage.

References

  • .specify/templates/spec-template.md
  • .github/copilot-instructions.md
  • .github/agents/bubbles_shared/feature-templates.md
  • docs/guides/CONTROL_PLANE_SCHEMAS.md

04 同仓库更多 Skills

pkirsanov
pkirsanov/smackerel

smackerel-trace-capture

Wire Smackerel's concrete validate-plane stack into the framework trace-driven defect-discovery method. Use when running live-category tests (integration/e2e/e2e-ui/stress) against the ephemeral test stack; capturing SLO or trace evidence; hunting latency/error/perf bugs from spans; querying the test-stack Jaeger or Prometheus; or touching `.specify/runtime/observability`. Concrete smackerel endpoints + the exact `capture-slo.sh` command; do NOT duplicate `bubbles-observability-adapter` — this only adds the wiring.

★ 1
pkirsanov
pkirsanov/smackerel

smackerel-no-defaults

Enforce Smackerel's NO-DEFAULTS / fail-loud SST policy. Use when editing config, Docker Compose, deploy adapters, docs, instructions, skills, env handling, host bind addresses, or any runtime value that could be hidden by fallback syntax.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-workflow-mode-resolution

Resolve a Bubbles workflow mode against `bubbles/workflows.yaml`, including template inheritance, status ceilings, gate wiring, and decision policy. Use when picking a mode for a request, when a guard reports a mode-related failure, or when extending workflows.yaml with a new mode or template. Covers natural-language intent routing and the workflow registry consistency rules.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-workflow-execution-loops

Run per-round synchronous workflow execution loops correctly. Use when orchestrating a multi-round workflow, dispatching specialist subagents, handling round-based remediation, or interpreting a workflow mode's execution policy. Covers authorized direct execution, dispatch-and-wait, batch-then-summarize prohibition, and mapped-mode execution.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-vscode-agent-constraints

Design agents that fit the VS Code Copilot Chat runtime instead of fighting it. Use when authoring or editing any `*.agent.md`; when adding `tools:`, `agents:`, `handoffs:`, `model:`, `user-invocable:`, or `disable-model-invocation:` frontmatter; when designing an orchestrator that dispatches specialists; when a design implies agent-calls-agent-calls-agent chaining; when a subagent dispatch silently no-ops or an agent cannot be selected in the dropdown; or when writing a governance rule about delegation that the runtime cannot actually enforce. Prevents multi-level-subagent designs, prose-only dispatch laws, and frontmatter/body contradictions.

★ 1
pkirsanov
pkirsanov/smackerel

bubbles-upkeep-cadence

How to schedule, dispatch, and record recurring operational upkeep tasks (backup, restore-drill, BCDR-drill, patch-cycle, secret-rotation, flag-cleanup, compliance-sweep). Use when authoring or modifying `config/upkeep-calendar.yaml`, when investigating a missed task, when reading the upkeep ledger, or when adding a new task type.

★ 1