File tree Expand file tree Collapse file tree 8 files changed +183
-0
lines changed
Expand file tree Collapse file tree 8 files changed +183
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Thumbs.db
1515.env.*
1616*.md
1717!README.md
18+ !README.txt
1819!CHANGELOG.md
1920package.json
2021package-lock.json
Original file line number Diff line number Diff line change 1+ # GitHub Configuration
2+
3+ This directory contains GitHub-specific configuration files for the {{theme_name}} theme.
4+
5+ ## Contents
6+
7+ - ** agents/** - AI agent configurations for automated development tasks
8+ - ** chatmodes/** - Custom chat mode configurations for AI assistants
9+ - ** instructions/** - Development instructions and guidelines for AI tools
10+ - ** prompts/** - Reusable prompt templates for AI-assisted development
11+ - ** workflows/** - GitHub Actions CI/CD workflow definitions
12+
13+ ## Purpose
14+
15+ These files enable:
16+
17+ - Automated build and test workflows
18+ - AI-assisted development with context-specific instructions
19+ - Consistent code review and quality checks
20+ - Automated release and deployment processes
21+
22+ ## Usage
23+
24+ These files are automatically used by GitHub Actions and compatible AI development tools. They are excluded from theme distribution packages via ` .distignore ` .
Original file line number Diff line number Diff line change 1+ # AI Agents
2+
3+ This directory contains AI agent configurations for automated development tasks.
4+
5+ ## Files
6+
7+ - ** agent.md** - General agent configuration and guidelines
8+ - ** agent-script.js** - Agent automation scripts
9+ - ** block-theme-build.agent.js** - Build automation agent script
10+ - ** block-theme-build.agent.md** - Build agent documentation
11+
12+ ## Purpose
13+
14+ These agents help automate:
15+
16+ - Build process optimization
17+ - Code quality checks
18+ - Documentation generation
19+ - Test automation
20+
21+ ## Usage
22+
23+ Agents are invoked automatically by compatible AI development tools and GitHub Actions workflows.
Original file line number Diff line number Diff line change 1+ # Chat Modes
2+
3+ This directory contains custom chat mode configurations for AI assistants.
4+
5+ ## Files
6+
7+ - ** chatmodes.md** - Chat mode definitions and usage guidelines
8+
9+ ## Purpose
10+
11+ Chat modes provide context-specific AI assistance for:
12+
13+ - Theme development
14+ - Block pattern creation
15+ - WordPress coding standards
16+ - Troubleshooting and debugging
17+
18+ ## Usage
19+
20+ Chat modes are automatically recognized by compatible AI development tools and provide specialized assistance based on the development context.
Original file line number Diff line number Diff line change 1+ # Development Instructions
2+
3+ This directory contains detailed instructions and guidelines for AI-assisted development.
4+
5+ ## Files
6+
7+ - ** index.md** - Instructions directory index
8+ - ** block-theme.instructions.md** - Block theme development guidelines
9+ - ** php-wordpress.instructions.md** - WordPress PHP coding standards
10+ - ** playwright-tests.instructions.md** - E2E testing guidelines
11+ - ** testing.instructions.md** - General testing guidelines
12+ - ** theme-json.instructions.md** - theme.json configuration guidelines
13+
14+ ## Purpose
15+
16+ These instructions help AI tools understand:
17+
18+ - WordPress theme development best practices
19+ - Coding standards and conventions
20+ - Testing requirements and patterns
21+ - Configuration file structures
22+
23+ ## Usage
24+
25+ Instructions are automatically loaded by AI development tools to provide context-aware assistance throughout the development process.
Original file line number Diff line number Diff line change 1+ # AI Prompts
2+
3+ This directory contains reusable prompt templates for AI-assisted development.
4+
5+ ## Files
6+
7+ - ** prompts.md** - Prompt template definitions and examples
8+
9+ ## Purpose
10+
11+ Prompt templates provide:
12+
13+ - Consistent AI interaction patterns
14+ - Reusable code generation templates
15+ - Standardized documentation formats
16+ - Common development task workflows
17+
18+ ## Usage
19+
20+ Prompts are referenced by AI development tools to generate consistent, high-quality code and documentation that follows WordPress and theme development standards.
Original file line number Diff line number Diff line change 1+ # GitHub Actions Workflows
2+
3+ This directory contains GitHub Actions workflow definitions for CI/CD automation.
4+
5+ ## Workflows
6+
7+ - ** agent-workflow.yml** - AI agent automation workflow
8+ - ** block-theme-build-and-e2e.yml** - Build and end-to-end testing workflow
9+ - Additional workflows for testing, linting, and deployment
10+
11+ ## Purpose
12+
13+ These workflows automate:
14+
15+ - Building theme assets on push/PR
16+ - Running automated tests (unit, integration, E2E)
17+ - Code quality checks (linting, formatting)
18+ - Version management and releases
19+
20+ ## Triggers
21+
22+ Workflows typically run on:
23+
24+ - Push to main/develop branches
25+ - Pull request creation/updates
26+ - Manual workflow dispatch
27+ - Scheduled intervals (for maintenance tasks)
28+
29+ ## Usage
30+
31+ GitHub Actions automatically executes these workflows based on configured triggers. Check individual workflow files for specific configuration details.
Original file line number Diff line number Diff line change 1+ # Husky Git Hooks
2+
3+ This directory contains Git hook scripts managed by Husky.
4+
5+ ## Hooks
6+
7+ - ** pre-commit** - Runs before each commit to ensure code quality
8+
9+ ## Purpose
10+
11+ Git hooks enforce:
12+
13+ - Code linting before commits
14+ - Code formatting standards
15+ - Test execution for changed files
16+ - Preventing commits with errors
17+
18+ ## Pre-commit Hook
19+
20+ The pre-commit hook typically runs:
21+
22+ - ESLint for JavaScript files
23+ - Stylelint for CSS/SCSS files
24+ - PHP_CodeSniffer for PHP files
25+ - Prettier formatting checks
26+
27+ ## Configuration
28+
29+ Hooks are automatically installed when running ` npm install ` and are configured through Husky settings in ` package.json ` .
30+
31+ ## Bypassing Hooks
32+
33+ In special cases (like scaffold repositories), you can bypass hooks with:
34+
35+ ``` bash
36+ git commit --no-verify -m " commit message"
37+ ```
38+
39+ ** Note** : Only bypass hooks when absolutely necessary.
You can’t perform that action at this time.
0 commit comments