Title: test: audit all template directories for duplicated files and add sync tests · Issue #461 · github/squad · GitHub
Open Graph Title: test: audit all template directories for duplicated files and add sync tests · Issue #461 · github/squad
X Title: test: audit all template directories for duplicated files and add sync tests · Issue #461 · github/squad
Description: Summary PR #460 review revealed that template files exist in more locations than the fix covered. The repo has multiple template directories that must stay in sync, but there's no comprehensive test ensuring parity across all of them. Kn...
Open Graph Description: Summary PR #460 review revealed that template files exist in more locations than the fix covered. The repo has multiple template directories that must stay in sync, but there's no comprehensive tes...
X Description: Summary PR #460 review revealed that template files exist in more locations than the fix covered. The repo has multiple template directories that must stay in sync, but there's no comprehensive...
Opengraph URL: https://github.com/github/squad/issues/461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test: audit all template directories for duplicated files and add sync tests","articleBody":"## Summary\n\nPR #460 review revealed that template files exist in **more locations than the fix covered**. The repo has multiple template directories that must stay in sync, but there's no comprehensive test ensuring parity across all of them.\n\n## Known duplicate locations\n\n| File | Known locations |\n|------|----------------|\n| `squad.agent.md` | `.squad-templates/`, `templates/`, `.github/agents/`, `packages/squad-cli/templates/`, `packages/squad-sdk/templates/` |\n| `casting-policy.json` | `.squad-templates/`, `templates/`, `packages/squad-cli/templates/`, `packages/squad-sdk/templates/` |\n| `casting-reference.md` | `.squad-templates/`, `templates/` (may need to be in package dirs too) |\n\nPR #460 fixed 3/5 `squad.agent.md` copies and 2/4 `casting-policy.json` copies — the `packages/` dirs were missed.\n\n## Work needed\n\n1. **Full audit** — scan ALL template directories and catalog every file that exists in multiple locations. Determine which files SHOULD be identical vs legitimately different.\n2. **Expand `test/template-sync.test.ts`** — cover all locations found in the audit, not just `.squad-templates/`, `templates/`, and `.github/agents/`.\n3. **Fix robustness issues** in existing tests:\n - Replace `process.cwd()` with `import.meta.url`-based resolution\n - Strengthen `extractUniverseCount` regex to anchor matches\n - Add content parity tests for `casting-reference.md` (not just existence)\n - Add test that casting-reference.md universe table count matches policy\n4. **Fix the missed files** — update `packages/squad-cli/templates/` and `packages/squad-sdk/templates/` to match\n\n## Found by\n\nDina Berry's squad (review of PRs #458 and #460) — squad obo dina","author":{"url":"https://github.com/diberry","@type":"Person","name":"diberry"},"datePublished":"2026-03-19T18:53:11Z","url":"https://github.com/github/squad/issues/461"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca344c51-b07b-e40e-81d1-42b7fa85e1e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9D6:5896A:BAB10:FA12F:6B017F1A |
| html-safe-nonce | e5ee6dd44c95e91aa9e3ac1f12cfcf45a0dd4c40c34a387782945f11a8499718 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUQ2OjU4OTZBOkJBQjEwOkZBMTJGOjZCMDE3RjFBIiwidmlzaXRvcl9pZCI6IjMyMzU2NTQ5NDc5Nzk1ODkzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31821308f0a26d281ae08df10867dae28f607122d026d25641cf56d6b3d127b7 |
| hovercard-subject-tag | issue:4103581838 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e3fdb9d4135cc84a1a886926758f243dcc4e54f997d24f46a93aa82bb093f4a/github/squad/issues/461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e3fdb9d4135cc84a1a886926758f243dcc4e54f997d24f46a93aa82bb093f4a/github/squad/issues/461 |
| og:image:alt | Summary PR #460 review revealed that template files exist in more locations than the fix covered. The repo has multiple template directories that must stay in sync, but there's no comprehensive tes... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | diberry |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width