بنقرة واحدة
speckit-brownfield-bootstrap
Generate spec-kit configuration tailored to the existing codebase
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate spec-kit configuration tailored to the existing codebase
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Incrementally adopt SDD for existing features with reverse-engineered specs
Auto-discover project structure, tech stack, frameworks, and architecture patterns
Verify bootstrap output matches actual project structure and conventions
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-bootstrap |
| description | Generate spec-kit configuration tailored to the existing codebase |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"brownfield:commands/speckit.brownfield.bootstrap.md"} |
Generate a customized spec-kit configuration for an existing codebase. Uses the project profile from /speckit.brownfield.scan (or performs a scan if none exists) to create a constitution, templates, and agent configuration that match the project's actual architecture, tech stack, and conventions.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user may specify preferences (e.g., "strict TDD", "minimal constitution"), a target directory for a monorepo module, or request specific template customizations.
.specify/ directory (run specify init first if missing)Load or generate project profile: Check if /speckit.brownfield.scan has been run:
Generate constitution: Create .specify/memory/constitution.md tailored to the project:
The constitution MUST include:
client/, backend in server/")The constitution MUST NOT:
Customize spec template: Modify .specify/templates/spec-template.md to reflect the project:
Customize plan template: Modify .specify/templates/plan-template.md to reflect the project:
Customize tasks template: Modify .specify/templates/tasks-template.md to reflect the project:
npm test, pytest, go test ./...)Generate AGENTS.md (if multi-module): For monorepos and multi-module projects:
Present changes: Show the user what will be created or modified:
# Bootstrap Plan
| File | Action | Description |
|------|--------|-------------|
| `.specify/memory/constitution.md` | Create | Project-specific constitution with detected conventions |
| `.specify/templates/spec-template.md` | Modify | Add project-specific sections (Database Migrations, API Contract) |
| `.specify/templates/plan-template.md` | Modify | Add module-aware phases (frontend, backend, shared) |
| `.specify/templates/tasks-template.md` | Modify | Add actual test commands and build steps |
| `AGENTS.md` | Create | Agent boundaries for frontend and backend modules |
Proceed with bootstrap? (confirm before writing)
Execute bootstrap: After user confirmation, write all files.
Report:
# Bootstrap Complete
| Artifact | Status |
|----------|--------|
| Constitution | ✅ Created — 12 rules from detected conventions |
| Spec template | ✅ Customized — added Database Migrations, API Contract sections |
| Plan template | ✅ Customized — frontend/backend phase split |
| Tasks template | ✅ Customized — actual test commands included |
| AGENTS.md | ✅ Created — 2 agents (frontend, backend) |
## Next Steps
- Review `.specify/memory/constitution.md` and adjust any rules
- Run `/speckit.brownfield.validate` to verify configuration matches project
- Run `/speckit.brownfield.migrate` to reverse-engineer specs for existing features
- Start new features with `/speckit.specify` — templates are now project-aware
.specify/ already has customizations, merge rather than replace