Skip to content

Commit d7b5e00

Browse files
author
AI Developer
committed
fix: remove BDD references and DEVELOPMENT_WORKFLOW.md
- Remove DEVELOPMENT_WORKFLOW.md from template - Rename tdd-bdd skill to tdd (TDD with descriptive naming) - Remove BDD/Gherkin references, keep test naming conventions - Remove docs/gen_pages.py feature file generator - Update all references in AGENTS.md, README.md, and skills
1 parent 202fe0d commit d7b5e00

File tree

13 files changed

+33
-377
lines changed

13 files changed

+33
-377
lines changed

.opencode/skills/template-test/SKILL.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ test -d "${project_dir}/.opencode/skills"
6666
test -f "${project_dir}/pyproject.toml"
6767
test -f "${project_dir}/README.md"
6868
test -f "${project_dir}/AGENTS.md"
69-
test -f "${project_dir}/DEVELOPMENT_WORKFLOW.md"
7069
```
7170

7271
### File Content Validation
@@ -212,7 +211,6 @@ validate_project() {
212211
test -f "pyproject.toml" || { echo "❌ Missing pyproject.toml"; return 1; }
213212
test -f "README.md" || { echo "❌ Missing README.md"; return 1; }
214213
test -f "AGENTS.md" || { echo "❌ Missing AGENTS.md"; return 1; }
215-
test -f "DEVELOPMENT_WORKFLOW.md" || { echo "❌ Missing DEVELOPMENT_WORKFLOW.md"; return 1; }
216214

217215
# Check for unsubstituted variables
218216
if grep -r "{{cookiecutter" . --exclude-dir=venv 2>/dev/null; then

AGENTS.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is the meta repository for the AI-Enhanced Python Project Cookiecutter Temp
77
| Information | Details |
88
|-------------|---------|
99
| **Purpose** | Create AI-enhanced Python projects with comprehensive development workflows |
10-
| **AI Integration** | OpenCode agents and skills for TDD/BDD development |
10+
| **AI Integration** | OpenCode agents and skills for TDD development |
1111
| **Quality Standards** | SOLID principles, object calisthenics, 100% coverage |
1212
| **Versioning** | Hybrid major.minor.calver for generated projects |
1313
| **Architecture** | Test-driven development with architect approval workflow |
@@ -37,15 +37,14 @@ python-project-template/
3737
│ │ └── skills/
3838
│ │ ├── feature-definition/ # SOLID feature planning
3939
│ │ ├── prototype-script/ # Quick validation scripts
40-
│ │ ├── tdd-bdd/ # Test-driven development
40+
│ │ ├── tdd/ # Test-driven development
4141
│ │ ├── signature-design/ # Interface design
4242
│ │ ├── implementation/ # TDD implementation
4343
│ │ ├── code-quality/ # Quality enforcement
4444
│ │ ├── git-release/ # Release management
4545
│ │ └── pr-management/ # Pull request workflows
4646
│ ├── pyproject.toml # Project configuration
47-
│ ├── AGENTS.md # Generated project AI documentation
48-
│ └── DEVELOPMENT_WORKFLOW.md # 7-phase development guide
47+
│ └── AGENTS.md # Generated project AI documentation
4948
├── .opencode/ # Meta agents for template itself
5049
│ ├── agents/template-manager.md # This meta agent
5150
│ └── skills/
@@ -61,7 +60,7 @@ When developers use this template, they get:
6160
### AI-Powered Development Workflow
6261
1. **Feature Definition** → SOLID principles planning
6362
2. **Prototype Validation** → Quick scripts with real data
64-
3. **Test-Driven Development**BDD tests with pytest/hypothesis
63+
3. **Test-Driven Development**TDD tests with pytest/hypothesis
6564
4. **Signature Design** → Modern Python interfaces
6665
5. **Architecture Review** → AI architect approval
6766
6. **Implementation** → TDD methodology
@@ -126,7 +125,7 @@ cookiecutter gh:your-username/python-project-template --checkout v1.2.20260312r1
126125
- **@repo-manager**: Git operations, PRs, and themed releases
127126

128127
### Skills Included in Generated Projects
129-
- **feature-definition**, **prototype-script**, **tdd-bdd**
128+
- **feature-definition**, **prototype-script**, **tdd**
130129
- **signature-design**, **implementation**, **code-quality**
131130
- **git-release**, **pr-management**
132131
- **create-skill**, **create-agent**
@@ -136,7 +135,7 @@ cookiecutter gh:your-username/python-project-template --checkout v1.2.20260312r1
136135
# In a generated project
137136
@developer /skill feature-definition # Define new feature
138137
@developer /skill prototype-script # Create prototype
139-
@developer /skill tdd-bdd # Write tests
138+
@developer /skill tdd # Write tests
140139
@architect # Get design approval
141140
@developer /skill implementation # Implement feature
142141
@repo-manager /skill pr-management # Create PR

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ All notable changes to this template will be documented in this file.
66

77
### Added
88
- **AI-Enhanced Development Workflow** - Complete OpenCode integration for AI-powered development
9-
- **Developer Agent** - Main development agent with 7-phase TDD/BDD workflow
9+
- **Developer Agent** - Main development agent with 7-phase TDD workflow
1010
- **Architect Agent** - Design review agent for SOLID principles and object calisthenics compliance
1111
- **Repository Manager Agent** - Git operations, PRs, and themed releases management
12-
- **Development Skills** - feature-definition, prototype-script, tdd-bdd, signature-design, implementation, code-quality
12+
- **Development Skills** - feature-definition, prototype-script, tdd, signature-design, implementation, code-quality
1313
- **Repository Skills** - git-release (hybrid calver versioning with themed releases), pr-management
1414
- **Meta Skills** - create-skill, create-agent for extending OpenCode
1515
- **Template Management** - template-manager agent, template-test, template-release skills

scripts/check_files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"pyproject.toml",
99
"README.md",
1010
"AGENTS.md",
11-
"DEVELOPMENT_WORKFLOW.md",
1211
".opencode/agents/developer.md",
1312
".opencode/agents/architect.md",
1413
".opencode/agents/repo-manager.md",

scripts/template_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ validate_project() {
9292

9393
# Structure validation
9494
local required_dirs=(".opencode" ".opencode/agents" ".opencode/skills" "tests" "docs")
95-
local required_files=("pyproject.toml" "README.md" "AGENTS.md" "DEVELOPMENT_WORKFLOW.md")
95+
local required_files=("pyproject.toml" "README.md" "AGENTS.md")
9696

9797
for dir in "${required_dirs[@]}"; do
9898
if [ ! -d "$dir" ]; then

{{cookiecutter.project_slug}}/.opencode/agents/developer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You are a specialized developer agent for the {{cookiecutter.project_name}} proj
4747
- `task static-check` - Run pyright type checker
4848
- `task doc-serve` - Serve documentation locally
4949

50-
## Development Workflow (TDD/BDD with Architecture Review)
50+
## Development Workflow (TDD with Architecture Review)
5151

5252
### Phase 1: Feature Definition
5353
1. Use `/skill feature-definition` to define requirements and acceptance criteria
@@ -61,8 +61,8 @@ You are a specialized developer agent for the {{cookiecutter.project_name}} proj
6161
4. Save prototype results for use in implementation
6262

6363
### Phase 3: Test-Driven Development
64-
1. Use `/skill tdd-bdd` to create comprehensive test suite
65-
2. Write tests using BDD naming conventions and real prototype data
64+
1. Use `/skill tdd` to create comprehensive test suite
65+
2. Write tests using descriptive naming conventions and real prototype data
6666
3. Include unit, integration, and property-based tests with Hypothesis
6767
4. Ensure tests fail initially (RED phase)
6868

@@ -94,7 +94,7 @@ You are a specialized developer agent for the {{cookiecutter.project_name}} proj
9494
## Available Skills
9595
- **feature-definition**: Define features with SOLID principles
9696
- **prototype-script**: Create validation scripts for real data
97-
- **tdd-bdd**: Write tests using BDD naming with pytest
97+
- **tdd**: Write tests using descriptive naming with pytest
9898
- **signature-design**: Design modern Python interfaces
9999
- **implementation**: Implement using TDD methodology
100100
- **code-quality**: Enforce quality with ruff/coverage/hypothesis

{{cookiecutter.project_slug}}/.opencode/skills/feature-definition/SKILL.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ Use this at the start of any new feature development to establish clear requirem
2525
- **Non-functional Requirements**: Performance, security, usability
2626
- **Constraints**: Technical or business limitations
2727

28-
### 3. Acceptance Criteria (BDD Style)
29-
```gherkin
30-
Given [initial context]
31-
When [action is performed]
32-
Then [expected outcome]
28+
### 3. Acceptance Criteria
29+
Define clear test scenarios using the naming convention:
30+
```
31+
test_when_[condition]_should_[expected_outcome]
3332
```
3433

