Skip to content

Latest commit

Β 

History

History

prompts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

README.md

file_type prompt
title Standardised Prompts Directory
description Reusable prompt library with 113 organization-wide prompts for AI-assisted development workflows
version 2.0.0
last_updated 2026-09-04
owners
ashley@lightspeedwp.agency
tags
prompts
ai
templates
agents
reusable
workflows
status active
stability stable
domain generic

🎯 Reusable Prompts Library

A comprehensive, organization-wide library of 113 production-ready reusable prompts for AI-assisted development tasks. Use these prompts as starting points for common tasksβ€”customise as needed for your specific context.

Latest Update: Phase 1 complete with 9 new comprehensive prompts + 71 migrated existing prompts + 33 legacy prompts = 113 total prompts
Active Project: .github/projects/active/reusable-prompts/
Related PR: #2778


Quick Start

Using Prompts in Copilot Chat

# In Copilot Chat, reference a prompt directly:
/prompt-builder.prompt.md
/code-generation.prompt.md
/testing.prompt.md

Copying Prompts Locally

# Copy a prompt template
cp prompts/code-generation.prompt.md my-task.prompt.md

# Edit for your context
vim my-task.prompt.md

# Use with Claude or your AI tool
cat my-task.prompt.md | claude

Dynamic File Reference Pattern

All prompt files follow the standardized naming pattern:

*.prompt.md

This allows dynamic referencing and automatic discovery across tools and workflows.


πŸ†• Phase 1: New Comprehensive Reusable Prompts

Nine new production-ready prompts created for common AI-assisted development workflows. Each includes comprehensive documentation, workflow examples, and integration guidance.

# Prompt Purpose Effort Workflows Documentation
1 prompt-builder.prompt.md Build, test, and iterate on custom prompts 45 min Copilot Chat, IDE Complete with examples
2 code-generation.prompt.md Generate code stubs and implementations 30 min GitHub Actions, Copilot Scaffolding templates
3 documentation-writer.prompt.md Auto-generate user-facing documentation 40 min CI/CD pipeline, Manual API docs, guides, tutorials
4 refactoring.prompt.md Analyze and refactor code for consistency 35 min Pre-commit, CI pipeline Quality metrics included
5 testing.prompt.md Generate unit and integration tests 45 min GitHub Actions, IDE Test patterns, frameworks
6 conventional-commit.prompt.md Format commits following Conventional Commits 20 min Git hooks, CLI Standards reference
7 create-specification.prompt.md Create detailed technical specifications 50 min Manual, Copilot Chat Requirements templates
8 debugging.prompt.md Troubleshoot and analyze runtime errors 35 min IDE, Copilot Chat Error catalogs
9 create-implementation-plan.prompt.md Break features into actionable tasks 40 min Planning workflow, Manual Task breakdown templates

Total: 9 prompts, 340 minutes effort, comprehensive documentation and workflow integrations

See Also: PROMPTS-V1-INDEX.md for detailed workflows and implementation guides


πŸ“š Canonical Boundary

Organization-wide Prompts:

  • Location: prompts/ (root folder) β€” canonical for organisation-wide reusable prompts
  • Naming: All files follow *.prompt.md convention
  • Total: 113 prompts (9 new + 71 migrated + 33 legacy)

.github Repository Governance Prompts:

  • Location: .github/prompts/ β€” reserved for .github control-plane and repository-governance specific prompts
  • Purpose: Repository-specific governance, PR templates, issue automation
  • Status: Maintained separately, with redirects to canonical root location

Migration Authority:


πŸ“‹ Complete Prompt Index

The library contains 113 prompts organized in the following categories:

Category: Core Development Workflows (9 prompts)

Category: Code Analysis & Review (12 prompts)

Category: Documentation & Specifications (15 prompts)

Category: Testing & Quality Assurance (18 prompts)

Category: Architecture & Design (16 prompts)

Category: AI & Automation Workflows (11 prompts)

Category: Project Planning & Organization (13 prompts)

Category: WordPress-Specific Development (11 prompts)

β†’ See complete categorized list in PROMPTS-V1-INDEX.md


🎯 Important Prompts for .github Repository

For governance, automation, and repository management, these prompts are critical:

Prompt Purpose Priority Use Case
code-review.prompt.md PR review standards enforcement HIGH Automated PR reviews
conventional-commit.prompt.md Commit message validation HIGH CI/CD commit verification
github-actions-workflow.prompt.md Workflow creation HIGH New workflow automation
create-specification.prompt.md Issue specification HIGH GitHub issue creation
accessibility-review.prompt.md A11Y audit MEDIUM Component review
security-review.prompt.md Security audit HIGH Dependency/code audit
documentation-writer.prompt.md README/docs generation MEDIUM Repository documentation
changelog.prompt.md Release notes MEDIUM Release automation
test-case-generation.prompt.md Workflow testing MEDIUM CI/CD test creation
agentic-workflow-design.prompt.md Agent design MEDIUM New agent creation

πŸ“¦ Prompt Templates Subfolder

Common prompt templates for quick-start projects are available in prompts/templates/:

prompts/templates/
β”œβ”€β”€ README.md              # Templates documentation
β”œβ”€β”€ agent-template.prompt.md
β”œβ”€β”€ workflow-template.prompt.md
β”œβ”€β”€ automation-template.prompt.md
└── ...

Use templates to bootstrap new prompts quickly while maintaining consistency.


Usage Guide

Each prompt is designed to be:

  • Customisable: Adapt sections to your project context
  • Focused: Addresses a specific task or workflow stage
  • Documented: Includes structure, examples, and acceptance criteria

Example: Code Generation

# Copy the template
cp prompts/code-generation.prompt.md my-task.prompt.md

# Edit for your context
# Add project-specific details, file paths, acceptance criteria
vim my-task.prompt.md

# Use with Claude or your AI tool
cat my-task.prompt.md | claude --load-prompt -

Example: Using in GitHub Actions

- name: Generate Tests with Prompt
  env:
    PROMPT_FILE: prompts/testing.prompt.md
  run: |
    cat $PROMPT_FILE | claude --load-prompt - > tests/generated.test.js

Prompt Structure

All prompts follow a consistent structure:

  1. Frontmatter β€” Metadata (title, description, tags, etc.)
  2. Context β€” Project, scope, and relevant background
  3. Task β€” Clear, specific objective
  4. Constraints β€” Limitations, standards, or requirements
  5. Acceptance Criteria β€” Definition of done
  6. Examples β€” Real examples and use cases
  7. References β€” Links to relevant docs, files, or standards

Contributing

To add or improve prompts:

  1. Follow the standard structure above
  2. Use UK English and clear, concise language
  3. Include real examples where helpful
  4. Document any dependencies or prerequisites
  5. Add metadata: title, description, tags, owners
  6. Create a PR with rationale for the new prompt

See Also: CONTRIBUTING.md for detailed guidelines


Migration & Deprecation

Phase 1 Migration Complete (2026-09-04):

  • 71 prompts migrated from .github/prompts/ to root prompts/
  • All files follow *.prompt.md naming convention
  • Git history preserved (using git mv)
  • Redirect notices in .github/prompts/ point to canonical location

Legacy Prompts:

  • 33 legacy prompts available for backwards compatibility
  • All legacy files include deprecation notices with successor guidance
  • New work should use canonical root prompts/ location

Migration Report: .github/reports/prompt-migration-2026-09-04.md


Next Steps: Phase 2 (Sep 4-11)

  • ⬜ Prompt enhancements & specializations (security, performance, linting)
  • ⬜ Automation workflows (GitHub Actions, CI/CD integration)
  • ⬜ Versioning & compatibility framework
  • ⬜ Usage analytics & tracking
  • ⬜ Prompt discovery & search interface

See: .github/projects/active/reusable-prompts/ for detailed Phase 2 planning


🎼 Orchestrated automation β€” where intelligence meets operations

Related:

This page brought to you by the πŸ¦„ Magic Automation Unicorns of LightSpeedWP. Automation Docs