Update Repository Documentation
Maintain documentation for the National Lottery Generator PHP application. Use repository-native facts only — do not invent unsupported claims. Keep wording in UK English.
When to Use
- After behaviour, requirements, or supported versions change
- When README.md or public docs in
docs/ are stale vs the codebase
- When preparing a release or dependency refresh that affects user-facing statements
Scope
| Area |
Audience |
Edit? |
README.md |
Contributors and new users |
Yes |
docs/ |
End users (GitHub Pages) |
Yes |
docs-internal/ |
Maintainers |
No, unless explicitly requested |
| Application code |
— |
No |
README.md Rules
Refresh README.md from these source-of-truth files:
composer.json — PHP version, description
README.md — preserve strong existing content unless stale
.github/workflows/ci.yml — CI PHP matrix
.github/workflows/deploy-azure-webapp.yml — deployment target
config/games.php — supported lottery games
public/index.php — available routes
deploy/nginx-default — Azure nginx helper (if documenting deploy)
CONTRIBUTING.md — contribution pointers
docs-internal/supported-versions.md — version policy
README content guidelines:
- Contributor-friendly overview: what the app does, quick start, development commands
- State entertainment-only purpose; do not present as a forecasting tool
- Include PHP + Composer setup (
composer install, php -S … -t public, vendor/bin/phpunit, pint)
- Note file-based storage (no database required for core features)
- Link to public docs in
docs/ and maintainer docs in docs-internal/
- Use standard Markdown; keep opening sections scannable
- Do not add Spec Kit internals,
specs/, or .specify/ unless already present
docs/ Rules (Public, GitHub Pages)
Keep public docs in sync with current app behaviour. Inspect before editing:
config/games.php
public/index.php
templates/games/ — user-facing UI
docs/README.md, docs/index.md, docs/getting-started.md
docs/how-it-works.md, docs/faq.md, docs/developer-reference.md
Page purposes (one primary purpose per page):
- Start here — what the app does and how to use it quickly
- Task pages — step-by-step guidance for common actions
- Explanation pages — behaviour and limitations in plain language
- FAQ — concise answers to common questions
Public docs guidelines:
- End-user tone: friendly, practical, clear next steps
- Avoid developer implementation details unless they directly help users
- Preserve entertainment-only disclaimer and responsible gambling messaging
- Use relative links for in-repository references
- Compatible with GitHub Pages/Jekyll (
docs/_config.yml)
- Make minimal, high-signal edits — avoid broad rewrites
- Add a new page only when there is clear evidence-based value
Update Strategy
- Read source-of-truth files listed above
- Refresh
README.md if requirements, setup, or tooling statements are stale
- Compare each
docs/ page against current behaviour
- Update only pages that are incomplete or incorrect
- Do not modify application code, workflows, or deployment config
Output
When complete, summarise:
- Which documentation files changed
- Key facts synchronised (PHP versions, games, commands, CI, deployment)
- Any remaining documentation gaps requiring user direction
1---2name: repo-update-docs3description: Refresh this repository's README.md and public docs/ from repository-native sources.4---56# Update Repository Documentation78Maintain documentation for the National Lottery Generator PHP application. Use repository-native facts only — do not invent unsupported claims. Keep wording in UK English.910## When to Use1112- After behaviour, requirements, or supported versions change13- When README.md or public docs in `docs/` are stale vs the codebase14- When preparing a release or dependency refresh that affects user-facing statements1516## Scope1718| Area | Audience | Edit? |19|------|----------|-------|20| `README.md` | Contributors and new users | Yes |21| `docs/` | End users (GitHub Pages) | Yes |22| `docs-internal/` | Maintainers | No, unless explicitly requested |23| Application code | — | No |2425## README.md Rules2627Refresh `README.md` from these source-of-truth files:2829- `composer.json` — PHP version, description30- `README.md` — preserve strong existing content unless stale31- `.github/workflows/ci.yml` — CI PHP matrix32- `.github/workflows/deploy-azure-webapp.yml` — deployment target33- `config/games.php` — supported lottery games34- `public/index.php` — available routes35- `deploy/nginx-default` — Azure nginx helper (if documenting deploy)36- `CONTRIBUTING.md` — contribution pointers37- `docs-internal/supported-versions.md` — version policy3839**README content guidelines:**4041- Contributor-friendly overview: what the app does, quick start, development commands42- State entertainment-only purpose; do not present as a forecasting tool43- Include PHP + Composer setup (`composer install`, `php -S … -t public`, `vendor/bin/phpunit`, `pint`)44- Note file-based storage (no database required for core features)45- Link to public docs in `docs/` and maintainer docs in `docs-internal/`46- Use standard Markdown; keep opening sections scannable47- Do not add Spec Kit internals, `specs/`, or `.specify/` unless already present4849## docs/ Rules (Public, GitHub Pages)5051Keep public docs in sync with current app behaviour. Inspect before editing:5253- `config/games.php`54- `public/index.php`55- `templates/games/` — user-facing UI56- `docs/README.md`, `docs/index.md`, `docs/getting-started.md`57- `docs/how-it-works.md`, `docs/faq.md`, `docs/developer-reference.md`5859**Page purposes (one primary purpose per page):**6061- **Start here** — what the app does and how to use it quickly62- **Task pages** — step-by-step guidance for common actions63- **Explanation pages** — behaviour and limitations in plain language64- **FAQ** — concise answers to common questions6566**Public docs guidelines:**6768- End-user tone: friendly, practical, clear next steps69- Avoid developer implementation details unless they directly help users70- Preserve entertainment-only disclaimer and responsible gambling messaging71- Use relative links for in-repository references72- Compatible with GitHub Pages/Jekyll (`docs/_config.yml`)73- Make minimal, high-signal edits — avoid broad rewrites74- Add a new page only when there is clear evidence-based value7576## Update Strategy77781. Read source-of-truth files listed above792. Refresh `README.md` if requirements, setup, or tooling statements are stale803. Compare each `docs/` page against current behaviour814. Update only pages that are incomplete or incorrect825. Do not modify application code, workflows, or deployment config8384## Output8586When complete, summarise:8788- Which documentation files changed89- Key facts synchronised (PHP versions, games, commands, CI, deployment)90- Any remaining documentation gaps requiring user direction