3534
### 4. Technical Specifications

{{cookiecutter.project_slug}}/.opencode/skills/pr-management/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ gh run view $(gh pr view 123 --json headRefOid --jq .headRefOid)
309309
# 1. Start feature development
310310
/skill feature-definition # Define requirements
311311
/skill prototype-script # Create prototype
312-
/skill tdd-bdd # Write tests
312+
/skill tdd # Write tests
313313

314314
# 2. Create PR for design review
315315
git checkout -b feature/user-auth
@@ -406,7 +406,7 @@ gh pr list --label "bug" --json number | \
406406
### Testing
407407
- [ ] Adequate test coverage
408408
- [ ] Tests are meaningful
409-
- [ ] BDD naming conventions used
409+
- [ ] Test naming conventions followed
410410
- [ ] Property-based tests where appropriate
411411

412412
### Documentation

{{cookiecutter.project_slug}}/.opencode/skills/tdd-bdd/SKILL.md renamed to {{cookiecutter.project_slug}}/.opencode/skills/tdd/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
name: tdd-bdd
3-
description: Implement Test-Driven Development with BDD-style naming and pytest best practices
2+
name: tdd
3+
description: Implement Test-Driven Development with descriptive naming conventions and pytest best practices
44
license: MIT
55
compatibility: opencode
66
metadata:
77
audience: developers
88
workflow: feature-development
99
---
1010
## What I do
11-
Guide the creation of tests using TDD methodology with BDD-style naming conventions, using pytest, coverage, and hypothesis for robust testing.
11+
Guide the creation of tests using TDD methodology with descriptive naming conventions, using pytest, coverage, and hypothesis for robust testing.
1212

