ワンクリックで
speckit-brownfield-validate
Verify bootstrap output matches actual project structure and conventions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Verify bootstrap output matches actual project structure and conventions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate spec-kit configuration tailored to the existing codebase
Incrementally adopt SDD for existing features with reverse-engineered specs
Auto-discover project structure, tech stack, frameworks, and architecture patterns
Use for all development work on plugins built with WPBoilerplate/wordpress-plugin-boilerplate: hooks via the Loader singleton, PSR-4 namespace layout, security baseline (nonces/capabilities/escaping), settings API, REST endpoints, lifecycle, i18n, multisite, performance, and the @wordpress/scripts build pipeline.
Use when implementing custom database tables in WordPress plugins with berlindb/core. Covers Schema/Table/Row/Query class wiring, the allow_null gotcha, upsert return-value handling, JSON column encoding, tri-state tinyint columns, and all failure modes discovered in production use.
Audit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces a markdown doc with a YAML schema and prose sections that humans and agents can both consume when planning a registration rollout. Works on any WP plugin.
| name | speckit-brownfield-validate |
| description | Verify bootstrap output matches actual project structure and conventions |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"brownfield:commands/speckit.brownfield.validate.md"} |
Verify that the spec-kit configuration generated by /speckit.brownfield.bootstrap accurately reflects the actual project structure, conventions, and architecture. Reports mismatches and suggests corrections.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user may specify a focus area (e.g., "only constitution", "only templates") or request verbose output.
.specify/ directoryValidate constitution: Check .specify/memory/constitution.md against the actual codebase:
| Check | How |
|---|---|
| Language references | Verify mentioned languages actually exist in the codebase |
| Directory references | Verify all referenced paths (client/, server/, etc.) exist |
| Framework references | Verify mentioned frameworks are in dependency files |
| Naming conventions | Sample 20 files and check if naming rules match reality |
| Test location | Verify test directories mentioned in constitution exist |
| Branch pattern | Check if branch naming rules match actual branches in git branch -a |
Validate templates: Check customized spec/plan/tasks templates:
| Check | How |
|---|---|
| Module references | Verify template sections reference actual modules/directories |
| Test commands | Verify test commands in tasks template actually work |
| Build commands | Verify build commands reference real scripts from package files |
| Section relevance | Flag template sections that reference non-existent project aspects |
Validate AGENTS.md (if exists): Check agent configuration:
| Check | How |
|---|---|
| Directory ownership | Verify each agent's directories exist |
| No overlaps | Check that no directory is owned by multiple agents |
| No orphans | Check that all source directories are covered by at least one agent |
Detect drift: Check if the project has changed since bootstrap:
Output validation report:
# Validation Report
## Constitution
| Rule | Status | Detail |
|------|--------|--------|
| Primary language: TypeScript | ✅ Pass | 68% of source files |
| Frontend in `client/` | ✅ Pass | Directory exists, contains React code |
| Backend in `server/` | ✅ Pass | Directory exists, contains FastAPI code |
| Test location: `__tests__/` | ⚠️ Drift | Also found tests in `tests/` (not mentioned) |
| Branch pattern: `feat/*` | ✅ Pass | 8/10 recent branches match |
## Templates
| Template | Status | Detail |
|----------|--------|--------|
| Spec template | ✅ Pass | All custom sections map to real project aspects |
| Plan template | ⚠️ Drift | References `shared/` module — directory renamed to `common/` |
| Tasks template | ✅ Pass | Test commands verified |
## Summary
- **Checks passed**: 9/11
- **Drift detected**: 2 items
- **Action needed**: Update plan template (`shared/` → `common/`), add `tests/` to constitution