Skip to content
/templatePublic template

Repository files navigation

Template — Secure Project Blueprint

BuildCodeQLDependabotLicense

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

TopicLocation
Feature Lifecycledocs/lifecycle/feature-lifecycle.md
Release Managementdocs/lifecycle/release-management.md
Code Review Standardsdocs/governance/code-review-standards.md
Change Managementdocs/governance/change-management.md
Testing Strategydocs/testing/test-pyramid.md
Security Testingdocs/testing/security-testing.md
Infrastructure Overviewdocs/infrastructure-overview.md
Environment Strategydocs/environment-strategy.md
First-Time Setupdocs/runbooks/first-time-setup.md
Monitoring & Observabilitydocs/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

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages