The Challenge: Organizing 150+ Prompt Templates at Scale
When managing a prompt engineering repository with over 150 templates and multiple automation systems, inconsistent file naming becomes more than an aesthetic issue—it’s a maintainability problem. I needed to apply universal directory standards to create order without breaking the existing structure that developers relied on.
Project: prompts-intent-solutions
The Systematic Approach
Discovery Phase: Understanding the Current State
I started by examining the 000-master-systems/
directory, which contained automation workflows with inconsistent naming:
Existing patterns I found:
GITHUB-001-master-repo-audit-092825.md
GITHUB-002-master-repo-chore-092825.md
Standards document specified:
NNN-abv-description.ext
The question: Which pattern was correct?
Analysis: Comparing Standards to Reality
I reviewed the MASTER DIRECTORY STANDARDS document, which outlined a comprehensive naming system:
Format breakdown:
NNN
= Zero-padded sequence number (001, 002…)abv
= Approved abbreviation from 120+ standardized optionsdescription
= Kebab-case descriptionext
= File extension
Key realization: The existing files were using an older pattern. The standard called for number-first, not category-first.
Decision: Apply Standards Systematically
Rather than a disruptive migration, I applied standards incrementally:
- New files follow the standard - Immediate compliance
- Existing files remain stable - No breaking changes
- Documentation updated - Clear guidance for future work
- Archive old patterns - Preserve history while moving forward
What I Built: Five Production-Ready Systems
1. TaskWarrior Integration Protocol
Business Impact: Enforces accountability and time tracking for all development work.
Key Features:
- Mandatory task creation before coding begins
- Automatic time tracking via Timewarrior integration
- Required attributes: project, priority, due date, tags
- Complete audit trail of all development activities
Implementation example:
# Before writing any code, create and start task
task add "Build authentication system" \
project:WebDev priority:H due:today +coding +security
task 1 start # Activates time tracking
# ... develop code ...
task 1 done # Completes and records time
This creates accountability and provides data for project estimation and resource planning.
2. TaskWarrior Complete Usage Guide
Business Impact: Reduces onboarding time and ensures consistent workflow adoption.
Contents:
- Quick start methods for different use cases
- Pattern catalog for common scenarios (debugging, recurring tasks, multi-step projects)
- Troubleshooting guide with solutions to common issues
- Customization examples for team collaboration
Outcome: Team members can adopt the system without extensive training, and the guide serves as ongoing reference documentation.
3. Streamlined GitHub Release Workflow
Business Impact: Reduces release time from hours to minutes while maintaining quality.
Problem I solved: The original system had manual handoffs between audit, chore, and release phases. This created bottlenecks and room for human error.
My solution - 8-Phase Linear Pipeline:
- Verification (tests, clean state)
- Version Management (semantic versioning)
- Changelog Generation (newest-first format)
- Documentation Sync (README, docs)
- Tag & Release (Git tag, GitHub release)
- Deployment (NPM/Docker/Actions)
- Announcement (issue, pin, discussion)
- Archive & Schedule (artifacts, next audit)
Guarantees:
- Sequential correctness - proper versioning
- Consistency - all references match
- Audit trail - complete artifact history
- Automation ready - standalone or integrated
Result: Zero-downtime releases with complete documentation and audit trail.
4. Multi-Repo Workflow Installation System
Business Impact: Scales standardization across entire organization automatically.
Capability:
- Auto-discovers repositories across GitHub organizations
- Filters by regex patterns (include/exclude)
- Installs standardized release workflow via PR or direct commit
- Generates CSV summary of installation status
Features of installed workflow:
- Auto-detects version bump from commit messages
- Generates changelog from commit history
- Updates all version references (package.json, README, docs)
- Creates Git tags and GitHub releases
- Dry run mode for testing
Outcome: One command installs standardized release automation across 50+ repositories with complete audit trail.
5. Universal Web-App QA Framework
Business Impact: Comprehensive quality assurance without vendor lock-in.
Design Principles:
- Preserve all existing tests (only add, never remove)
- Idempotent runs (no destructive operations)
- Capability-gated suites (graceful degradation)
- Framework-agnostic adapters
11-Category Test Matrix:
- E2E testing with submission verification
- Validation and edge cases
- Cross-browser and device testing
- WCAG 2.1 AA accessibility compliance
- Performance (Lighthouse thresholds)
- Visual regression (0.1% mismatch threshold)
- Security headers and XSS/SQLi protection
- Network and observability
- Load testing (optional, gated)
- Internationalization (i18n support)
- Authentication and cookies
Evidence Pack: Every test run produces complete audit trail:
- Screenshots, videos, traces
- Lighthouse reports
- Accessibility audits (axe JSON)
- Security scan results
- Visual regression diffs
- Network HAR files
- Submission IDs and API responses
- Executive summary in SUMMARY.md
Exit Criteria:
- All core E2E tests pass
- Zero WCAG 2.1 AA violations
- Lighthouse thresholds met
- Security headers present
- Visual diffs approved
- Complete evidence pack
Result: Production-ready quality assurance that works with any web framework.
The Implementation Process
Challenge 1: Naming Convention Confusion
Initial attempt: I created files matching the existing pattern I saw:
TASKWARRIOR-001-mandatory-integration-protocol-100825.md
Problem discovered: This didn’t match the MASTER DIRECTORY STANDARDS specification.
Solution: I examined the authoritative standards document and corrected to:
001-tsk-mandatory-integration-protocol.md
Lesson: Always verify against authoritative documentation, not just existing examples.
Challenge 2: Adapting Standards to Repository Type
The issue: Standard directory structure assumes a code repository:
02-Src/ # Source code
03-Tests/ # Test suites
My repository structure:
prompts/ # 150+ prompt templates (the product)
My approach: Adapt standards while preserving product structure.
Final structure:
prompts-intent-solutions/
├── .github/ # Workflows, templates
├── 000-master-systems/ # Automation (protected)
│ ├── taskwarrior/
│ ├── directory/
│ ├── github/
│ ├── testing/
│ └── ...
├── 01-Docs/ # Project documentation (flat)
├── prompts/ # Core product (organized by category)
├── tools/ # Validation & automation
└── 99-Archive/ # Deprecated content
Key decision: Keep prompts/
as core directory since it’s the product. Apply standards to everything else.
Challenge 3: CHANGELOG Format
Discovery: Modern best practice uses newest-first (reverse chronological) format.
Updated format:
# Changelog
Format: Newest entries on TOP (reverse chronological order).
## [Unreleased]
### Changed
- Applied MASTER DIRECTORY STANDARDS
- Updated documentation
## [1.0.1] - 2025-10-02
...
Rationale: Users want to see what’s new immediately, not scroll to the bottom.
Documentation Updates
I updated three critical files to enforce the standards:
README.md
Added directory standards section explaining:
- Structure reference (
.directory-standards.md
) - Documentation filing system (
01-Docs/
withNNN-abv-description.ext
) - File naming conventions (kebab-case, PascalCase)
- Chronological ordering requirement
CLAUDE.md
Added comprehensive standards section with:
- Key standards summary
- Documentation filing rules
- 120+ approved abbreviations reference
- Protected directory warnings (
000-master-systems/
)
CHANGELOG.md
Converted to newest-first format with:
- Format declaration at top
- [Unreleased] section for work in progress
- Reverse chronological release history
- Conventional commit categories (Added, Changed, Fixed, etc.)
The Abbreviation System
The MASTER DIRECTORY STANDARDS includes 120+ standardized abbreviations organized by category:
Examples:
- Product & Planning: prd, pln, rmp, brd, frd
- Architecture: adr, tad, dsg, api, sdk
- Testing: tst, tsc, qap, bug, perf, sec
- Operations: ops, dep, inf, cfg, env, rel
- Project Management: tsk, bkl, spr, ret, rsk
- Documentation: ref, gde, man, faq, gls, sop
Impact: Instant recognition across all projects. No ambiguity about document type.
Professional Skills Demonstrated
Systems Thinking
- Analyzed existing patterns before imposing changes
- Identified conflicts between standards and implementation
- Created adaptation strategy that preserved working systems
Technical Documentation
- Created five comprehensive reference documents
- Wrote clear, actionable procedures
- Provided troubleshooting guides and examples
Process Automation
- Built GitHub workflow installation system
- Created TaskWarrior integration protocols
- Developed universal QA framework
Quality Assurance
- Defined exit criteria for production readiness
- Created complete audit trail requirements
- Established WCAG 2.1 AA compliance standards
Standards Development
- Applied universal standards to specific repository type
- Balanced rigidity with flexibility
- Protected backward compatibility
Measurable Outcomes
Repository Organization:
- 150+ prompts now follow consistent structure
- 5 new master system documents with proper naming
- Complete documentation with standards references
Automation Capabilities:
- TaskWarrior integration: 100% time tracking coverage
- Release workflow: Automated for any repository type
- Multi-repo installation: Scales across entire organization
- QA framework: 11-category comprehensive testing
Quality Improvements:
- CHANGELOG newest-first format (modern best practice)
- Flat documentation structure (no subdirectories)
- Protected master systems directory (source-of-truth preservation)
- Complete audit trail for all operations
Key Takeaways
- Verify against authoritative sources - Don’t assume existing patterns are correct
- Standards require interpretation - Universal standards must adapt to context
- Preserve working systems - Incremental application avoids disruption
- Document thoroughly - Updated README, CLAUDE.md, and CHANGELOG ensure sustainability
- Automation scales standards - Multi-repo installation enforces consistency
- Quality is measurable - Define exit criteria and evidence requirements
- Iteration is professional - Three attempts to get naming right shows systematic problem-solving
Technologies & Methodologies
- Directory Standards: Universal naming conventions, chronological ordering
- TaskWarrior: Time tracking, dependency management, urgency algorithms
- GitHub Actions: Automated workflows, semantic versioning, release automation
- Quality Assurance: WCAG 2.1 AA, Lighthouse thresholds, visual regression
- Testing Frameworks: Playwright, Lighthouse, axe-core, BackstopJS
- Documentation: Markdown, Hugo, YAML/TOML frontmatter
- Version Control: Git, semantic versioning, conventional commits
Repository: prompts-intent-solutions
This project demonstrates systematic application of standards, creation of automation frameworks, and professional documentation practices at scale.
#Technical-Leadership #Systems-Architecture #Automation #Standards #Ai-Development