Skip to content

RockRunner007/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Template β€” Secure Project Blueprint

Build CodeQL Dependabot License

GitHub Community Health: 100% (description, documentation, code of conduct, contributing guidelines, PR template, license, README)

A comprehensive project template for building production-ready services with:

  • Specification-Driven Development integration with example specs
  • Comprehensive documentation covering entire software development lifecycle
  • Security-first CI/CD with automated scanning and best practices
  • Team governance with clear processes and standards
  • Testing strategy with pyramid approach and security/performance testing
  • Infrastructure guides with deployment, scaling, and disaster recovery
  • Repository analyzer tool to check compliance with best practices

Why this repo

  • Provides a consistent project layout so teams can start small and scale safely.
  • Includes spec-driven development methodology with real examples and templates.
  • Full documentation ecosystem covering feature lifecycle, releases, testing, governance, and operations.
  • Includes placeholders for security scans, runbooks, and automation so security becomes part of the workflow.
  • Includes a repository compliance analyzer to evaluate any project against these standards.

Directory Structure

Core Directories

  • src/ β€” source code
  • tst/ β€” unit, integration, and security-focused tests
  • specs/ β€” specifications for features (specification-driven development)
  • example/ β€” example implementations and demonstrations

Documentation

  • docs/ β€” comprehensive documentation covering entire SDLC
    • docs/lifecycle/ β€” feature, release, and deprecation processes
    • docs/governance/ β€” code review, change management, onboarding, dependencies
    • docs/testing/ β€” testing pyramid, security testing, performance testing
    • docs/infrastructure-overview.md β€” architecture and infrastructure guide
    • docs/environment-strategy.md β€” dev/staging/prod environment management
    • docs/runbooks/ β€” operational runbooks (deploy, rollback, incident response, monitoring)
    • docs/tools/ β€” tools documentation (repository analyzer, AI integration)

Configuration & Operations

  • _static/ β€” diagrams, threat models, deployment documentation
  • infrastructure/ β€” IaC (Terraform, etc.) and security policies
  • prompts/ β€” AI prompts and project context for automated helpers
  • artifacts/ β€” build outputs, scan results, coverage reports
  • scripts/ β€” utility scripts (repository analyzer, etc.)

Project Governance

  • codeowners / .github/CODEOWNERS β€” ownership hints
  • .github/workflows/ β€” CI and security workflows (template-ready)
  • .github/dependabot.yml β€” dependency automation configuration
  • .github/ai-guidance.md β€” AI contributor quick-start guidance

AI support files

  • AGENTS.md β€” official agent instruction file (required)

  • claude.md, codex.md, cursor.md, pilot.md β€” lightweight agent entrypoints

  • .gitattributes β€” consistent line endings and diffs

  • .cursorignore β€” Cursor editor ignore list

  • .aider.conf.yml β€” Aider integration config

  • .gemini/settings.json β€” Gemini CLI integration config

  • docs/personas/ β€” stakeholder personas for guidance and communication

Tech Stack

Language and framework-agnostic with best practices for Node.js, Python, Go, Rust, Java, .NET, and more. Includes GitHub Actions workflows, infrastructure as code, security scanning, and observability tooling.

Table of Contents

Key Features

πŸ“‹ Specification-Driven Development

  • Complete integration with spec-kit
  • Example specification with tasks, acceptance criteria, and contracts
  • Guides for writing tickets, knowledge base entries, and architecture decisions
  • Real-world examples: authentication, notifications, user profiles

πŸ“š Comprehensive Documentation

  • Feature Lifecycle β€” 8 phases from ideation to monitoring with gates and timelines
  • Release Management β€” Semantic versioning, changelog, hotfix processes
  • Testing Strategy β€” Unit, integration, E2E, security, and performance testing approaches
  • Governance β€” Code review standards, change management, dependency handling
  • Infrastructure β€” Architecture overview, environment strategy, scaling, and DR
  • Monitoring β€” Observability, metrics, logs, traces, alerts, and on-call processes
  • Onboarding β€” Structured team member onboarding (week 1-3 checklist)

πŸ” Repository Analyzer Tool

Evaluate any GitHub repository against best practices:

# Analyze repository
./scripts/analyze-repo owner/repo

# Get compliance score (0-100%)
./scripts/analyze-repo facebook/react

# JSON output for automation
OUTPUT_FORMAT=json ./scripts/analyze-repo owner/repo > report.json

Checks 8 categories: Documentation, Governance, Lifecycle, Infrastructure, Testing, Specifications, CI/CD, Examples

See Repository Analyzer Guide for details.

πŸ›‘οΈ Security-First

  • CodeQL analysis for code security vulnerabilities
  • Secret scanning to prevent credential leaks
  • Dependency scanning and automated updates (Dependabot)
  • Container scanning (Trivy) for image vulnerabilities
  • Infrastructure as Code scanning (tfsec) for Terraform
  • Penetration testing and DAST guidance included

πŸ€– AI Integration Ready

  • Repository analyzer produces JSON for AI processing
  • Examples for Claude, ChatGPT, and other LLMs
  • Automated issue creation from recommendations
  • CI/CD integration patterns
  • Batch processing multiple repositories

Specification-Driven Development

This template includes complete spec-kit integration:

Example Specs

  • Authentication (specs/001-example/) β€” Complete working example
  • Notifications (specs/002-notifications/) β€” Real-world example
  • User Profile (specs/003-user-profile/) β€” Multi-feature example

Getting Started with Specs

  1. Copy specs/001-example/ structure for new features
  2. Follow the Spec Integration Guide
  3. Write tickets from specs using Tickets Guide
  4. Create knowledge base entries with KB Guide

Documentation

Topic Location
Feature Lifecycle docs/lifecycle/feature-lifecycle.md
Release Management docs/lifecycle/release-management.md
Code Review Standards docs/governance/code-review-standards.md
Change Management docs/governance/change-management.md
Testing Strategy docs/testing/test-pyramid.md
Security Testing docs/testing/security-testing.md
Infrastructure Overview docs/infrastructure-overview.md
Environment Strategy docs/environment-strategy.md
First-Time Setup docs/runbooks/first-time-setup.md
Monitoring & Observability docs/runbooks/monitoring-observability.md

See docs/ for complete documentation.

Repository Analyzer

Check if any GitHub repository meets best practices standards:

Quick Start

# Make executable
chmod +x scripts/analyze-repo

# Analyze any repository
./scripts/analyze-repo owner/repo

# Examples
./scripts/analyze-repo facebook/react
./scripts/analyze-repo kubernetes/kubernetes
./scripts/analyze-repo google/go-cloud

Output

🟑 Overall Compliance Score: 72/100

Category Breakdown:
documentation       [β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘] 90/100
governance          [β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘] 60/100
lifecycle           [β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘] 40/100
...

Recommendations for Improvement:
πŸ”΄ HIGH PRIORITY:
1. Governance: Missing governance documentation

Features

  • βœ… Compliance scoring (0-100%)
  • βœ… Category breakdown with weights
  • βœ… Quality checks for key files
  • βœ… Specific, actionable recommendations
  • βœ… JSON output for automation
  • βœ… Node.js or Python (no dependencies)

See docs/tools/QUICK-START.md for full guide.

Getting Started

1. Clone or Use as Template

# Clone this repository
git clone https://github.com/RockRunner007/template.git

# Or use as template on GitHub: "Use this template" button

2. Customize for Your Project

  • Edit prompts/project-context.md with your project details
  • Customize docs in docs/lifecycle/, docs/governance/, etc. to match your team
  • Update workflows in .github/workflows/ for your tech stack
  • Add your code to src/ and tests to tst/

3. Start Using Specifications

  • Create your first specification in specs/ using the template in specs/001-example/
  • Use spec-kit format for consistent feature documentation
  • Link specs to GitHub issues and PRs for traceability

4. Enable CI/CD

Workflows are manual by default. To enable automated CI, edit .github/workflows/*.yml:

# Change from:
on:
  workflow_dispatch:

# To:
on:
  push:
    branches: [ main ]
  pull_request:

5. Set Up Team Processes

Review and customize:

Quick reference links

Workflows in .github/workflows/ are manual by default (workflow_dispatch). To enable automated triggers:

  1. Edit the workflow file
  2. Replace the on: { workflow_dispatch: } block with desired triggers:
on:
  push:
    branches: [ main ]
  pull_request:
  schedule:
    - cron: '0 0 * * 0'  # Weekly

Security

  • Reporting β€” Publish SECURITY.md to define vulnerability reporting process
  • Automated Scanning β€” Include CodeQL, secret scanning, dependency scanning, container scanning
  • Infrastructure Security β€” Use tfsec and similar tools for IaC validation
  • Secrets Management β€” Store in GitHub Secrets, never commit credentials
  • Access Control β€” Use CODEOWNERS for permission management
  • Policy Enforcement β€” Branch protection rules, required reviews, status checks

See docs/testing/security-testing.md for comprehensive security testing guide.

Contributing

  • This template is meant to be adapted to your team's needs
  • Open a PR or issue to suggest improvements
  • See CONTRIBUTING.md for guidelines
  • Help improve documentation and examples for other teams

Personas

This repo includes stakeholder personas for guided communication and AI prompts:

  • boss.md β€” Business/executive perspective
  • burned.md β€” Burned-out team member
  • cynic.md β€” Critical/skeptical perspective
  • herd.md β€” Team/consensus perspective
  • irrational.md β€” Emotional/reactive perspective
  • time_crunched.md β€” Time-pressured perspective
  • uninformed.md β€” Newcomer perspective

Use in AI prompts: You are the "boss" persona. Explain the business impact...

See docs/personas/ for details.

Resources

Documentation:

External:

License

This template is licensed under the MIT License. See LICENSE for details.

Maintainer

Feedback & Issues

Found a gap or have an improvement? Open an issue or submit a pull request.


Status: Production-ready template with specification-driven development, comprehensive governance, and automated tooling.

Last Updated: January 2026

About

A template repository for sharing a standard approach to internal services

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors