Openspec verify change

From TencentBlueKing/bk-bcs · View interactive version

Openspec verify change is an AI agent skill from the GitHub repository TencentBlueKing/bk-bcs. Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.

How to use this skill

Skill file

Verify that an implementation matches the change artifacts (specs, tasks, design).

Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

Steps

  1. If no change name provided, prompt for selection

Run openspec list --json to get available changes. Use the AskUserQuestion tool to let the user select.

Show changes that have implementation tasks (tasks artifact exists).

Include the schema used for each change if available.

Mark changes with incomplete tasks as "(In Progress)".

IMPORTANT: Do NOT guess or auto-select a change. Always let the user choose.

  1. Check status to understand the schema

```bash

openspec status --change "<name>" --json

```

Parse the JSON to understand:

  1. Get the change directory and load artifacts

```bash

openspec instructions apply --change "<name>" --json

```

This returns the change directory and context files. Read all available artifacts from contextFiles.

  1. Initialize verification report structure

Create a report structure with three dimensions:

Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.

  1. Verify Completeness

Task Completion:

Spec Coverage:

  1. Verify Correctness

Requirement Implementation Mapping:

Scenario Coverage:

  1. Verify Coherence

Design Adherence:

Code Pattern Consistency:

  1. Generate Verification Report

Summary Scorecard:

```

## Verification Report: <change-name>

### Summary

| Dimension | Status |

|--------------|------------------|

| Completeness | X/Y tasks, N reqs|

| Correctness | M/N reqs covered |

| Coherence | Followed/Issues |

```

Issues by Priority:

1. CRITICAL (Must fix before archive):

2. WARNING (Should fix):

3. SUGGESTION (Nice to fix):

Final Assessment:

Verification Heuristics

Graceful Degradation

Output Format

Use clear markdown with:

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.