1313
## When to use me
1414
Use this after prototype validation to create comprehensive tests before implementing the actual feature code.
1515

16-
## TDD-BDD Process
16+
## TDD Process
1717

18-
### 1. BDD Test Naming Convention
18+
### 1. Test Naming Convention
1919
```python
2020
def test_when_[condition]_should_[expected_outcome]():
2121
"""Test that describes behavior clearly."""
@@ -243,7 +243,7 @@ class TestAuthService:
243243
```python
244244
"""
245245
Tests for user authentication feature.
246-
Following TDD-BDD approach with real prototype data.
246+
Following TDD approach with real prototype data.
247247
"""
248248
import pytest
249249
import json

{{cookiecutter.project_slug}}/AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This project includes custom skills for OpenCode:
2424
### Development Workflow
2525
- **feature-definition**: Define features with SOLID principles and clear requirements
2626
- **prototype-script**: Create quick validation scripts with real data capture
27-
- **tdd-bdd**: Write comprehensive tests using BDD naming with pytest/hypothesis
27+
- **tdd**: Write comprehensive tests using TDD with pytest/hypothesis
2828
- **signature-design**: Design modern Python interfaces with protocols and type hints
2929
- **implementation**: Implement using TDD methodology with real prototype data
3030
- **code-quality**: Enforce quality with ruff, coverage, and hypothesis testing
@@ -39,7 +39,7 @@ This project includes custom skills for OpenCode:
3939

4040
## Available Agents
4141

42-
- **developer**: Main development agent with complete 7-phase TDD/BDD workflow
42+
- **developer**: Main development agent with complete 7-phase TDD workflow
4343
- **architect**: Design review and approval agent for SOLID/object calisthenics compliance
4444
- **repo-manager**: Repository management for Git operations, PRs, commits, and releases
4545

@@ -126,7 +126,7 @@ Then run `/init` to generate a fresh `AGENTS.md` based on your project's current
126126
# 1. Define and implement a feature
127127
@developer /skill feature-definition
128128
@developer /skill prototype-script
129-
@developer /skill tdd-bdd
129+
@developer /skill tdd
130130
@developer /skill signature-design
131131
@architect # Review design
132132
@developer /skill implementation

0 commit comments

Comments
 (0)