agentleFS
buildpad-aibuildpad-ai/skills/spec-driven-development/SKILL.md

spec-driven-development

Skill1 starsChanged 45 days agoMITView on GitHub

Spec-driven development (SDD) methodology for Buildpad DaaS apps. Use when starting a new project, feature, or significant change, or when requirements are unclear. Routes work through the spec workflow — requirements.md (EARS) → design.md → tasks.md in .kiro/specs/ — via the buildpad-spec-* skills, or Kiro's native specs when working in Kiro.

  • Reads credentials

126 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, accessibility-engineering and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 55 projects that use this

  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • LLl0k0laDSkill

    shipping-and-launch

    Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

    Also in 65 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 22 projects that use this

  • jaydubya818Skill

    observability-and-instrumentation

    Add or review logs, metrics, traces, and actionable alerts.

    Also in 45 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 54 projects that use this

  • +2 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 119 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .buildpad/project.json at the project root.

    line 13
  2. Very specific:

    If a folder named supabase at the project root holds a file named config.toml, or holds a folder named migrations that holds a file whose …

    line 18
  3. Distinctive:

    All non-trivial work follows spec-driven development: specifications are written and approved before code.

    line 41
  4. Very specific:

    Every feature lives in .kiro/specs/<feature-name>/ as three artifacts:

    line 43
  5. Distinctive:

    When writing specs for DaaS applications:

    line 76
  6. Distinctive:

    Workflow: If content lifecycle needed, spec workflow states and transitions

    line 83
  7. Distinctive:

    Scope: If multi-tenant, spec the scope hierarchy (on an Engine project the project is one tenant, and the hierarchy begins beneath its …

    line 84
  8. Distinctive:

    No explicit out-of-scope statement in requirements (everything in scope = nothing is)

    line 107
  9. Distinctive:

    Before moving from spec to implementation:

    line 112

“Common” is measured: kept by at least 6 in 10 of the 119 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec-Driven Development

<!-- backend-gate:begin v1 -->

Establish the backend first. A Buildpad project's backend is either the Buildpad Engine or Supabase, and some parts of this file hold for one of them only. Before you act on anything in this file, find the backend with these steps, in order, and stop at the first step that answers:

  1. Read .buildpad/project.json at the project root. If it is JSON and its field backend is "engine" or "supabase", that is the backend. If .buildpad/backend-answer.json names the other backend, tell the developer the two files disagree, and follow .buildpad/project.json.
  2. Otherwise read .buildpad/backend-answer.json in the same way; if its backend is "engine" or "supabase", that is the backend.
  3. If a folder named supabase at the project root holds a file named config.toml, or holds a folder named migrations that holds a file whose name ends in .sql, the backend is Supabase.
  4. Otherwise ask the developer once: "Is this project's backend the Buildpad Engine or Supabase?" Write the answer to .buildpad/backend-answer.json as {"buildpadBackendAnswer": 1, "backend": "engine"} or {"buildpadBackendAnswer": 1, "backend": "supabase"}, and ask the developer to commit that file. Do not add it to .gitignore. Never write .buildpad/project.json.

To find the backend, do not open an environment file (.env, .env.*) or an MCP configuration file, and do not call a tool that returns project credentials.

Then follow only the parts for that backend. A part starts at a line that holds only a comment whose text is buildpad + -backend: engine or buildpad + -backend: supabase, and ends at the next line that holds only a comment whose text is /buildpad + -backend. A comment that merely mentions a backend is not a part. A file whose first line, after any front matter, holds only a comment whose text is buildpad + -backend-file: engine (or supabase) holds for that backend only, and so does every file in a folder named engine-only or supabase-only. Skip the other backend's parts and copy no code from them; everything else holds for both. On an Engine project, when this file says that something is not available, tell the developer so and stop: do not build a substitute.

<!-- backend-gate:end -->

Overview

All non-trivial work follows spec-driven development: specifications are written and approved before code. A spec is a contract between intent and implementation — it prevents scope creep, aligns expectations, and gives reviewers something to verify against.

Every feature lives in .kiro/specs/<feature-name>/ as three artifacts:

ArtifactContentsProduced by
requirements.mdUser stories + acceptance criteria in EARS format/buildpad-spec-requirements
design.mdArchitecture, data model, file structure plan, diagrams/buildpad-spec-design
tasks.mdSmall, verifiable implementation tasks with dependencies/buildpad-spec-tasks

The same artifact format works in every IDE:

  • Kiro IDE — use Kiro's native specs feature (the Specs panel / requirements.md, design.md, tasks.md workflow). Do not use the buildpad-spec-* skills in Kiro; they are the same workflow for agents without native spec support.
  • Claude Code, GitHub Copilot, Antigravity, and other agents — use the bundled spec skills:
    1. /buildpad-discovery <idea> — when unsure whether the work is one spec, many specs, or no spec at all
    2. /buildpad-spec-init <description> — initialize the spec structure
    3. /buildpad-spec-requirements <feature> — generate requirements (review gate)
    4. /buildpad-spec-design <feature> — generate design (review gate)
    5. /buildpad-spec-tasks <feature> — generate tasks (review gate)
    6. /buildpad-impl <feature> — implement task-by-task with TDD and review
    7. /buildpad-spec-status <feature> — check progress at any time

Each stage has a human review gate: requirements are approved before design, design before tasks, tasks before implementation. Fast path for a single small spec: /buildpad-spec-quick <description>.

When to Use

  • Starting a new project or feature
  • Requirements are complex or ambiguous
  • Multiple people (or agents) will work on the implementation
  • The change is significant enough that "just build it" risks wasted effort

When NOT to use: Single-file bug fixes, small refactors, or changes where the spec would be longer than the code.

DaaS-Specific Considerations

When writing specs for DaaS applications:

  • Data model (design.md): Use DaaS collection/field schema, not raw SQL design; include standard fields (audit, workflow, scope) per decision tree
  • Check DaaS built-in features first: Does the platform already provide this? (audit trail, workflow, versioning, RBAC, scoping, cron, import/export) — never spec a rebuild of a built-in
  • API (design.md): DaaS provides CRUD automatically — spec only custom endpoints
  • UI (design.md): Name the Buildpad components to use (Buildpad-First rule)
  • Permissions: Spec the RBAC model (roles, policies, access entries)
  • Workflow: If content lifecycle needed, spec workflow states and transitions
  • Scope: If multi-tenant, spec the scope hierarchy (on an Engine project the project is one tenant, and the hierarchy begins beneath its tenant node: no scope type or item without a parent)
  • Testing (tasks.md): API tests, page tests, and E2E tests are tasks, not afterthoughts
<!-- buildpad-backend: engine -->

On an Engine project with Customer_Tenants each customer of the application is a tenant of its own, and the project's tenant is the Blueprint every customer is copied from. Establish the tenancy mode as the add-multitenancy skill says: from the field tenancy of .buildpad/project.json, else from .buildpad/tenancy-answer.json. In the mode customer-tenants that skill's guide engine-customer-tenants replaces what ES-3, ES-4, ES-5, ES-7 and ES-9 say about the project's tenant; in the mode scope they hold as written.

In the mode customer-tenants a plan says, for each thing it adds, whether it is per customer (rows, people, role assignments, settings, files, scope nodes and scope types) or shared through the Blueprint (collections, fields, relations, roles, policies, permissions, workflows, cron jobs, hooks, custom services, module access keys), and says, for each shared change, that it reaches only the customers created after it: Releases are not available yet.

<!-- /buildpad-backend -->

Common Rationalizations

RationalizationReality
"The feature is simple, no spec needed"Simple features with unclear requirements become complex features with bugs.
"I'll figure it out as I go"You'll figure out the wrong thing and refactor twice.
"The spec will slow us down"The spec prevents the rework that actually slows you down.
"Requirements will change anyway"Specs can change too — update the artifacts, then the code. The value is in the thinking process, not the document.

Red Flags

  • Starting implementation without an approved requirements.md and design.md
  • Requirements that only cover the happy path (no error cases, edge cases)
  • tasks.md with no testing tasks
  • No explicit out-of-scope statement in requirements (everything in scope = nothing is)
  • Code that drifts from design.md without the design being updated

Verification

Before moving from spec to implementation:

  • requirements.md: objectives clear, acceptance criteria in EARS format, out of scope explicit
  • design.md: data model, API surface, file structure plan, Buildpad components named
  • DaaS built-in features are leveraged (not rebuilt)
  • tasks.md: small verifiable tasks, dependencies annotated, tests included
  • The user/stakeholder has approved each artifact at its review gate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.