Skip to content

Commit 2eeb1e5

Browse files
TMHSDigitalclaude
andcommitted
Monthly re-verify batch workflow
- site/lib/reverify.mjs: pickBatch selects live entries last checked more than 150 days ago (or never), oldest first, a tenth of the catalog per month so it cycles in about ten; batchIssueMarkdown writes the checklist in the shape of #54-#57 (file, source URL, recorded licence, age) - site/reverify-batch.mjs: the CLI, with --report and --size, count= to GITHUB_OUTPUT - .github/workflows/reverify.yml: first of the month and on demand, opens or updates one issue labelled help wanted / good first issue; skipped while nothing is due (the July 2026 checks fall due in December) - documented in site/README.md, CONTRIBUTING.md and ROADMAP.md; tests cover the selection rule and the issue text Closes #93 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent ab1bc53 commit 2eeb1e5

7 files changed

Lines changed: 361 additions & 147 deletions

File tree

‎.github/workflows/reverify.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Monthly re-verify batch
2+
3+
# On the first of each month: pick the live entries whose licence was read
4+
# longest ago (more than 150 days), about a tenth of the catalog, and open or
5+
# update one checklist issue asking for them to be re-read at the source.
6+
# It never edits an entry.
7+
on:
8+
schedule:
9+
- cron: "0 8 1 * *"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
issues: write
15+
16+
jobs:
17+
reverify:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
25+
with:
26+
node-version-file: .nvmrc
27+
28+
- name: Pick the batch
29+
id: pick
30+
run: node site/reverify-batch.mjs --report reverify-batch.md
31+
32+
- name: Open or update the batch issue
33+
if: steps.pick.outputs.count != '0'
34+
env:
35+
GH_TOKEN: ${{ github.token }}
36+
COUNT: ${{ steps.pick.outputs.count }}
37+
run: |
38+
month=$(date -u +%Y-%m)
39+
title="Re-verify batch ${month}: ${COUNT} entries due a licence re-read"
40+
existing=$(gh issue list --state open --label "help wanted" --json number,title \
41+
--jq '[.[] | select(.title | startswith("Re-verify batch "))][0].number // empty')
42+
if [ -n "$existing" ]; then
43+
gh issue edit "$existing" --title "$title" --body-file reverify-batch.md
44+
else
45+
gh issue create --title "$title" --label "help wanted" --label "good first issue" --body-file reverify-batch.md
46+
fi

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ To add a starter stack (one pick per need for a kind of game), follow [`stacks/R
7373
- [ ] Entry does not claim rights we don’t have
7474
- [ ] Tool entries distinguish **software license** from **exported asset** ownership
7575

76+
Verification ages. On the first of each month a workflow opens a "Re-verify batch" issue
77+
listing the live entries whose licence was read longest ago (over 150 days, about a tenth
78+
of the catalog). Each item is a self-contained re-read: open the source, confirm the
79+
terms, bump `verified` and add a dated Evidence quote, or set `needs-review` and say what
80+
changed. Those issues carry `good first issue`; pick one if you want a first contribution
81+
with no code.
82+
7683
## Submitting your own source
7784

7885
Publishers are welcome to list their own work. Say so in the pull request, write the entry as a third party would (facts the source states, no comparisons with other entries, no ranking language), and start it at `needs-review` so a maintainer re-reads the licence before it goes `active`. A free tier of a paid product is listed as the free tier only, with the paid tier named in Notes and not linked as the entry's `url`. A one-time notice or upsell inside a tool is recorded in Notes as a fact.

‎ROADMAP.md‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# Roadmap
2-
3-
Where help is most useful. The rule behind all of it: a wrong licence claim is worse than a
4-
missing entry, so freshness and accuracy come before volume.
5-
6-
## Open to contributors
7-
8-
- **Thin categories:** video, animation and environment are still the smallest (counts in the
9-
[category table](catalog/README.md)). See [CONTRIBUTING.md](CONTRIBUTING.md) and the "new
10-
source" issue form.
11-
- **Optional fields:** `camera_perspective` and `grid_dimensions` on 2D entries
12-
([#41](https://github.com/TMHSDigital/Free-Game-Dev-Assets/issues/41)). Small, well-scoped, a
13-
good first PR.
14-
- **Starter stacks:** audio, a game-jam kit, Unity, Unreal and VR are not covered yet. Use the
15-
"request an asset" form to add to a stack's Gaps list.
16-
- **Corrections:** a licence that changed or a link that moved. The weekly link check opens an
17-
issue listing them.
18-
19-
## Planned
20-
21-
- Re-verification in smaller, regular batches, so the July 2026 verifications do not all expire
22-
together in mid-2027.
23-
- A changelog page generated from [docs/review-ledger.md](docs/review-ledger.md).
24-
- Full-text search over entry bodies (Notes and Evidence), not only names, tags and summaries.
25-
26-
## Done
27-
28-
- Site search across names, tags and summaries, with licence, format and category filters.
29-
- Accessibility fixes: focus handling, contrast, heading outline and tap targets (Lighthouse
30-
accessibility 100).
31-
- Thin categories topped up: 15 video, animation and environment sources (2026-10-04).
32-
33-
- Machine-readable exports: `data.json`, `catalog.csv` and an Atom feed (`feed.xml`) of recently
34-
verified entries.
1+
# Roadmap
2+
3+
Where help is most useful. The rule behind all of it: a wrong licence claim is worse than a
4+
missing entry, so freshness and accuracy come before volume.
5+
6+
## Open to contributors
7+
8+
- **Thin categories:** video, animation and environment are still the smallest (counts in the
9+
[category table](catalog/README.md)). See [CONTRIBUTING.md](CONTRIBUTING.md) and the "new
10+
source" issue form.
11+
- **Optional fields:** `camera_perspective` and `grid_dimensions` on 2D entries
12+
([#41](https://github.com/TMHSDigital/Free-Game-Dev-Assets/issues/41)). Small, well-scoped, a
13+
good first PR.
14+
- **Starter stacks:** audio, a game-jam kit, Unity, Unreal and VR are not covered yet. Use the
15+
"request an asset" form to add to a stack's Gaps list.
16+
- **Corrections:** a licence that changed or a link that moved. The weekly link check opens an
17+
issue listing them.
18+
19+
## Planned
20+
21+
- Re-verification in smaller, regular batches, so the July 2026 verifications do not all expire. Since 2026-10 the `reverify.yml` workflow opens a monthly checklist issue of the entries checked longest ago (over 150 days, about a tenth of the catalog each month)
22+
together in mid-2027.
23+
- A changelog page generated from [docs/review-ledger.md](docs/review-ledger.md).
24+
- Full-text search over entry bodies (Notes and Evidence), not only names, tags and summaries.
25+
26+
## Done
27+
28+
- Site search across names, tags and summaries, with licence, format and category filters.
29+
- Accessibility fixes: focus handling, contrast, heading outline and tap targets (Lighthouse
30+
accessibility 100).
31+
- Thin categories topped up: 15 video, animation and environment sources (2026-10-04).
32+
33+
- Machine-readable exports: `data.json`, `catalog.csv` and an Atom feed (`feed.xml`) of recently
34+
verified entries.

‎site/README.md‎

Lines changed: 124 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,124 @@
1-
# Site
2-
3-
Static GitHub Pages UI for this catalog.
4-
5-
## Single source of truth
6-
7-
`site/build.mjs` scans every `catalog/**/*.md` (except `README.md` / `TEMPLATE.md`), reads YAML frontmatter, and writes `site/dist/data.js` + static assets.
8-
9-
| You edit | What updates |
10-
| --- | --- |
11-
| `catalog/<category>/<id>.md` | Catalog list, search, filters, counts |
12-
| `site/config.json` → `featured` | Safe starting points table (`id` + `need`) |
13-
| `site/config.json` → `categories` / `guides` | Labels and guide links |
14-
| `site/public/*` | Page chrome / design |
15-
| An entry's body (Notes, Evidence) | Its page at `entry/<id>/` |
16-
| `stacks/<id>.md` | Its page at `stack/<id>/`, the homepage Starter stacks list, and "Used in" on each picked entry |
17-
18-
## Other exports
19-
20-
Each deploy also publishes
21-
[`catalog.csv`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/catalog.csv) (one row
22-
per entry: id, name, url, category, licence, SPDX, commercial, attribution, formats, tags,
23-
verified, status, page; list fields are joined with `; `) and an Atom feed,
24-
[`feed.xml`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/feed.xml), of the 40 most
25-
recently verified entries. Entries carry no "added" date, so the feed is keyed on
26-
`verified`, the day the licence was last read from the source.
27-
28-
## Public JSON
29-
30-
Every deploy publishes the whole catalog as
31-
[`data.json`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/data.json), for scripts
32-
and tools that want the metadata without scraping the page. The page itself loads
33-
`data.js`, the same payload assigned to `window.__CATALOG__`.
34-
35-
- Top-level keys: `generatedAt`, `site`, `categories`, `guides`, `featured`, `stats`,
36-
`entries`.
37-
- Each entry carries its frontmatter fields (`id`, `name`, `url`, `category`,
38-
`subcategories`, `license`, `license_spdx` where set, `commercial`,
39-
`attribution_required`, `attribution_string` where set, `formats`, `tags`, `verified`,
40-
`status`, `publisher` where set, and the optional 2D fields), plus `path` (the entry's
41-
file in this repo), `page` (the entry's page, relative to the site root), `summary` (the first paragraph of its body), and two derived sort
42-
fields, `attributionClass` and `licenseRank`.
43-
- It is regenerated from `catalog/` on every push to `main`. Field names are stable;
44-
new optional fields may appear. The licence facts are only as current as each entry's
45-
`verified` date: re-check the source before you ship on one.
46-
47-
## Entry pages
48-
49-
`build.mjs` writes `entry/<id>/index.html` for every entry from its frontmatter and
50-
body, using `site/lib/markdown.mjs`. The renderer supports exactly what entries use:
51-
`#` and `##` headings, paragraphs, bullet lists (nesting allowed), bold, `*italic*`,
52-
inline code, links and bare URLs. Underscores are literal. Anything else (tables,
53-
code fences, blockquotes, images, raw HTML, `###`, numbered lists) fails the build
54-
with the file and line, as does a relative link to a file that does not exist.
55-
56-
The build also writes `llms.txt` (one line per entry) and `llms-full.txt` (with each
57-
entry's Notes) for AI assistants, and checks every generated page before it succeeds.
58-
Tests: `node site/lib/lib.test.mjs`.
59-
60-
## Starter stacks
61-
62-
`build.mjs` writes `stack/<id>/index.html` for each file in `stacks/` (the format is in
63-
`stacks/README.md`). The page's "What this stack owes" panel is computed from the picked
64-
entries: credit lines to ship, picks that need no credit, aggregators to check file by
65-
file, and open questions. A stack never states a licence itself. V15 in `checks.mjs`
66-
fails a stack whose pick is missing, deprecated or malformed, or whose why sentence
67-
names a licence; `validate.mjs` and `build.mjs` both run it.
68-
69-
## Licence freshness
70-
71-
`build.mjs` writes a one-line summary under the homepage hero and `freshness/index.html`
72-
from each entry's `verified` date, using `site/lib/freshness.mjs`. The buckets are the
73-
cards' own (fresh up to 180 days, aging to 365, stale after). Deprecated entries are
74-
not counted. `pages.yml` also runs every Monday at 06:17 UTC so the ages keep moving
75-
when nothing is pushed; GitHub pauses scheduled workflows in a public repository after
76-
60 days without activity, so a long quiet spell needs a manual run from the Actions tab.
77-
78-
## Sitemap
79-
80-
`build.mjs` writes `sitemap.xml` (home, freshness, stacks and every non-deprecated entry)
81-
and links it from the homepage with `<link rel="sitemap">`. The `Sitemap:` line in
82-
`robots.txt` is written too, but crawlers only read robots.txt at a host's root, so
83-
under `/Free-Game-Dev-Assets/` it is never seen. Submit
84-
`https://tmhsdigital.github.io/Free-Game-Dev-Assets/sitemap.xml` once in Google Search
85-
Console and Bing Webmaster Tools; that is the step that gets it read.
86-
87-
## Link check
88-
89-
`.github/workflows/links.yml` runs `site/check-links.mjs` every Monday at 07:41 UTC (and
90-
on demand from the Actions tab). It fetches each non-deprecated entry's `url` and opens,
91-
or updates, one issue labelled `correction` titled "Link check: N sources need a look",
92-
listing dead links, sources that moved to another domain or GitHub repository, and
93-
entries verified more than a year ago. Sites that refuse the checker (401, 403, 429) are
94-
listed for a manual look but never open the issue on their own. It edits nothing: a
95-
moved source needs its licence re-read before its entry changes. Run it locally with
96-
`npm run links`.
97-
98-
## Social preview
99-
100-
`docs/images/readme/og-card.png` is a 1200x630 screenshot of this site's first screen.
101-
`build.mjs` copies it into `dist` and emits the `og:image` and `twitter:image` tags.
102-
Retake it when the hero changes.
103-
104-
## Commands
105-
106-
```bash
107-
npm run check # tests, validate, build: what CI runs
108-
npm run serve # preview site/dist
109-
npm run links # the link check, printed to the terminal
110-
```
111-
112-
Deploy: `.github/workflows/pages.yml` (source = GitHub Actions), which first runs
113-
`ci.yml` as a reusable workflow.
1+
# Site
2+
3+
Static GitHub Pages UI for this catalog.
4+
5+
## Single source of truth
6+
7+
`site/build.mjs` scans every `catalog/**/*.md` (except `README.md` / `TEMPLATE.md`), reads YAML frontmatter, and writes `site/dist/data.js` + static assets.
8+
9+
| You edit | What updates |
10+
| --- | --- |
11+
| `catalog/<category>/<id>.md` | Catalog list, search, filters, counts |
12+
| `site/config.json` → `featured` | Safe starting points table (`id` + `need`) |
13+
| `site/config.json` → `categories` / `guides` | Labels and guide links |
14+
| `site/public/*` | Page chrome / design |
15+
| An entry's body (Notes, Evidence) | Its page at `entry/<id>/` |
16+
| `stacks/<id>.md` | Its page at `stack/<id>/`, the homepage Starter stacks list, and "Used in" on each picked entry |
17+
18+
## Other exports
19+
20+
Each deploy also publishes
21+
[`catalog.csv`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/catalog.csv) (one row
22+
per entry: id, name, url, category, licence, SPDX, commercial, attribution, formats, tags,
23+
verified, status, page; list fields are joined with `; `) and an Atom feed,
24+
[`feed.xml`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/feed.xml), of the 40 most
25+
recently verified entries. Entries carry no "added" date, so the feed is keyed on
26+
`verified`, the day the licence was last read from the source.
27+
28+
## Public JSON
29+
30+
Every deploy publishes the whole catalog as
31+
[`data.json`](https://tmhsdigital.github.io/Free-Game-Dev-Assets/data.json), for scripts
32+
and tools that want the metadata without scraping the page. The page itself loads
33+
`data.js`, the same payload assigned to `window.__CATALOG__`.
34+
35+
- Top-level keys: `generatedAt`, `site`, `categories`, `guides`, `featured`, `stats`,
36+
`entries`.
37+
- Each entry carries its frontmatter fields (`id`, `name`, `url`, `category`,
38+
`subcategories`, `license`, `license_spdx` where set, `commercial`,
39+
`attribution_required`, `attribution_string` where set, `formats`, `tags`, `verified`,
40+
`status`, `publisher` where set, and the optional 2D fields), plus `path` (the entry's
41+
file in this repo), `page` (the entry's page, relative to the site root), `summary` (the first paragraph of its body), and two derived sort
42+
fields, `attributionClass` and `licenseRank`.
43+
- It is regenerated from `catalog/` on every push to `main`. Field names are stable;
44+
new optional fields may appear. The licence facts are only as current as each entry's
45+
`verified` date: re-check the source before you ship on one.
46+
47+
## Entry pages
48+
49+
`build.mjs` writes `entry/<id>/index.html` for every entry from its frontmatter and
50+
body, using `site/lib/markdown.mjs`. The renderer supports exactly what entries use:
51+
`#` and `##` headings, paragraphs, bullet lists (nesting allowed), bold, `*italic*`,
52+
inline code, links and bare URLs. Underscores are literal. Anything else (tables,
53+
code fences, blockquotes, images, raw HTML, `###`, numbered lists) fails the build
54+
with the file and line, as does a relative link to a file that does not exist.
55+
56+
The build also writes `llms.txt` (one line per entry) and `llms-full.txt` (with each
57+
entry's Notes) for AI assistants, and checks every generated page before it succeeds.
58+
Tests: `node site/lib/lib.test.mjs`.
59+
60+
## Starter stacks
61+
62+
`build.mjs` writes `stack/<id>/index.html` for each file in `stacks/` (the format is in
63+
`stacks/README.md`). The page's "What this stack owes" panel is computed from the picked
64+
entries: credit lines to ship, picks that need no credit, aggregators to check file by
65+
file, and open questions. A stack never states a licence itself. V15 in `checks.mjs`
66+
fails a stack whose pick is missing, deprecated or malformed, or whose why sentence
67+
names a licence; `validate.mjs` and `build.mjs` both run it.
68+
69+
## Licence freshness
70+
71+
`build.mjs` writes a one-line summary under the homepage hero and `freshness/index.html`
72+
from each entry's `verified` date, using `site/lib/freshness.mjs`. The buckets are the
73+
cards' own (fresh up to 180 days, aging to 365, stale after). Deprecated entries are
74+
not counted. `pages.yml` also runs every Monday at 06:17 UTC so the ages keep moving
75+
when nothing is pushed; GitHub pauses scheduled workflows in a public repository after
76+
60 days without activity, so a long quiet spell needs a manual run from the Actions tab.
77+
78+
## Sitemap
79+
80+
`build.mjs` writes `sitemap.xml` (home, freshness, stacks and every non-deprecated entry)
81+
and links it from the homepage with `<link rel="sitemap">`. The `Sitemap:` line in
82+
`robots.txt` is written too, but crawlers only read robots.txt at a host's root, so
83+
under `/Free-Game-Dev-Assets/` it is never seen. Submit
84+
`https://tmhsdigital.github.io/Free-Game-Dev-Assets/sitemap.xml` once in Google Search
85+
Console and Bing Webmaster Tools; that is the step that gets it read.
86+
87+
## Link check
88+
89+
`.github/workflows/links.yml` runs `site/check-links.mjs` every Monday at 07:41 UTC (and
90+
on demand from the Actions tab). It fetches each non-deprecated entry's `url` and opens,
91+
or updates, one issue labelled `correction` titled "Link check: N sources need a look",
92+
listing dead links, sources that moved to another domain or GitHub repository, and
93+
entries verified more than a year ago. Sites that refuse the checker (401, 403, 429) are
94+
listed for a manual look but never open the issue on their own. It edits nothing: a
95+
moved source needs its licence re-read before its entry changes. Run it locally with
96+
`npm run links`.
97+
98+
## Re-verify batch
99+
100+
`.github/workflows/reverify.yml` runs `site/reverify-batch.mjs` on the first of each month
101+
(and on demand). It picks the live entries whose licence was read longest ago, more than
102+
150 days, about a tenth of the catalog at a time so every entry comes round in about ten
103+
months, and opens or updates one issue labelled `help wanted` and `good first issue`
104+
titled "Re-verify batch YYYY-MM: N entries due a licence re-read", with a checklist that
105+
names each entry's file, source URL and recorded licence. The selection rule is in
106+
`site/lib/reverify.mjs` and tested. When nothing is due the month is skipped. Preview it
107+
with `node site/reverify-batch.mjs`.
108+
109+
## Social preview
110+
111+
`docs/images/readme/og-card.png` is a 1200x630 screenshot of this site's first screen.
112+
`build.mjs` copies it into `dist` and emits the `og:image` and `twitter:image` tags.
113+
Retake it when the hero changes.
114+
115+
## Commands
116+
117+
```bash
118+
npm run check # tests, validate, build: what CI runs
119+
npm run serve # preview site/dist
120+
npm run links # the link check, printed to the terminal
121+
```
122+
123+
Deploy: `.github/workflows/pages.yml` (source = GitHub Actions), which first runs
124+
`ci.yml` as a reusable workflow.

0 commit comments

Comments
 (0)