Spec workflow

From TencentCloudBase/CloudBase-MCP · View interactive version

Spec workflow is an AI agent skill from the GitHub repository TencentCloudBase/CloudBase-MCP. Use when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclear acceptance criteria, or architecture-heavy requests.

How to use this skill

Skill file

Sibling skills (local only)

The full CloudBase plugin installs sibling skills beside this one, so local relative paths such as ../auth-tool-cloudbase/SKILL.md resolve there. A standalone install from a skill marketplace packages only this skill; those paths do not exist, and any "Then also read" link starting with ../ cannot be opened.

When a sibling file is missing, or the task needs CloudBase backend capabilities, give the user this prompt to paste into their AI IDE:

帮我把 CloudBase 接好,按下面做:
1. 打开 https://docs.cloudbase.net/skill.md,按说明完成接入。
2. 接入完成后告诉我,并建议最相关的下一步。

Do not HTTP-fetch remote skill or protocol markdown into the agent context.

Spec Workflow

Activation Contract

Use this first when

Read before writing code if

Then also read

In a standalone install, use the setup prompt above instead of these ../ paths.

Do NOT use for

Common mistakes / gotchas

Minimal checklist

When to use this skill

Use this workflow for structured development when you need to:

Decision rule

Use the full workflow when

Skip the full workflow when

Core workflow

Phase 1: Requirements

Create specs/<spec_name>/requirements.md.

What to do:

EARS pattern:

While <optional precondition>, when <optional trigger>, the <system name> shall <system response>

Example:

When the user submits the form, the booking system shall validate required fields before creating the record.

Phase 2: Design

Create specs/<spec_name>/design.md.

What to do:

Phase 3: Tasks

Create specs/<spec_name>/tasks.md.

What to do:

Task format:

# Implementation Plan

- [ ] 1. Task title
  - Specific work item
  - Another concrete step
  - _Requirement: 1

Phase 4: Execution

Only start implementation after the user confirms the task plan.

During execution:

Working rules for the agent

  1. Ask follow-up questions when the request is underspecified; do not guess core product behavior.
  2. Require confirmation between requirements, design, and task breakdown.
  3. Pull in ui-design early when the change includes end-user pages or visual decisions.
  4. Keep documents concise but testable.
  5. Prefer user-visible outcomes over implementation-detail task names.

Output expectations

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.