github/gh-aw/e2e-template-testing
Claude Code and agent skill by github/gh-aw
- community
Checking that the SKILL.md file is still in the repository.
End-to-end validation of coordinator and agent template changes
Install
npx vskill@latest install github/gh-aw/e2e-template-testingSKILL.md
The same SKILL.md was published earlier as github/gh-aw/e2e-template-testing.
Context
Squad's coordinator prompt (squad.agent.md) and agent charters (e.g. scribe-charter.md) are shipped as templates in .squad-templates/. Changes to these files affect how every squad session behaves — but unit tests can't catch prompt-level regressions because the prompts are interpreted by an LLM at runtime.
This skill describes how to validate template changes end-to-end by running real squad sessions against a locally-built CLI that includes your modified templates.
When To Use
- You changed
.squad-templates/squad.agent.md(coordinator prompt) - You changed
.squad-templates/scribe-charter.mdor other agent charters - You changed
.squad-templates/notes-protocol.mdor helper scripts - You added new conditional blocks (e.g. state-backend-aware spawn templates)
- You modified the init scaffolding that writes templates to target repos
Prerequisites
- Node.js ≥20, npm ≥10
- Git CLI
- GitHub Copilot CLI (
copilotorghcs) installed - A local clone of the squad repo on your feature branch
Workflow
Step 0 — Post initial tracking comment (FIRST action — before anything else)
If PR_NUMBER and REPO are both set, the absolute first thing you do — before fast-fail checks, before building, before creating any repos — is post the initial tracking comment with all steps marked as :hourglass_flowing_sand: Pending.
This gives reviewers immediate visibility that a run is in progress and what to expect.
After posting, immediately update the comment to mark Step 1 as :arrows_counterclockwise: Running (do NOT wait — this is a two-step sequence: post all-pending, then immediately update to Step 1 running). Then proceed to Step 1.
See Progress Reporting for the full comment lifecycle and update patterns.
⚠️ STOP before continuing: If posting the comment fails (network error, auth error), abort the run and report the failure. Do not proceed silently without a tracking comment.
Step 1 — Build the CLI from your branch
Verify: squad version output includes the -preview suffix (e.g., x.y.z-preview), confirming the local dev build is active. If the output shows a plain semver without -preview, the globally-installed npm package is still in use — re-check the link step. See CONTRIBUTING.md — Making the `squad` Command Use Your Local Build for the full guidance on local dev versioning.
Step 2 — Create a disposable test repo
Keep the project small — you only need enough for the coordinator to recognize a codebase and hire a team.
Step 3 — Init a squad with your modified templates
Verify the init produced the expected files:
Step 4 — Run a real session and capture output
Use the Copilot CLI's -p flag with --allow-all-tools for non-interactive sessions. --allow-all-tools is required for automated/non-interactive runs — without it, tool calls (including file writes) prompt for confirmation and block.
Alternatively, set the COPILOT_ALLOW_ALL=1 environment variable instead of the flag.
For multi-turn workflows, run sequential sessions:
Step 5 — Verify the outcome
Check that your template change had the expected effect. Common checks:
Step 6 — Record the verdict
Create an evidence/verdict.md in each test repo:
Record the wall-clock time from the start of Step 1 (fast-fail checks) to the end of Step 6 (verdict posted). This is the full E2E run duration for this scenario.
Progress Reporting
Use this section only when you are running E2E validation for an open PR. If PR_NUMBER and REPO are both set, post and maintain a live tracking comment in the PR thread. If either value is missing (for example, a local-only run), skip progress reporting silently.
Start the tracking comment (Step 0 — see Workflow above)
The initial comment must be posted as Step 0 — the absolute first action before anything else. See the Step 0 block in the Workflow section for the exact code.
The subsections below describe how to update the comment at each step boundary. For reference, here is the initial all-pending comment body posted in Step 0:
- Post a PR comment before Step 1 begins:
- Capture the comment ID immediately after posting it:
- Treat Step 1 as in progress as soon as the comment exists. Update the body so
Step 1 shows 🔄 Running and every later step remains ⏳ Pending.
Update the tracking comment after every step boundary
- When marking a step
🔄 Running, record$startTime = Get-Dateand store the
HH:MM start time in that row's Started column.
- Edit the existing comment in place; do not post a new progress comment:
- When marking a step
✅,❌, or⚠️, compute
$duration = (Get-Date) - $startTime and format it as "{0}m {1}s" -f [int]$duration.TotalMinutes, $duration.Seconds.
- Update the completed step row to
✅,❌, or⚠️, keep its original
HH:MM value in Started, and write the formatted duration in Duration.
- Keep all previously completed rows unchanged.
- Mark the next step as
🔄 Runningand set its Started value. - Leave later steps as
⏳ Pendingwith--:--for Started and--for
Duration.
- If a step fails and you stop early, still update the comment so the failed step
shows ❌ with its original start time and computed duration, and Step 6 becomes 🔄 Running while you prepare the final verdict.
Use this status legend in the comment
| Symbol | Meaning | |
|---|---|---|
| ⏳ | Not started | |
| 🔄 | Running | |
| ✅ | Passed | |
| ❌ | Failed | |
| ⚠️ | Passed with caveats |
Use exact step names and order
Keep these six rows in this exact order every time you update the comment:
- Fast-fail checks (build · link ·
squad version) - Create test repo(s)
squad init+ file verification- Run sessions
- Verify outcomes
- Record verdicts + post final comment
Handle Windows comment bodies safely
On Windows PowerShell 5.1, use the `--field body=@file` pattern to post comment bodies. Write the content to a temp file using UTF-8 without BOM, then pass --field "body=@$tmpFile" to gh api. This is more reliable than piping JSON through --input - on PS 5.1, which can silently corrupt multi-byte characters even with [Console]::OutputEncoding = UTF8.
Key rules:
- Use
New-Object System.Text.UTF8Encoding $false(the$falsedisables the BOM).
[System.Text.Encoding]::UTF8 writes a BOM which GitHub renders as a stray character () at the start of the comment.
- Use
--field "body=@$tmpFile", NOT--input -or--input filename, for
comment body updates. The @ prefix tells gh to read the field value from the file rather than treating the path as a literal string.
- Clean up the temp file after posting.
- Scrub any local absolute paths from the body before posting (see PII Protection
section).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/templates/skills/e2e-template-testing/SKILL.md
Popularity
- Repository stars
- 5,321
- Repository forks
- 571
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/github/gh-aw/e2e-template-testing)